diff --git a/.github/labeler.yml b/.github/labeler.yml index 7283cc42..482fd094 100644 --- a/.github/labeler.yml +++ b/.github/labeler.yml @@ -25,7 +25,7 @@ dbschema: - any-glob-to-any-file: internal/ent/schema/* graphqlschema: - changed-files: - - any-glob-to-any-file: schema/** + - any-glob-to-any-file: internal/graphapi/schema/** migrations: - changed-files: - any-glob-to-any-file: db/** @@ -46,18 +46,23 @@ httpserve: graphapi: - changed-files: - any-glob-to-any-file: internal/graphapi/** + - any-glob-to-any-file: internal/graphapi/query/** + - any-glob-to-any-file: internal/graphapi/schema/** + - any-glob-to-any-file: internal/graphapi/generated/** + - any-glob-to-any-file: internal/graphapi/model/** + - any-glob-to-any-file: internal/graphapi/clientschema/** codegenerators: - changed-files: - - any-glob-to-any-file: gen_schema.go - - any-glob-to-any-file: generate.go - - any-glob-to-any-file: gqlgen.yml - - any-glob-to-any-file: gqlgenc.yml - - any-glob-to-any-file: internal/ent/entc.go + - any-glob-to-any-file: internal/graphapi/generate/gen_schema.go + - any-glob-to-any-file: internal/graphapi/generate/generate.go + - any-glob-to-any-file: internal/graphapi/generate/.gqlgen.yml + - any-glob-to-any-file: internal/graphapi/generate/.gqlgenc.yml + - any-glob-to-any-file: internal/ent/generate/entc.go - any-glob-to-any-file: internal/ent/templates/** coreclient: - changed-files: - - any-glob-to-any-file: internal/coreclient/** - - any-glob-to-any-file: query/** + - any-glob-to-any-file: pkg/openalneclient/** + - any-glob-to-any-file: nternal/graphapi/query/** config: - changed-files: - any-glob-to-any-file: config/** diff --git a/.golangci.yaml b/.golangci.yaml index 986b3cd0..177fc11c 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -53,13 +53,13 @@ issues: - fga/tests/* - docs/* - internal/graphapi/generate/* + - internal/graphapi/generated/* - db/migrations/* - db/migrations-goose-postgres/* - pkg/entitlements/test/* - cmd/cli/cmd/* exclude-files: - - internal/graphapi/gen_server.go - - internal/graphapi/gen_models.go + - internal/graphapi/model/gen_models.go - pkg/openlaneclient/graphclient.go - schema.graphql output: diff --git a/Taskfile.yaml b/Taskfile.yaml index cd48b566..7bca3487 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -56,13 +56,13 @@ tasks: generate:ent: desc: generate ent models cmds: - - go-generate-fast generate_ent.go + - go-generate-fast internal/ent/generate/generate.go - task: tidy generate:gql: desc: generate gql graphql models and resolvers, along with the client cmds: - - go-generate-fast generate_gql.go + - go-generate-fast internal/graphapi/generate/generate.go - task: tidy ## Go tasks diff --git a/gen_schema.go b/gen_schema.go deleted file mode 100644 index 89e8003e..00000000 --- a/gen_schema.go +++ /dev/null @@ -1,29 +0,0 @@ -//go:build ignore - -package main - -import ( - "log" - "os" - - "github.com/vektah/gqlparser/v2/formatter" - - "github.com/theopenlane/core/internal/graphapi" -) - -// read in schema from internal package and save it to the schema file -func main() { - execSchema := graphapi.NewExecutableSchema(graphapi.Config{}) - schema := execSchema.Schema() - - f, err := os.Create("schema.graphql") - if err != nil { - log.Fatal(err) - } - - defer f.Close() - - fmtr := formatter.NewFormatter(f) - - fmtr.FormatSchema(schema) -} diff --git a/generate_ent.go b/generate_ent.go deleted file mode 100644 index c46c0ec8..00000000 --- a/generate_ent.go +++ /dev/null @@ -1,5 +0,0 @@ -package main - -//go:generate_input internal/ent/entc.go internal/ent/schema/* internal/ent/mixin/* internal/ent/templates/* -//go:generate_output internal/ent/generated/* -//go:generate go run ./internal/ent/entc.go diff --git a/generate_gql.go b/generate_gql.go deleted file mode 100644 index bc835ef9..00000000 --- a/generate_gql.go +++ /dev/null @@ -1,13 +0,0 @@ -package main - -//go:generate_input internal/graphapi/generate/generate.go gqlgen.yml github.com/theopenlane/core/internal/ent/generated/ schema/* -//go:generate_output internal/graphapi/*.resolver.go pkg/openlaneclient/models.go -//go:generate go run ./internal/graphapi/generate/generate.go - -//go:generate_input gen_schema.go internal/graphapi/gen_server.go -//go:generate_output schema.graphql -//go:generate go run ./gen_schema.go - -//go:generate_input query/* schema/* gqlgenc.yml -//go:generate_output pkg/openlaneclient/graphqlclient.go -//go:generate go run github.com/Yamashou/gqlgenc generate --configdir schema diff --git a/go.mod b/go.mod index 9a99d97c..7cddb761 100644 --- a/go.mod +++ b/go.mod @@ -66,7 +66,7 @@ require ( github.com/theopenlane/echox v0.2.0 github.com/theopenlane/emailtemplates v0.1.2 github.com/theopenlane/entx v0.3.0 - github.com/theopenlane/gqlgen-plugins v0.3.1 + github.com/theopenlane/gqlgen-plugins v0.4.0 github.com/theopenlane/httpsling v0.2.2 github.com/theopenlane/iam v0.5.0 github.com/theopenlane/newman v0.1.2 diff --git a/go.sum b/go.sum index f8e69f49..404f1669 100644 --- a/go.sum +++ b/go.sum @@ -973,8 +973,8 @@ github.com/theopenlane/emailtemplates v0.1.2 h1:0l/PlokMjH8mARToQXWFvhBwvs9mtcaZ github.com/theopenlane/emailtemplates v0.1.2/go.mod h1:ZVTSMr+jKZZDH1IDTYBzR5nF/FPGt+IAPOJmet/WPi8= github.com/theopenlane/entx v0.3.0 h1:8aSordsEdpH1Fo0N6qgPgIcSryMBiF+sx/1bYjXuqYY= github.com/theopenlane/entx v0.3.0/go.mod h1:JhpipQ1Rcg/XYYIDUB4PcaWMqsUE0VO9tZzMHqYjQtQ= -github.com/theopenlane/gqlgen-plugins v0.3.1 h1:kLWqO7sOZlXmYP/8CeDegWEId9RYcD+qASF+8oaANh8= -github.com/theopenlane/gqlgen-plugins v0.3.1/go.mod h1:F5ZmQPbNagqZ2c/dK3anXe2pYRQpiAh6QghUQLownIU= +github.com/theopenlane/gqlgen-plugins v0.4.0 h1:FSd2pCPo+XsSFZ7nPMOmAmCmPo2fYkrRifyyQ6+aLJQ= +github.com/theopenlane/gqlgen-plugins v0.4.0/go.mod h1:FV+PaG0H3Xsf3g/FESwfyM8klpuCb6MGiA+e8gNK6Ec= github.com/theopenlane/httpsling v0.2.2 h1:QqJo/VsjeiM6/RnWZpRQX3I7T62j5u9WdXo52zUWyi0= github.com/theopenlane/httpsling v0.2.2/go.mod h1:mrSaIZs4lhcBsOJCv/n67N7eDZ/skD6vA8l8y9MDrKk= github.com/theopenlane/iam v0.5.0 h1:Pumnam4ATT8tz+LM6Un+dwFQwd7j8wlJxInprwaC2DE= diff --git a/internal/ent/entc.go b/internal/ent/generate/entc.go similarity index 78% rename from internal/ent/entc.go rename to internal/ent/generate/entc.go index cdb6f059..e4cdcf07 100644 --- a/internal/ent/entc.go +++ b/internal/ent/generate/entc.go @@ -5,9 +5,10 @@ package main import ( - "log" "os" + "github.com/rs/zerolog/log" + "entgo.io/contrib/entgql" "entgo.io/ent/entc" "entgo.io/ent/entc/gen" @@ -26,17 +27,26 @@ import ( "github.com/theopenlane/core/internal/ent/entconfig" "github.com/theopenlane/core/pkg/entitlements" + + "github.com/theopenlane/core/internal/genhelpers" ) const ( - graphSchemaDir = "./schema/" - graphQueryDir = "./query/" + graphDir = "./internal/graphapi/" + graphSchemaDir = graphDir + "schema/" + graphQueryDir = graphDir + "query/" schemaPath = "./internal/ent/schema" ) func main() { + // setup logging + genhelpers.SetupLogging() + + // change to the root of the repo so that the config hierarchy is correct + genhelpers.ChangeToRootDir("../../../") + if err := os.Mkdir("schema", 0755); err != nil && !os.IsExist(err) { - log.Fatalf("creating schema directory: %v", err) + log.Fatal().Err(err).Msg("creating schema directory") } // generate the history schemas @@ -44,20 +54,22 @@ func main() { xExt, err := entx.NewExtension(entx.WithJSONScalar()) if err != nil { - log.Fatalf("creating entx extension: %v", err) + log.Fatal().Err(err).Msg("creating entx extension") } gqlExt, err := entgql.NewExtension( entgql.WithSchemaGenerator(), - entgql.WithSchemaPath("schema/ent.graphql"), - entgql.WithConfigPath("gqlgen.yml"), + entgql.WithSchemaPath(graphSchemaDir+"ent.graphql"), + entgql.WithConfigPath(graphDir+"/generate/.gqlgen.yml"), entgql.WithWhereInputs(true), entgql.WithSchemaHook(xExt.GQLSchemaHooks()...), ) if err != nil { - log.Fatalf("creating entgql extension: %v", err) + log.Fatal().Err(err).Msg("creating entgql extension") } + log.Info().Msg("running ent codegen with extensions") + if err := entc.Generate(schemaPath, &gen.Config{ Target: "./internal/ent/generated", Templates: entgql.AllTemplates, @@ -117,7 +129,7 @@ func main() { historyExt, entfgaExt, )); err != nil { - log.Fatalf("running ent codegen: %v", err) + log.Fatal().Err(err).Msg("running ent codegen") } } @@ -125,6 +137,8 @@ func main() { // and returns the history and fga extensions to be used in the ent codegen func preRun() (*history.HistoryExtension, *entfga.AuthzExtension) { // generate the history schemas + log.Info().Msg("pre-run: generating the history schemas") + historyExt := history.New( history.WithAuditing(), history.WithImmutableFields(), @@ -139,9 +153,11 @@ func preRun() (*history.HistoryExtension, *entfga.AuthzExtension) { ) if err := historyExt.GenerateSchemas(); err != nil { - log.Fatalf("generating history schema: %v", err) + log.Fatal().Err(err).Msg("generating history schema") } + log.Info().Msg("pre-run: generating the authz checks") + // initialize the entfga extension entfgaExt := entfga.New( entfga.WithSoftDeletes(), @@ -151,15 +167,17 @@ func preRun() (*history.HistoryExtension, *entfga.AuthzExtension) { // generate authz checks, this needs to happen before we regenerate the schema // because the authz checks are generated based on the schema if err := entfgaExt.GenerateAuthzChecks(); err != nil { - log.Fatalf("generating authz checks: %v", err) + log.Fatal().Err(err).Msg("generating authz checks") } + log.Info().Msg("pre-run: generating the history schemas with authz checks") + // run again with policy historyExt.SetFirstRun(false) // generate the updated history schemas with authz checks if err := historyExt.GenerateSchemas(); err != nil { - log.Fatalf("generating history schema: %v", err) + log.Fatal().Err(err).Msg("generating history schema") } return historyExt, entfgaExt diff --git a/internal/ent/generate/generate.go b/internal/ent/generate/generate.go new file mode 100644 index 00000000..9353276f --- /dev/null +++ b/internal/ent/generate/generate.go @@ -0,0 +1,5 @@ +package main + +//go:generate_input entc.go ../schema/* ../mixin/* ../templates/* ../../graphapi/schema/*.graphql ../../graphapi/query/*.graphql +//go:generate_output ../generated/* ../../graphapi/schema/*.graphql ../../graphapi/query/*.graphql +//go:generate go run entc.go diff --git a/internal/genhelpers/changedir.go b/internal/genhelpers/changedir.go new file mode 100644 index 00000000..9751a0c4 --- /dev/null +++ b/internal/genhelpers/changedir.go @@ -0,0 +1,19 @@ +package genhelpers + +import ( + "os" + + "github.com/rs/zerolog/log" +) + +// ChangeToRootDir changes the working directory to the root of the repository +func ChangeToRootDir(rootDir string) { + if err := os.Chdir(rootDir); err != nil { + log.Fatal().Err(err).Msg("failed to change working directory") + } + + _, err := os.Getwd() + if err != nil { + log.Fatal().Err(err).Msg("failed to get current working directory") + } +} diff --git a/internal/genhelpers/logger.go b/internal/genhelpers/logger.go new file mode 100644 index 00000000..b406fdc5 --- /dev/null +++ b/internal/genhelpers/logger.go @@ -0,0 +1,27 @@ +package genhelpers + +import ( + "os" + + "github.com/rs/zerolog" + "github.com/rs/zerolog/log" + + "github.com/theopenlane/core/pkg/logx/consolelog" +) + +func SetupLogging() { + // if you want to try the other console writer, swap this out for pzlog.NewPtermWriter() + output := consolelog.NewConsoleWriter() + log.Logger = zerolog.New(os.Stderr). + With().Timestamp(). + Logger() + + // set the log level + zerolog.SetGlobalLevel(zerolog.DebugLevel) + + log.Logger = log.Logger.With(). + Caller().Logger() + + // pretty logging + log.Logger = log.Output(output) +} diff --git a/internal/graphapi/actionplan.resolvers.go b/internal/graphapi/actionplan.resolvers.go index f99c35ca..6bd6ce58 100644 --- a/internal/graphapi/actionplan.resolvers.go +++ b/internal/graphapi/actionplan.resolvers.go @@ -10,27 +10,29 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + generated1 "github.com/theopenlane/core/internal/graphapi/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateActionPlan is the resolver for the createActionPlan field. -func (r *mutationResolver) CreateActionPlan(ctx context.Context, input generated.CreateActionPlanInput) (*ActionPlanCreatePayload, error) { +func (r *mutationResolver) CreateActionPlan(ctx context.Context, input generated.CreateActionPlanInput) (*model.ActionPlanCreatePayload, error) { res, err := withTransactionalMutation(ctx).ActionPlan.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "actionplan"}) } - return &ActionPlanCreatePayload{ + return &model.ActionPlanCreatePayload{ ActionPlan: res, }, nil } // CreateBulkActionPlan is the resolver for the createBulkActionPlan field. -func (r *mutationResolver) CreateBulkActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*ActionPlanBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*model.ActionPlanBulkCreatePayload, error) { return r.bulkCreateActionPlan(ctx, input) } // CreateBulkCSVActionPlan is the resolver for the createBulkCSVActionPlan field. -func (r *mutationResolver) CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload) (*ActionPlanBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload) (*model.ActionPlanBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateActionPlanInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +44,7 @@ func (r *mutationResolver) CreateBulkCSVActionPlan(ctx context.Context, input gr } // UpdateActionPlan is the resolver for the updateActionPlan field. -func (r *mutationResolver) UpdateActionPlan(ctx context.Context, id string, input generated.UpdateActionPlanInput) (*ActionPlanUpdatePayload, error) { +func (r *mutationResolver) UpdateActionPlan(ctx context.Context, id string, input generated.UpdateActionPlanInput) (*model.ActionPlanUpdatePayload, error) { res, err := withTransactionalMutation(ctx).ActionPlan.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "actionplan"}) @@ -56,13 +58,13 @@ func (r *mutationResolver) UpdateActionPlan(ctx context.Context, id string, inpu return nil, parseRequestError(err, action{action: ActionUpdate, object: "actionplan"}) } - return &ActionPlanUpdatePayload{ + return &model.ActionPlanUpdatePayload{ ActionPlan: res, }, nil } // DeleteActionPlan is the resolver for the deleteActionPlan field. -func (r *mutationResolver) DeleteActionPlan(ctx context.Context, id string) (*ActionPlanDeletePayload, error) { +func (r *mutationResolver) DeleteActionPlan(ctx context.Context, id string) (*model.ActionPlanDeletePayload, error) { if err := withTransactionalMutation(ctx).ActionPlan.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "actionplan"}) } @@ -71,7 +73,7 @@ func (r *mutationResolver) DeleteActionPlan(ctx context.Context, id string) (*Ac return nil, newCascadeDeleteError(err) } - return &ActionPlanDeletePayload{ + return &model.ActionPlanDeletePayload{ DeletedID: id, }, nil } @@ -86,7 +88,7 @@ func (r *queryResolver) ActionPlan(ctx context.Context, id string) (*generated.A return res, nil } -// Mutation returns MutationResolver implementation. -func (r *Resolver) Mutation() MutationResolver { return &mutationResolver{r} } +// Mutation returns generated1.MutationResolver implementation. +func (r *Resolver) Mutation() generated1.MutationResolver { return &mutationResolver{r} } type mutationResolver struct{ *Resolver } diff --git a/internal/graphapi/adminsearch.resolvers.go b/internal/graphapi/adminsearch.resolvers.go index f152bd29..f1ea2857 100644 --- a/internal/graphapi/adminsearch.resolvers.go +++ b/internal/graphapi/adminsearch.resolvers.go @@ -7,10 +7,11 @@ import ( "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // Search is the resolver for the search field. -func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchResultConnection, error) { +func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*model.SearchResultConnection, error) { if len(query) < 3 { return nil, ErrSearchQueryTooShort } @@ -270,102 +271,102 @@ func (r *queryResolver) AdminSearch(ctx context.Context, query string) (*SearchR } // return the results - return &SearchResultConnection{ - Nodes: []SearchResult{ - APITokenSearchResult{ + return &model.SearchResultConnection{ + Nodes: []model.SearchResult{ + model.APITokenSearchResult{ APITokens: apitokenResults, }, - ActionPlanSearchResult{ + model.ActionPlanSearchResult{ ActionPlans: actionplanResults, }, - ContactSearchResult{ + model.ContactSearchResult{ Contacts: contactResults, }, - ControlSearchResult{ + model.ControlSearchResult{ Controls: controlResults, }, - ControlObjectiveSearchResult{ + model.ControlObjectiveSearchResult{ ControlObjectives: controlobjectiveResults, }, - DocumentDataSearchResult{ + model.DocumentDataSearchResult{ DocumentData: documentdataResults, }, - EntitySearchResult{ + model.EntitySearchResult{ Entities: entityResults, }, - EntityTypeSearchResult{ + model.EntityTypeSearchResult{ EntityTypes: entitytypeResults, }, - EventSearchResult{ + model.EventSearchResult{ Events: eventResults, }, - FileSearchResult{ + model.FileSearchResult{ Files: fileResults, }, - GroupSearchResult{ + model.GroupSearchResult{ Groups: groupResults, }, - GroupSettingSearchResult{ + model.GroupSettingSearchResult{ GroupSettings: groupsettingResults, }, - IntegrationSearchResult{ + model.IntegrationSearchResult{ Integrations: integrationResults, }, - InternalPolicySearchResult{ + model.InternalPolicySearchResult{ InternalPolicies: internalpolicyResults, }, - NarrativeSearchResult{ + model.NarrativeSearchResult{ Narratives: narrativeResults, }, - OrgSubscriptionSearchResult{ + model.OrgSubscriptionSearchResult{ OrgSubscriptions: orgsubscriptionResults, }, - OrganizationSearchResult{ + model.OrganizationSearchResult{ Organizations: organizationResults, }, - OrganizationSettingSearchResult{ + model.OrganizationSettingSearchResult{ OrganizationSettings: organizationsettingResults, }, - PersonalAccessTokenSearchResult{ + model.PersonalAccessTokenSearchResult{ PersonalAccessTokens: personalaccesstokenResults, }, - ProcedureSearchResult{ + model.ProcedureSearchResult{ Procedures: procedureResults, }, - ProgramSearchResult{ + model.ProgramSearchResult{ Programs: programResults, }, - RiskSearchResult{ + model.RiskSearchResult{ Risks: riskResults, }, - StandardSearchResult{ + model.StandardSearchResult{ Standards: standardResults, }, - SubcontrolSearchResult{ + model.SubcontrolSearchResult{ Subcontrols: subcontrolResults, }, - SubscriberSearchResult{ + model.SubscriberSearchResult{ Subscribers: subscriberResults, }, - TFASettingSearchResult{ + model.TFASettingSearchResult{ TFASettings: tfasettingResults, }, - TaskSearchResult{ + model.TaskSearchResult{ Tasks: taskResults, }, - TemplateSearchResult{ + model.TemplateSearchResult{ Templates: templateResults, }, - UserSearchResult{ + model.UserSearchResult{ Users: userResults, }, - UserSettingSearchResult{ + model.UserSettingSearchResult{ UserSettings: usersettingResults, }, }, }, nil } -func (r *queryResolver) AdminAPITokenSearch(ctx context.Context, query string) (*APITokenSearchResult, error) { +func (r *queryResolver) AdminAPITokenSearch(ctx context.Context, query string) (*model.APITokenSearchResult, error) { apitokenResults, err := adminSearchAPITokens(ctx, query) if err != nil { @@ -373,11 +374,11 @@ func (r *queryResolver) AdminAPITokenSearch(ctx context.Context, query string) ( } // return the results - return &APITokenSearchResult{ + return &model.APITokenSearchResult{ APITokens: apitokenResults, }, nil } -func (r *queryResolver) AdminActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) { +func (r *queryResolver) AdminActionPlanSearch(ctx context.Context, query string) (*model.ActionPlanSearchResult, error) { actionplanResults, err := adminSearchActionPlans(ctx, query) if err != nil { @@ -385,11 +386,11 @@ func (r *queryResolver) AdminActionPlanSearch(ctx context.Context, query string) } // return the results - return &ActionPlanSearchResult{ + return &model.ActionPlanSearchResult{ ActionPlans: actionplanResults, }, nil } -func (r *queryResolver) AdminContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) { +func (r *queryResolver) AdminContactSearch(ctx context.Context, query string) (*model.ContactSearchResult, error) { contactResults, err := adminSearchContacts(ctx, query) if err != nil { @@ -397,11 +398,11 @@ func (r *queryResolver) AdminContactSearch(ctx context.Context, query string) (* } // return the results - return &ContactSearchResult{ + return &model.ContactSearchResult{ Contacts: contactResults, }, nil } -func (r *queryResolver) AdminControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) { +func (r *queryResolver) AdminControlSearch(ctx context.Context, query string) (*model.ControlSearchResult, error) { controlResults, err := adminSearchControls(ctx, query) if err != nil { @@ -409,11 +410,11 @@ func (r *queryResolver) AdminControlSearch(ctx context.Context, query string) (* } // return the results - return &ControlSearchResult{ + return &model.ControlSearchResult{ Controls: controlResults, }, nil } -func (r *queryResolver) AdminControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) { +func (r *queryResolver) AdminControlObjectiveSearch(ctx context.Context, query string) (*model.ControlObjectiveSearchResult, error) { controlobjectiveResults, err := adminSearchControlObjectives(ctx, query) if err != nil { @@ -421,11 +422,11 @@ func (r *queryResolver) AdminControlObjectiveSearch(ctx context.Context, query s } // return the results - return &ControlObjectiveSearchResult{ + return &model.ControlObjectiveSearchResult{ ControlObjectives: controlobjectiveResults, }, nil } -func (r *queryResolver) AdminDocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) { +func (r *queryResolver) AdminDocumentDataSearch(ctx context.Context, query string) (*model.DocumentDataSearchResult, error) { documentdataResults, err := adminSearchDocumentData(ctx, query) if err != nil { @@ -433,11 +434,11 @@ func (r *queryResolver) AdminDocumentDataSearch(ctx context.Context, query strin } // return the results - return &DocumentDataSearchResult{ + return &model.DocumentDataSearchResult{ DocumentData: documentdataResults, }, nil } -func (r *queryResolver) AdminEntitySearch(ctx context.Context, query string) (*EntitySearchResult, error) { +func (r *queryResolver) AdminEntitySearch(ctx context.Context, query string) (*model.EntitySearchResult, error) { entityResults, err := adminSearchEntities(ctx, query) if err != nil { @@ -445,11 +446,11 @@ func (r *queryResolver) AdminEntitySearch(ctx context.Context, query string) (*E } // return the results - return &EntitySearchResult{ + return &model.EntitySearchResult{ Entities: entityResults, }, nil } -func (r *queryResolver) AdminEntityTypeSearch(ctx context.Context, query string) (*EntityTypeSearchResult, error) { +func (r *queryResolver) AdminEntityTypeSearch(ctx context.Context, query string) (*model.EntityTypeSearchResult, error) { entitytypeResults, err := adminSearchEntityTypes(ctx, query) if err != nil { @@ -457,11 +458,11 @@ func (r *queryResolver) AdminEntityTypeSearch(ctx context.Context, query string) } // return the results - return &EntityTypeSearchResult{ + return &model.EntityTypeSearchResult{ EntityTypes: entitytypeResults, }, nil } -func (r *queryResolver) AdminEventSearch(ctx context.Context, query string) (*EventSearchResult, error) { +func (r *queryResolver) AdminEventSearch(ctx context.Context, query string) (*model.EventSearchResult, error) { eventResults, err := adminSearchEvents(ctx, query) if err != nil { @@ -469,11 +470,11 @@ func (r *queryResolver) AdminEventSearch(ctx context.Context, query string) (*Ev } // return the results - return &EventSearchResult{ + return &model.EventSearchResult{ Events: eventResults, }, nil } -func (r *queryResolver) AdminFileSearch(ctx context.Context, query string) (*FileSearchResult, error) { +func (r *queryResolver) AdminFileSearch(ctx context.Context, query string) (*model.FileSearchResult, error) { fileResults, err := adminSearchFiles(ctx, query) if err != nil { @@ -481,11 +482,11 @@ func (r *queryResolver) AdminFileSearch(ctx context.Context, query string) (*Fil } // return the results - return &FileSearchResult{ + return &model.FileSearchResult{ Files: fileResults, }, nil } -func (r *queryResolver) AdminGroupSearch(ctx context.Context, query string) (*GroupSearchResult, error) { +func (r *queryResolver) AdminGroupSearch(ctx context.Context, query string) (*model.GroupSearchResult, error) { groupResults, err := adminSearchGroups(ctx, query) if err != nil { @@ -493,11 +494,11 @@ func (r *queryResolver) AdminGroupSearch(ctx context.Context, query string) (*Gr } // return the results - return &GroupSearchResult{ + return &model.GroupSearchResult{ Groups: groupResults, }, nil } -func (r *queryResolver) AdminGroupSettingSearch(ctx context.Context, query string) (*GroupSettingSearchResult, error) { +func (r *queryResolver) AdminGroupSettingSearch(ctx context.Context, query string) (*model.GroupSettingSearchResult, error) { groupsettingResults, err := adminSearchGroupSettings(ctx, query) if err != nil { @@ -505,11 +506,11 @@ func (r *queryResolver) AdminGroupSettingSearch(ctx context.Context, query strin } // return the results - return &GroupSettingSearchResult{ + return &model.GroupSettingSearchResult{ GroupSettings: groupsettingResults, }, nil } -func (r *queryResolver) AdminIntegrationSearch(ctx context.Context, query string) (*IntegrationSearchResult, error) { +func (r *queryResolver) AdminIntegrationSearch(ctx context.Context, query string) (*model.IntegrationSearchResult, error) { integrationResults, err := adminSearchIntegrations(ctx, query) if err != nil { @@ -517,11 +518,11 @@ func (r *queryResolver) AdminIntegrationSearch(ctx context.Context, query string } // return the results - return &IntegrationSearchResult{ + return &model.IntegrationSearchResult{ Integrations: integrationResults, }, nil } -func (r *queryResolver) AdminInternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) { +func (r *queryResolver) AdminInternalPolicySearch(ctx context.Context, query string) (*model.InternalPolicySearchResult, error) { internalpolicyResults, err := adminSearchInternalPolicies(ctx, query) if err != nil { @@ -529,11 +530,11 @@ func (r *queryResolver) AdminInternalPolicySearch(ctx context.Context, query str } // return the results - return &InternalPolicySearchResult{ + return &model.InternalPolicySearchResult{ InternalPolicies: internalpolicyResults, }, nil } -func (r *queryResolver) AdminNarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) { +func (r *queryResolver) AdminNarrativeSearch(ctx context.Context, query string) (*model.NarrativeSearchResult, error) { narrativeResults, err := adminSearchNarratives(ctx, query) if err != nil { @@ -541,11 +542,11 @@ func (r *queryResolver) AdminNarrativeSearch(ctx context.Context, query string) } // return the results - return &NarrativeSearchResult{ + return &model.NarrativeSearchResult{ Narratives: narrativeResults, }, nil } -func (r *queryResolver) AdminOrgSubscriptionSearch(ctx context.Context, query string) (*OrgSubscriptionSearchResult, error) { +func (r *queryResolver) AdminOrgSubscriptionSearch(ctx context.Context, query string) (*model.OrgSubscriptionSearchResult, error) { orgsubscriptionResults, err := adminSearchOrgSubscriptions(ctx, query) if err != nil { @@ -553,11 +554,11 @@ func (r *queryResolver) AdminOrgSubscriptionSearch(ctx context.Context, query st } // return the results - return &OrgSubscriptionSearchResult{ + return &model.OrgSubscriptionSearchResult{ OrgSubscriptions: orgsubscriptionResults, }, nil } -func (r *queryResolver) AdminOrganizationSearch(ctx context.Context, query string) (*OrganizationSearchResult, error) { +func (r *queryResolver) AdminOrganizationSearch(ctx context.Context, query string) (*model.OrganizationSearchResult, error) { organizationResults, err := adminSearchOrganizations(ctx, query) if err != nil { @@ -565,11 +566,11 @@ func (r *queryResolver) AdminOrganizationSearch(ctx context.Context, query strin } // return the results - return &OrganizationSearchResult{ + return &model.OrganizationSearchResult{ Organizations: organizationResults, }, nil } -func (r *queryResolver) AdminOrganizationSettingSearch(ctx context.Context, query string) (*OrganizationSettingSearchResult, error) { +func (r *queryResolver) AdminOrganizationSettingSearch(ctx context.Context, query string) (*model.OrganizationSettingSearchResult, error) { organizationsettingResults, err := adminSearchOrganizationSettings(ctx, query) if err != nil { @@ -577,11 +578,11 @@ func (r *queryResolver) AdminOrganizationSettingSearch(ctx context.Context, quer } // return the results - return &OrganizationSettingSearchResult{ + return &model.OrganizationSettingSearchResult{ OrganizationSettings: organizationsettingResults, }, nil } -func (r *queryResolver) AdminPersonalAccessTokenSearch(ctx context.Context, query string) (*PersonalAccessTokenSearchResult, error) { +func (r *queryResolver) AdminPersonalAccessTokenSearch(ctx context.Context, query string) (*model.PersonalAccessTokenSearchResult, error) { personalaccesstokenResults, err := adminSearchPersonalAccessTokens(ctx, query) if err != nil { @@ -589,11 +590,11 @@ func (r *queryResolver) AdminPersonalAccessTokenSearch(ctx context.Context, quer } // return the results - return &PersonalAccessTokenSearchResult{ + return &model.PersonalAccessTokenSearchResult{ PersonalAccessTokens: personalaccesstokenResults, }, nil } -func (r *queryResolver) AdminProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) { +func (r *queryResolver) AdminProcedureSearch(ctx context.Context, query string) (*model.ProcedureSearchResult, error) { procedureResults, err := adminSearchProcedures(ctx, query) if err != nil { @@ -601,11 +602,11 @@ func (r *queryResolver) AdminProcedureSearch(ctx context.Context, query string) } // return the results - return &ProcedureSearchResult{ + return &model.ProcedureSearchResult{ Procedures: procedureResults, }, nil } -func (r *queryResolver) AdminProgramSearch(ctx context.Context, query string) (*ProgramSearchResult, error) { +func (r *queryResolver) AdminProgramSearch(ctx context.Context, query string) (*model.ProgramSearchResult, error) { programResults, err := adminSearchPrograms(ctx, query) if err != nil { @@ -613,11 +614,11 @@ func (r *queryResolver) AdminProgramSearch(ctx context.Context, query string) (* } // return the results - return &ProgramSearchResult{ + return &model.ProgramSearchResult{ Programs: programResults, }, nil } -func (r *queryResolver) AdminRiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) { +func (r *queryResolver) AdminRiskSearch(ctx context.Context, query string) (*model.RiskSearchResult, error) { riskResults, err := adminSearchRisks(ctx, query) if err != nil { @@ -625,11 +626,11 @@ func (r *queryResolver) AdminRiskSearch(ctx context.Context, query string) (*Ris } // return the results - return &RiskSearchResult{ + return &model.RiskSearchResult{ Risks: riskResults, }, nil } -func (r *queryResolver) AdminStandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) { +func (r *queryResolver) AdminStandardSearch(ctx context.Context, query string) (*model.StandardSearchResult, error) { standardResults, err := adminSearchStandards(ctx, query) if err != nil { @@ -637,11 +638,11 @@ func (r *queryResolver) AdminStandardSearch(ctx context.Context, query string) ( } // return the results - return &StandardSearchResult{ + return &model.StandardSearchResult{ Standards: standardResults, }, nil } -func (r *queryResolver) AdminSubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) { +func (r *queryResolver) AdminSubcontrolSearch(ctx context.Context, query string) (*model.SubcontrolSearchResult, error) { subcontrolResults, err := adminSearchSubcontrols(ctx, query) if err != nil { @@ -649,11 +650,11 @@ func (r *queryResolver) AdminSubcontrolSearch(ctx context.Context, query string) } // return the results - return &SubcontrolSearchResult{ + return &model.SubcontrolSearchResult{ Subcontrols: subcontrolResults, }, nil } -func (r *queryResolver) AdminSubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) { +func (r *queryResolver) AdminSubscriberSearch(ctx context.Context, query string) (*model.SubscriberSearchResult, error) { subscriberResults, err := adminSearchSubscribers(ctx, query) if err != nil { @@ -661,11 +662,11 @@ func (r *queryResolver) AdminSubscriberSearch(ctx context.Context, query string) } // return the results - return &SubscriberSearchResult{ + return &model.SubscriberSearchResult{ Subscribers: subscriberResults, }, nil } -func (r *queryResolver) AdminTFASettingSearch(ctx context.Context, query string) (*TFASettingSearchResult, error) { +func (r *queryResolver) AdminTFASettingSearch(ctx context.Context, query string) (*model.TFASettingSearchResult, error) { tfasettingResults, err := adminSearchTFASettings(ctx, query) if err != nil { @@ -673,11 +674,11 @@ func (r *queryResolver) AdminTFASettingSearch(ctx context.Context, query string) } // return the results - return &TFASettingSearchResult{ + return &model.TFASettingSearchResult{ TFASettings: tfasettingResults, }, nil } -func (r *queryResolver) AdminTaskSearch(ctx context.Context, query string) (*TaskSearchResult, error) { +func (r *queryResolver) AdminTaskSearch(ctx context.Context, query string) (*model.TaskSearchResult, error) { taskResults, err := adminSearchTasks(ctx, query) if err != nil { @@ -685,11 +686,11 @@ func (r *queryResolver) AdminTaskSearch(ctx context.Context, query string) (*Tas } // return the results - return &TaskSearchResult{ + return &model.TaskSearchResult{ Tasks: taskResults, }, nil } -func (r *queryResolver) AdminTemplateSearch(ctx context.Context, query string) (*TemplateSearchResult, error) { +func (r *queryResolver) AdminTemplateSearch(ctx context.Context, query string) (*model.TemplateSearchResult, error) { templateResults, err := adminSearchTemplates(ctx, query) if err != nil { @@ -697,11 +698,11 @@ func (r *queryResolver) AdminTemplateSearch(ctx context.Context, query string) ( } // return the results - return &TemplateSearchResult{ + return &model.TemplateSearchResult{ Templates: templateResults, }, nil } -func (r *queryResolver) AdminUserSearch(ctx context.Context, query string) (*UserSearchResult, error) { +func (r *queryResolver) AdminUserSearch(ctx context.Context, query string) (*model.UserSearchResult, error) { userResults, err := adminSearchUsers(ctx, query) if err != nil { @@ -709,11 +710,11 @@ func (r *queryResolver) AdminUserSearch(ctx context.Context, query string) (*Use } // return the results - return &UserSearchResult{ + return &model.UserSearchResult{ Users: userResults, }, nil } -func (r *queryResolver) AdminUserSettingSearch(ctx context.Context, query string) (*UserSettingSearchResult, error) { +func (r *queryResolver) AdminUserSettingSearch(ctx context.Context, query string) (*model.UserSettingSearchResult, error) { usersettingResults, err := adminSearchUserSettings(ctx, query) if err != nil { @@ -721,7 +722,7 @@ func (r *queryResolver) AdminUserSettingSearch(ctx context.Context, query string } // return the results - return &UserSettingSearchResult{ + return &model.UserSettingSearchResult{ UserSettings: usersettingResults, }, nil } diff --git a/internal/graphapi/apitoken.resolvers.go b/internal/graphapi/apitoken.resolvers.go index 735370a5..5d7974b4 100644 --- a/internal/graphapi/apitoken.resolvers.go +++ b/internal/graphapi/apitoken.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateAPIToken is the resolver for the createAPIToken field. -func (r *mutationResolver) CreateAPIToken(ctx context.Context, input generated.CreateAPITokenInput) (*APITokenCreatePayload, error) { +func (r *mutationResolver) CreateAPIToken(ctx context.Context, input generated.CreateAPITokenInput) (*model.APITokenCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,16 +28,16 @@ func (r *mutationResolver) CreateAPIToken(ctx context.Context, input generated.C return nil, parseRequestError(err, action{action: ActionCreate, object: "api token"}) } - return &APITokenCreatePayload{APIToken: apiToken}, err + return &model.APITokenCreatePayload{APIToken: apiToken}, err } // CreateBulkAPIToken is the resolver for the createBulkAPIToken field. -func (r *mutationResolver) CreateBulkAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*APITokenBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*model.APITokenBulkCreatePayload, error) { return r.bulkCreateAPIToken(ctx, input) } // CreateBulkCSVAPIToken is the resolver for the createBulkCSVAPIToken field. -func (r *mutationResolver) CreateBulkCSVAPIToken(ctx context.Context, input graphql.Upload) (*APITokenBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVAPIToken(ctx context.Context, input graphql.Upload) (*model.APITokenBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateAPITokenInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -48,7 +49,7 @@ func (r *mutationResolver) CreateBulkCSVAPIToken(ctx context.Context, input grap } // UpdateAPIToken is the resolver for the updateAPIToken field. -func (r *mutationResolver) UpdateAPIToken(ctx context.Context, id string, input generated.UpdateAPITokenInput) (*APITokenUpdatePayload, error) { +func (r *mutationResolver) UpdateAPIToken(ctx context.Context, id string, input generated.UpdateAPITokenInput) (*model.APITokenUpdatePayload, error) { apiToken, err := withTransactionalMutation(ctx).APIToken.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "api token"}) @@ -65,11 +66,11 @@ func (r *mutationResolver) UpdateAPIToken(ctx context.Context, id string, input return nil, parseRequestError(err, action{action: ActionUpdate, object: "api token"}) } - return &APITokenUpdatePayload{APIToken: apiToken}, err + return &model.APITokenUpdatePayload{APIToken: apiToken}, err } // DeleteAPIToken is the resolver for the deleteAPIToken field. -func (r *mutationResolver) DeleteAPIToken(ctx context.Context, id string) (*APITokenDeletePayload, error) { +func (r *mutationResolver) DeleteAPIToken(ctx context.Context, id string) (*model.APITokenDeletePayload, error) { if err := withTransactionalMutation(ctx).APIToken.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "api token"}) } @@ -78,7 +79,7 @@ func (r *mutationResolver) DeleteAPIToken(ctx context.Context, id string) (*APIT return nil, newCascadeDeleteError(err) } - return &APITokenDeletePayload{DeletedID: id}, nil + return &model.APITokenDeletePayload{DeletedID: id}, nil } // APIToken is the resolver for the apiToken field. diff --git a/internal/graphapi/audit.resolvers.go b/internal/graphapi/audit.resolvers.go index 148ff916..fe5905be 100644 --- a/internal/graphapi/audit.resolvers.go +++ b/internal/graphapi/audit.resolvers.go @@ -10,10 +10,11 @@ import ( "time" "entgo.io/contrib/entgql" + "github.com/theopenlane/core/internal/graphapi/model" ) // AuditLogs is the resolver for the auditLogs field. -func (r *queryResolver) AuditLogs(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *AuditLogWhereInput) (*AuditLogConnection, error) { +func (r *queryResolver) AuditLogs(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *model.AuditLogWhereInput) (*model.AuditLogConnection, error) { var ( auditLogs [][]string err error @@ -33,8 +34,8 @@ func (r *queryResolver) AuditLogs(ctx context.Context, after *entgql.Cursor[stri count := len(auditLogs) - 1 - logs := &AuditLogConnection{ - Edges: []*AuditLogEdge{}, + logs := &model.AuditLogConnection{ + Edges: []*model.AuditLogEdge{}, TotalCount: count, } @@ -92,8 +93,8 @@ func (r *queryResolver) AuditLogs(ctx context.Context, after *entgql.Cursor[stri } } - edge := AuditLogEdge{ - Node: &AuditLog{ + edge := model.AuditLogEdge{ + Node: &model.AuditLog{ Table: &tableName, ID: objectID, Time: &ts, diff --git a/internal/graphapi/bulk.go b/internal/graphapi/bulk.go index e3be40b1..c8a17d72 100644 --- a/internal/graphapi/bulk.go +++ b/internal/graphapi/bulk.go @@ -6,10 +6,11 @@ import ( "context" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // bulkCreateActionPlan uses the CreateBulk function to create multiple ActionPlan entities -func (r *mutationResolver) bulkCreateActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*ActionPlanBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*model.ActionPlanBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.ActionPlanCreate, len(input)) for i, data := range input { @@ -22,13 +23,13 @@ func (r *mutationResolver) bulkCreateActionPlan(ctx context.Context, input []*ge } // return response - return &ActionPlanBulkCreatePayload{ + return &model.ActionPlanBulkCreatePayload{ ActionPlans: res, }, nil } // bulkCreateAPIToken uses the CreateBulk function to create multiple APIToken entities -func (r *mutationResolver) bulkCreateAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*APITokenBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*model.APITokenBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.APITokenCreate, len(input)) for i, data := range input { @@ -41,13 +42,13 @@ func (r *mutationResolver) bulkCreateAPIToken(ctx context.Context, input []*gene } // return response - return &APITokenBulkCreatePayload{ + return &model.APITokenBulkCreatePayload{ APITokens: res, }, nil } // bulkCreateContact uses the CreateBulk function to create multiple Contact entities -func (r *mutationResolver) bulkCreateContact(ctx context.Context, input []*generated.CreateContactInput) (*ContactBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateContact(ctx context.Context, input []*generated.CreateContactInput) (*model.ContactBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.ContactCreate, len(input)) for i, data := range input { @@ -60,13 +61,13 @@ func (r *mutationResolver) bulkCreateContact(ctx context.Context, input []*gener } // return response - return &ContactBulkCreatePayload{ + return &model.ContactBulkCreatePayload{ Contacts: res, }, nil } // bulkCreateControl uses the CreateBulk function to create multiple Control entities -func (r *mutationResolver) bulkCreateControl(ctx context.Context, input []*generated.CreateControlInput) (*ControlBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateControl(ctx context.Context, input []*generated.CreateControlInput) (*model.ControlBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.ControlCreate, len(input)) for i, data := range input { @@ -79,13 +80,13 @@ func (r *mutationResolver) bulkCreateControl(ctx context.Context, input []*gener } // return response - return &ControlBulkCreatePayload{ + return &model.ControlBulkCreatePayload{ Controls: res, }, nil } // bulkCreateControlObjective uses the CreateBulk function to create multiple ControlObjective entities -func (r *mutationResolver) bulkCreateControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*ControlObjectiveBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*model.ControlObjectiveBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.ControlObjectiveCreate, len(input)) for i, data := range input { @@ -98,13 +99,13 @@ func (r *mutationResolver) bulkCreateControlObjective(ctx context.Context, input } // return response - return &ControlObjectiveBulkCreatePayload{ + return &model.ControlObjectiveBulkCreatePayload{ ControlObjectives: res, }, nil } // bulkCreateDocumentData uses the CreateBulk function to create multiple DocumentData entities -func (r *mutationResolver) bulkCreateDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*DocumentDataBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*model.DocumentDataBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.DocumentDataCreate, len(input)) for i, data := range input { @@ -117,13 +118,13 @@ func (r *mutationResolver) bulkCreateDocumentData(ctx context.Context, input []* } // return response - return &DocumentDataBulkCreatePayload{ + return &model.DocumentDataBulkCreatePayload{ DocumentData: res, }, nil } // bulkCreateEntity uses the CreateBulk function to create multiple Entity entities -func (r *mutationResolver) bulkCreateEntity(ctx context.Context, input []*generated.CreateEntityInput) (*EntityBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateEntity(ctx context.Context, input []*generated.CreateEntityInput) (*model.EntityBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.EntityCreate, len(input)) for i, data := range input { @@ -136,13 +137,13 @@ func (r *mutationResolver) bulkCreateEntity(ctx context.Context, input []*genera } // return response - return &EntityBulkCreatePayload{ + return &model.EntityBulkCreatePayload{ Entities: res, }, nil } // bulkCreateEntityType uses the CreateBulk function to create multiple EntityType entities -func (r *mutationResolver) bulkCreateEntityType(ctx context.Context, input []*generated.CreateEntityTypeInput) (*EntityTypeBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateEntityType(ctx context.Context, input []*generated.CreateEntityTypeInput) (*model.EntityTypeBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.EntityTypeCreate, len(input)) for i, data := range input { @@ -155,13 +156,13 @@ func (r *mutationResolver) bulkCreateEntityType(ctx context.Context, input []*ge } // return response - return &EntityTypeBulkCreatePayload{ + return &model.EntityTypeBulkCreatePayload{ EntityTypes: res, }, nil } // bulkCreateEvent uses the CreateBulk function to create multiple Event entities -func (r *mutationResolver) bulkCreateEvent(ctx context.Context, input []*generated.CreateEventInput) (*EventBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateEvent(ctx context.Context, input []*generated.CreateEventInput) (*model.EventBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.EventCreate, len(input)) for i, data := range input { @@ -174,13 +175,13 @@ func (r *mutationResolver) bulkCreateEvent(ctx context.Context, input []*generat } // return response - return &EventBulkCreatePayload{ + return &model.EventBulkCreatePayload{ Events: res, }, nil } // bulkCreateGroup uses the CreateBulk function to create multiple Group entities -func (r *mutationResolver) bulkCreateGroup(ctx context.Context, input []*generated.CreateGroupInput) (*GroupBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateGroup(ctx context.Context, input []*generated.CreateGroupInput) (*model.GroupBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.GroupCreate, len(input)) for i, data := range input { @@ -193,13 +194,13 @@ func (r *mutationResolver) bulkCreateGroup(ctx context.Context, input []*generat } // return response - return &GroupBulkCreatePayload{ + return &model.GroupBulkCreatePayload{ Groups: res, }, nil } // bulkCreateGroupMembership uses the CreateBulk function to create multiple GroupMembership entities -func (r *mutationResolver) bulkCreateGroupMembership(ctx context.Context, input []*generated.CreateGroupMembershipInput) (*GroupMembershipBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateGroupMembership(ctx context.Context, input []*generated.CreateGroupMembershipInput) (*model.GroupMembershipBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.GroupMembershipCreate, len(input)) for i, data := range input { @@ -212,13 +213,13 @@ func (r *mutationResolver) bulkCreateGroupMembership(ctx context.Context, input } // return response - return &GroupMembershipBulkCreatePayload{ + return &model.GroupMembershipBulkCreatePayload{ GroupMemberships: res, }, nil } // bulkCreateGroupSetting uses the CreateBulk function to create multiple GroupSetting entities -func (r *mutationResolver) bulkCreateGroupSetting(ctx context.Context, input []*generated.CreateGroupSettingInput) (*GroupSettingBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateGroupSetting(ctx context.Context, input []*generated.CreateGroupSettingInput) (*model.GroupSettingBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.GroupSettingCreate, len(input)) for i, data := range input { @@ -231,13 +232,13 @@ func (r *mutationResolver) bulkCreateGroupSetting(ctx context.Context, input []* } // return response - return &GroupSettingBulkCreatePayload{ + return &model.GroupSettingBulkCreatePayload{ GroupSettings: res, }, nil } // bulkCreateHush uses the CreateBulk function to create multiple Hush entities -func (r *mutationResolver) bulkCreateHush(ctx context.Context, input []*generated.CreateHushInput) (*HushBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateHush(ctx context.Context, input []*generated.CreateHushInput) (*model.HushBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.HushCreate, len(input)) for i, data := range input { @@ -250,13 +251,13 @@ func (r *mutationResolver) bulkCreateHush(ctx context.Context, input []*generate } // return response - return &HushBulkCreatePayload{ + return &model.HushBulkCreatePayload{ Hushes: res, }, nil } // bulkCreateIntegration uses the CreateBulk function to create multiple Integration entities -func (r *mutationResolver) bulkCreateIntegration(ctx context.Context, input []*generated.CreateIntegrationInput) (*IntegrationBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateIntegration(ctx context.Context, input []*generated.CreateIntegrationInput) (*model.IntegrationBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.IntegrationCreate, len(input)) for i, data := range input { @@ -269,13 +270,13 @@ func (r *mutationResolver) bulkCreateIntegration(ctx context.Context, input []*g } // return response - return &IntegrationBulkCreatePayload{ + return &model.IntegrationBulkCreatePayload{ Integrations: res, }, nil } // bulkCreateInternalPolicy uses the CreateBulk function to create multiple InternalPolicy entities -func (r *mutationResolver) bulkCreateInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*InternalPolicyBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*model.InternalPolicyBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.InternalPolicyCreate, len(input)) for i, data := range input { @@ -288,13 +289,13 @@ func (r *mutationResolver) bulkCreateInternalPolicy(ctx context.Context, input [ } // return response - return &InternalPolicyBulkCreatePayload{ + return &model.InternalPolicyBulkCreatePayload{ InternalPolicies: res, }, nil } // bulkCreateInvite uses the CreateBulk function to create multiple Invite entities -func (r *mutationResolver) bulkCreateInvite(ctx context.Context, input []*generated.CreateInviteInput) (*InviteBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateInvite(ctx context.Context, input []*generated.CreateInviteInput) (*model.InviteBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.InviteCreate, len(input)) for i, data := range input { @@ -307,13 +308,13 @@ func (r *mutationResolver) bulkCreateInvite(ctx context.Context, input []*genera } // return response - return &InviteBulkCreatePayload{ + return &model.InviteBulkCreatePayload{ Invites: res, }, nil } // bulkCreateNarrative uses the CreateBulk function to create multiple Narrative entities -func (r *mutationResolver) bulkCreateNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*NarrativeBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*model.NarrativeBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.NarrativeCreate, len(input)) for i, data := range input { @@ -326,13 +327,13 @@ func (r *mutationResolver) bulkCreateNarrative(ctx context.Context, input []*gen } // return response - return &NarrativeBulkCreatePayload{ + return &model.NarrativeBulkCreatePayload{ Narratives: res, }, nil } // bulkCreateOrganization uses the CreateBulk function to create multiple Organization entities -func (r *mutationResolver) bulkCreateOrganization(ctx context.Context, input []*generated.CreateOrganizationInput) (*OrganizationBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateOrganization(ctx context.Context, input []*generated.CreateOrganizationInput) (*model.OrganizationBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.OrganizationCreate, len(input)) for i, data := range input { @@ -345,13 +346,13 @@ func (r *mutationResolver) bulkCreateOrganization(ctx context.Context, input []* } // return response - return &OrganizationBulkCreatePayload{ + return &model.OrganizationBulkCreatePayload{ Organizations: res, }, nil } // bulkCreateOrganizationSetting uses the CreateBulk function to create multiple OrganizationSetting entities -func (r *mutationResolver) bulkCreateOrganizationSetting(ctx context.Context, input []*generated.CreateOrganizationSettingInput) (*OrganizationSettingBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateOrganizationSetting(ctx context.Context, input []*generated.CreateOrganizationSettingInput) (*model.OrganizationSettingBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.OrganizationSettingCreate, len(input)) for i, data := range input { @@ -364,13 +365,13 @@ func (r *mutationResolver) bulkCreateOrganizationSetting(ctx context.Context, in } // return response - return &OrganizationSettingBulkCreatePayload{ + return &model.OrganizationSettingBulkCreatePayload{ OrganizationSettings: res, }, nil } // bulkCreateOrgMembership uses the CreateBulk function to create multiple OrgMembership entities -func (r *mutationResolver) bulkCreateOrgMembership(ctx context.Context, input []*generated.CreateOrgMembershipInput) (*OrgMembershipBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateOrgMembership(ctx context.Context, input []*generated.CreateOrgMembershipInput) (*model.OrgMembershipBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.OrgMembershipCreate, len(input)) for i, data := range input { @@ -383,13 +384,13 @@ func (r *mutationResolver) bulkCreateOrgMembership(ctx context.Context, input [] } // return response - return &OrgMembershipBulkCreatePayload{ + return &model.OrgMembershipBulkCreatePayload{ OrgMemberships: res, }, nil } // bulkCreateOrgSubscription uses the CreateBulk function to create multiple OrgSubscription entities -func (r *mutationResolver) bulkCreateOrgSubscription(ctx context.Context, input []*generated.CreateOrgSubscriptionInput) (*OrgSubscriptionBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateOrgSubscription(ctx context.Context, input []*generated.CreateOrgSubscriptionInput) (*model.OrgSubscriptionBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.OrgSubscriptionCreate, len(input)) for i, data := range input { @@ -402,13 +403,13 @@ func (r *mutationResolver) bulkCreateOrgSubscription(ctx context.Context, input } // return response - return &OrgSubscriptionBulkCreatePayload{ + return &model.OrgSubscriptionBulkCreatePayload{ OrgSubscriptions: res, }, nil } // bulkCreatePersonalAccessToken uses the CreateBulk function to create multiple PersonalAccessToken entities -func (r *mutationResolver) bulkCreatePersonalAccessToken(ctx context.Context, input []*generated.CreatePersonalAccessTokenInput) (*PersonalAccessTokenBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreatePersonalAccessToken(ctx context.Context, input []*generated.CreatePersonalAccessTokenInput) (*model.PersonalAccessTokenBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.PersonalAccessTokenCreate, len(input)) for i, data := range input { @@ -421,13 +422,13 @@ func (r *mutationResolver) bulkCreatePersonalAccessToken(ctx context.Context, in } // return response - return &PersonalAccessTokenBulkCreatePayload{ + return &model.PersonalAccessTokenBulkCreatePayload{ PersonalAccessTokens: res, }, nil } // bulkCreateProcedure uses the CreateBulk function to create multiple Procedure entities -func (r *mutationResolver) bulkCreateProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*ProcedureBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*model.ProcedureBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.ProcedureCreate, len(input)) for i, data := range input { @@ -440,13 +441,13 @@ func (r *mutationResolver) bulkCreateProcedure(ctx context.Context, input []*gen } // return response - return &ProcedureBulkCreatePayload{ + return &model.ProcedureBulkCreatePayload{ Procedures: res, }, nil } // bulkCreateProgram uses the CreateBulk function to create multiple Program entities -func (r *mutationResolver) bulkCreateProgram(ctx context.Context, input []*generated.CreateProgramInput) (*ProgramBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateProgram(ctx context.Context, input []*generated.CreateProgramInput) (*model.ProgramBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.ProgramCreate, len(input)) for i, data := range input { @@ -459,13 +460,13 @@ func (r *mutationResolver) bulkCreateProgram(ctx context.Context, input []*gener } // return response - return &ProgramBulkCreatePayload{ + return &model.ProgramBulkCreatePayload{ Programs: res, }, nil } // bulkCreateProgramMembership uses the CreateBulk function to create multiple ProgramMembership entities -func (r *mutationResolver) bulkCreateProgramMembership(ctx context.Context, input []*generated.CreateProgramMembershipInput) (*ProgramMembershipBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateProgramMembership(ctx context.Context, input []*generated.CreateProgramMembershipInput) (*model.ProgramMembershipBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.ProgramMembershipCreate, len(input)) for i, data := range input { @@ -478,13 +479,13 @@ func (r *mutationResolver) bulkCreateProgramMembership(ctx context.Context, inpu } // return response - return &ProgramMembershipBulkCreatePayload{ + return &model.ProgramMembershipBulkCreatePayload{ ProgramMemberships: res, }, nil } // bulkCreateRisk uses the CreateBulk function to create multiple Risk entities -func (r *mutationResolver) bulkCreateRisk(ctx context.Context, input []*generated.CreateRiskInput) (*RiskBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateRisk(ctx context.Context, input []*generated.CreateRiskInput) (*model.RiskBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.RiskCreate, len(input)) for i, data := range input { @@ -497,13 +498,13 @@ func (r *mutationResolver) bulkCreateRisk(ctx context.Context, input []*generate } // return response - return &RiskBulkCreatePayload{ + return &model.RiskBulkCreatePayload{ Risks: res, }, nil } // bulkCreateStandard uses the CreateBulk function to create multiple Standard entities -func (r *mutationResolver) bulkCreateStandard(ctx context.Context, input []*generated.CreateStandardInput) (*StandardBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateStandard(ctx context.Context, input []*generated.CreateStandardInput) (*model.StandardBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.StandardCreate, len(input)) for i, data := range input { @@ -516,13 +517,13 @@ func (r *mutationResolver) bulkCreateStandard(ctx context.Context, input []*gene } // return response - return &StandardBulkCreatePayload{ + return &model.StandardBulkCreatePayload{ Standards: res, }, nil } // bulkCreateSubcontrol uses the CreateBulk function to create multiple Subcontrol entities -func (r *mutationResolver) bulkCreateSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*SubcontrolBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*model.SubcontrolBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.SubcontrolCreate, len(input)) for i, data := range input { @@ -535,13 +536,13 @@ func (r *mutationResolver) bulkCreateSubcontrol(ctx context.Context, input []*ge } // return response - return &SubcontrolBulkCreatePayload{ + return &model.SubcontrolBulkCreatePayload{ Subcontrols: res, }, nil } // bulkCreateSubscriber uses the CreateBulk function to create multiple Subscriber entities -func (r *mutationResolver) bulkCreateSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*SubscriberBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*model.SubscriberBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.SubscriberCreate, len(input)) for i, data := range input { @@ -554,13 +555,13 @@ func (r *mutationResolver) bulkCreateSubscriber(ctx context.Context, input []*ge } // return response - return &SubscriberBulkCreatePayload{ + return &model.SubscriberBulkCreatePayload{ Subscribers: res, }, nil } // bulkCreateTask uses the CreateBulk function to create multiple Task entities -func (r *mutationResolver) bulkCreateTask(ctx context.Context, input []*generated.CreateTaskInput) (*TaskBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateTask(ctx context.Context, input []*generated.CreateTaskInput) (*model.TaskBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.TaskCreate, len(input)) for i, data := range input { @@ -573,13 +574,13 @@ func (r *mutationResolver) bulkCreateTask(ctx context.Context, input []*generate } // return response - return &TaskBulkCreatePayload{ + return &model.TaskBulkCreatePayload{ Tasks: res, }, nil } // bulkCreateTemplate uses the CreateBulk function to create multiple Template entities -func (r *mutationResolver) bulkCreateTemplate(ctx context.Context, input []*generated.CreateTemplateInput) (*TemplateBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateTemplate(ctx context.Context, input []*generated.CreateTemplateInput) (*model.TemplateBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.TemplateCreate, len(input)) for i, data := range input { @@ -592,13 +593,13 @@ func (r *mutationResolver) bulkCreateTemplate(ctx context.Context, input []*gene } // return response - return &TemplateBulkCreatePayload{ + return &model.TemplateBulkCreatePayload{ Templates: res, }, nil } // bulkCreateUserSetting uses the CreateBulk function to create multiple UserSetting entities -func (r *mutationResolver) bulkCreateUserSetting(ctx context.Context, input []*generated.CreateUserSettingInput) (*UserSettingBulkCreatePayload, error) { +func (r *mutationResolver) bulkCreateUserSetting(ctx context.Context, input []*generated.CreateUserSettingInput) (*model.UserSettingBulkCreatePayload, error) { c := withTransactionalMutation(ctx) builders := make([]*generated.UserSettingCreate, len(input)) for i, data := range input { @@ -611,7 +612,7 @@ func (r *mutationResolver) bulkCreateUserSetting(ctx context.Context, input []*g } // return response - return &UserSettingBulkCreatePayload{ + return &model.UserSettingBulkCreatePayload{ UserSettings: res, }, nil } diff --git a/schema.graphql b/internal/graphapi/clientschema/schema.graphql similarity index 100% rename from schema.graphql rename to internal/graphapi/clientschema/schema.graphql diff --git a/internal/graphapi/contact.resolvers.go b/internal/graphapi/contact.resolvers.go index 66e5a48f..cedf6a22 100644 --- a/internal/graphapi/contact.resolvers.go +++ b/internal/graphapi/contact.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateContact is the resolver for the createContact field. -func (r *mutationResolver) CreateContact(ctx context.Context, input generated.CreateContactInput) (*ContactCreatePayload, error) { +func (r *mutationResolver) CreateContact(ctx context.Context, input generated.CreateContactInput) (*model.ContactCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateContact(ctx context.Context, input generated.Cr return nil, parseRequestError(err, action{action: ActionCreate, object: "contact"}) } - return &ContactCreatePayload{ + return &model.ContactCreatePayload{ Contact: res, }, nil } // CreateBulkContact is the resolver for the createBulkContact field. -func (r *mutationResolver) CreateBulkContact(ctx context.Context, input []*generated.CreateContactInput) (*ContactBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkContact(ctx context.Context, input []*generated.CreateContactInput) (*model.ContactBulkCreatePayload, error) { return r.bulkCreateContact(ctx, input) } // CreateBulkCSVContact is the resolver for the createBulkCSVContact field. -func (r *mutationResolver) CreateBulkCSVContact(ctx context.Context, input graphql.Upload) (*ContactBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVContact(ctx context.Context, input graphql.Upload) (*model.ContactBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateContactInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVContact(ctx context.Context, input graph } // UpdateContact is the resolver for the updateContact field. -func (r *mutationResolver) UpdateContact(ctx context.Context, id string, input generated.UpdateContactInput) (*ContactUpdatePayload, error) { +func (r *mutationResolver) UpdateContact(ctx context.Context, id string, input generated.UpdateContactInput) (*model.ContactUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Contact.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "contact"}) @@ -70,13 +71,13 @@ func (r *mutationResolver) UpdateContact(ctx context.Context, id string, input g return nil, parseRequestError(err, action{action: ActionUpdate, object: "contact"}) } - return &ContactUpdatePayload{ + return &model.ContactUpdatePayload{ Contact: res, }, nil } // DeleteContact is the resolver for the deleteContact field. -func (r *mutationResolver) DeleteContact(ctx context.Context, id string) (*ContactDeletePayload, error) { +func (r *mutationResolver) DeleteContact(ctx context.Context, id string) (*model.ContactDeletePayload, error) { if err := withTransactionalMutation(ctx).Contact.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "contact"}) } @@ -85,7 +86,7 @@ func (r *mutationResolver) DeleteContact(ctx context.Context, id string) (*Conta return nil, newCascadeDeleteError(err) } - return &ContactDeletePayload{ + return &model.ContactDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/control.resolvers.go b/internal/graphapi/control.resolvers.go index 6cf1c3ab..5f091e69 100644 --- a/internal/graphapi/control.resolvers.go +++ b/internal/graphapi/control.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateControl is the resolver for the createControl field. -func (r *mutationResolver) CreateControl(ctx context.Context, input generated.CreateControlInput) (*ControlCreatePayload, error) { +func (r *mutationResolver) CreateControl(ctx context.Context, input generated.CreateControlInput) (*model.ControlCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, &input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateControl(ctx context.Context, input generated.Cr return nil, parseRequestError(err, action{action: ActionCreate, object: "control"}) } - return &ControlCreatePayload{ + return &model.ControlCreatePayload{ Control: res, }, nil } // CreateBulkControl is the resolver for the createBulkControl field. -func (r *mutationResolver) CreateBulkControl(ctx context.Context, input []*generated.CreateControlInput) (*ControlBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkControl(ctx context.Context, input []*generated.CreateControlInput) (*model.ControlBulkCreatePayload, error) { return r.bulkCreateControl(ctx, input) } // CreateBulkCSVControl is the resolver for the createBulkCSVControl field. -func (r *mutationResolver) CreateBulkCSVControl(ctx context.Context, input graphql.Upload) (*ControlBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVControl(ctx context.Context, input graphql.Upload) (*model.ControlBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateControlInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVControl(ctx context.Context, input graph } // UpdateControl is the resolver for the updateControl field. -func (r *mutationResolver) UpdateControl(ctx context.Context, id string, input generated.UpdateControlInput) (*ControlUpdatePayload, error) { +func (r *mutationResolver) UpdateControl(ctx context.Context, id string, input generated.UpdateControlInput) (*model.ControlUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Control.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "control"}) @@ -71,13 +72,13 @@ func (r *mutationResolver) UpdateControl(ctx context.Context, id string, input g return nil, parseRequestError(err, action{action: ActionUpdate, object: "control"}) } - return &ControlUpdatePayload{ + return &model.ControlUpdatePayload{ Control: res, }, nil } // DeleteControl is the resolver for the deleteControl field. -func (r *mutationResolver) DeleteControl(ctx context.Context, id string) (*ControlDeletePayload, error) { +func (r *mutationResolver) DeleteControl(ctx context.Context, id string) (*model.ControlDeletePayload, error) { if err := withTransactionalMutation(ctx).Control.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "control"}) } @@ -86,7 +87,7 @@ func (r *mutationResolver) DeleteControl(ctx context.Context, id string) (*Contr return nil, newCascadeDeleteError(err) } - return &ControlDeletePayload{ + return &model.ControlDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/controlobjective.resolvers.go b/internal/graphapi/controlobjective.resolvers.go index 3d031311..1cff5d1d 100644 --- a/internal/graphapi/controlobjective.resolvers.go +++ b/internal/graphapi/controlobjective.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateControlObjective is the resolver for the createControlObjective field. -func (r *mutationResolver) CreateControlObjective(ctx context.Context, input generated.CreateControlObjectiveInput) (*ControlObjectiveCreatePayload, error) { +func (r *mutationResolver) CreateControlObjective(ctx context.Context, input generated.CreateControlObjectiveInput) (*model.ControlObjectiveCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, &input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateControlObjective(ctx context.Context, input gen return nil, parseRequestError(err, action{action: ActionCreate, object: "controlobjective"}) } - return &ControlObjectiveCreatePayload{ + return &model.ControlObjectiveCreatePayload{ ControlObjective: res, }, nil } // CreateBulkControlObjective is the resolver for the createBulkControlObjective field. -func (r *mutationResolver) CreateBulkControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*ControlObjectiveBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*model.ControlObjectiveBulkCreatePayload, error) { return r.bulkCreateControlObjective(ctx, input) } // CreateBulkCSVControlObjective is the resolver for the createBulkCSVControlObjective field. -func (r *mutationResolver) CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload) (*ControlObjectiveBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload) (*model.ControlObjectiveBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateControlObjectiveInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVControlObjective(ctx context.Context, in } // UpdateControlObjective is the resolver for the updateControlObjective field. -func (r *mutationResolver) UpdateControlObjective(ctx context.Context, id string, input generated.UpdateControlObjectiveInput) (*ControlObjectiveUpdatePayload, error) { +func (r *mutationResolver) UpdateControlObjective(ctx context.Context, id string, input generated.UpdateControlObjectiveInput) (*model.ControlObjectiveUpdatePayload, error) { res, err := withTransactionalMutation(ctx).ControlObjective.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "controlobjective"}) @@ -71,13 +72,13 @@ func (r *mutationResolver) UpdateControlObjective(ctx context.Context, id string return nil, parseRequestError(err, action{action: ActionUpdate, object: "controlobjective"}) } - return &ControlObjectiveUpdatePayload{ + return &model.ControlObjectiveUpdatePayload{ ControlObjective: res, }, nil } // DeleteControlObjective is the resolver for the deleteControlObjective field. -func (r *mutationResolver) DeleteControlObjective(ctx context.Context, id string) (*ControlObjectiveDeletePayload, error) { +func (r *mutationResolver) DeleteControlObjective(ctx context.Context, id string) (*model.ControlObjectiveDeletePayload, error) { if err := withTransactionalMutation(ctx).ControlObjective.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "controlobjective"}) } @@ -86,7 +87,7 @@ func (r *mutationResolver) DeleteControlObjective(ctx context.Context, id string return nil, newCascadeDeleteError(err) } - return &ControlObjectiveDeletePayload{ + return &model.ControlObjectiveDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/documentdata.resolvers.go b/internal/graphapi/documentdata.resolvers.go index 0f4c7ec0..e8f202af 100644 --- a/internal/graphapi/documentdata.resolvers.go +++ b/internal/graphapi/documentdata.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateDocumentData is the resolver for the createDocumentData field. -func (r *mutationResolver) CreateDocumentData(ctx context.Context, input generated.CreateDocumentDataInput) (*DocumentDataCreatePayload, error) { +func (r *mutationResolver) CreateDocumentData(ctx context.Context, input generated.CreateDocumentDataInput) (*model.DocumentDataCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateDocumentData(ctx context.Context, input generat return nil, parseRequestError(err, action{action: ActionCreate, object: "documentdata"}) } - return &DocumentDataCreatePayload{ + return &model.DocumentDataCreatePayload{ DocumentData: res, }, nil } // CreateBulkDocumentData is the resolver for the createBulkDocumentData field. -func (r *mutationResolver) CreateBulkDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*DocumentDataBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*model.DocumentDataBulkCreatePayload, error) { return r.bulkCreateDocumentData(ctx, input) } // CreateBulkCSVDocumentData is the resolver for the createBulkCSVDocumentData field. -func (r *mutationResolver) CreateBulkCSVDocumentData(ctx context.Context, input graphql.Upload) (*DocumentDataBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVDocumentData(ctx context.Context, input graphql.Upload) (*model.DocumentDataBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateDocumentDataInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVDocumentData(ctx context.Context, input } // UpdateDocumentData is the resolver for the updateDocumentData field. -func (r *mutationResolver) UpdateDocumentData(ctx context.Context, id string, input generated.UpdateDocumentDataInput) (*DocumentDataUpdatePayload, error) { +func (r *mutationResolver) UpdateDocumentData(ctx context.Context, id string, input generated.UpdateDocumentDataInput) (*model.DocumentDataUpdatePayload, error) { res, err := withTransactionalMutation(ctx).DocumentData.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "documentdata"}) @@ -70,13 +71,13 @@ func (r *mutationResolver) UpdateDocumentData(ctx context.Context, id string, in return nil, parseRequestError(err, action{action: ActionUpdate, object: "documentdata"}) } - return &DocumentDataUpdatePayload{ + return &model.DocumentDataUpdatePayload{ DocumentData: res, }, nil } // DeleteDocumentData is the resolver for the deleteDocumentData field. -func (r *mutationResolver) DeleteDocumentData(ctx context.Context, id string) (*DocumentDataDeletePayload, error) { +func (r *mutationResolver) DeleteDocumentData(ctx context.Context, id string) (*model.DocumentDataDeletePayload, error) { if err := withTransactionalMutation(ctx).DocumentData.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "documentdata"}) } @@ -85,7 +86,7 @@ func (r *mutationResolver) DeleteDocumentData(ctx context.Context, id string) (* return nil, newCascadeDeleteError(err) } - return &DocumentDataDeletePayload{ + return &model.DocumentDataDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/ent.resolvers.go b/internal/graphapi/ent.resolvers.go index 093a5ebf..fe2a4257 100644 --- a/internal/graphapi/ent.resolvers.go +++ b/internal/graphapi/ent.resolvers.go @@ -9,6 +9,7 @@ import ( "entgo.io/contrib/entgql" "github.com/theopenlane/core/internal/ent/generated" + gqlgenerated "github.com/theopenlane/core/internal/graphapi/generated" ) // Node is the resolver for the node field. @@ -1119,42 +1120,46 @@ func (r *queryResolver) UserSettingHistories(ctx context.Context, after *entgql. return res, err } -// Query returns QueryResolver implementation. -func (r *Resolver) Query() QueryResolver { return &queryResolver{r} } +// Query returns gqlgenerated.QueryResolver implementation. +func (r *Resolver) Query() gqlgenerated.QueryResolver { return &queryResolver{r} } -// CreateEntityInput returns CreateEntityInputResolver implementation. -func (r *Resolver) CreateEntityInput() CreateEntityInputResolver { +// CreateEntityInput returns gqlgenerated.CreateEntityInputResolver implementation. +func (r *Resolver) CreateEntityInput() gqlgenerated.CreateEntityInputResolver { return &createEntityInputResolver{r} } -// CreateGroupInput returns CreateGroupInputResolver implementation. -func (r *Resolver) CreateGroupInput() CreateGroupInputResolver { return &createGroupInputResolver{r} } +// CreateGroupInput returns gqlgenerated.CreateGroupInputResolver implementation. +func (r *Resolver) CreateGroupInput() gqlgenerated.CreateGroupInputResolver { + return &createGroupInputResolver{r} +} -// CreateOrganizationInput returns CreateOrganizationInputResolver implementation. -func (r *Resolver) CreateOrganizationInput() CreateOrganizationInputResolver { +// CreateOrganizationInput returns gqlgenerated.CreateOrganizationInputResolver implementation. +func (r *Resolver) CreateOrganizationInput() gqlgenerated.CreateOrganizationInputResolver { return &createOrganizationInputResolver{r} } -// UpdateEntityInput returns UpdateEntityInputResolver implementation. -func (r *Resolver) UpdateEntityInput() UpdateEntityInputResolver { +// UpdateEntityInput returns gqlgenerated.UpdateEntityInputResolver implementation. +func (r *Resolver) UpdateEntityInput() gqlgenerated.UpdateEntityInputResolver { return &updateEntityInputResolver{r} } -// UpdateGroupInput returns UpdateGroupInputResolver implementation. -func (r *Resolver) UpdateGroupInput() UpdateGroupInputResolver { return &updateGroupInputResolver{r} } +// UpdateGroupInput returns gqlgenerated.UpdateGroupInputResolver implementation. +func (r *Resolver) UpdateGroupInput() gqlgenerated.UpdateGroupInputResolver { + return &updateGroupInputResolver{r} +} -// UpdateOrganizationInput returns UpdateOrganizationInputResolver implementation. -func (r *Resolver) UpdateOrganizationInput() UpdateOrganizationInputResolver { +// UpdateOrganizationInput returns gqlgenerated.UpdateOrganizationInputResolver implementation. +func (r *Resolver) UpdateOrganizationInput() gqlgenerated.UpdateOrganizationInputResolver { return &updateOrganizationInputResolver{r} } -// UpdateProgramInput returns UpdateProgramInputResolver implementation. -func (r *Resolver) UpdateProgramInput() UpdateProgramInputResolver { +// UpdateProgramInput returns gqlgenerated.UpdateProgramInputResolver implementation. +func (r *Resolver) UpdateProgramInput() gqlgenerated.UpdateProgramInputResolver { return &updateProgramInputResolver{r} } -// UpdateTFASettingInput returns UpdateTFASettingInputResolver implementation. -func (r *Resolver) UpdateTFASettingInput() UpdateTFASettingInputResolver { +// UpdateTFASettingInput returns gqlgenerated.UpdateTFASettingInputResolver implementation. +func (r *Resolver) UpdateTFASettingInput() gqlgenerated.UpdateTFASettingInputResolver { return &updateTFASettingInputResolver{r} } diff --git a/internal/graphapi/entity.resolvers.go b/internal/graphapi/entity.resolvers.go index 5a078cac..c3c9c0cf 100644 --- a/internal/graphapi/entity.resolvers.go +++ b/internal/graphapi/entity.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateEntity is the resolver for the createEntity field. -func (r *mutationResolver) CreateEntity(ctx context.Context, input generated.CreateEntityInput) (*EntityCreatePayload, error) { +func (r *mutationResolver) CreateEntity(ctx context.Context, input generated.CreateEntityInput) (*model.EntityCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,18 +27,18 @@ func (r *mutationResolver) CreateEntity(ctx context.Context, input generated.Cre return nil, parseRequestError(err, action{action: ActionCreate, object: "entity"}) } - return &EntityCreatePayload{ + return &model.EntityCreatePayload{ Entity: res, }, nil } // CreateBulkEntity is the resolver for the createBulkEntity field. -func (r *mutationResolver) CreateBulkEntity(ctx context.Context, input []*generated.CreateEntityInput) (*EntityBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkEntity(ctx context.Context, input []*generated.CreateEntityInput) (*model.EntityBulkCreatePayload, error) { return r.bulkCreateEntity(ctx, input) } // CreateBulkCSVEntity is the resolver for the createBulkCSVEntity field. -func (r *mutationResolver) CreateBulkCSVEntity(ctx context.Context, input graphql.Upload) (*EntityBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVEntity(ctx context.Context, input graphql.Upload) (*model.EntityBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateEntityInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -49,7 +50,7 @@ func (r *mutationResolver) CreateBulkCSVEntity(ctx context.Context, input graphq } // UpdateEntity is the resolver for the updateEntity field. -func (r *mutationResolver) UpdateEntity(ctx context.Context, id string, input generated.UpdateEntityInput) (*EntityUpdatePayload, error) { +func (r *mutationResolver) UpdateEntity(ctx context.Context, id string, input generated.UpdateEntityInput) (*model.EntityUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Entity.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "entity"}) @@ -69,13 +70,13 @@ func (r *mutationResolver) UpdateEntity(ctx context.Context, id string, input ge return nil, parseRequestError(err, action{action: ActionUpdate, object: "entity"}) } - return &EntityUpdatePayload{ + return &model.EntityUpdatePayload{ Entity: res, }, nil } // DeleteEntity is the resolver for the deleteEntity field. -func (r *mutationResolver) DeleteEntity(ctx context.Context, id string) (*EntityDeletePayload, error) { +func (r *mutationResolver) DeleteEntity(ctx context.Context, id string) (*model.EntityDeletePayload, error) { if err := withTransactionalMutation(ctx).Entity.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "entity"}) } @@ -84,7 +85,7 @@ func (r *mutationResolver) DeleteEntity(ctx context.Context, id string) (*Entity return nil, newCascadeDeleteError(err) } - return &EntityDeletePayload{ + return &model.EntityDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/entitytype.resolvers.go b/internal/graphapi/entitytype.resolvers.go index 7453b05c..68a46bc4 100644 --- a/internal/graphapi/entitytype.resolvers.go +++ b/internal/graphapi/entitytype.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateEntityType is the resolver for the createEntityType field. -func (r *mutationResolver) CreateEntityType(ctx context.Context, input generated.CreateEntityTypeInput) (*EntityTypeCreatePayload, error) { +func (r *mutationResolver) CreateEntityType(ctx context.Context, input generated.CreateEntityTypeInput) (*model.EntityTypeCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,18 +27,18 @@ func (r *mutationResolver) CreateEntityType(ctx context.Context, input generated return nil, parseRequestError(err, action{action: ActionCreate, object: "entitytype"}) } - return &EntityTypeCreatePayload{ + return &model.EntityTypeCreatePayload{ EntityType: res, }, nil } // CreateBulkEntityType is the resolver for the createBulkEntityType field. -func (r *mutationResolver) CreateBulkEntityType(ctx context.Context, input []*generated.CreateEntityTypeInput) (*EntityTypeBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkEntityType(ctx context.Context, input []*generated.CreateEntityTypeInput) (*model.EntityTypeBulkCreatePayload, error) { return r.bulkCreateEntityType(ctx, input) } // CreateBulkCSVEntityType is the resolver for the createBulkCSVEntityType field. -func (r *mutationResolver) CreateBulkCSVEntityType(ctx context.Context, input graphql.Upload) (*EntityTypeBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVEntityType(ctx context.Context, input graphql.Upload) (*model.EntityTypeBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateEntityTypeInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -49,7 +50,7 @@ func (r *mutationResolver) CreateBulkCSVEntityType(ctx context.Context, input gr } // UpdateEntityType is the resolver for the updateEntityType field. -func (r *mutationResolver) UpdateEntityType(ctx context.Context, id string, input generated.UpdateEntityTypeInput) (*EntityTypeUpdatePayload, error) { +func (r *mutationResolver) UpdateEntityType(ctx context.Context, id string, input generated.UpdateEntityTypeInput) (*model.EntityTypeUpdatePayload, error) { res, err := withTransactionalMutation(ctx).EntityType.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "entitytype"}) @@ -68,13 +69,13 @@ func (r *mutationResolver) UpdateEntityType(ctx context.Context, id string, inpu return nil, parseRequestError(err, action{action: ActionUpdate, object: "entitytype"}) } - return &EntityTypeUpdatePayload{ + return &model.EntityTypeUpdatePayload{ EntityType: res, }, nil } // DeleteEntityType is the resolver for the deleteEntityType field. -func (r *mutationResolver) DeleteEntityType(ctx context.Context, id string) (*EntityTypeDeletePayload, error) { +func (r *mutationResolver) DeleteEntityType(ctx context.Context, id string) (*model.EntityTypeDeletePayload, error) { if err := withTransactionalMutation(ctx).EntityType.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "entitytype"}) } @@ -83,7 +84,7 @@ func (r *mutationResolver) DeleteEntityType(ctx context.Context, id string) (*En return nil, newCascadeDeleteError(err) } - return &EntityTypeDeletePayload{ + return &model.EntityTypeDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/event.resolvers.go b/internal/graphapi/event.resolvers.go index 9abf0717..df404fad 100644 --- a/internal/graphapi/event.resolvers.go +++ b/internal/graphapi/event.resolvers.go @@ -10,25 +10,26 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateEvent is the resolver for the createEvent field -func (r *mutationResolver) CreateEvent(ctx context.Context, input generated.CreateEventInput) (*EventCreatePayload, error) { +func (r *mutationResolver) CreateEvent(ctx context.Context, input generated.CreateEventInput) (*model.EventCreatePayload, error) { t, err := withTransactionalMutation(ctx).Event.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "event"}) } - return &EventCreatePayload{Event: t}, nil + return &model.EventCreatePayload{Event: t}, nil } // CreateBulkEvent is the resolver for the createBulkEvent field. -func (r *mutationResolver) CreateBulkEvent(ctx context.Context, input []*generated.CreateEventInput) (*EventBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkEvent(ctx context.Context, input []*generated.CreateEventInput) (*model.EventBulkCreatePayload, error) { return r.bulkCreateEvent(ctx, input) } // CreateBulkCSVEvent is the resolver for the createBulkCSVEvent field. -func (r *mutationResolver) CreateBulkCSVEvent(ctx context.Context, input graphql.Upload) (*EventBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVEvent(ctx context.Context, input graphql.Upload) (*model.EventBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateEventInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -40,7 +41,7 @@ func (r *mutationResolver) CreateBulkCSVEvent(ctx context.Context, input graphql } // UpdateEvent is the resolver for the updateEvent field -func (r *mutationResolver) UpdateEvent(ctx context.Context, id string, input generated.UpdateEventInput) (*EventUpdatePayload, error) { +func (r *mutationResolver) UpdateEvent(ctx context.Context, id string, input generated.UpdateEventInput) (*model.EventUpdatePayload, error) { event, err := withTransactionalMutation(ctx).Event.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "event"}) @@ -51,11 +52,11 @@ func (r *mutationResolver) UpdateEvent(ctx context.Context, id string, input gen return nil, parseRequestError(err, action{action: ActionUpdate, object: "event"}) } - return &EventUpdatePayload{Event: event}, nil + return &model.EventUpdatePayload{Event: event}, nil } // DeleteEvent is the resolver for the deleteEvent field -func (r *mutationResolver) DeleteEvent(ctx context.Context, id string) (*EventDeletePayload, error) { +func (r *mutationResolver) DeleteEvent(ctx context.Context, id string) (*model.EventDeletePayload, error) { if err := withTransactionalMutation(ctx).Event.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "event"}) } @@ -64,7 +65,7 @@ func (r *mutationResolver) DeleteEvent(ctx context.Context, id string) (*EventDe return nil, newCascadeDeleteError(err) } - return &EventDeletePayload{DeletedID: id}, nil + return &model.EventDeletePayload{DeletedID: id}, nil } // Event is the resolver for the event field diff --git a/internal/graphapi/file.resolvers.go b/internal/graphapi/file.resolvers.go index 7660147b..edb7b3e4 100644 --- a/internal/graphapi/file.resolvers.go +++ b/internal/graphapi/file.resolvers.go @@ -8,10 +8,11 @@ import ( "context" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // DeleteFile is the resolver for the deleteFile field. -func (r *mutationResolver) DeleteFile(ctx context.Context, id string) (*FileDeletePayload, error) { +func (r *mutationResolver) DeleteFile(ctx context.Context, id string) (*model.FileDeletePayload, error) { if err := withTransactionalMutation(ctx).File.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "file"}) } @@ -20,7 +21,7 @@ func (r *mutationResolver) DeleteFile(ctx context.Context, id string) (*FileDele return nil, newCascadeDeleteError(err) } - return &FileDeletePayload{ + return &model.FileDeletePayload{ DeletedID: id, }, nil } diff --git a/gqlgen.yml b/internal/graphapi/generate/.gqlgen.yml similarity index 93% rename from gqlgen.yml rename to internal/graphapi/generate/.gqlgen.yml index 5dc0076b..848f3856 100644 --- a/gqlgen.yml +++ b/internal/graphapi/generate/.gqlgen.yml @@ -1,12 +1,14 @@ schema: - - schema/*.graphql + - internal/graphapi/schema/*.graphql exec: - filename: internal/graphapi/gen_server.go - package: graphapi + dir: internal/graphapi/generated/ + package: gqlgenerated + layout: follow-schema model: - filename: internal/graphapi/gen_models.go - package: graphapi + filename: internal/graphapi/model/gen_models.go + package: model + resolver: layout: follow-schema dir: internal/graphapi diff --git a/gqlgenc.yml b/internal/graphapi/generate/.gqlgenc.yml similarity index 70% rename from gqlgenc.yml rename to internal/graphapi/generate/.gqlgenc.yml index e8e6a5b3..508a0ac4 100644 --- a/gqlgenc.yml +++ b/internal/graphapi/generate/.gqlgenc.yml @@ -1,9 +1,9 @@ model: package: openlaneclient - filename: ./pkg/openlaneclient/models.go + filename: pkg/openlaneclient/models.go client: package: openlaneclient - filename: ./pkg/openlaneclient/graphclient.go + filename: pkg/openlaneclient/graphclient.go models: Int: model: github.com/99designs/gqlgen/graphql.Int64 @@ -14,8 +14,8 @@ models: model: - github.com/theopenlane/entx.RawMessage - github.com/theopenlane/core/internal/ent/customtypes.JSONObject -schema: ["schema.graphql"] -query: ["query/*.graphql"] +schema: ["internal/graphapi/clientschema/schema.graphql"] +query: ["internal/graphapi/query/*.graphql"] generate: clientV2: true clientInterfaceName: "OpenlaneGraphClient" diff --git a/internal/graphapi/generate/gen_client.go b/internal/graphapi/generate/gen_client.go new file mode 100644 index 00000000..45da9862 --- /dev/null +++ b/internal/graphapi/generate/gen_client.go @@ -0,0 +1,34 @@ +//go:build ignore + +package main + +import ( + "context" + "os" + + "github.com/Yamashou/gqlgenc/config" + "github.com/Yamashou/gqlgenc/generator" + "github.com/rs/zerolog/log" + + "github.com/theopenlane/core/internal/genhelpers" +) + +const ( + graphapiGenDir = "internal/graphapi/generate/" +) + +func main() { + genhelpers.SetupLogging() + + genhelpers.ChangeToRootDir("../../../") + + cfg, err := config.LoadConfig(graphapiGenDir + ".gqlgenc.yml") + if err != nil { + log.Fatal().Err(err).Msg("Failed to load config") + os.Exit(2) + } + + if err := generator.Generate(context.Background(), cfg); err != nil { + log.Error().Err(err).Msg("Failed to generate gqlgenc client") + } +} diff --git a/internal/graphapi/generate/gen_gqlgen.go b/internal/graphapi/generate/gen_gqlgen.go new file mode 100644 index 00000000..9333ce3e --- /dev/null +++ b/internal/graphapi/generate/gen_gqlgen.go @@ -0,0 +1,47 @@ +// go:build ignore + +package main + +import ( + "github.com/99designs/gqlgen/api" + "github.com/99designs/gqlgen/codegen/config" + "github.com/rs/zerolog/log" + "github.com/theopenlane/gqlgen-plugins/bulkgen" + "github.com/theopenlane/gqlgen-plugins/resolvergen" + "github.com/theopenlane/gqlgen-plugins/searchgen" + + "github.com/theopenlane/core/internal/genhelpers" +) + +const ( + graphapiGenDir = "internal/graphapi/generate/" +) + +func main() { + genhelpers.SetupLogging() + + // change to the root of the repo so that the config hierarchy is correct + genhelpers.ChangeToRootDir("../../../") + + cfg, err := config.LoadConfig(graphapiGenDir + ".gqlgen.yml") + if err != nil { + log.Fatal().Err(err).Msg("failed to load config") + } + + modelImport := "github.com/theopenlane/core/internal/graphapi/model" + entPackage := "github.com/theopenlane/core/internal/ent/generated" + + if err := api.Generate(cfg, + api.ReplacePlugin(resolvergen.New()), // replace the resolvergen plugin + api.AddPlugin(bulkgen.NewWithOptions( + bulkgen.WithModelPackage(modelImport), + bulkgen.WithEntGeneratedPackage(entPackage), + )), // add the bulkgen plugin + api.AddPlugin(searchgen.NewWithOptions( + searchgen.WithEntGeneratedPackage(entPackage), + searchgen.WithModelPackage(modelImport), + )), // add the search plugin + ); err != nil { + log.Fatal().Err(err).Msg("failed to generate gqlgen server") + } +} diff --git a/internal/graphapi/generate/gen_schema.go b/internal/graphapi/generate/gen_schema.go new file mode 100644 index 00000000..11107216 --- /dev/null +++ b/internal/graphapi/generate/gen_schema.go @@ -0,0 +1,44 @@ +//go:build ignore + +package main + +import ( + "os" + + "github.com/rs/zerolog/log" + + "github.com/vektah/gqlparser/v2/formatter" + + "github.com/theopenlane/core/internal/genhelpers" + gqlgenerated "github.com/theopenlane/core/internal/graphapi/generated" +) + +// read in schema from internal package and save it to the schema file +func main() { + genhelpers.SetupLogging() + + genhelpers.ChangeToRootDir("../../../") + + _, err := os.Getwd() + if err != nil { + log.Fatal().Err(err).Msg("Failed to get current directory") + } + + log.Info().Msg("Generating schema for client") + + execSchema := gqlgenerated.NewExecutableSchema(gqlgenerated.Config{}) + schema := execSchema.Schema() + + f, err := os.Create("internal/graphapi/clientschema/schema.graphql") + if err != nil { + log.Fatal().Err(err).Msg("failed to create schema file") + } + + defer f.Close() + + fmtr := formatter.NewFormatter(f) + + log.Info().Msg("writing schema.graphl to file") + + fmtr.FormatSchema(schema) +} diff --git a/internal/graphapi/generate/generate.go b/internal/graphapi/generate/generate.go index 16440b4c..339ad799 100644 --- a/internal/graphapi/generate/generate.go +++ b/internal/graphapi/generate/generate.go @@ -1,31 +1,13 @@ -// go:build ignore - package main -import ( - "fmt" - "os" - - "github.com/99designs/gqlgen/api" - "github.com/99designs/gqlgen/codegen/config" - "github.com/theopenlane/gqlgen-plugins/bulkgen" - "github.com/theopenlane/gqlgen-plugins/resolvergen" - "github.com/theopenlane/gqlgen-plugins/searchgen" -) +//go:generate_input gen_gqlgen.go .gqlgen.yml ../schema/* +//go:generate_output ../generated/* ../model/gen_models.go ../* ../../../pkg/openlaneclient/models.go +//go:generate go run gen_gqlgen.go -func main() { - cfg, err := config.LoadConfigFromDefaultLocations() - if err != nil { - fmt.Fprintln(os.Stderr, "failed to load config", err.Error()) - os.Exit(2) - } +//go:generate_input gen_schema.go ../generated/*.generated.go ../model/gen_models.go +//go:generate_output ../clientschema/schema.graphql +//go:generate go run gen_schema.go - if err := api.Generate(cfg, - api.ReplacePlugin(resolvergen.New()), // replace the resolvergen plugin - api.AddPlugin(bulkgen.New()), // add the bulkgen plugin - api.AddPlugin(searchgen.New("github.com/theopenlane/core/internal/ent/generated")), // add the search plugin - ); err != nil { - fmt.Fprintln(os.Stderr, err.Error()) - os.Exit(3) - } -} +//go:generate_input ../query/*.graphql ../schema/*.graphql ../clientschema/schema.graphql .gqlgenc.yml +//go:generate_output ../../pkg/openlaneclient/graphqlclient.go +//go:generate go run gen_client.go diff --git a/internal/graphapi/generated/actionplan.generated.go b/internal/graphapi/generated/actionplan.generated.go new file mode 100644 index 00000000..52b94616 --- /dev/null +++ b/internal/graphapi/generated/actionplan.generated.go @@ -0,0 +1,18205 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +type MutationResolver interface { + CreateActionPlan(ctx context.Context, input generated.CreateActionPlanInput) (*model.ActionPlanCreatePayload, error) + CreateBulkActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*model.ActionPlanBulkCreatePayload, error) + CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload) (*model.ActionPlanBulkCreatePayload, error) + UpdateActionPlan(ctx context.Context, id string, input generated.UpdateActionPlanInput) (*model.ActionPlanUpdatePayload, error) + DeleteActionPlan(ctx context.Context, id string) (*model.ActionPlanDeletePayload, error) + CreateAPIToken(ctx context.Context, input generated.CreateAPITokenInput) (*model.APITokenCreatePayload, error) + CreateBulkAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*model.APITokenBulkCreatePayload, error) + CreateBulkCSVAPIToken(ctx context.Context, input graphql.Upload) (*model.APITokenBulkCreatePayload, error) + UpdateAPIToken(ctx context.Context, id string, input generated.UpdateAPITokenInput) (*model.APITokenUpdatePayload, error) + DeleteAPIToken(ctx context.Context, id string) (*model.APITokenDeletePayload, error) + CreateContact(ctx context.Context, input generated.CreateContactInput) (*model.ContactCreatePayload, error) + CreateBulkContact(ctx context.Context, input []*generated.CreateContactInput) (*model.ContactBulkCreatePayload, error) + CreateBulkCSVContact(ctx context.Context, input graphql.Upload) (*model.ContactBulkCreatePayload, error) + UpdateContact(ctx context.Context, id string, input generated.UpdateContactInput) (*model.ContactUpdatePayload, error) + DeleteContact(ctx context.Context, id string) (*model.ContactDeletePayload, error) + CreateControl(ctx context.Context, input generated.CreateControlInput) (*model.ControlCreatePayload, error) + CreateBulkControl(ctx context.Context, input []*generated.CreateControlInput) (*model.ControlBulkCreatePayload, error) + CreateBulkCSVControl(ctx context.Context, input graphql.Upload) (*model.ControlBulkCreatePayload, error) + UpdateControl(ctx context.Context, id string, input generated.UpdateControlInput) (*model.ControlUpdatePayload, error) + DeleteControl(ctx context.Context, id string) (*model.ControlDeletePayload, error) + CreateControlObjective(ctx context.Context, input generated.CreateControlObjectiveInput) (*model.ControlObjectiveCreatePayload, error) + CreateBulkControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*model.ControlObjectiveBulkCreatePayload, error) + CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload) (*model.ControlObjectiveBulkCreatePayload, error) + UpdateControlObjective(ctx context.Context, id string, input generated.UpdateControlObjectiveInput) (*model.ControlObjectiveUpdatePayload, error) + DeleteControlObjective(ctx context.Context, id string) (*model.ControlObjectiveDeletePayload, error) + CreateDocumentData(ctx context.Context, input generated.CreateDocumentDataInput) (*model.DocumentDataCreatePayload, error) + CreateBulkDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*model.DocumentDataBulkCreatePayload, error) + CreateBulkCSVDocumentData(ctx context.Context, input graphql.Upload) (*model.DocumentDataBulkCreatePayload, error) + UpdateDocumentData(ctx context.Context, id string, input generated.UpdateDocumentDataInput) (*model.DocumentDataUpdatePayload, error) + DeleteDocumentData(ctx context.Context, id string) (*model.DocumentDataDeletePayload, error) + CreateEntity(ctx context.Context, input generated.CreateEntityInput) (*model.EntityCreatePayload, error) + CreateBulkEntity(ctx context.Context, input []*generated.CreateEntityInput) (*model.EntityBulkCreatePayload, error) + CreateBulkCSVEntity(ctx context.Context, input graphql.Upload) (*model.EntityBulkCreatePayload, error) + UpdateEntity(ctx context.Context, id string, input generated.UpdateEntityInput) (*model.EntityUpdatePayload, error) + DeleteEntity(ctx context.Context, id string) (*model.EntityDeletePayload, error) + CreateEntityType(ctx context.Context, input generated.CreateEntityTypeInput) (*model.EntityTypeCreatePayload, error) + CreateBulkEntityType(ctx context.Context, input []*generated.CreateEntityTypeInput) (*model.EntityTypeBulkCreatePayload, error) + CreateBulkCSVEntityType(ctx context.Context, input graphql.Upload) (*model.EntityTypeBulkCreatePayload, error) + UpdateEntityType(ctx context.Context, id string, input generated.UpdateEntityTypeInput) (*model.EntityTypeUpdatePayload, error) + DeleteEntityType(ctx context.Context, id string) (*model.EntityTypeDeletePayload, error) + CreateEvent(ctx context.Context, input generated.CreateEventInput) (*model.EventCreatePayload, error) + CreateBulkEvent(ctx context.Context, input []*generated.CreateEventInput) (*model.EventBulkCreatePayload, error) + CreateBulkCSVEvent(ctx context.Context, input graphql.Upload) (*model.EventBulkCreatePayload, error) + UpdateEvent(ctx context.Context, id string, input generated.UpdateEventInput) (*model.EventUpdatePayload, error) + DeleteEvent(ctx context.Context, id string) (*model.EventDeletePayload, error) + DeleteFile(ctx context.Context, id string) (*model.FileDeletePayload, error) + CreateGroup(ctx context.Context, input generated.CreateGroupInput) (*model.GroupCreatePayload, error) + CreateBulkGroup(ctx context.Context, input []*generated.CreateGroupInput) (*model.GroupBulkCreatePayload, error) + CreateBulkCSVGroup(ctx context.Context, input graphql.Upload) (*model.GroupBulkCreatePayload, error) + UpdateGroup(ctx context.Context, id string, input generated.UpdateGroupInput) (*model.GroupUpdatePayload, error) + DeleteGroup(ctx context.Context, id string) (*model.GroupDeletePayload, error) + CreateGroupMembership(ctx context.Context, input generated.CreateGroupMembershipInput) (*model.GroupMembershipCreatePayload, error) + CreateBulkGroupMembership(ctx context.Context, input []*generated.CreateGroupMembershipInput) (*model.GroupMembershipBulkCreatePayload, error) + CreateBulkCSVGroupMembership(ctx context.Context, input graphql.Upload) (*model.GroupMembershipBulkCreatePayload, error) + UpdateGroupMembership(ctx context.Context, id string, input generated.UpdateGroupMembershipInput) (*model.GroupMembershipUpdatePayload, error) + DeleteGroupMembership(ctx context.Context, id string) (*model.GroupMembershipDeletePayload, error) + CreateGroupSetting(ctx context.Context, input generated.CreateGroupSettingInput) (*model.GroupSettingCreatePayload, error) + CreateBulkGroupSetting(ctx context.Context, input []*generated.CreateGroupSettingInput) (*model.GroupSettingBulkCreatePayload, error) + CreateBulkCSVGroupSetting(ctx context.Context, input graphql.Upload) (*model.GroupSettingBulkCreatePayload, error) + UpdateGroupSetting(ctx context.Context, id string, input generated.UpdateGroupSettingInput) (*model.GroupSettingUpdatePayload, error) + DeleteGroupSetting(ctx context.Context, id string) (*model.GroupSettingDeletePayload, error) + CreateHush(ctx context.Context, input generated.CreateHushInput) (*model.HushCreatePayload, error) + CreateBulkHush(ctx context.Context, input []*generated.CreateHushInput) (*model.HushBulkCreatePayload, error) + CreateBulkCSVHush(ctx context.Context, input graphql.Upload) (*model.HushBulkCreatePayload, error) + UpdateHush(ctx context.Context, id string, input generated.UpdateHushInput) (*model.HushUpdatePayload, error) + DeleteHush(ctx context.Context, id string) (*model.HushDeletePayload, error) + CreateIntegration(ctx context.Context, input generated.CreateIntegrationInput) (*model.IntegrationCreatePayload, error) + CreateBulkIntegration(ctx context.Context, input []*generated.CreateIntegrationInput) (*model.IntegrationBulkCreatePayload, error) + CreateBulkCSVIntegration(ctx context.Context, input graphql.Upload) (*model.IntegrationBulkCreatePayload, error) + UpdateIntegration(ctx context.Context, id string, input generated.UpdateIntegrationInput) (*model.IntegrationUpdatePayload, error) + DeleteIntegration(ctx context.Context, id string) (*model.IntegrationDeletePayload, error) + CreateInternalPolicy(ctx context.Context, input generated.CreateInternalPolicyInput) (*model.InternalPolicyCreatePayload, error) + CreateBulkInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*model.InternalPolicyBulkCreatePayload, error) + CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload) (*model.InternalPolicyBulkCreatePayload, error) + UpdateInternalPolicy(ctx context.Context, id string, input generated.UpdateInternalPolicyInput) (*model.InternalPolicyUpdatePayload, error) + DeleteInternalPolicy(ctx context.Context, id string) (*model.InternalPolicyDeletePayload, error) + CreateInvite(ctx context.Context, input generated.CreateInviteInput) (*model.InviteCreatePayload, error) + CreateBulkInvite(ctx context.Context, input []*generated.CreateInviteInput) (*model.InviteBulkCreatePayload, error) + CreateBulkCSVInvite(ctx context.Context, input graphql.Upload) (*model.InviteBulkCreatePayload, error) + UpdateInvite(ctx context.Context, id string, input generated.UpdateInviteInput) (*model.InviteUpdatePayload, error) + DeleteInvite(ctx context.Context, id string) (*model.InviteDeletePayload, error) + CreateNarrative(ctx context.Context, input generated.CreateNarrativeInput) (*model.NarrativeCreatePayload, error) + CreateBulkNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*model.NarrativeBulkCreatePayload, error) + CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload) (*model.NarrativeBulkCreatePayload, error) + UpdateNarrative(ctx context.Context, id string, input generated.UpdateNarrativeInput) (*model.NarrativeUpdatePayload, error) + DeleteNarrative(ctx context.Context, id string) (*model.NarrativeDeletePayload, error) + CreateOrganization(ctx context.Context, input generated.CreateOrganizationInput) (*model.OrganizationCreatePayload, error) + CreateBulkOrganization(ctx context.Context, input []*generated.CreateOrganizationInput) (*model.OrganizationBulkCreatePayload, error) + CreateBulkCSVOrganization(ctx context.Context, input graphql.Upload) (*model.OrganizationBulkCreatePayload, error) + UpdateOrganization(ctx context.Context, id string, input generated.UpdateOrganizationInput) (*model.OrganizationUpdatePayload, error) + DeleteOrganization(ctx context.Context, id string) (*model.OrganizationDeletePayload, error) + CreateOrganizationSetting(ctx context.Context, input generated.CreateOrganizationSettingInput) (*model.OrganizationSettingCreatePayload, error) + CreateBulkOrganizationSetting(ctx context.Context, input []*generated.CreateOrganizationSettingInput) (*model.OrganizationSettingBulkCreatePayload, error) + CreateBulkCSVOrganizationSetting(ctx context.Context, input graphql.Upload) (*model.OrganizationSettingBulkCreatePayload, error) + UpdateOrganizationSetting(ctx context.Context, id string, input generated.UpdateOrganizationSettingInput) (*model.OrganizationSettingUpdatePayload, error) + DeleteOrganizationSetting(ctx context.Context, id string) (*model.OrganizationSettingDeletePayload, error) + CreateOrgMembership(ctx context.Context, input generated.CreateOrgMembershipInput) (*model.OrgMembershipCreatePayload, error) + CreateBulkOrgMembership(ctx context.Context, input []*generated.CreateOrgMembershipInput) (*model.OrgMembershipBulkCreatePayload, error) + CreateBulkCSVOrgMembership(ctx context.Context, input graphql.Upload) (*model.OrgMembershipBulkCreatePayload, error) + UpdateOrgMembership(ctx context.Context, id string, input generated.UpdateOrgMembershipInput) (*model.OrgMembershipUpdatePayload, error) + DeleteOrgMembership(ctx context.Context, id string) (*model.OrgMembershipDeletePayload, error) + CreateOrgSubscription(ctx context.Context, input generated.CreateOrgSubscriptionInput) (*model.OrgSubscriptionCreatePayload, error) + CreateBulkOrgSubscription(ctx context.Context, input []*generated.CreateOrgSubscriptionInput) (*model.OrgSubscriptionBulkCreatePayload, error) + CreateBulkCSVOrgSubscription(ctx context.Context, input graphql.Upload) (*model.OrgSubscriptionBulkCreatePayload, error) + UpdateOrgSubscription(ctx context.Context, id string, input generated.UpdateOrgSubscriptionInput) (*model.OrgSubscriptionUpdatePayload, error) + DeleteOrgSubscription(ctx context.Context, id string) (*model.OrgSubscriptionDeletePayload, error) + CreatePersonalAccessToken(ctx context.Context, input generated.CreatePersonalAccessTokenInput) (*model.PersonalAccessTokenCreatePayload, error) + CreateBulkPersonalAccessToken(ctx context.Context, input []*generated.CreatePersonalAccessTokenInput) (*model.PersonalAccessTokenBulkCreatePayload, error) + CreateBulkCSVPersonalAccessToken(ctx context.Context, input graphql.Upload) (*model.PersonalAccessTokenBulkCreatePayload, error) + UpdatePersonalAccessToken(ctx context.Context, id string, input generated.UpdatePersonalAccessTokenInput) (*model.PersonalAccessTokenUpdatePayload, error) + DeletePersonalAccessToken(ctx context.Context, id string) (*model.PersonalAccessTokenDeletePayload, error) + CreateProcedure(ctx context.Context, input generated.CreateProcedureInput) (*model.ProcedureCreatePayload, error) + CreateBulkProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*model.ProcedureBulkCreatePayload, error) + CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload) (*model.ProcedureBulkCreatePayload, error) + UpdateProcedure(ctx context.Context, id string, input generated.UpdateProcedureInput) (*model.ProcedureUpdatePayload, error) + DeleteProcedure(ctx context.Context, id string) (*model.ProcedureDeletePayload, error) + CreateProgram(ctx context.Context, input generated.CreateProgramInput) (*model.ProgramCreatePayload, error) + CreateBulkProgram(ctx context.Context, input []*generated.CreateProgramInput) (*model.ProgramBulkCreatePayload, error) + CreateBulkCSVProgram(ctx context.Context, input graphql.Upload) (*model.ProgramBulkCreatePayload, error) + UpdateProgram(ctx context.Context, id string, input generated.UpdateProgramInput) (*model.ProgramUpdatePayload, error) + DeleteProgram(ctx context.Context, id string) (*model.ProgramDeletePayload, error) + CreateProgramWithMembers(ctx context.Context, input model.CreateProgramWithMembersInput) (*model.ProgramCreatePayload, error) + CreateFullProgram(ctx context.Context, input model.CreateFullProgramInput) (*model.ProgramCreatePayload, error) + CreateControlWithSubcontrols(ctx context.Context, input model.CreateControlWithSubcontrolsInput) (*model.ControlCreatePayload, error) + CreateProgramMembership(ctx context.Context, input generated.CreateProgramMembershipInput) (*model.ProgramMembershipCreatePayload, error) + CreateBulkProgramMembership(ctx context.Context, input []*generated.CreateProgramMembershipInput) (*model.ProgramMembershipBulkCreatePayload, error) + CreateBulkCSVProgramMembership(ctx context.Context, input graphql.Upload) (*model.ProgramMembershipBulkCreatePayload, error) + UpdateProgramMembership(ctx context.Context, id string, input generated.UpdateProgramMembershipInput) (*model.ProgramMembershipUpdatePayload, error) + DeleteProgramMembership(ctx context.Context, id string) (*model.ProgramMembershipDeletePayload, error) + CreateRisk(ctx context.Context, input generated.CreateRiskInput) (*model.RiskCreatePayload, error) + CreateBulkRisk(ctx context.Context, input []*generated.CreateRiskInput) (*model.RiskBulkCreatePayload, error) + CreateBulkCSVRisk(ctx context.Context, input graphql.Upload) (*model.RiskBulkCreatePayload, error) + UpdateRisk(ctx context.Context, id string, input generated.UpdateRiskInput) (*model.RiskUpdatePayload, error) + DeleteRisk(ctx context.Context, id string) (*model.RiskDeletePayload, error) + CreateStandard(ctx context.Context, input generated.CreateStandardInput) (*model.StandardCreatePayload, error) + CreateBulkStandard(ctx context.Context, input []*generated.CreateStandardInput) (*model.StandardBulkCreatePayload, error) + CreateBulkCSVStandard(ctx context.Context, input graphql.Upload) (*model.StandardBulkCreatePayload, error) + UpdateStandard(ctx context.Context, id string, input generated.UpdateStandardInput) (*model.StandardUpdatePayload, error) + DeleteStandard(ctx context.Context, id string) (*model.StandardDeletePayload, error) + CreateSubcontrol(ctx context.Context, input generated.CreateSubcontrolInput) (*model.SubcontrolCreatePayload, error) + CreateBulkSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*model.SubcontrolBulkCreatePayload, error) + CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload) (*model.SubcontrolBulkCreatePayload, error) + UpdateSubcontrol(ctx context.Context, id string, input generated.UpdateSubcontrolInput) (*model.SubcontrolUpdatePayload, error) + DeleteSubcontrol(ctx context.Context, id string) (*model.SubcontrolDeletePayload, error) + CreateSubscriber(ctx context.Context, input generated.CreateSubscriberInput) (*model.SubscriberCreatePayload, error) + CreateBulkSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*model.SubscriberBulkCreatePayload, error) + CreateBulkCSVSubscriber(ctx context.Context, input graphql.Upload) (*model.SubscriberBulkCreatePayload, error) + UpdateSubscriber(ctx context.Context, email string, input generated.UpdateSubscriberInput) (*model.SubscriberUpdatePayload, error) + DeleteSubscriber(ctx context.Context, email string, ownerID *string) (*model.SubscriberDeletePayload, error) + CreateTask(ctx context.Context, input generated.CreateTaskInput) (*model.TaskCreatePayload, error) + CreateBulkTask(ctx context.Context, input []*generated.CreateTaskInput) (*model.TaskBulkCreatePayload, error) + CreateBulkCSVTask(ctx context.Context, input graphql.Upload) (*model.TaskBulkCreatePayload, error) + UpdateTask(ctx context.Context, id string, input generated.UpdateTaskInput) (*model.TaskUpdatePayload, error) + DeleteTask(ctx context.Context, id string) (*model.TaskDeletePayload, error) + CreateTemplate(ctx context.Context, input generated.CreateTemplateInput) (*model.TemplateCreatePayload, error) + CreateBulkTemplate(ctx context.Context, input []*generated.CreateTemplateInput) (*model.TemplateBulkCreatePayload, error) + CreateBulkCSVTemplate(ctx context.Context, input graphql.Upload) (*model.TemplateBulkCreatePayload, error) + UpdateTemplate(ctx context.Context, id string, input generated.UpdateTemplateInput) (*model.TemplateUpdatePayload, error) + DeleteTemplate(ctx context.Context, id string) (*model.TemplateDeletePayload, error) + CreateTFASetting(ctx context.Context, input generated.CreateTFASettingInput) (*model.TFASettingCreatePayload, error) + UpdateTFASetting(ctx context.Context, input generated.UpdateTFASettingInput) (*model.TFASettingUpdatePayload, error) + CreateUser(ctx context.Context, input generated.CreateUserInput, avatarFile *graphql.Upload) (*model.UserCreatePayload, error) + UpdateUser(ctx context.Context, id string, input generated.UpdateUserInput, avatarFile *graphql.Upload) (*model.UserUpdatePayload, error) + DeleteUser(ctx context.Context, id string) (*model.UserDeletePayload, error) + CreateUserSetting(ctx context.Context, input generated.CreateUserSettingInput) (*model.UserSettingCreatePayload, error) + CreateBulkUserSetting(ctx context.Context, input []*generated.CreateUserSettingInput) (*model.UserSettingBulkCreatePayload, error) + CreateBulkCSVUserSetting(ctx context.Context, input graphql.Upload) (*model.UserSettingBulkCreatePayload, error) + UpdateUserSetting(ctx context.Context, id string, input generated.UpdateUserSettingInput) (*model.UserSettingUpdatePayload, error) +} + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +func (ec *executionContext) field_Mutation_createAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateAPITokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateAPITokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx, tmp) + } + + var zeroVal generated.CreateAPITokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateActionPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateActionPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInput(ctx, tmp) + } + + var zeroVal generated.CreateActionPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateAPITokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateAPITokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateAPITokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateAPITokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateActionPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateActionPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateActionPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateActionPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVControl_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVControl_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOrgSubscription_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOrgSubscription_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVOrganization_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVOrganization_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVPersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVProgramMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVProgramMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVProgram_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVProgram_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVRisk_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVRisk_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVTask_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVTask_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkCSVUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateContactInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateContactInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateContactInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateContactInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateControlObjectiveInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateControlObjectiveInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateControlObjectiveInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateControlObjectiveInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkControl_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkControl_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateControlInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateControlInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateControlInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateControlInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateDocumentDataInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateDocumentDataInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateDocumentDataInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateDocumentDataInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEntityTypeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEntityTypeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEntityTypeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEntityTypeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEntityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEntityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEntityInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEntityInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateEventInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateEventInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateEventInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateEventInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateGroupMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateGroupMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateGroupMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateGroupSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateGroupSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateGroupSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateGroupInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateHushInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateHushInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateHushInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateHushInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateIntegrationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateIntegrationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateIntegrationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateIntegrationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateInternalPolicyInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateInternalPolicyInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateInternalPolicyInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateInternalPolicyInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateInviteInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateInviteInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateInviteInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateInviteInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateNarrativeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateNarrativeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateNarrativeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateNarrativeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOrgMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOrgMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOrgMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOrgSubscription_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOrgSubscription_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOrgSubscriptionInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOrgSubscriptionInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOrgSubscriptionInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgSubscriptionInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOrgSubscriptionInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOrganizationSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOrganizationSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOrganizationSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOrganizationSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkOrganization_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkOrganization_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateOrganizationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateOrganizationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateOrganizationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkPersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreatePersonalAccessTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreatePersonalAccessTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreatePersonalAccessTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreatePersonalAccessTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateProcedureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateProcedureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateProcedureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateProcedureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkProgramMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkProgramMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateProgramMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateProgramMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateProgramMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramMembershipInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateProgramMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkProgram_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkProgram_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateProgramInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateProgramInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateProgramInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkRisk_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkRisk_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateRiskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateRiskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateRiskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateRiskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateStandardInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateStandardInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateStandardInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateStandardInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateSubcontrolInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateSubcontrolInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateSubcontrolInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateSubcontrolInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateSubscriberInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateSubscriberInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateSubscriberInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkTask_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkTask_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateTaskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateTaskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateTaskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTaskInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateTaskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateTemplateInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateTemplateInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateTemplateInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateTemplateInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createBulkUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createBulkUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createBulkUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]*generated.CreateUserSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal []*generated.CreateUserSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalOCreateUserSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInputᚄ(ctx, tmp) + } + + var zeroVal []*generated.CreateUserSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateContactInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateContactInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx, tmp) + } + + var zeroVal generated.CreateContactInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateControlObjectiveInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateControlObjectiveInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInput(ctx, tmp) + } + + var zeroVal generated.CreateControlObjectiveInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createControlWithSubcontrols_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createControlWithSubcontrols_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createControlWithSubcontrols_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.CreateControlWithSubcontrolsInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.CreateControlWithSubcontrolsInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateControlWithSubcontrolsInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateControlWithSubcontrolsInput(ctx, tmp) + } + + var zeroVal model.CreateControlWithSubcontrolsInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + 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]interface{}, +) (generated.CreateControlInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateControlInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx, tmp) + } + + var zeroVal generated.CreateControlInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateDocumentDataInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateDocumentDataInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx, tmp) + } + + var zeroVal generated.CreateDocumentDataInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEntityTypeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEntityTypeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx, tmp) + } + + var zeroVal generated.CreateEntityTypeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEntityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEntityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx, tmp) + } + + var zeroVal generated.CreateEntityInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateEventInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateEventInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx, tmp) + } + + var zeroVal generated.CreateEventInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createFullProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createFullProgram_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createFullProgram_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.CreateFullProgramInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.CreateFullProgramInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateFullProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateFullProgramInput(ctx, tmp) + } + + var zeroVal model.CreateFullProgramInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateGroupMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateGroupMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx, tmp) + } + + var zeroVal generated.CreateGroupMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateGroupSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateGroupSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, tmp) + } + + var zeroVal generated.CreateGroupSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx, tmp) + } + + var zeroVal generated.CreateGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateHushInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateHushInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx, tmp) + } + + var zeroVal generated.CreateHushInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateIntegrationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateIntegrationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx, tmp) + } + + var zeroVal generated.CreateIntegrationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateInternalPolicyInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateInternalPolicyInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInput(ctx, tmp) + } + + var zeroVal generated.CreateInternalPolicyInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateInviteInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateInviteInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx, tmp) + } + + var zeroVal generated.CreateInviteInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateNarrativeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateNarrativeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInput(ctx, tmp) + } + + var zeroVal generated.CreateNarrativeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOrgMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOrgMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx, tmp) + } + + var zeroVal generated.CreateOrgMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOrgSubscription_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOrgSubscription_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOrgSubscriptionInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOrgSubscriptionInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOrgSubscriptionInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgSubscriptionInput(ctx, tmp) + } + + var zeroVal generated.CreateOrgSubscriptionInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateOrganizationSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOrganizationSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, tmp) + } + + var zeroVal generated.CreateOrganizationSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + 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]interface{}, +) (generated.CreateOrganizationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateOrganizationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx, tmp) + } + + var zeroVal generated.CreateOrganizationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createPersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createPersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreatePersonalAccessTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreatePersonalAccessTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx, tmp) + } + + var zeroVal generated.CreatePersonalAccessTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateProcedureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateProcedureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInput(ctx, tmp) + } + + var zeroVal generated.CreateProcedureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createProgramMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createProgramMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateProgramMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateProgramMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateProgramMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramMembershipInput(ctx, tmp) + } + + var zeroVal generated.CreateProgramMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createProgramWithMembers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createProgramWithMembers_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createProgramWithMembers_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (model.CreateProgramWithMembersInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal model.CreateProgramWithMembersInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateProgramWithMembersInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateProgramWithMembersInput(ctx, tmp) + } + + var zeroVal model.CreateProgramWithMembersInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createProgram_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createProgram_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateProgramInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateProgramInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInput(ctx, tmp) + } + + var zeroVal generated.CreateProgramInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + 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]interface{}, +) (generated.CreateRiskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateRiskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInput(ctx, tmp) + } + + var zeroVal generated.CreateRiskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateStandardInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateStandardInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx, tmp) + } + + var zeroVal generated.CreateStandardInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateSubcontrolInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateSubcontrolInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInput(ctx, tmp) + } + + var zeroVal generated.CreateSubcontrolInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateSubscriberInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateSubscriberInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx, tmp) + } + + var zeroVal generated.CreateSubscriberInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createTFASetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createTFASetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateTFASettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateTFASettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTFASettingInput(ctx, tmp) + } + + var zeroVal generated.CreateTFASettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + 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]interface{}, +) (generated.CreateTaskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateTaskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateTaskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTaskInput(ctx, tmp) + } + + var zeroVal generated.CreateTaskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateTemplateInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateTemplateInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx, tmp) + } + + var zeroVal generated.CreateTemplateInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_createUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateUserSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateUserSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx, tmp) + } + + var zeroVal generated.CreateUserSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_createUser_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + arg1, err := ec.field_Mutation_createUser_argsAvatarFile(ctx, rawArgs) + if err != nil { + return nil, err + } + args["avatarFile"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_createUser_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.CreateUserInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.CreateUserInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNCreateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserInput(ctx, tmp) + } + + var zeroVal generated.CreateUserInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_createUser_argsAvatarFile( + ctx context.Context, + rawArgs map[string]interface{}, +) (*graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["avatarFile"] + if !ok { + var zeroVal *graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) + if tmp, ok := rawArgs["avatarFile"]; ok { + return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal *graphql.Upload + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteAPIToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteAPIToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteActionPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteActionPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteContact_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteContact_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteControlObjective_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteControlObjective_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteControl_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteControl_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteDocumentData_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteDocumentData_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEntityType_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEntityType_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEntity_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEntity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteEvent_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteEvent_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteFile_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteFile_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteFile_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteGroupMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteGroupMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteGroupSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteGroupSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteGroup_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteGroup_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteHush_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteHush_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteIntegration_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteIntegration_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteInternalPolicy_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteInternalPolicy_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteInvite_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteInvite_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteNarrative_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteNarrative_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOrgMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOrgMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOrgSubscription_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOrgSubscription_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOrganizationSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOrganizationSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteOrganization_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteOrganization_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deletePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deletePersonalAccessToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deletePersonalAccessToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteProcedure_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteProcedure_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteProgramMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteProgramMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteProgram_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteProgram_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteRisk_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteRisk_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteStandard_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteStandard_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteSubcontrol_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteSubcontrol_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteSubscriber_argsEmail(ctx, rawArgs) + if err != nil { + return nil, err + } + args["email"] = arg0 + arg1, err := ec.field_Mutation_deleteSubscriber_argsOwnerID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["ownerID"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteSubscriber_argsEmail( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["email"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + if tmp, ok := rawArgs["email"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteSubscriber_argsOwnerID( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ownerID"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + if tmp, ok := rawArgs["ownerID"]; ok { + return ec.unmarshalOID2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteTask_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteTask_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteTemplate_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteTemplate_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_deleteUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_deleteUser_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_deleteUser_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateAPIToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateAPIToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateAPIToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateAPIToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateAPITokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateAPITokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateAPITokenInput(ctx, tmp) + } + + var zeroVal generated.UpdateAPITokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateActionPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateActionPlan_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateActionPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateActionPlan_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateActionPlanInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateActionPlanInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateActionPlanInput(ctx, tmp) + } + + var zeroVal generated.UpdateActionPlanInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateContact_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateContact_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateContact_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateContact_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateContactInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateContactInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateContactInput(ctx, tmp) + } + + var zeroVal generated.UpdateContactInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateControlObjective_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateControlObjective_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateControlObjective_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControlObjective_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateControlObjectiveInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateControlObjectiveInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlObjectiveInput(ctx, tmp) + } + + var zeroVal generated.UpdateControlObjectiveInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateControl_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateControl_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateControl_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateControl_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateControlInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateControlInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlInput(ctx, tmp) + } + + var zeroVal generated.UpdateControlInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateDocumentData_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateDocumentData_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateDocumentData_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateDocumentData_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateDocumentDataInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateDocumentDataInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateDocumentDataInput(ctx, tmp) + } + + var zeroVal generated.UpdateDocumentDataInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEntityType_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEntityType_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEntityType_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntityType_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEntityTypeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEntityTypeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityTypeInput(ctx, tmp) + } + + var zeroVal generated.UpdateEntityTypeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEntity_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEntity_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEntity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEntity_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEntityInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEntityInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityInput(ctx, tmp) + } + + var zeroVal generated.UpdateEntityInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateEvent_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateEvent_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateEvent_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateEvent_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateEventInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateEventInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEventInput(ctx, tmp) + } + + var zeroVal generated.UpdateEventInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateGroupMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateGroupMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateGroupMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateGroupMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateGroupMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupMembershipInput(ctx, tmp) + } + + var zeroVal generated.UpdateGroupMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateGroupSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateGroupSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateGroupSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroupSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateGroupSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateGroupSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateGroupSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateGroup_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateGroup_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateGroup_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateGroup_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateGroupInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateGroupInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupInput(ctx, tmp) + } + + var zeroVal generated.UpdateGroupInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateHush_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateHush_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateHush_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateHush_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateHushInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateHushInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateHushInput(ctx, tmp) + } + + var zeroVal generated.UpdateHushInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateIntegration_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateIntegration_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateIntegration_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateIntegration_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateIntegrationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateIntegrationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateIntegrationInput(ctx, tmp) + } + + var zeroVal generated.UpdateIntegrationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateInternalPolicy_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateInternalPolicy_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateInternalPolicy_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInternalPolicy_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateInternalPolicyInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateInternalPolicyInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInternalPolicyInput(ctx, tmp) + } + + var zeroVal generated.UpdateInternalPolicyInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateInvite_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateInvite_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateInvite_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateInvite_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateInviteInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateInviteInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInviteInput(ctx, tmp) + } + + var zeroVal generated.UpdateInviteInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateNarrative_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateNarrative_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateNarrative_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateNarrative_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateNarrativeInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateNarrativeInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateNarrativeInput(ctx, tmp) + } + + var zeroVal generated.UpdateNarrativeInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOrgMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOrgMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOrgMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrgMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOrgMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOrgMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgMembershipInput(ctx, tmp) + } + + var zeroVal generated.UpdateOrgMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOrgSubscription_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOrgSubscription_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOrgSubscription_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrgSubscription_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOrgSubscriptionInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOrgSubscriptionInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOrgSubscriptionInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgSubscriptionInput(ctx, tmp) + } + + var zeroVal generated.UpdateOrgSubscriptionInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOrganizationSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOrganizationSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOrganizationSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOrganizationSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateOrganizationSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateOrganization_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateOrganization_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateOrganization_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateOrganization_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateOrganizationInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateOrganizationInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationInput(ctx, tmp) + } + + var zeroVal generated.UpdateOrganizationInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updatePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updatePersonalAccessToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updatePersonalAccessToken_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdatePersonalAccessTokenInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdatePersonalAccessTokenInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdatePersonalAccessTokenInput(ctx, tmp) + } + + var zeroVal generated.UpdatePersonalAccessTokenInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateProcedure_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateProcedure_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateProcedure_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProcedure_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateProcedureInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateProcedureInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProcedureInput(ctx, tmp) + } + + var zeroVal generated.UpdateProcedureInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateProgramMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateProgramMembership_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateProgramMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProgramMembership_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateProgramMembershipInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateProgramMembershipInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateProgramMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProgramMembershipInput(ctx, tmp) + } + + var zeroVal generated.UpdateProgramMembershipInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateProgram_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateProgram_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateProgram_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateProgram_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateProgramInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateProgramInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProgramInput(ctx, tmp) + } + + var zeroVal generated.UpdateProgramInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateRisk_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateRisk_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateRisk_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateRisk_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateRiskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateRiskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateRiskInput(ctx, tmp) + } + + var zeroVal generated.UpdateRiskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateStandard_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateStandard_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateStandard_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateStandard_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateStandardInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateStandardInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateStandardInput(ctx, tmp) + } + + var zeroVal generated.UpdateStandardInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateSubcontrol_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateSubcontrol_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateSubcontrol_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubcontrol_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateSubcontrolInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateSubcontrolInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubcontrolInput(ctx, tmp) + } + + var zeroVal generated.UpdateSubcontrolInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateSubscriber_argsEmail(ctx, rawArgs) + if err != nil { + return nil, err + } + args["email"] = arg0 + arg1, err := ec.field_Mutation_updateSubscriber_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateSubscriber_argsEmail( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["email"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + if tmp, ok := rawArgs["email"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateSubscriber_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateSubscriberInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateSubscriberInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubscriberInput(ctx, tmp) + } + + var zeroVal generated.UpdateSubscriberInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateTFASetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg0 + return args, nil +} +func (ec *executionContext) field_Mutation_updateTFASetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateTFASettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateTFASettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTFASettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateTFASettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateTask_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateTask_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateTask_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTask_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateTaskInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateTaskInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateTaskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTaskInput(ctx, tmp) + } + + var zeroVal generated.UpdateTaskInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateTemplate_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateTemplate_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateTemplate_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateTemplate_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateTemplateInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateTemplateInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTemplateInput(ctx, tmp) + } + + var zeroVal generated.UpdateTemplateInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateUserSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateUserSetting_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + return args, nil +} +func (ec *executionContext) field_Mutation_updateUserSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUserSetting_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateUserSettingInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateUserSettingInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserSettingInput(ctx, tmp) + } + + var zeroVal generated.UpdateUserSettingInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Mutation_updateUser_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + arg1, err := ec.field_Mutation_updateUser_argsInput(ctx, rawArgs) + if err != nil { + return nil, err + } + args["input"] = arg1 + arg2, err := ec.field_Mutation_updateUser_argsAvatarFile(ctx, rawArgs) + if err != nil { + return nil, err + } + args["avatarFile"] = arg2 + return args, nil +} +func (ec *executionContext) field_Mutation_updateUser_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_argsInput( + ctx context.Context, + rawArgs map[string]interface{}, +) (generated.UpdateUserInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["input"] + if !ok { + var zeroVal generated.UpdateUserInput + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) + if tmp, ok := rawArgs["input"]; ok { + return ec.unmarshalNUpdateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserInput(ctx, tmp) + } + + var zeroVal generated.UpdateUserInput + return zeroVal, nil +} + +func (ec *executionContext) field_Mutation_updateUser_argsAvatarFile( + ctx context.Context, + rawArgs map[string]interface{}, +) (*graphql.Upload, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["avatarFile"] + if !ok { + var zeroVal *graphql.Upload + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) + if tmp, ok := rawArgs["avatarFile"]; ok { + return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) + } + + var zeroVal *graphql.Upload + return zeroVal, nil +} + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _ActionPlanBulkCreatePayload_actionPlans(ctx context.Context, field graphql.CollectedField, obj *model.ActionPlanBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlans, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ActionPlan) + fc.Result = res + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanBulkCreatePayload_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanBulkCreatePayload", + 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_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanCreatePayload_actionPlan(ctx context.Context, field graphql.CollectedField, obj *model.ActionPlanCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanCreatePayload_actionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ActionPlan) + fc.Result = res + return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanCreatePayload_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanCreatePayload", + 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_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.ActionPlanDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanDeletePayload", + 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) _ActionPlanUpdatePayload_actionPlan(ctx context.Context, field graphql.CollectedField, obj *model.ActionPlanUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanUpdatePayload_actionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlan, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ActionPlan) + fc.Result = res + return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanUpdatePayload_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanUpdatePayload", + 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_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createActionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateActionPlan(rctx, fc.Args["input"].(generated.CreateActionPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ActionPlanCreatePayload) + fc.Result = res + return ec.marshalNActionPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createActionPlan(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 "actionPlan": + return ec.fieldContext_ActionPlanCreatePayload_actionPlan(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanCreatePayload", 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_createActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkActionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkActionPlan(rctx, fc.Args["input"].([]*generated.CreateActionPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ActionPlanBulkCreatePayload) + fc.Result = res + return ec.marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkActionPlan(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 "actionPlans": + return ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanBulkCreatePayload", 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_createBulkActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVActionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVActionPlan(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ActionPlanBulkCreatePayload) + fc.Result = res + return ec.marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVActionPlan(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 "actionPlans": + return ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanBulkCreatePayload", 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_createBulkCSVActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateActionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateActionPlan(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateActionPlanInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ActionPlanUpdatePayload) + fc.Result = res + return ec.marshalNActionPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateActionPlan(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 "actionPlan": + return ec.fieldContext_ActionPlanUpdatePayload_actionPlan(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanUpdatePayload", 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_updateActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteActionPlan(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteActionPlan(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ActionPlanDeletePayload) + fc.Result = res + return ec.marshalNActionPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteActionPlan(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 "deletedID": + return ec.fieldContext_ActionPlanDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanDeletePayload", 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_deleteActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createAPIToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateAPIToken(rctx, fc.Args["input"].(generated.CreateAPITokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.APITokenCreatePayload) + fc.Result = res + return ec.marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createAPIToken(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 "apiToken": + return ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenCreatePayload", 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_createAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkAPIToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkAPIToken(rctx, fc.Args["input"].([]*generated.CreateAPITokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.APITokenBulkCreatePayload) + fc.Result = res + return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkAPIToken(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 "apiTokens": + return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", 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_createBulkAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVAPIToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVAPIToken(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.APITokenBulkCreatePayload) + fc.Result = res + return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVAPIToken(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 "apiTokens": + return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", 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_createBulkCSVAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateAPIToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateAPIToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateAPITokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.APITokenUpdatePayload) + fc.Result = res + return ec.marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateAPIToken(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 "apiToken": + return ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenUpdatePayload", 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_updateAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteAPIToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteAPIToken(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.APITokenDeletePayload) + fc.Result = res + return ec.marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteAPIToken(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 "deletedID": + return ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APITokenDeletePayload", 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_deleteAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateContact(rctx, fc.Args["input"].(generated.CreateContactInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ContactCreatePayload) + fc.Result = res + return ec.marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createContact(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 "contact": + return ec.fieldContext_ContactCreatePayload_contact(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactCreatePayload", 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_createContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkContact(rctx, fc.Args["input"].([]*generated.CreateContactInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ContactBulkCreatePayload) + fc.Result = res + return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkContact(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 "contacts": + return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", 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_createBulkContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVContact(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ContactBulkCreatePayload) + fc.Result = res + return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVContact(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 "contacts": + return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", 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_createBulkCSVContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateContact(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateContactInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ContactUpdatePayload) + fc.Result = res + return ec.marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateContact(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 "contact": + return ec.fieldContext_ContactUpdatePayload_contact(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactUpdatePayload", 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_updateContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteContact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteContact(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ContactDeletePayload) + fc.Result = res + return ec.marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteContact(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 "deletedID": + return ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactDeletePayload", 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_deleteContact_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateControl(rctx, fc.Args["input"].(generated.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.(*model.ControlCreatePayload) + fc.Result = res + return ec.marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCreatePayload(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 "control": + return ec.fieldContext_ControlCreatePayload_control(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlCreatePayload", 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_createBulkControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkControl(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkControl(rctx, fc.Args["input"].([]*generated.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.(*model.ControlBulkCreatePayload) + fc.Result = res + return ec.marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkControl(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 "controls": + return ec.fieldContext_ControlBulkCreatePayload_controls(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlBulkCreatePayload", 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_createBulkControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVControl(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVControl(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlBulkCreatePayload) + fc.Result = res + return ec.marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVControl(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 "controls": + return ec.fieldContext_ControlBulkCreatePayload_controls(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlBulkCreatePayload", 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_createBulkCSVControl_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateControl(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.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.(*model.ControlUpdatePayload) + fc.Result = res + return ec.marshalNControlUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlUpdatePayload(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_ControlUpdatePayload_control(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlUpdatePayload", 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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteControl(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlDeletePayload) + fc.Result = res + return ec.marshalNControlDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlDeletePayload(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 "deletedID": + return ec.fieldContext_ControlDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlDeletePayload", 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_createControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createControlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateControlObjective(rctx, fc.Args["input"].(generated.CreateControlObjectiveInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlObjectiveCreatePayload) + fc.Result = res + return ec.marshalNControlObjectiveCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createControlObjective(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 "controlObjective": + return ec.fieldContext_ControlObjectiveCreatePayload_controlObjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveCreatePayload", 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_createControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkControlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkControlObjective(rctx, fc.Args["input"].([]*generated.CreateControlObjectiveInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlObjectiveBulkCreatePayload) + fc.Result = res + return ec.marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkControlObjective(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 "controlObjectives": + return ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveBulkCreatePayload", 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_createBulkControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVControlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVControlObjective(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlObjectiveBulkCreatePayload) + fc.Result = res + return ec.marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVControlObjective(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 "controlObjectives": + return ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveBulkCreatePayload", 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_createBulkCSVControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateControlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateControlObjective(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateControlObjectiveInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlObjectiveUpdatePayload) + fc.Result = res + return ec.marshalNControlObjectiveUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateControlObjective(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 "controlObjective": + return ec.fieldContext_ControlObjectiveUpdatePayload_controlObjective(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveUpdatePayload", 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_updateControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteControlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteControlObjective(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlObjectiveDeletePayload) + fc.Result = res + return ec.marshalNControlObjectiveDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteControlObjective(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 "deletedID": + return ec.fieldContext_ControlObjectiveDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveDeletePayload", 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_deleteControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createDocumentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateDocumentData(rctx, fc.Args["input"].(generated.CreateDocumentDataInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.DocumentDataCreatePayload) + fc.Result = res + return ec.marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createDocumentData(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 "documentData": + return ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataCreatePayload", 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_createDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkDocumentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkDocumentData(rctx, fc.Args["input"].([]*generated.CreateDocumentDataInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.DocumentDataBulkCreatePayload) + fc.Result = res + return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkDocumentData(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 "documentData": + return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", 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_createBulkDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVDocumentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVDocumentData(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.DocumentDataBulkCreatePayload) + fc.Result = res + return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVDocumentData(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 "documentData": + return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", 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_createBulkCSVDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateDocumentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateDocumentData(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateDocumentDataInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.DocumentDataUpdatePayload) + fc.Result = res + return ec.marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateDocumentData(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 "documentData": + return ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataUpdatePayload", 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_updateDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteDocumentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteDocumentData(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.DocumentDataDeletePayload) + fc.Result = res + return ec.marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteDocumentData(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 "deletedID": + return ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataDeletePayload", 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_deleteDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEntity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEntity(rctx, fc.Args["input"].(generated.CreateEntityInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityCreatePayload) + fc.Result = res + return ec.marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createEntity(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 "entity": + return ec.fieldContext_EntityCreatePayload_entity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityCreatePayload", 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_createEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEntity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEntity(rctx, fc.Args["input"].([]*generated.CreateEntityInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkEntity(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 "entities": + return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", 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_createBulkEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEntity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEntity(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntity(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 "entities": + return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", 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_createBulkCSVEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEntity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEntity(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityUpdatePayload) + fc.Result = res + return ec.marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateEntity(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 "entity": + return ec.fieldContext_EntityUpdatePayload_entity(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityUpdatePayload", 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_updateEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEntity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEntity(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityDeletePayload) + fc.Result = res + return ec.marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteEntity(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 "deletedID": + return ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityDeletePayload", 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_deleteEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEntityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEntityType(rctx, fc.Args["input"].(generated.CreateEntityTypeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityTypeCreatePayload) + fc.Result = res + return ec.marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createEntityType(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 "entityType": + return ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeCreatePayload", 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_createEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEntityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEntityType(rctx, fc.Args["input"].([]*generated.CreateEntityTypeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityTypeBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkEntityType(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 "entityTypes": + return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", 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_createBulkEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEntityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEntityType(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityTypeBulkCreatePayload) + fc.Result = res + return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntityType(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 "entityTypes": + return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", 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_createBulkCSVEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEntityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEntityType(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityTypeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityTypeUpdatePayload) + fc.Result = res + return ec.marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateEntityType(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 "entityType": + return ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeUpdatePayload", 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_updateEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEntityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEntityType(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EntityTypeDeletePayload) + fc.Result = res + return ec.marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteEntityType(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 "deletedID": + return ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityTypeDeletePayload", 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_deleteEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createEvent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateEvent(rctx, fc.Args["input"].(generated.CreateEventInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EventCreatePayload) + fc.Result = res + return ec.marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createEvent(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 "event": + return ec.fieldContext_EventCreatePayload_event(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventCreatePayload", 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_createEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkEvent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkEvent(rctx, fc.Args["input"].([]*generated.CreateEventInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EventBulkCreatePayload) + fc.Result = res + return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkEvent(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 "events": + return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", 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_createBulkEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVEvent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVEvent(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EventBulkCreatePayload) + fc.Result = res + return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVEvent(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 "events": + return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", 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_createBulkCSVEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateEvent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateEvent(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEventInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EventUpdatePayload) + fc.Result = res + return ec.marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateEvent(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 "event": + return ec.fieldContext_EventUpdatePayload_event(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventUpdatePayload", 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_updateEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteEvent(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteEvent(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.EventDeletePayload) + fc.Result = res + return ec.marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteEvent(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 "deletedID": + return ec.fieldContext_EventDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventDeletePayload", 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_deleteEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteFile(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteFile(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.FileDeletePayload) + fc.Result = res + return ec.marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐFileDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteFile(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 "deletedID": + return ec.fieldContext_FileDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileDeletePayload", 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_deleteFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateGroup(rctx, fc.Args["input"].(generated.CreateGroupInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupCreatePayload) + fc.Result = res + return ec.marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createGroup(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 "group": + return ec.fieldContext_GroupCreatePayload_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupCreatePayload", 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_createGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkGroup(rctx, fc.Args["input"].([]*generated.CreateGroupInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkGroup(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 "groups": + return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", 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_createBulkGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVGroup(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroup(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 "groups": + return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", 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_createBulkCSVGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateGroup(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupUpdatePayload) + fc.Result = res + return ec.marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateGroup(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 "group": + return ec.fieldContext_GroupUpdatePayload_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupUpdatePayload", 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_updateGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteGroup(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteGroup(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupDeletePayload) + fc.Result = res + return ec.marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteGroup(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 "deletedID": + return ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupDeletePayload", 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_deleteGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createGroupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateGroupMembership(rctx, fc.Args["input"].(generated.CreateGroupMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupMembershipCreatePayload) + fc.Result = res + return ec.marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createGroupMembership(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 "groupMembership": + return ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipCreatePayload", 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_createGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkGroupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkGroupMembership(rctx, fc.Args["input"].([]*generated.CreateGroupMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkGroupMembership(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 "groupMemberships": + return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", 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_createBulkGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVGroupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVGroupMembership(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupMembership(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 "groupMemberships": + return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", 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_createBulkCSVGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateGroupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateGroupMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupMembershipUpdatePayload) + fc.Result = res + return ec.marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateGroupMembership(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 "groupMembership": + return ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipUpdatePayload", 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_updateGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteGroupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteGroupMembership(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupMembershipDeletePayload) + fc.Result = res + return ec.marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteGroupMembership(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 "deletedID": + return ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipDeletePayload", 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_deleteGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createGroupSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateGroupSetting(rctx, fc.Args["input"].(generated.CreateGroupSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupSettingCreatePayload) + fc.Result = res + return ec.marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createGroupSetting(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 "groupSetting": + return ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingCreatePayload", 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_createGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkGroupSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkGroupSetting(rctx, fc.Args["input"].([]*generated.CreateGroupSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkGroupSetting(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 "groupSettings": + return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingBulkCreatePayload", 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_createBulkGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVGroupSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVGroupSetting(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupSetting(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 "groupSettings": + return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingBulkCreatePayload", 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_createBulkCSVGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateGroupSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateGroupSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupSettingUpdatePayload) + fc.Result = res + return ec.marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateGroupSetting(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 "groupSetting": + return ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingUpdatePayload", 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_updateGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteGroupSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteGroupSetting(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.GroupSettingDeletePayload) + fc.Result = res + return ec.marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteGroupSetting(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 "deletedID": + return ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSettingDeletePayload", 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_deleteGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createHush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateHush(rctx, fc.Args["input"].(generated.CreateHushInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.HushCreatePayload) + fc.Result = res + return ec.marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createHush(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 "hush": + return ec.fieldContext_HushCreatePayload_hush(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushCreatePayload", 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_createHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkHush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkHush(rctx, fc.Args["input"].([]*generated.CreateHushInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.HushBulkCreatePayload) + fc.Result = res + return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkHush(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 "hushes": + return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", 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_createBulkHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVHush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVHush(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.HushBulkCreatePayload) + fc.Result = res + return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVHush(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 "hushes": + return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", 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_createBulkCSVHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateHush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateHush(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateHushInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.HushUpdatePayload) + fc.Result = res + return ec.marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateHush(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 "hush": + return ec.fieldContext_HushUpdatePayload_hush(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushUpdatePayload", 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_updateHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteHush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteHush(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.HushDeletePayload) + fc.Result = res + return ec.marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteHush(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 "deletedID": + return ec.fieldContext_HushDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type HushDeletePayload", 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_deleteHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createIntegration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateIntegration(rctx, fc.Args["input"].(generated.CreateIntegrationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.IntegrationCreatePayload) + fc.Result = res + return ec.marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createIntegration(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 "integration": + return ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationCreatePayload", 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_createIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkIntegration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkIntegration(rctx, fc.Args["input"].([]*generated.CreateIntegrationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.IntegrationBulkCreatePayload) + fc.Result = res + return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkIntegration(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 "integrations": + return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", 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_createBulkIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVIntegration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVIntegration(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.IntegrationBulkCreatePayload) + fc.Result = res + return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVIntegration(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 "integrations": + return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", 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_createBulkCSVIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateIntegration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateIntegration(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateIntegrationInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.IntegrationUpdatePayload) + fc.Result = res + return ec.marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateIntegration(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 "integration": + return ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationUpdatePayload", 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_updateIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteIntegration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteIntegration(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.IntegrationDeletePayload) + fc.Result = res + return ec.marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteIntegration(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 "deletedID": + return ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationDeletePayload", 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_deleteIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createInternalPolicy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateInternalPolicy(rctx, fc.Args["input"].(generated.CreateInternalPolicyInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InternalPolicyCreatePayload) + fc.Result = res + return ec.marshalNInternalPolicyCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createInternalPolicy(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 "internalPolicy": + return ec.fieldContext_InternalPolicyCreatePayload_internalPolicy(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyCreatePayload", 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_createInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkInternalPolicy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkInternalPolicy(rctx, fc.Args["input"].([]*generated.CreateInternalPolicyInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InternalPolicyBulkCreatePayload) + fc.Result = res + return ec.marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkInternalPolicy(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 "internalPolicies": + return ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyBulkCreatePayload", 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_createBulkInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVInternalPolicy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVInternalPolicy(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InternalPolicyBulkCreatePayload) + fc.Result = res + return ec.marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVInternalPolicy(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 "internalPolicies": + return ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyBulkCreatePayload", 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_createBulkCSVInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateInternalPolicy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateInternalPolicy(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateInternalPolicyInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InternalPolicyUpdatePayload) + fc.Result = res + return ec.marshalNInternalPolicyUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateInternalPolicy(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 "internalPolicy": + return ec.fieldContext_InternalPolicyUpdatePayload_internalPolicy(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyUpdatePayload", 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_updateInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteInternalPolicy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteInternalPolicy(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InternalPolicyDeletePayload) + fc.Result = res + return ec.marshalNInternalPolicyDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteInternalPolicy(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 "deletedID": + return ec.fieldContext_InternalPolicyDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyDeletePayload", 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_deleteInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createInvite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateInvite(rctx, fc.Args["input"].(generated.CreateInviteInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InviteCreatePayload) + fc.Result = res + return ec.marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createInvite(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 "invite": + return ec.fieldContext_InviteCreatePayload_invite(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteCreatePayload", 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_createInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkInvite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkInvite(rctx, fc.Args["input"].([]*generated.CreateInviteInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InviteBulkCreatePayload) + fc.Result = res + return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkInvite(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 "invites": + return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", 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_createBulkInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVInvite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVInvite(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InviteBulkCreatePayload) + fc.Result = res + return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVInvite(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 "invites": + return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", 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_createBulkCSVInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateInvite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateInvite(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateInviteInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InviteUpdatePayload) + fc.Result = res + return ec.marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateInvite(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 "invite": + return ec.fieldContext_InviteUpdatePayload_invite(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteUpdatePayload", 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_updateInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteInvite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteInvite(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.InviteDeletePayload) + fc.Result = res + return ec.marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteInvite(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 "deletedID": + return ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InviteDeletePayload", 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_deleteInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createNarrative(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateNarrative(rctx, fc.Args["input"].(generated.CreateNarrativeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.NarrativeCreatePayload) + fc.Result = res + return ec.marshalNNarrativeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createNarrative(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 "narrative": + return ec.fieldContext_NarrativeCreatePayload_narrative(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeCreatePayload", 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_createNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkNarrative(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkNarrative(rctx, fc.Args["input"].([]*generated.CreateNarrativeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.NarrativeBulkCreatePayload) + fc.Result = res + return ec.marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkNarrative(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 "narratives": + return ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeBulkCreatePayload", 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_createBulkNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVNarrative(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVNarrative(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.NarrativeBulkCreatePayload) + fc.Result = res + return ec.marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVNarrative(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 "narratives": + return ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeBulkCreatePayload", 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_createBulkCSVNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateNarrative(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateNarrative(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateNarrativeInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.NarrativeUpdatePayload) + fc.Result = res + return ec.marshalNNarrativeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateNarrative(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 "narrative": + return ec.fieldContext_NarrativeUpdatePayload_narrative(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeUpdatePayload", 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_updateNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteNarrative(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteNarrative(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.NarrativeDeletePayload) + fc.Result = res + return ec.marshalNNarrativeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteNarrative(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 "deletedID": + return ec.fieldContext_NarrativeDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeDeletePayload", 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_deleteNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + 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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOrganization(rctx, fc.Args["input"].(generated.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.(*model.OrganizationCreatePayload) + fc.Result = res + return ec.marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationCreatePayload(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 "organization": + return ec.fieldContext_OrganizationCreatePayload_organization(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationCreatePayload", 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_createBulkOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOrganization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOrganization(rctx, fc.Args["input"].([]*generated.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.(*model.OrganizationBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkOrganization(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 "organizations": + return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", 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_createBulkOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOrganization(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOrganization(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrganizationBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganization(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 "organizations": + return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", 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_createBulkCSVOrganization_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOrganization(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.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.(*model.OrganizationUpdatePayload) + fc.Result = res + return ec.marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationUpdatePayload(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_OrganizationUpdatePayload_organization(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationUpdatePayload", 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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOrganization(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrganizationDeletePayload) + fc.Result = res + return ec.marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationDeletePayload(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 "deletedID": + return ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationDeletePayload", 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_createOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOrganizationSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOrganizationSetting(rctx, fc.Args["input"].(generated.CreateOrganizationSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrganizationSettingCreatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createOrganizationSetting(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 "organizationSetting": + return ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingCreatePayload", 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_createOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOrganizationSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOrganizationSetting(rctx, fc.Args["input"].([]*generated.CreateOrganizationSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrganizationSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkOrganizationSetting(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 "organizationSettings": + return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", 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_createBulkOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOrganizationSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOrganizationSetting(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrganizationSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganizationSetting(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 "organizationSettings": + return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", 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_createBulkCSVOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOrganizationSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOrganizationSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrganizationSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrganizationSettingUpdatePayload) + fc.Result = res + return ec.marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateOrganizationSetting(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 "organizationSetting": + return ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingUpdatePayload", 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_updateOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOrganizationSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOrganizationSetting(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrganizationSettingDeletePayload) + fc.Result = res + return ec.marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteOrganizationSetting(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 "deletedID": + return ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingDeletePayload", 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_deleteOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOrgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOrgMembership(rctx, fc.Args["input"].(generated.CreateOrgMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgMembershipCreatePayload) + fc.Result = res + return ec.marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createOrgMembership(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 "orgMembership": + return ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipCreatePayload", 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_createOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOrgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOrgMembership(rctx, fc.Args["input"].([]*generated.CreateOrgMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkOrgMembership(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 "orgMemberships": + return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", 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_createBulkOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOrgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOrgMembership(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrgMembership(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 "orgMemberships": + return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", 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_createBulkCSVOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOrgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOrgMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrgMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgMembershipUpdatePayload) + fc.Result = res + return ec.marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateOrgMembership(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 "orgMembership": + return ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipUpdatePayload", 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_updateOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOrgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOrgMembership(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgMembershipDeletePayload) + fc.Result = res + return ec.marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteOrgMembership(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 "deletedID": + return ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipDeletePayload", 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_deleteOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createOrgSubscription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateOrgSubscription(rctx, fc.Args["input"].(generated.CreateOrgSubscriptionInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgSubscriptionCreatePayload) + fc.Result = res + return ec.marshalNOrgSubscriptionCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createOrgSubscription(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 "orgSubscription": + return ec.fieldContext_OrgSubscriptionCreatePayload_orgSubscription(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionCreatePayload", 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_createOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkOrgSubscription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkOrgSubscription(rctx, fc.Args["input"].([]*generated.CreateOrgSubscriptionInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgSubscriptionBulkCreatePayload) + fc.Result = res + return ec.marshalNOrgSubscriptionBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkOrgSubscription(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 "orgSubscriptions": + return ec.fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionBulkCreatePayload", 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_createBulkOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVOrgSubscription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVOrgSubscription(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgSubscriptionBulkCreatePayload) + fc.Result = res + return ec.marshalNOrgSubscriptionBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrgSubscription(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 "orgSubscriptions": + return ec.fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionBulkCreatePayload", 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_createBulkCSVOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateOrgSubscription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateOrgSubscription(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrgSubscriptionInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgSubscriptionUpdatePayload) + fc.Result = res + return ec.marshalNOrgSubscriptionUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateOrgSubscription(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 "orgSubscription": + return ec.fieldContext_OrgSubscriptionUpdatePayload_orgSubscription(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionUpdatePayload", 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_updateOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteOrgSubscription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteOrgSubscription(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.OrgSubscriptionDeletePayload) + fc.Result = res + return ec.marshalNOrgSubscriptionDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteOrgSubscription(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 "deletedID": + return ec.fieldContext_OrgSubscriptionDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionDeletePayload", 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_deleteOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createPersonalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreatePersonalAccessToken(rctx, fc.Args["input"].(generated.CreatePersonalAccessTokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.PersonalAccessTokenCreatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createPersonalAccessToken(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 "personalAccessToken": + return ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenCreatePayload", 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_createPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkPersonalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkPersonalAccessToken(rctx, fc.Args["input"].([]*generated.CreatePersonalAccessTokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.PersonalAccessTokenBulkCreatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkPersonalAccessToken(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 "personalAccessTokens": + return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", 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_createBulkPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVPersonalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVPersonalAccessToken(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.PersonalAccessTokenBulkCreatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVPersonalAccessToken(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 "personalAccessTokens": + return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", 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_createBulkCSVPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updatePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updatePersonalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdatePersonalAccessToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdatePersonalAccessTokenInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.PersonalAccessTokenUpdatePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updatePersonalAccessToken(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 "personalAccessToken": + return ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenUpdatePayload", 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_updatePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deletePersonalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeletePersonalAccessToken(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.PersonalAccessTokenDeletePayload) + fc.Result = res + return ec.marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deletePersonalAccessToken(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 "deletedID": + return ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenDeletePayload", 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_deletePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createProcedure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateProcedure(rctx, fc.Args["input"].(generated.CreateProcedureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProcedureCreatePayload) + fc.Result = res + return ec.marshalNProcedureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createProcedure(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 "procedure": + return ec.fieldContext_ProcedureCreatePayload_procedure(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureCreatePayload", 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_createProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkProcedure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkProcedure(rctx, fc.Args["input"].([]*generated.CreateProcedureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProcedureBulkCreatePayload) + fc.Result = res + return ec.marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkProcedure(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 "procedures": + return ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureBulkCreatePayload", 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_createBulkProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVProcedure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVProcedure(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProcedureBulkCreatePayload) + fc.Result = res + return ec.marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVProcedure(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 "procedures": + return ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureBulkCreatePayload", 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_createBulkCSVProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateProcedure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateProcedure(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateProcedureInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProcedureUpdatePayload) + fc.Result = res + return ec.marshalNProcedureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateProcedure(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 "procedure": + return ec.fieldContext_ProcedureUpdatePayload_procedure(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureUpdatePayload", 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_updateProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteProcedure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteProcedure(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProcedureDeletePayload) + fc.Result = res + return ec.marshalNProcedureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteProcedure(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 "deletedID": + return ec.fieldContext_ProcedureDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureDeletePayload", 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_deleteProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createProgram(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateProgram(rctx, fc.Args["input"].(generated.CreateProgramInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramCreatePayload) + fc.Result = res + return ec.marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createProgram(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 "program": + return ec.fieldContext_ProgramCreatePayload_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramCreatePayload", 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_createProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkProgram(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkProgram(rctx, fc.Args["input"].([]*generated.CreateProgramInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramBulkCreatePayload) + fc.Result = res + return ec.marshalNProgramBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkProgram(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 "programs": + return ec.fieldContext_ProgramBulkCreatePayload_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramBulkCreatePayload", 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_createBulkProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVProgram(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVProgram(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramBulkCreatePayload) + fc.Result = res + return ec.marshalNProgramBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVProgram(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 "programs": + return ec.fieldContext_ProgramBulkCreatePayload_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramBulkCreatePayload", 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_createBulkCSVProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateProgram(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateProgram(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateProgramInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramUpdatePayload) + fc.Result = res + return ec.marshalNProgramUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateProgram(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 "program": + return ec.fieldContext_ProgramUpdatePayload_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramUpdatePayload", 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_updateProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteProgram(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteProgram(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramDeletePayload) + fc.Result = res + return ec.marshalNProgramDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteProgram(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 "deletedID": + return ec.fieldContext_ProgramDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramDeletePayload", 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_deleteProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createProgramWithMembers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createProgramWithMembers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateProgramWithMembers(rctx, fc.Args["input"].(model.CreateProgramWithMembersInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramCreatePayload) + fc.Result = res + return ec.marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createProgramWithMembers(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 "program": + return ec.fieldContext_ProgramCreatePayload_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramCreatePayload", 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_createProgramWithMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createFullProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createFullProgram(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateFullProgram(rctx, fc.Args["input"].(model.CreateFullProgramInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramCreatePayload) + fc.Result = res + return ec.marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createFullProgram(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 "program": + return ec.fieldContext_ProgramCreatePayload_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramCreatePayload", 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_createFullProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createControlWithSubcontrols(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createControlWithSubcontrols(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateControlWithSubcontrols(rctx, fc.Args["input"].(model.CreateControlWithSubcontrolsInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ControlCreatePayload) + fc.Result = res + return ec.marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createControlWithSubcontrols(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_ControlCreatePayload_control(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlCreatePayload", 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_createControlWithSubcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createProgramMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateProgramMembership(rctx, fc.Args["input"].(generated.CreateProgramMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramMembershipCreatePayload) + fc.Result = res + return ec.marshalNProgramMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createProgramMembership(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 "programMembership": + return ec.fieldContext_ProgramMembershipCreatePayload_programMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipCreatePayload", 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_createProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkProgramMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkProgramMembership(rctx, fc.Args["input"].([]*generated.CreateProgramMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNProgramMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkProgramMembership(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 "programMemberships": + return ec.fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipBulkCreatePayload", 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_createBulkProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVProgramMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVProgramMembership(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramMembershipBulkCreatePayload) + fc.Result = res + return ec.marshalNProgramMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVProgramMembership(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 "programMemberships": + return ec.fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipBulkCreatePayload", 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_createBulkCSVProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateProgramMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateProgramMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateProgramMembershipInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramMembershipUpdatePayload) + fc.Result = res + return ec.marshalNProgramMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateProgramMembership(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 "programMembership": + return ec.fieldContext_ProgramMembershipUpdatePayload_programMembership(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipUpdatePayload", 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_updateProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteProgramMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteProgramMembership(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.ProgramMembershipDeletePayload) + fc.Result = res + return ec.marshalNProgramMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteProgramMembership(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 "deletedID": + return ec.fieldContext_ProgramMembershipDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipDeletePayload", 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_deleteProgramMembership_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateRisk(rctx, fc.Args["input"].(generated.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.(*model.RiskCreatePayload) + fc.Result = res + return ec.marshalNRiskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskCreatePayload(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 "risk": + return ec.fieldContext_RiskCreatePayload_risk(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskCreatePayload", 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_createBulkRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkRisk(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkRisk(rctx, fc.Args["input"].([]*generated.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.(*model.RiskBulkCreatePayload) + fc.Result = res + return ec.marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkRisk(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 "risks": + return ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskBulkCreatePayload", 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_createBulkRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVRisk(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVRisk(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.RiskBulkCreatePayload) + fc.Result = res + return ec.marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVRisk(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 "risks": + return ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskBulkCreatePayload", 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_createBulkCSVRisk_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateRisk(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.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.(*model.RiskUpdatePayload) + fc.Result = res + return ec.marshalNRiskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskUpdatePayload(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_RiskUpdatePayload_risk(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskUpdatePayload", 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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteRisk(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.RiskDeletePayload) + fc.Result = res + return ec.marshalNRiskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskDeletePayload(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 "deletedID": + return ec.fieldContext_RiskDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskDeletePayload", 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_createStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createStandard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateStandard(rctx, fc.Args["input"].(generated.CreateStandardInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.StandardCreatePayload) + fc.Result = res + return ec.marshalNStandardCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createStandard(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 "standard": + return ec.fieldContext_StandardCreatePayload_standard(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardCreatePayload", 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_createStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkStandard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkStandard(rctx, fc.Args["input"].([]*generated.CreateStandardInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.StandardBulkCreatePayload) + fc.Result = res + return ec.marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkStandard(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 "standards": + return ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardBulkCreatePayload", 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_createBulkStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVStandard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVStandard(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.StandardBulkCreatePayload) + fc.Result = res + return ec.marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVStandard(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 "standards": + return ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardBulkCreatePayload", 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_createBulkCSVStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateStandard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateStandard(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateStandardInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.StandardUpdatePayload) + fc.Result = res + return ec.marshalNStandardUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateStandard(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 "standard": + return ec.fieldContext_StandardUpdatePayload_standard(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardUpdatePayload", 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_updateStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteStandard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteStandard(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.StandardDeletePayload) + fc.Result = res + return ec.marshalNStandardDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteStandard(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 "deletedID": + return ec.fieldContext_StandardDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardDeletePayload", 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_deleteStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createSubcontrol(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateSubcontrol(rctx, fc.Args["input"].(generated.CreateSubcontrolInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubcontrolCreatePayload) + fc.Result = res + return ec.marshalNSubcontrolCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createSubcontrol(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 "subcontrol": + return ec.fieldContext_SubcontrolCreatePayload_subcontrol(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolCreatePayload", 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_createSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkSubcontrol(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkSubcontrol(rctx, fc.Args["input"].([]*generated.CreateSubcontrolInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubcontrolBulkCreatePayload) + fc.Result = res + return ec.marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkSubcontrol(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 "subcontrols": + return ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolBulkCreatePayload", 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_createBulkSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVSubcontrol(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVSubcontrol(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubcontrolBulkCreatePayload) + fc.Result = res + return ec.marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVSubcontrol(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 "subcontrols": + return ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolBulkCreatePayload", 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_createBulkCSVSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateSubcontrol(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateSubcontrol(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateSubcontrolInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubcontrolUpdatePayload) + fc.Result = res + return ec.marshalNSubcontrolUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateSubcontrol(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 "subcontrol": + return ec.fieldContext_SubcontrolUpdatePayload_subcontrol(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolUpdatePayload", 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_updateSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteSubcontrol(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteSubcontrol(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubcontrolDeletePayload) + fc.Result = res + return ec.marshalNSubcontrolDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteSubcontrol(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 "deletedID": + return ec.fieldContext_SubcontrolDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolDeletePayload", 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_deleteSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createSubscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateSubscriber(rctx, fc.Args["input"].(generated.CreateSubscriberInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubscriberCreatePayload) + fc.Result = res + return ec.marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createSubscriber(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 "subscriber": + return ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberCreatePayload", 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_createSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkSubscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkSubscriber(rctx, fc.Args["input"].([]*generated.CreateSubscriberInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubscriberBulkCreatePayload) + fc.Result = res + return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkSubscriber(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 "subscribers": + return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", 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_createBulkSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVSubscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVSubscriber(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubscriberBulkCreatePayload) + fc.Result = res + return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVSubscriber(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 "subscribers": + return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", 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_createBulkCSVSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateSubscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateSubscriber(rctx, fc.Args["email"].(string), fc.Args["input"].(generated.UpdateSubscriberInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubscriberUpdatePayload) + fc.Result = res + return ec.marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateSubscriber(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 "subscriber": + return ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberUpdatePayload", 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_updateSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteSubscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteSubscriber(rctx, fc.Args["email"].(string), fc.Args["ownerID"].(*string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.SubscriberDeletePayload) + fc.Result = res + return ec.marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteSubscriber(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 "email": + return ec.fieldContext_SubscriberDeletePayload_email(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberDeletePayload", 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_deleteSubscriber_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateTask(rctx, fc.Args["input"].(generated.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.(*model.TaskCreatePayload) + fc.Result = res + return ec.marshalNTaskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskCreatePayload(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 "task": + return ec.fieldContext_TaskCreatePayload_task(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaskCreatePayload", 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_createBulkTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkTask(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkTask(rctx, fc.Args["input"].([]*generated.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.(*model.TaskBulkCreatePayload) + fc.Result = res + return ec.marshalNTaskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkTask(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 "tasks": + return ec.fieldContext_TaskBulkCreatePayload_tasks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaskBulkCreatePayload", 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_createBulkTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVTask(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVTask(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TaskBulkCreatePayload) + fc.Result = res + return ec.marshalNTaskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVTask(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 "tasks": + return ec.fieldContext_TaskBulkCreatePayload_tasks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaskBulkCreatePayload", 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_createBulkCSVTask_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateTask(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.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.(*model.TaskUpdatePayload) + fc.Result = res + return ec.marshalNTaskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskUpdatePayload(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_TaskUpdatePayload_task(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaskUpdatePayload", 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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteTask(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TaskDeletePayload) + fc.Result = res + return ec.marshalNTaskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskDeletePayload(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 "deletedID": + return ec.fieldContext_TaskDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaskDeletePayload", 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_createTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createTemplate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateTemplate(rctx, fc.Args["input"].(generated.CreateTemplateInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TemplateCreatePayload) + fc.Result = res + return ec.marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createTemplate(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 "template": + return ec.fieldContext_TemplateCreatePayload_template(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateCreatePayload", 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_createTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkTemplate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkTemplate(rctx, fc.Args["input"].([]*generated.CreateTemplateInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TemplateBulkCreatePayload) + fc.Result = res + return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkTemplate(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 "templates": + return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", 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_createBulkTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVTemplate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVTemplate(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TemplateBulkCreatePayload) + fc.Result = res + return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVTemplate(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 "templates": + return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", 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_createBulkCSVTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateTemplate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateTemplate(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateTemplateInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TemplateUpdatePayload) + fc.Result = res + return ec.marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateTemplate(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 "template": + return ec.fieldContext_TemplateUpdatePayload_template(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateUpdatePayload", 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_updateTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteTemplate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteTemplate(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TemplateDeletePayload) + fc.Result = res + return ec.marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteTemplate(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 "deletedID": + return ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateDeletePayload", 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_deleteTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createTFASetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateTFASetting(rctx, fc.Args["input"].(generated.CreateTFASettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TFASettingCreatePayload) + fc.Result = res + return ec.marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createTFASetting(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 "tfaSetting": + return ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASettingCreatePayload", 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_createTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateTFASetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateTFASetting(rctx, fc.Args["input"].(generated.UpdateTFASettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.TFASettingUpdatePayload) + fc.Result = res + return ec.marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateTFASetting(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 "tfaSetting": + return ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASettingUpdatePayload", 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_updateTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createUser(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(generated.CreateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.UserCreatePayload) + fc.Result = res + return ec.marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createUser(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 "user": + return ec.fieldContext_UserCreatePayload_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserCreatePayload", 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_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateUser(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.UserUpdatePayload) + fc.Result = res + return ec.marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateUser(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 "user": + return ec.fieldContext_UserUpdatePayload_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserUpdatePayload", 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_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_deleteUser(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.UserDeletePayload) + fc.Result = res + return ec.marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserDeletePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_deleteUser(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 "deletedID": + return ec.fieldContext_UserDeletePayload_deletedID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserDeletePayload", 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_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createUserSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateUserSetting(rctx, fc.Args["input"].(generated.CreateUserSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.UserSettingCreatePayload) + fc.Result = res + return ec.marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createUserSetting(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 "userSetting": + return ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingCreatePayload", 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_createUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkUserSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkUserSetting(rctx, fc.Args["input"].([]*generated.CreateUserSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.UserSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkUserSetting(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 "userSettings": + return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", 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_createBulkUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_createBulkCSVUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_createBulkCSVUserSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().CreateBulkCSVUserSetting(rctx, fc.Args["input"].(graphql.Upload)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.UserSettingBulkCreatePayload) + fc.Result = res + return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_createBulkCSVUserSetting(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 "userSettings": + return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", 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_createBulkCSVUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +func (ec *executionContext) _Mutation_updateUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Mutation_updateUserSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return ec.resolvers.Mutation().UpdateUserSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserSettingInput)) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*model.UserSettingUpdatePayload) + fc.Result = res + return ec.marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingUpdatePayload(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Mutation_updateUserSetting(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 "userSetting": + return ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingUpdatePayload", 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_updateUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var actionPlanBulkCreatePayloadImplementors = []string{"ActionPlanBulkCreatePayload"} + +func (ec *executionContext) _ActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ActionPlanBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanBulkCreatePayload") + case "actionPlans": + out.Values[i] = ec._ActionPlanBulkCreatePayload_actionPlans(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 actionPlanCreatePayloadImplementors = []string{"ActionPlanCreatePayload"} + +func (ec *executionContext) _ActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ActionPlanCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanCreatePayload") + case "actionPlan": + out.Values[i] = ec._ActionPlanCreatePayload_actionPlan(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 actionPlanDeletePayloadImplementors = []string{"ActionPlanDeletePayload"} + +func (ec *executionContext) _ActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ActionPlanDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanDeletePayload") + case "deletedID": + out.Values[i] = ec._ActionPlanDeletePayload_deletedID(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 actionPlanUpdatePayloadImplementors = []string{"ActionPlanUpdatePayload"} + +func (ec *executionContext) _ActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ActionPlanUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanUpdatePayload") + case "actionPlan": + out.Values[i] = ec._ActionPlanUpdatePayload_actionPlan(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 "createActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteActionPlan": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteActionPlan(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteAPIToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteAPIToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateContact(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteContact": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteContact(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 "createBulkControl": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkControl(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVControl": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVControl(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 "createControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteControlObjective": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteControlObjective(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteDocumentData": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteDocumentData(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEntity": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEntity(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEntityType": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEntityType(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteEvent": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteEvent(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteFile": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteFile(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteGroup": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteGroup(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteGroupMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteGroupMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteGroupSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteGroupSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteHush": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteHush(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteIntegration": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteIntegration(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteInternalPolicy": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteInternalPolicy(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteInvite": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteInvite(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteNarrative": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteNarrative(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + 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 "createBulkOrganization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOrganization(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOrganization": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOrganization(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 "createOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOrganizationSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOrganizationSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOrgMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOrgMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createOrgSubscription": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createOrgSubscription(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkOrgSubscription": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkOrgSubscription(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVOrgSubscription": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVOrgSubscription(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateOrgSubscription": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateOrgSubscription(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteOrgSubscription": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteOrgSubscription(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createPersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createPersonalAccessToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkPersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkPersonalAccessToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVPersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVPersonalAccessToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updatePersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updatePersonalAccessToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deletePersonalAccessToken": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deletePersonalAccessToken(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteProcedure": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteProcedure(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createProgram": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createProgram(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkProgram": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkProgram(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVProgram": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVProgram(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateProgram": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateProgram(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteProgram": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteProgram(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createProgramWithMembers": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createProgramWithMembers(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createFullProgram": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createFullProgram(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createControlWithSubcontrols": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createControlWithSubcontrols(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createProgramMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createProgramMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkProgramMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkProgramMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVProgramMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVProgramMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateProgramMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateProgramMembership(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteProgramMembership": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteProgramMembership(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 "createBulkRisk": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkRisk(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVRisk": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVRisk(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 "createStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createStandard(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkStandard(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVStandard(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateStandard(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteStandard": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteStandard(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createSubcontrol(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkSubcontrol(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVSubcontrol(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateSubcontrol(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteSubcontrol": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteSubcontrol(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createSubscriber(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkSubscriber(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVSubscriber(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateSubscriber(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteSubscriber": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteSubscriber(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 "createBulkTask": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkTask(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVTask": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVTask(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 "createTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteTemplate": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteTemplate(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createTFASetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createTFASetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateTFASetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateTFASetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createUser": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createUser(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateUser": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateUser(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "deleteUser": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_deleteUser(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createUserSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkUserSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createBulkCSVUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_createBulkCSVUserSetting(ctx, field) + }) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "updateUserSetting": + out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { + return ec._Mutation_updateUserSetting(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNActionPlanBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ActionPlanBulkCreatePayload) graphql.Marshaler { + return ec._ActionPlanBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ActionPlanBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ActionPlanCreatePayload) graphql.Marshaler { + return ec._ActionPlanCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ActionPlanCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.ActionPlanDeletePayload) graphql.Marshaler { + return ec._ActionPlanDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.ActionPlanDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNActionPlanUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.ActionPlanUpdatePayload) graphql.Marshaler { + return ec._ActionPlanUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNActionPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ActionPlanUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ActionPlanUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/apitoken.generated.go b/internal/graphapi/generated/apitoken.generated.go new file mode 100644 index 00000000..32ca52f9 --- /dev/null +++ b/internal/graphapi/generated/apitoken.generated.go @@ -0,0 +1,532 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _APITokenBulkCreatePayload_apiTokens(ctx context.Context, field graphql.CollectedField, obj *model.APITokenBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APITokens, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.APIToken) + fc.Result = res + return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenBulkCreatePayload_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenBulkCreatePayload", + 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_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenCreatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *model.APITokenCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APIToken, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.APIToken) + fc.Result = res + return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenCreatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenCreatePayload", + 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_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _APITokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.APITokenDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenDeletePayload", + 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) _APITokenUpdatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *model.APITokenUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APIToken, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.APIToken) + fc.Result = res + return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenUpdatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenUpdatePayload", + 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_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var aPITokenBulkCreatePayloadImplementors = []string{"APITokenBulkCreatePayload"} + +func (ec *executionContext) _APITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.APITokenBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenBulkCreatePayload") + case "apiTokens": + out.Values[i] = ec._APITokenBulkCreatePayload_apiTokens(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 aPITokenCreatePayloadImplementors = []string{"APITokenCreatePayload"} + +func (ec *executionContext) _APITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.APITokenCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenCreatePayload") + case "apiToken": + out.Values[i] = ec._APITokenCreatePayload_apiToken(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 aPITokenDeletePayloadImplementors = []string{"APITokenDeletePayload"} + +func (ec *executionContext) _APITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.APITokenDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenDeletePayload") + case "deletedID": + out.Values[i] = ec._APITokenDeletePayload_deletedID(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 aPITokenUpdatePayloadImplementors = []string{"APITokenUpdatePayload"} + +func (ec *executionContext) _APITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.APITokenUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenUpdatePayload") + case "apiToken": + out.Values[i] = ec._APITokenUpdatePayload_apiToken(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNAPITokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.APITokenBulkCreatePayload) graphql.Marshaler { + return ec._APITokenBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.APITokenBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.APITokenCreatePayload) graphql.Marshaler { + return ec._APITokenCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.APITokenCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.APITokenDeletePayload) graphql.Marshaler { + return ec._APITokenDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.APITokenDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNAPITokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.APITokenUpdatePayload) graphql.Marshaler { + return ec._APITokenUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.APITokenUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._APITokenUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/audit.generated.go b/internal/graphapi/generated/audit.generated.go new file mode 100644 index 00000000..83f3f64c --- /dev/null +++ b/internal/graphapi/generated/audit.generated.go @@ -0,0 +1,818 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync" + "sync/atomic" + "time" + + "entgo.io/contrib/entgql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _AuditLog_table(ctx context.Context, field graphql.CollectedField, obj *model.AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_table(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Table, 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_AuditLog_table(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + 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) _AuditLog_time(ctx context.Context, field graphql.CollectedField, obj *model.AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_time(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Time, 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.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLog_id(ctx context.Context, field graphql.CollectedField, obj *model.AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_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) (interface{}, 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.(string) + fc.Result = res + return ec.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + 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) _AuditLog_operation(ctx context.Context, field graphql.CollectedField, obj *model.AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_operation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Operation, 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_AuditLog_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + 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) _AuditLog_changes(ctx context.Context, field graphql.CollectedField, obj *model.AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_changes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Changes, 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_AuditLog_changes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + 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) _AuditLog_updatedBy(ctx context.Context, field graphql.CollectedField, obj *model.AuditLog) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLog_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, 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.marshalOID2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLog_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLog", + 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) _AuditLogConnection_edges(ctx context.Context, field graphql.CollectedField, obj *model.AuditLogConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogConnection_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.([]*model.AuditLogEdge) + fc.Result = res + return ec.marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "node": + return ec.fieldContext_AuditLogEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_AuditLogEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AuditLogEdge", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLogConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *model.AuditLogConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogConnection_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) (interface{}, 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.(*entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogConnection", + 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) _AuditLogConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *model.AuditLogConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogConnection_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, 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_AuditLogConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogConnection", + 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) _AuditLogEdge_node(ctx context.Context, field graphql.CollectedField, obj *model.AuditLogEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogEdge_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(*model.AuditLog) + fc.Result = res + return ec.marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLog(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "table": + return ec.fieldContext_AuditLog_table(ctx, field) + case "time": + return ec.fieldContext_AuditLog_time(ctx, field) + case "id": + return ec.fieldContext_AuditLog_id(ctx, field) + case "operation": + return ec.fieldContext_AuditLog_operation(ctx, field) + case "changes": + return ec.fieldContext_AuditLog_changes(ctx, field) + case "updatedBy": + return ec.fieldContext_AuditLog_updatedBy(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type AuditLog", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _AuditLogEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *model.AuditLogEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_AuditLogEdge_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) (interface{}, 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.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_AuditLogEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "AuditLogEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +func (ec *executionContext) unmarshalInputAuditLogWhereInput(ctx context.Context, obj interface{}) (model.AuditLogWhereInput, error) { + var it model.AuditLogWhereInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"refID", "updatedBy", "operation", "table", "before", "after"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "refID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refID")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.RefID = data + case "updatedBy": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.UpdatedBy = data + case "operation": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Operation = data + case "table": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("table")) + data, err := ec.unmarshalOID2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Table = data + case "before": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.Before = data + case "after": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) + if err != nil { + return it, err + } + it.After = data + } + } + + return it, nil +} + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var auditLogImplementors = []string{"AuditLog", "Node"} + +func (ec *executionContext) _AuditLog(ctx context.Context, sel ast.SelectionSet, obj *model.AuditLog) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, auditLogImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AuditLog") + case "table": + out.Values[i] = ec._AuditLog_table(ctx, field, obj) + case "time": + out.Values[i] = ec._AuditLog_time(ctx, field, obj) + case "id": + out.Values[i] = ec._AuditLog_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "operation": + out.Values[i] = ec._AuditLog_operation(ctx, field, obj) + case "changes": + out.Values[i] = ec._AuditLog_changes(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._AuditLog_updatedBy(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 auditLogConnectionImplementors = []string{"AuditLogConnection"} + +func (ec *executionContext) _AuditLogConnection(ctx context.Context, sel ast.SelectionSet, obj *model.AuditLogConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, auditLogConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AuditLogConnection") + case "edges": + out.Values[i] = ec._AuditLogConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._AuditLogConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._AuditLogConnection_totalCount(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 auditLogEdgeImplementors = []string{"AuditLogEdge"} + +func (ec *executionContext) _AuditLogEdge(ctx context.Context, sel ast.SelectionSet, obj *model.AuditLogEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, auditLogEdgeImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("AuditLogEdge") + case "node": + out.Values[i] = ec._AuditLogEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._AuditLogEdge_cursor(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNAuditLogConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v model.AuditLogConnection) graphql.Marshaler { + return ec._AuditLogConnection(ctx, sel, &v) +} + +func (ec *executionContext) marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v *model.AuditLogConnection) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._AuditLogConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLog(ctx context.Context, sel ast.SelectionSet, v *model.AuditLog) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AuditLog(ctx, sel, v) +} + +func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v []*model.AuditLogEdge) 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.marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret +} + +func (ec *executionContext) marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v *model.AuditLogEdge) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._AuditLogEdge(ctx, sel, v) +} + +func (ec *executionContext) unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogWhereInput(ctx context.Context, v interface{}) (*model.AuditLogWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputAuditLogWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/contact.generated.go b/internal/graphapi/generated/contact.generated.go new file mode 100644 index 00000000..1c78efba --- /dev/null +++ b/internal/graphapi/generated/contact.generated.go @@ -0,0 +1,550 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _ContactBulkCreatePayload_contacts(ctx context.Context, field graphql.CollectedField, obj *model.ContactBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactBulkCreatePayload_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contacts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Contact) + fc.Result = res + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactBulkCreatePayload_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactBulkCreatePayload", + 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_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactCreatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *model.ContactCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactCreatePayload_contact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Contact) + fc.Result = res + return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactCreatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactCreatePayload", + 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_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.ContactDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactDeletePayload", + 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) _ContactUpdatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *model.ContactUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactUpdatePayload_contact(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contact, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Contact) + fc.Result = res + return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactUpdatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactUpdatePayload", + 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_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var contactBulkCreatePayloadImplementors = []string{"ContactBulkCreatePayload"} + +func (ec *executionContext) _ContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ContactBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactBulkCreatePayload") + case "contacts": + out.Values[i] = ec._ContactBulkCreatePayload_contacts(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 contactCreatePayloadImplementors = []string{"ContactCreatePayload"} + +func (ec *executionContext) _ContactCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ContactCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactCreatePayload") + case "contact": + out.Values[i] = ec._ContactCreatePayload_contact(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 contactDeletePayloadImplementors = []string{"ContactDeletePayload"} + +func (ec *executionContext) _ContactDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ContactDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactDeletePayload") + case "deletedID": + out.Values[i] = ec._ContactDeletePayload_deletedID(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 contactUpdatePayloadImplementors = []string{"ContactUpdatePayload"} + +func (ec *executionContext) _ContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ContactUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactUpdatePayload") + case "contact": + out.Values[i] = ec._ContactUpdatePayload_contact(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNContactBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ContactBulkCreatePayload) graphql.Marshaler { + return ec._ContactBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ContactBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ContactCreatePayload) graphql.Marshaler { + return ec._ContactCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ContactCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.ContactDeletePayload) graphql.Marshaler { + return ec._ContactDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.ContactDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNContactUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.ContactUpdatePayload) graphql.Marshaler { + return ec._ContactUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ContactUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ContactUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/control.generated.go b/internal/graphapi/generated/control.generated.go new file mode 100644 index 00000000..4647517c --- /dev/null +++ b/internal/graphapi/generated/control.generated.go @@ -0,0 +1,640 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _ControlBulkCreatePayload_controls(ctx context.Context, field graphql.CollectedField, obj *model.ControlBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlBulkCreatePayload_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controls, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlBulkCreatePayload_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlBulkCreatePayload", + 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 "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlCreatePayload_control(ctx context.Context, field graphql.CollectedField, obj *model.ControlCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlCreatePayload_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) (interface{}, 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.(*generated.Control) + fc.Result = res + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlCreatePayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlCreatePayload", + 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 "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.ControlDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlDeletePayload", + 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) _ControlUpdatePayload_control(ctx context.Context, field graphql.CollectedField, obj *model.ControlUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlUpdatePayload_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) (interface{}, 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.(*generated.Control) + fc.Result = res + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlUpdatePayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlUpdatePayload", + 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 "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var controlBulkCreatePayloadImplementors = []string{"ControlBulkCreatePayload"} + +func (ec *executionContext) _ControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlBulkCreatePayload") + case "controls": + out.Values[i] = ec._ControlBulkCreatePayload_controls(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 controlCreatePayloadImplementors = []string{"ControlCreatePayload"} + +func (ec *executionContext) _ControlCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlCreatePayload") + case "control": + out.Values[i] = ec._ControlCreatePayload_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 controlDeletePayloadImplementors = []string{"ControlDeletePayload"} + +func (ec *executionContext) _ControlDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlDeletePayload") + case "deletedID": + out.Values[i] = ec._ControlDeletePayload_deletedID(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 controlUpdatePayloadImplementors = []string{"ControlUpdatePayload"} + +func (ec *executionContext) _ControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlUpdatePayload") + case "control": + out.Values[i] = ec._ControlUpdatePayload_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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNControlBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlBulkCreatePayload) graphql.Marshaler { + return ec._ControlBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlCreatePayload) graphql.Marshaler { + return ec._ControlCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlDeletePayload) graphql.Marshaler { + return ec._ControlDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlUpdatePayload) graphql.Marshaler { + return ec._ControlUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/controlobjective.generated.go b/internal/graphapi/generated/controlobjective.generated.go new file mode 100644 index 00000000..0f823377 --- /dev/null +++ b/internal/graphapi/generated/controlobjective.generated.go @@ -0,0 +1,634 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _ControlObjectiveBulkCreatePayload_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *model.ControlObjectiveBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjectives, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveBulkCreatePayload", + 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_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveCreatePayload_controlObjective(ctx context.Context, field graphql.CollectedField, obj *model.ControlObjectiveCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveCreatePayload_controlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjective, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ControlObjective) + fc.Result = res + return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveCreatePayload_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveCreatePayload", + 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_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.ControlObjectiveDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveDeletePayload", + 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) _ControlObjectiveUpdatePayload_controlObjective(ctx context.Context, field graphql.CollectedField, obj *model.ControlObjectiveUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveUpdatePayload_controlObjective(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjective, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ControlObjective) + fc.Result = res + return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveUpdatePayload_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveUpdatePayload", + 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_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var controlObjectiveBulkCreatePayloadImplementors = []string{"ControlObjectiveBulkCreatePayload"} + +func (ec *executionContext) _ControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlObjectiveBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveBulkCreatePayload") + case "controlObjectives": + out.Values[i] = ec._ControlObjectiveBulkCreatePayload_controlObjectives(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 controlObjectiveCreatePayloadImplementors = []string{"ControlObjectiveCreatePayload"} + +func (ec *executionContext) _ControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlObjectiveCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveCreatePayload") + case "controlObjective": + out.Values[i] = ec._ControlObjectiveCreatePayload_controlObjective(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 controlObjectiveDeletePayloadImplementors = []string{"ControlObjectiveDeletePayload"} + +func (ec *executionContext) _ControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlObjectiveDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveDeletePayload") + case "deletedID": + out.Values[i] = ec._ControlObjectiveDeletePayload_deletedID(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 controlObjectiveUpdatePayloadImplementors = []string{"ControlObjectiveUpdatePayload"} + +func (ec *executionContext) _ControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ControlObjectiveUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveUpdatePayload") + case "controlObjective": + out.Values[i] = ec._ControlObjectiveUpdatePayload_controlObjective(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNControlObjectiveBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlObjectiveBulkCreatePayload) graphql.Marshaler { + return ec._ControlObjectiveBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlObjectiveBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlObjectiveCreatePayload) graphql.Marshaler { + return ec._ControlObjectiveCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlObjectiveCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlObjectiveDeletePayload) graphql.Marshaler { + return ec._ControlObjectiveDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlObjectiveDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNControlObjectiveUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.ControlObjectiveUpdatePayload) graphql.Marshaler { + return ec._ControlObjectiveUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNControlObjectiveUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ControlObjectiveUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ControlObjectiveUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/documentdata.generated.go b/internal/graphapi/generated/documentdata.generated.go new file mode 100644 index 00000000..34ad4fab --- /dev/null +++ b/internal/graphapi/generated/documentdata.generated.go @@ -0,0 +1,526 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _DocumentDataBulkCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *model.DocumentDataBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentData) + fc.Result = res + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataBulkCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataBulkCreatePayload", + 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_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *model.DocumentDataCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.DocumentData) + fc.Result = res + return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataCreatePayload", + 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_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.DocumentDataDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataDeletePayload", + 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) _DocumentDataUpdatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *model.DocumentDataUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.DocumentData) + fc.Result = res + return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataUpdatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataUpdatePayload", + 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_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var documentDataBulkCreatePayloadImplementors = []string{"DocumentDataBulkCreatePayload"} + +func (ec *executionContext) _DocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentDataBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataBulkCreatePayload") + case "documentData": + out.Values[i] = ec._DocumentDataBulkCreatePayload_documentData(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 documentDataCreatePayloadImplementors = []string{"DocumentDataCreatePayload"} + +func (ec *executionContext) _DocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentDataCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataCreatePayload") + case "documentData": + out.Values[i] = ec._DocumentDataCreatePayload_documentData(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 documentDataDeletePayloadImplementors = []string{"DocumentDataDeletePayload"} + +func (ec *executionContext) _DocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentDataDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataDeletePayload") + case "deletedID": + out.Values[i] = ec._DocumentDataDeletePayload_deletedID(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 documentDataUpdatePayloadImplementors = []string{"DocumentDataUpdatePayload"} + +func (ec *executionContext) _DocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentDataUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataUpdatePayload") + case "documentData": + out.Values[i] = ec._DocumentDataUpdatePayload_documentData(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.DocumentDataBulkCreatePayload) graphql.Marshaler { + return ec._DocumentDataBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.DocumentDataBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._DocumentDataBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNDocumentDataCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.DocumentDataCreatePayload) graphql.Marshaler { + return ec._DocumentDataCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.DocumentDataCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._DocumentDataCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNDocumentDataDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.DocumentDataDeletePayload) graphql.Marshaler { + return ec._DocumentDataDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.DocumentDataDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._DocumentDataDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNDocumentDataUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.DocumentDataUpdatePayload) graphql.Marshaler { + return ec._DocumentDataUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.DocumentDataUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._DocumentDataUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/gen_server.go b/internal/graphapi/generated/ent.generated.go similarity index 76% rename from internal/graphapi/gen_server.go rename to internal/graphapi/generated/ent.generated.go index 8406100d..68854d36 100644 --- a/internal/graphapi/gen_server.go +++ b/internal/graphapi/generated/ent.generated.go @@ -1,9 +1,8 @@ // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. -package graphapi +package gqlgenerated import ( - "bytes" "context" "errors" "fmt" @@ -17,94263 +16,13544 @@ import ( "github.com/99designs/gqlgen/graphql/introspection" "github.com/theopenlane/core/internal/ent/customtypes" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/core/pkg/enums" "github.com/theopenlane/entx/history" - 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 QueryResolver interface { + Node(ctx context.Context, id string) (generated.Noder, error) + Nodes(ctx context.Context, ids []string) ([]generated.Noder, error) + APITokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.APITokenWhereInput) (*generated.APITokenConnection, error) + ActionPlans(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanWhereInput) (*generated.ActionPlanConnection, error) + ActionPlanHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanHistoryWhereInput) (*generated.ActionPlanHistoryConnection, error) + Contacts(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactWhereInput) (*generated.ContactConnection, error) + ContactHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactHistoryWhereInput) (*generated.ContactHistoryConnection, error) + Controls(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlWhereInput) (*generated.ControlConnection, error) + ControlHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlHistoryWhereInput) (*generated.ControlHistoryConnection, error) + ControlObjectives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveWhereInput) (*generated.ControlObjectiveConnection, error) + ControlObjectiveHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveHistoryWhereInput) (*generated.ControlObjectiveHistoryConnection, error) + DocumentDataSlice(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataWhereInput) (*generated.DocumentDataConnection, error) + DocumentDataHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataHistoryWhereInput) (*generated.DocumentDataHistoryConnection, error) + Entities(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityOrder, where *generated.EntityWhereInput) (*generated.EntityConnection, error) + EntityHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityHistoryOrder, where *generated.EntityHistoryWhereInput) (*generated.EntityHistoryConnection, error) + EntityTypes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeOrder, where *generated.EntityTypeWhereInput) (*generated.EntityTypeConnection, error) + EntityTypeHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeHistoryOrder, where *generated.EntityTypeHistoryWhereInput) (*generated.EntityTypeHistoryConnection, error) + Events(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventWhereInput) (*generated.EventConnection, error) + EventHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventHistoryWhereInput) (*generated.EventHistoryConnection, error) + Files(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileWhereInput) (*generated.FileConnection, error) + FileHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileHistoryWhereInput) (*generated.FileHistoryConnection, error) + Groups(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupOrder, where *generated.GroupWhereInput) (*generated.GroupConnection, error) + GroupHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupHistoryOrder, where *generated.GroupHistoryWhereInput) (*generated.GroupHistoryConnection, error) + GroupMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipWhereInput) (*generated.GroupMembershipConnection, error) + GroupMembershipHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipHistoryWhereInput) (*generated.GroupMembershipHistoryConnection, error) + GroupSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingWhereInput) (*generated.GroupSettingConnection, error) + GroupSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingHistoryWhereInput) (*generated.GroupSettingHistoryConnection, error) + Hushes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushOrder, where *generated.HushWhereInput) (*generated.HushConnection, error) + HushHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushHistoryOrder, where *generated.HushHistoryWhereInput) (*generated.HushHistoryConnection, error) + Integrations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) (*generated.IntegrationConnection, error) + IntegrationHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationHistoryOrder, where *generated.IntegrationHistoryWhereInput) (*generated.IntegrationHistoryConnection, error) + InternalPolicies(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyWhereInput) (*generated.InternalPolicyConnection, error) + InternalPolicyHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyHistoryWhereInput) (*generated.InternalPolicyHistoryConnection, error) + Invites(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) (*generated.InviteConnection, error) + Narratives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeWhereInput) (*generated.NarrativeConnection, error) + NarrativeHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeHistoryWhereInput) (*generated.NarrativeHistoryConnection, error) + Notes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteWhereInput) (*generated.NoteConnection, error) + NoteHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteHistoryWhereInput) (*generated.NoteHistoryConnection, error) + OrgMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipWhereInput) (*generated.OrgMembershipConnection, error) + OrgMembershipHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipHistoryWhereInput) (*generated.OrgMembershipHistoryConnection, error) + OrgSubscriptions(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionWhereInput) (*generated.OrgSubscriptionConnection, error) + OrgSubscriptionHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionHistoryWhereInput) (*generated.OrgSubscriptionHistoryConnection, error) + Organizations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) (*generated.OrganizationConnection, error) + OrganizationHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationHistoryOrder, where *generated.OrganizationHistoryWhereInput) (*generated.OrganizationHistoryConnection, error) + OrganizationSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingWhereInput) (*generated.OrganizationSettingConnection, error) + OrganizationSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingHistoryWhereInput) (*generated.OrganizationSettingHistoryConnection, error) + PersonalAccessTokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) (*generated.PersonalAccessTokenConnection, error) + Procedures(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureWhereInput) (*generated.ProcedureConnection, error) + ProcedureHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureHistoryWhereInput) (*generated.ProcedureHistoryConnection, error) + Programs(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramWhereInput) (*generated.ProgramConnection, error) + ProgramHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramHistoryWhereInput) (*generated.ProgramHistoryConnection, error) + ProgramMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipWhereInput) (*generated.ProgramMembershipConnection, error) + ProgramMembershipHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipHistoryWhereInput) (*generated.ProgramMembershipHistoryConnection, error) + Risks(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskWhereInput) (*generated.RiskConnection, error) + RiskHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskHistoryWhereInput) (*generated.RiskHistoryConnection, error) + Standards(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardWhereInput) (*generated.StandardConnection, error) + StandardHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardHistoryWhereInput) (*generated.StandardHistoryConnection, error) + Subcontrols(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolWhereInput) (*generated.SubcontrolConnection, error) + SubcontrolHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolHistoryWhereInput) (*generated.SubcontrolHistoryConnection, error) + Subscribers(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) (*generated.SubscriberConnection, error) + TfaSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TFASettingWhereInput) (*generated.TFASettingConnection, error) + Tasks(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskWhereInput) (*generated.TaskConnection, error) + TaskHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskHistoryWhereInput) (*generated.TaskHistoryConnection, error) + Templates(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateOrder, where *generated.TemplateWhereInput) (*generated.TemplateConnection, error) + TemplateHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateHistoryOrder, where *generated.TemplateHistoryWhereInput) (*generated.TemplateHistoryConnection, error) + Users(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserOrder, where *generated.UserWhereInput) (*generated.UserConnection, error) + UserHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserHistoryOrder, where *generated.UserHistoryWhereInput) (*generated.UserHistoryConnection, error) + UserSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingWhereInput) (*generated.UserSettingConnection, error) + UserSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingHistoryWhereInput) (*generated.UserSettingHistoryConnection, error) + ActionPlan(ctx context.Context, id string) (*generated.ActionPlan, error) + AdminAPITokenSearch(ctx context.Context, query string) (*model.APITokenSearchResult, error) + AdminActionPlanSearch(ctx context.Context, query string) (*model.ActionPlanSearchResult, error) + AdminContactSearch(ctx context.Context, query string) (*model.ContactSearchResult, error) + AdminControlSearch(ctx context.Context, query string) (*model.ControlSearchResult, error) + AdminControlObjectiveSearch(ctx context.Context, query string) (*model.ControlObjectiveSearchResult, error) + AdminDocumentDataSearch(ctx context.Context, query string) (*model.DocumentDataSearchResult, error) + AdminEntitySearch(ctx context.Context, query string) (*model.EntitySearchResult, error) + AdminEntityTypeSearch(ctx context.Context, query string) (*model.EntityTypeSearchResult, error) + AdminEventSearch(ctx context.Context, query string) (*model.EventSearchResult, error) + AdminFileSearch(ctx context.Context, query string) (*model.FileSearchResult, error) + AdminGroupSearch(ctx context.Context, query string) (*model.GroupSearchResult, error) + AdminGroupSettingSearch(ctx context.Context, query string) (*model.GroupSettingSearchResult, error) + AdminIntegrationSearch(ctx context.Context, query string) (*model.IntegrationSearchResult, error) + AdminInternalPolicySearch(ctx context.Context, query string) (*model.InternalPolicySearchResult, error) + AdminNarrativeSearch(ctx context.Context, query string) (*model.NarrativeSearchResult, error) + AdminOrgSubscriptionSearch(ctx context.Context, query string) (*model.OrgSubscriptionSearchResult, error) + AdminOrganizationSearch(ctx context.Context, query string) (*model.OrganizationSearchResult, error) + AdminOrganizationSettingSearch(ctx context.Context, query string) (*model.OrganizationSettingSearchResult, error) + AdminPersonalAccessTokenSearch(ctx context.Context, query string) (*model.PersonalAccessTokenSearchResult, error) + AdminProcedureSearch(ctx context.Context, query string) (*model.ProcedureSearchResult, error) + AdminProgramSearch(ctx context.Context, query string) (*model.ProgramSearchResult, error) + AdminRiskSearch(ctx context.Context, query string) (*model.RiskSearchResult, error) + AdminStandardSearch(ctx context.Context, query string) (*model.StandardSearchResult, error) + AdminSubcontrolSearch(ctx context.Context, query string) (*model.SubcontrolSearchResult, error) + AdminSubscriberSearch(ctx context.Context, query string) (*model.SubscriberSearchResult, error) + AdminTFASettingSearch(ctx context.Context, query string) (*model.TFASettingSearchResult, error) + AdminTaskSearch(ctx context.Context, query string) (*model.TaskSearchResult, error) + AdminTemplateSearch(ctx context.Context, query string) (*model.TemplateSearchResult, error) + AdminUserSearch(ctx context.Context, query string) (*model.UserSearchResult, error) + AdminUserSettingSearch(ctx context.Context, query string) (*model.UserSettingSearchResult, error) + APIToken(ctx context.Context, id string) (*generated.APIToken, error) + AuditLogs(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *model.AuditLogWhereInput) (*model.AuditLogConnection, error) + Contact(ctx context.Context, id string) (*generated.Contact, error) + Control(ctx context.Context, id string) (*generated.Control, error) + ControlObjective(ctx context.Context, id string) (*generated.ControlObjective, error) + DocumentData(ctx context.Context, id string) (*generated.DocumentData, error) + Entity(ctx context.Context, id string) (*generated.Entity, error) + EntityType(ctx context.Context, id string) (*generated.EntityType, error) + Event(ctx context.Context, id string) (*generated.Event, error) + File(ctx context.Context, id string) (*generated.File, error) + Group(ctx context.Context, id string) (*generated.Group, error) + GroupMembership(ctx context.Context, id string) (*generated.GroupMembership, error) + GroupSetting(ctx context.Context, id string) (*generated.GroupSetting, error) + Hush(ctx context.Context, id string) (*generated.Hush, error) + Integration(ctx context.Context, id string) (*generated.Integration, error) + InternalPolicy(ctx context.Context, id string) (*generated.InternalPolicy, error) + Invite(ctx context.Context, id string) (*generated.Invite, error) + Narrative(ctx context.Context, id string) (*generated.Narrative, error) + Organization(ctx context.Context, id string) (*generated.Organization, error) + OrganizationSetting(ctx context.Context, id string) (*generated.OrganizationSetting, error) + OrgMembership(ctx context.Context, id string) (*generated.OrgMembership, error) + OrgSubscription(ctx context.Context, id string) (*generated.OrgSubscription, error) + PersonalAccessToken(ctx context.Context, id string) (*generated.PersonalAccessToken, error) + Procedure(ctx context.Context, id string) (*generated.Procedure, error) + Program(ctx context.Context, id string) (*generated.Program, error) + ProgramMembership(ctx context.Context, id string) (*generated.ProgramMembership, error) + Risk(ctx context.Context, id string) (*generated.Risk, error) + APITokenSearch(ctx context.Context, query string) (*model.APITokenSearchResult, error) + ActionPlanSearch(ctx context.Context, query string) (*model.ActionPlanSearchResult, error) + ContactSearch(ctx context.Context, query string) (*model.ContactSearchResult, error) + ControlSearch(ctx context.Context, query string) (*model.ControlSearchResult, error) + ControlObjectiveSearch(ctx context.Context, query string) (*model.ControlObjectiveSearchResult, error) + DocumentDataSearch(ctx context.Context, query string) (*model.DocumentDataSearchResult, error) + EntitySearch(ctx context.Context, query string) (*model.EntitySearchResult, error) + EntityTypeSearch(ctx context.Context, query string) (*model.EntityTypeSearchResult, error) + EventSearch(ctx context.Context, query string) (*model.EventSearchResult, error) + FileSearch(ctx context.Context, query string) (*model.FileSearchResult, error) + GroupSearch(ctx context.Context, query string) (*model.GroupSearchResult, error) + GroupSettingSearch(ctx context.Context, query string) (*model.GroupSettingSearchResult, error) + IntegrationSearch(ctx context.Context, query string) (*model.IntegrationSearchResult, error) + InternalPolicySearch(ctx context.Context, query string) (*model.InternalPolicySearchResult, error) + NarrativeSearch(ctx context.Context, query string) (*model.NarrativeSearchResult, error) + OrgSubscriptionSearch(ctx context.Context, query string) (*model.OrgSubscriptionSearchResult, error) + OrganizationSearch(ctx context.Context, query string) (*model.OrganizationSearchResult, error) + OrganizationSettingSearch(ctx context.Context, query string) (*model.OrganizationSettingSearchResult, error) + PersonalAccessTokenSearch(ctx context.Context, query string) (*model.PersonalAccessTokenSearchResult, error) + ProcedureSearch(ctx context.Context, query string) (*model.ProcedureSearchResult, error) + ProgramSearch(ctx context.Context, query string) (*model.ProgramSearchResult, error) + RiskSearch(ctx context.Context, query string) (*model.RiskSearchResult, error) + StandardSearch(ctx context.Context, query string) (*model.StandardSearchResult, error) + SubcontrolSearch(ctx context.Context, query string) (*model.SubcontrolSearchResult, error) + SubscriberSearch(ctx context.Context, query string) (*model.SubscriberSearchResult, error) + TFASettingSearch(ctx context.Context, query string) (*model.TFASettingSearchResult, error) + TaskSearch(ctx context.Context, query string) (*model.TaskSearchResult, error) + TemplateSearch(ctx context.Context, query string) (*model.TemplateSearchResult, error) + UserSearch(ctx context.Context, query string) (*model.UserSearchResult, error) + UserSettingSearch(ctx context.Context, query string) (*model.UserSettingSearchResult, error) + Search(ctx context.Context, query string) (*model.SearchResultConnection, error) + AdminSearch(ctx context.Context, query string) (*model.SearchResultConnection, error) + Standard(ctx context.Context, id string) (*generated.Standard, error) + Subcontrol(ctx context.Context, id string) (*generated.Subcontrol, error) + Subscriber(ctx context.Context, email string) (*generated.Subscriber, error) + Task(ctx context.Context, id string) (*generated.Task, error) + Template(ctx context.Context, id string) (*generated.Template, error) + TfaSetting(ctx context.Context, id *string) (*generated.TFASetting, error) + User(ctx context.Context, id string) (*generated.User, error) + UserSetting(ctx context.Context, id string) (*generated.UserSetting, error) } -type Config struct { - Schema *ast.Schema - Resolvers ResolverRoot - Directives DirectiveRoot - Complexity ComplexityRoot +type CreateEntityInputResolver interface { + Note(ctx context.Context, obj *generated.CreateEntityInput, data *generated.CreateNoteInput) error } - -type ResolverRoot interface { - Mutation() MutationResolver - Query() QueryResolver - CreateEntityInput() CreateEntityInputResolver - CreateGroupInput() CreateGroupInputResolver - CreateOrganizationInput() CreateOrganizationInputResolver - UpdateEntityInput() UpdateEntityInputResolver - UpdateGroupInput() UpdateGroupInputResolver - UpdateOrganizationInput() UpdateOrganizationInputResolver - UpdateProgramInput() UpdateProgramInputResolver - UpdateTFASettingInput() UpdateTFASettingInputResolver +type CreateGroupInputResolver interface { + CreateGroupSettings(ctx context.Context, obj *generated.CreateGroupInput, data *generated.CreateGroupSettingInput) error } - -type DirectiveRoot struct { +type CreateOrganizationInputResolver interface { + CreateOrgSettings(ctx context.Context, obj *generated.CreateOrganizationInput, data *generated.CreateOrganizationSettingInput) error +} +type UpdateEntityInputResolver interface { + Note(ctx context.Context, obj *generated.UpdateEntityInput, data *generated.CreateNoteInput) error +} +type UpdateGroupInputResolver interface { + AddGroupMembers(ctx context.Context, obj *generated.UpdateGroupInput, data []*generated.CreateGroupMembershipInput) error + UpdateGroupSettings(ctx context.Context, obj *generated.UpdateGroupInput, data *generated.UpdateGroupSettingInput) error +} +type UpdateOrganizationInputResolver interface { + AddOrgMembers(ctx context.Context, obj *generated.UpdateOrganizationInput, data []*generated.CreateOrgMembershipInput) error + UpdateOrgSettings(ctx context.Context, obj *generated.UpdateOrganizationInput, data *generated.UpdateOrganizationSettingInput) error +} +type UpdateProgramInputResolver interface { + AddProgramMembers(ctx context.Context, obj *generated.UpdateProgramInput, data []*generated.CreateProgramMembershipInput) error +} +type UpdateTFASettingInputResolver interface { + RegenBackupCodes(ctx context.Context, obj *generated.UpdateTFASettingInput, data *bool) error } -type ComplexityRoot struct { - APIToken struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - ExpiresAt func(childComplexity int) int - ID func(childComplexity int) int - LastUsedAt func(childComplexity int) int - Name func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Scopes func(childComplexity int) int - Tags func(childComplexity int) int - Token func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - APITokenBulkCreatePayload struct { - APITokens func(childComplexity int) int - } +// endregion ************************** generated!.gotpl ************************** - APITokenConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } +// region ***************************** args.gotpl ***************************** - APITokenCreatePayload struct { - APIToken func(childComplexity int) int +func (ec *executionContext) field_Organization_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Organization_children_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } - - APITokenDeletePayload struct { - DeletedID func(childComplexity int) int + args["after"] = arg0 + arg1, err := ec.field_Organization_children_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } - - APITokenEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["first"] = arg1 + arg2, err := ec.field_Organization_children_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err } - - APITokenSearchResult struct { - APITokens func(childComplexity int) int + args["before"] = arg2 + arg3, err := ec.field_Organization_children_argsLast(ctx, rawArgs) + if err != nil { + return nil, err } - - APITokenUpdatePayload struct { - APIToken func(childComplexity int) int + args["last"] = arg3 + arg4, err := ec.field_Organization_children_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err } - - ActionPlan struct { - Control func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - DueDate func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Priority func(childComplexity int) int - Program func(childComplexity int) int - Risk func(childComplexity int) int - Source func(childComplexity int) int - Standard func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int + args["orderBy"] = arg4 + arg5, err := ec.field_Organization_children_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } - - ActionPlanBulkCreatePayload struct { - ActionPlans func(childComplexity int) int + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Organization_children_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - ActionPlanConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - ActionPlanCreatePayload struct { - ActionPlan func(childComplexity int) int - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - ActionPlanDeletePayload struct { - DeletedID func(childComplexity int) int +func (ec *executionContext) field_Organization_children_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - ActionPlanEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - ActionPlanHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - DueDate func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - Priority func(childComplexity int) int - Ref func(childComplexity int) int - Source func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } + var zeroVal *int + return zeroVal, nil +} - ActionPlanHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Organization_children_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - ActionPlanHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - ActionPlanSearchResult struct { - ActionPlans func(childComplexity int) int - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - ActionPlanUpdatePayload struct { - ActionPlan func(childComplexity int) int +func (ec *executionContext) field_Organization_children_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil } - AuditLog struct { - Changes func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - Table func(childComplexity int) int - Time func(childComplexity int) int - UpdatedBy func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - AuditLogConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal *int + return zeroVal, nil +} - AuditLogEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Organization_children_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.OrganizationOrder + return zeroVal, nil } - Contact struct { - Address func(childComplexity int) int - Company func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Email func(childComplexity int) int - Entities func(childComplexity int) int - Files func(childComplexity int) int - FullName func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - PhoneNumber func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - ContactBulkCreatePayload struct { - Contacts func(childComplexity int) int - } - - ContactConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ContactCreatePayload struct { - Contact func(childComplexity int) int - } - - ContactDeletePayload struct { - DeletedID func(childComplexity int) int - } - - ContactEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ContactHistory struct { - Address func(childComplexity int) int - Company func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Email func(childComplexity int) int - FullName func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - PhoneNumber func(childComplexity int) int - Ref func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - ContactHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ContactHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ContactSearchResult struct { - Contacts func(childComplexity int) int - } - - ContactUpdatePayload struct { - Contact func(childComplexity int) int - } - - Control struct { - ActionPlans func(childComplexity int) int - BlockedGroups func(childComplexity int) int - Class func(childComplexity int) int - ControlNumber func(childComplexity int) int - ControlObjectives func(childComplexity int) int - ControlType func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Editors func(childComplexity int) int - Family func(childComplexity int) int - ID func(childComplexity int) int - MappedFrameworks func(childComplexity int) int - Name func(childComplexity int) int - Narratives func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Procedures func(childComplexity int) int - Programs func(childComplexity int) int - Risks func(childComplexity int) int - Satisfies func(childComplexity int) int - Source func(childComplexity int) int - Standard func(childComplexity int) int - Status func(childComplexity int) int - Subcontrols func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - Viewers func(childComplexity int) int - } - - ControlBulkCreatePayload struct { - Controls func(childComplexity int) int - } - - ControlConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ControlCreatePayload struct { - Control func(childComplexity int) int - } - - ControlDeletePayload struct { - DeletedID func(childComplexity int) int - } - - ControlEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ControlHistory struct { - Class func(childComplexity int) int - ControlNumber func(childComplexity int) int - ControlType func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Family func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - MappedFrameworks func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Satisfies func(childComplexity int) int - Source func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - } - - ControlHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ControlHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ControlObjective struct { - BlockedGroups func(childComplexity int) int - Class func(childComplexity int) int - ControlNumber func(childComplexity int) int - ControlObjectiveType func(childComplexity int) int - Controls func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Editors func(childComplexity int) int - Family func(childComplexity int) int - ID func(childComplexity int) int - InternalPolicies func(childComplexity int) int - MappedFrameworks func(childComplexity int) int - Name func(childComplexity int) int - Narratives func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Procedures func(childComplexity int) int - Programs func(childComplexity int) int - Risks func(childComplexity int) int - Source func(childComplexity int) int - Standard func(childComplexity int) int - Status func(childComplexity int) int - Subcontrols func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - Viewers func(childComplexity int) int - } - - ControlObjectiveBulkCreatePayload struct { - ControlObjectives func(childComplexity int) int - } - - ControlObjectiveConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ControlObjectiveCreatePayload struct { - ControlObjective func(childComplexity int) int - } - - ControlObjectiveDeletePayload struct { - DeletedID func(childComplexity int) int - } - - ControlObjectiveEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ControlObjectiveHistory struct { - Class func(childComplexity int) int - ControlNumber func(childComplexity int) int - ControlObjectiveType func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Family func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - MappedFrameworks func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Source func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) } - ControlObjectiveHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal *generated.OrganizationOrder + return zeroVal, nil +} - ControlObjectiveHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Organization_children_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil } - ControlObjectiveSearchResult struct { - ControlObjectives func(childComplexity int) int - } - - ControlObjectiveUpdatePayload struct { - ControlObjective func(childComplexity int) int - } - - ControlSearchResult struct { - Controls func(childComplexity int) int - } - - ControlUpdatePayload struct { - Control func(childComplexity int) int - } - - DocumentData struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - Data func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Entity func(childComplexity int) int - Files func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Tags func(childComplexity int) int - Template func(childComplexity int) int - TemplateID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) } - DocumentDataBulkCreatePayload struct { - DocumentData func(childComplexity int) int - } + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil +} - DocumentDataConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query___type_argsName(ctx, rawArgs) + if err != nil { + return nil, err } - - DocumentDataCreatePayload struct { - DocumentData func(childComplexity int) int + args["name"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query___type_argsName( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["name"] + if !ok { + var zeroVal string + return zeroVal, nil } - DocumentDataDeletePayload struct { - DeletedID func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("name")) + if tmp, ok := rawArgs["name"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - DocumentDataEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - DocumentDataHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - Data func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - TemplateID func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlanHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlanHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } - - DocumentDataHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + args["after"] = arg0 + arg1, err := ec.field_Query_actionPlanHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } - - DocumentDataHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["first"] = arg1 + arg2, err := ec.field_Query_actionPlanHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err } - - DocumentDataSearchResult struct { - DocumentData func(childComplexity int) int + args["before"] = arg2 + arg3, err := ec.field_Query_actionPlanHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err } - - DocumentDataUpdatePayload struct { - DocumentData func(childComplexity int) int + args["last"] = arg3 + arg4, err := ec.field_Query_actionPlanHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } - - Entity struct { - Contacts func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - DisplayName func(childComplexity int) int - Documents func(childComplexity int) int - Domains func(childComplexity int) int - EntityType func(childComplexity int) int - EntityTypeID func(childComplexity int) int - Files func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Notes func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_actionPlanHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - EntityBulkCreatePayload struct { - Entities func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - EntityConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - EntityCreatePayload struct { - Entity func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlanHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - EntityDeletePayload struct { - DeletedID func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - EntityEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal *int + return zeroVal, nil +} - EntityHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - DisplayName func(childComplexity int) int - Domains func(childComplexity int) int - EntityTypeID func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlanHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - EntityHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - EntityHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - EntitySearchResult struct { - Entities func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlanHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil } - EntityType struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Entities func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - EntityTypeBulkCreatePayload struct { - EntityTypes func(childComplexity int) int - } + var zeroVal *int + return zeroVal, nil +} - EntityTypeConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlanHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ActionPlanHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ActionPlanHistoryWhereInput + return zeroVal, nil } - EntityTypeCreatePayload struct { - EntityType func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx, tmp) } - EntityTypeDeletePayload struct { - DeletedID func(childComplexity int) int - } + var zeroVal *generated.ActionPlanHistoryWhereInput + return zeroVal, nil +} - EntityTypeEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlanSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - EntityTypeHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_actionPlanSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - EntityTypeHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - EntityTypeHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - EntityTypeSearchResult struct { - EntityTypes func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlan_argsID(ctx, rawArgs) + if err != nil { + return nil, err } - - EntityTypeUpdatePayload struct { - EntityType func(childComplexity int) int + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_actionPlan_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil } - EntityUpdatePayload struct { - Entity func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) } - Event struct { - CorrelationID func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - EventID func(childComplexity int) int - EventType func(childComplexity int) int - File func(childComplexity int) int - Group func(childComplexity int) int - Groupmembership func(childComplexity int) int - Hush func(childComplexity int) int - ID func(childComplexity int) int - Integration func(childComplexity int) int - Invite func(childComplexity int) int - Metadata func(childComplexity int) int - Organization func(childComplexity int) int - Orgmembership func(childComplexity int) int - PersonalAccessToken func(childComplexity int) int - Subscriber func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - EventBulkCreatePayload struct { - Events func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlans_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_actionPlans_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err } - - EventConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + args["after"] = arg0 + arg1, err := ec.field_Query_actionPlans_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err } - - EventCreatePayload struct { - Event func(childComplexity int) int + args["first"] = arg1 + arg2, err := ec.field_Query_actionPlans_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err } - - EventDeletePayload struct { - DeletedID func(childComplexity int) int + args["before"] = arg2 + arg3, err := ec.field_Query_actionPlans_argsLast(ctx, rawArgs) + if err != nil { + return nil, err } - - EventEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["last"] = arg3 + arg4, err := ec.field_Query_actionPlans_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } - - EventHistory struct { - CorrelationID func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - EventID func(childComplexity int) int - EventType func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Metadata func(childComplexity int) int - Operation func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - EventHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - EventHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - EventSearchResult struct { - Events func(childComplexity int) int - } - - EventUpdatePayload struct { - Event func(childComplexity int) int - } - - File struct { - CategoryType func(childComplexity int) int - Contact func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - DetectedContentType func(childComplexity int) int - DetectedMimeType func(childComplexity int) int - DocumentData func(childComplexity int) int - Entity func(childComplexity int) int - Events func(childComplexity int) int - Group func(childComplexity int) int - ID func(childComplexity int) int - Md5Hash func(childComplexity int) int - Organization func(childComplexity int) int - OrganizationSetting func(childComplexity int) int - PersistedFileSize func(childComplexity int) int - Program func(childComplexity int) int - ProvidedFileExtension func(childComplexity int) int - ProvidedFileName func(childComplexity int) int - ProvidedFileSize func(childComplexity int) int - StoragePath func(childComplexity int) int - StorageScheme func(childComplexity int) int - StorageVolume func(childComplexity int) int - StoreKey func(childComplexity int) int - Tags func(childComplexity int) int - Template func(childComplexity int) int - URI func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int - UserSetting func(childComplexity int) int - } - - FileConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - FileDeletePayload struct { - DeletedID func(childComplexity int) int - } - - FileEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - FileHistory struct { - CategoryType func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - DetectedContentType func(childComplexity int) int - DetectedMimeType func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Md5Hash func(childComplexity int) int - Operation func(childComplexity int) int - PersistedFileSize func(childComplexity int) int - ProvidedFileExtension func(childComplexity int) int - ProvidedFileName func(childComplexity int) int - ProvidedFileSize func(childComplexity int) int - Ref func(childComplexity int) int - StoragePath func(childComplexity int) int - StorageScheme func(childComplexity int) int - StorageVolume func(childComplexity int) int - StoreKey func(childComplexity int) int - Tags func(childComplexity int) int - URI func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - FileHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - FileHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - FileSearchResult struct { - Files func(childComplexity int) int - } - - Group struct { - ControlBlockedGroups func(childComplexity int) int - ControlCreators func(childComplexity int) int - ControlEditors func(childComplexity int) int - ControlObjectiveBlockedGroups func(childComplexity int) int - ControlObjectiveCreators func(childComplexity int) int - ControlObjectiveEditors func(childComplexity int) int - ControlObjectiveViewers func(childComplexity int) int - ControlViewers func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - DisplayName func(childComplexity int) int - Events func(childComplexity int) int - Files func(childComplexity int) int - GravatarLogoURL func(childComplexity int) int - GroupCreators func(childComplexity int) int - ID func(childComplexity int) int - Integrations func(childComplexity int) int - InternalPolicyBlockedGroups func(childComplexity int) int - InternalPolicyCreators func(childComplexity int) int - InternalPolicyEditors func(childComplexity int) int - LogoURL func(childComplexity int) int - Members func(childComplexity int) int - Name func(childComplexity int) int - NarrativeBlockedGroups func(childComplexity int) int - NarrativeCreators func(childComplexity int) int - NarrativeEditors func(childComplexity int) int - NarrativeViewers func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - ProcedureBlockedGroups func(childComplexity int) int - ProcedureCreators func(childComplexity int) int - ProcedureEditors func(childComplexity int) int - ProgramBlockedGroups func(childComplexity int) int - ProgramCreators func(childComplexity int) int - ProgramEditors func(childComplexity int) int - ProgramViewers func(childComplexity int) int - RiskBlockedGroups func(childComplexity int) int - RiskCreators func(childComplexity int) int - RiskEditors func(childComplexity int) int - RiskViewers func(childComplexity int) int - Setting func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - TemplateCreators func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Users func(childComplexity int) int - } - - GroupBulkCreatePayload struct { - Groups func(childComplexity int) int - } - - GroupConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - GroupCreatePayload struct { - Group func(childComplexity int) int - } - - GroupDeletePayload struct { - DeletedID func(childComplexity int) int - } - - GroupEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - GroupHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - DisplayName func(childComplexity int) int - GravatarLogoURL func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - LogoURL func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - GroupHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - GroupHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - GroupMembership struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Events func(childComplexity int) int - Group func(childComplexity int) int - GroupID func(childComplexity int) int - ID func(childComplexity int) int - Role func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int - UserID func(childComplexity int) int + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_actionPlans_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - GroupMembershipBulkCreatePayload struct { - GroupMemberships func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - GroupMembershipConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - GroupMembershipCreatePayload struct { - GroupMembership func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlans_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - GroupMembershipDeletePayload struct { - DeletedID func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - GroupMembershipEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal *int + return zeroVal, nil +} - GroupMembershipHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - GroupID func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - Ref func(childComplexity int) int - Role func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - UserID func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlans_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - GroupMembershipHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - GroupMembershipHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - GroupMembershipUpdatePayload struct { - GroupMembership func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlans_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil } - GroupSearchResult struct { - Groups func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - GroupSetting struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Group func(childComplexity int) int - GroupID func(childComplexity int) int - ID func(childComplexity int) int - JoinPolicy func(childComplexity int) int - SyncToGithub func(childComplexity int) int - SyncToSlack func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Visibility func(childComplexity int) int - } + var zeroVal *int + return zeroVal, nil +} - GroupSettingBulkCreatePayload struct { - GroupSettings func(childComplexity int) int +func (ec *executionContext) field_Query_actionPlans_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ActionPlanWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ActionPlanWhereInput + return zeroVal, nil } - GroupSettingConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, tmp) } - GroupSettingCreatePayload struct { - GroupSetting func(childComplexity int) int - } + var zeroVal *generated.ActionPlanWhereInput + return zeroVal, nil +} - GroupSettingDeletePayload struct { - DeletedID func(childComplexity int) int +func (ec *executionContext) field_Query_adminAPITokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminAPITokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - GroupSettingEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminAPITokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - GroupSettingHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - GroupID func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - JoinPolicy func(childComplexity int) int - Operation func(childComplexity int) int - Ref func(childComplexity int) int - SyncToGithub func(childComplexity int) int - SyncToSlack func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Visibility func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - GroupSettingHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - GroupSettingHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Query_adminActionPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminActionPlanSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - GroupSettingSearchResult struct { - GroupSettings func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminActionPlanSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - GroupSettingUpdatePayload struct { - GroupSetting func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - GroupUpdatePayload struct { - Group func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - Hush struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Events func(childComplexity int) int - ID func(childComplexity int) int - Integrations func(childComplexity int) int - Kind func(childComplexity int) int - Name func(childComplexity int) int - Organization func(childComplexity int) int - SecretName func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int +func (ec *executionContext) field_Query_adminContactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminContactSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - HushBulkCreatePayload struct { - Hushes func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminContactSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - HushConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - HushCreatePayload struct { - Hush func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - HushDeletePayload struct { - DeletedID func(childComplexity int) int +func (ec *executionContext) field_Query_adminControlObjectiveSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminControlObjectiveSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - HushEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminControlObjectiveSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - HushHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Kind func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - Ref func(childComplexity int) int - SecretName func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - HushHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - HushHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Query_adminControlSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminControlSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - HushUpdatePayload struct { - Hush func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminControlSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - Integration struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Events func(childComplexity int) int - ID func(childComplexity int) int - Kind func(childComplexity int) int - Name func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Secrets func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - IntegrationBulkCreatePayload struct { - Integrations func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - IntegrationConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query_adminDocumentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminDocumentDataSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - IntegrationCreatePayload struct { - Integration func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminDocumentDataSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - IntegrationDeletePayload struct { - DeletedID func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - IntegrationEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - IntegrationHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Kind func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int +func (ec *executionContext) field_Query_adminEntitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEntitySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - IntegrationHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEntitySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - IntegrationHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - IntegrationSearchResult struct { - Integrations func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - IntegrationUpdatePayload struct { - Integration func(childComplexity int) int +func (ec *executionContext) field_Query_adminEntityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEntityTypeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - InternalPolicy struct { - Background func(childComplexity int) int - BlockedGroups func(childComplexity int) int - ControlObjectives func(childComplexity int) int - Controls func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Editors func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Narratives func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - PolicyType func(childComplexity int) int - Procedures func(childComplexity int) int - Programs func(childComplexity int) int - PurposeAndScope func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEntityTypeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - InternalPolicyBulkCreatePayload struct { - InternalPolicies func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - InternalPolicyConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - InternalPolicyCreatePayload struct { - InternalPolicy func(childComplexity int) int +func (ec *executionContext) field_Query_adminEventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminEventSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - InternalPolicyDeletePayload struct { - DeletedID func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminEventSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - InternalPolicyEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - InternalPolicyHistory struct { - Background func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - PolicyType func(childComplexity int) int - PurposeAndScope func(childComplexity int) int - Ref func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - } - - InternalPolicyHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - InternalPolicyHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - InternalPolicySearchResult struct { - InternalPolicies func(childComplexity int) int - } - - InternalPolicyUpdatePayload struct { - InternalPolicy func(childComplexity int) int - } - - Invite struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Events func(childComplexity int) int - Expires func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Recipient func(childComplexity int) int - RequestorID func(childComplexity int) int - Role func(childComplexity int) int - SendAttempts func(childComplexity int) int - Status func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - InviteBulkCreatePayload struct { - Invites func(childComplexity int) int - } - - InviteConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - InviteCreatePayload struct { - Invite func(childComplexity int) int - } - - InviteDeletePayload struct { - DeletedID func(childComplexity int) int - } - - InviteEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - InviteUpdatePayload struct { - Invite func(childComplexity int) int - } - - Mutation struct { - CreateAPIToken func(childComplexity int, input generated.CreateAPITokenInput) int - CreateActionPlan func(childComplexity int, input generated.CreateActionPlanInput) int - CreateBulkAPIToken func(childComplexity int, input []*generated.CreateAPITokenInput) int - CreateBulkActionPlan func(childComplexity int, input []*generated.CreateActionPlanInput) int - CreateBulkCSVAPIToken func(childComplexity int, input graphql.Upload) int - CreateBulkCSVActionPlan func(childComplexity int, input graphql.Upload) int - CreateBulkCSVContact func(childComplexity int, input graphql.Upload) int - CreateBulkCSVControl func(childComplexity int, input graphql.Upload) int - CreateBulkCSVControlObjective func(childComplexity int, input graphql.Upload) int - CreateBulkCSVDocumentData func(childComplexity int, input graphql.Upload) int - CreateBulkCSVEntity func(childComplexity int, input graphql.Upload) int - CreateBulkCSVEntityType func(childComplexity int, input graphql.Upload) int - CreateBulkCSVEvent func(childComplexity int, input graphql.Upload) int - CreateBulkCSVGroup func(childComplexity int, input graphql.Upload) int - CreateBulkCSVGroupMembership func(childComplexity int, input graphql.Upload) int - CreateBulkCSVGroupSetting func(childComplexity int, input graphql.Upload) int - CreateBulkCSVHush func(childComplexity int, input graphql.Upload) int - CreateBulkCSVIntegration func(childComplexity int, input graphql.Upload) int - CreateBulkCSVInternalPolicy func(childComplexity int, input graphql.Upload) int - CreateBulkCSVInvite func(childComplexity int, input graphql.Upload) int - CreateBulkCSVNarrative func(childComplexity int, input graphql.Upload) int - CreateBulkCSVOrgMembership func(childComplexity int, input graphql.Upload) int - CreateBulkCSVOrgSubscription func(childComplexity int, input graphql.Upload) int - CreateBulkCSVOrganization func(childComplexity int, input graphql.Upload) int - CreateBulkCSVOrganizationSetting func(childComplexity int, input graphql.Upload) int - CreateBulkCSVPersonalAccessToken func(childComplexity int, input graphql.Upload) int - CreateBulkCSVProcedure func(childComplexity int, input graphql.Upload) int - CreateBulkCSVProgram func(childComplexity int, input graphql.Upload) int - CreateBulkCSVProgramMembership func(childComplexity int, input graphql.Upload) int - CreateBulkCSVRisk func(childComplexity int, input graphql.Upload) int - CreateBulkCSVStandard func(childComplexity int, input graphql.Upload) int - CreateBulkCSVSubcontrol func(childComplexity int, input graphql.Upload) int - CreateBulkCSVSubscriber func(childComplexity int, input graphql.Upload) int - CreateBulkCSVTask func(childComplexity int, input graphql.Upload) int - CreateBulkCSVTemplate func(childComplexity int, input graphql.Upload) int - CreateBulkCSVUserSetting func(childComplexity int, input graphql.Upload) int - CreateBulkContact func(childComplexity int, input []*generated.CreateContactInput) int - CreateBulkControl func(childComplexity int, input []*generated.CreateControlInput) int - CreateBulkControlObjective func(childComplexity int, input []*generated.CreateControlObjectiveInput) int - CreateBulkDocumentData func(childComplexity int, input []*generated.CreateDocumentDataInput) int - CreateBulkEntity func(childComplexity int, input []*generated.CreateEntityInput) int - CreateBulkEntityType func(childComplexity int, input []*generated.CreateEntityTypeInput) int - CreateBulkEvent func(childComplexity int, input []*generated.CreateEventInput) int - CreateBulkGroup func(childComplexity int, input []*generated.CreateGroupInput) int - CreateBulkGroupMembership func(childComplexity int, input []*generated.CreateGroupMembershipInput) int - CreateBulkGroupSetting func(childComplexity int, input []*generated.CreateGroupSettingInput) int - CreateBulkHush func(childComplexity int, input []*generated.CreateHushInput) int - CreateBulkIntegration func(childComplexity int, input []*generated.CreateIntegrationInput) int - CreateBulkInternalPolicy func(childComplexity int, input []*generated.CreateInternalPolicyInput) int - CreateBulkInvite func(childComplexity int, input []*generated.CreateInviteInput) int - CreateBulkNarrative func(childComplexity int, input []*generated.CreateNarrativeInput) int - CreateBulkOrgMembership func(childComplexity int, input []*generated.CreateOrgMembershipInput) int - CreateBulkOrgSubscription func(childComplexity int, input []*generated.CreateOrgSubscriptionInput) int - CreateBulkOrganization func(childComplexity int, input []*generated.CreateOrganizationInput) int - CreateBulkOrganizationSetting func(childComplexity int, input []*generated.CreateOrganizationSettingInput) int - CreateBulkPersonalAccessToken func(childComplexity int, input []*generated.CreatePersonalAccessTokenInput) int - CreateBulkProcedure func(childComplexity int, input []*generated.CreateProcedureInput) int - CreateBulkProgram func(childComplexity int, input []*generated.CreateProgramInput) int - CreateBulkProgramMembership func(childComplexity int, input []*generated.CreateProgramMembershipInput) int - CreateBulkRisk func(childComplexity int, input []*generated.CreateRiskInput) int - CreateBulkStandard func(childComplexity int, input []*generated.CreateStandardInput) int - CreateBulkSubcontrol func(childComplexity int, input []*generated.CreateSubcontrolInput) int - CreateBulkSubscriber func(childComplexity int, input []*generated.CreateSubscriberInput) int - CreateBulkTask func(childComplexity int, input []*generated.CreateTaskInput) int - CreateBulkTemplate func(childComplexity int, input []*generated.CreateTemplateInput) int - CreateBulkUserSetting func(childComplexity int, input []*generated.CreateUserSettingInput) int - CreateContact func(childComplexity int, input generated.CreateContactInput) int - CreateControl func(childComplexity int, input generated.CreateControlInput) int - CreateControlObjective func(childComplexity int, input generated.CreateControlObjectiveInput) int - CreateControlWithSubcontrols func(childComplexity int, input CreateControlWithSubcontrolsInput) int - CreateDocumentData func(childComplexity int, input generated.CreateDocumentDataInput) int - CreateEntity func(childComplexity int, input generated.CreateEntityInput) int - CreateEntityType func(childComplexity int, input generated.CreateEntityTypeInput) int - CreateEvent func(childComplexity int, input generated.CreateEventInput) int - CreateFullProgram func(childComplexity int, input CreateFullProgramInput) int - CreateGroup func(childComplexity int, input generated.CreateGroupInput) int - CreateGroupMembership func(childComplexity int, input generated.CreateGroupMembershipInput) int - CreateGroupSetting func(childComplexity int, input generated.CreateGroupSettingInput) int - CreateHush func(childComplexity int, input generated.CreateHushInput) int - CreateIntegration func(childComplexity int, input generated.CreateIntegrationInput) int - CreateInternalPolicy func(childComplexity int, input generated.CreateInternalPolicyInput) int - CreateInvite func(childComplexity int, input generated.CreateInviteInput) int - CreateNarrative func(childComplexity int, input generated.CreateNarrativeInput) int - CreateOrgMembership func(childComplexity int, input generated.CreateOrgMembershipInput) int - CreateOrgSubscription func(childComplexity int, input generated.CreateOrgSubscriptionInput) int - CreateOrganization func(childComplexity int, input generated.CreateOrganizationInput) int - CreateOrganizationSetting func(childComplexity int, input generated.CreateOrganizationSettingInput) int - CreatePersonalAccessToken func(childComplexity int, input generated.CreatePersonalAccessTokenInput) int - CreateProcedure func(childComplexity int, input generated.CreateProcedureInput) int - CreateProgram func(childComplexity int, input generated.CreateProgramInput) int - CreateProgramMembership func(childComplexity int, input generated.CreateProgramMembershipInput) int - CreateProgramWithMembers func(childComplexity int, input CreateProgramWithMembersInput) int - CreateRisk func(childComplexity int, input generated.CreateRiskInput) int - CreateStandard func(childComplexity int, input generated.CreateStandardInput) int - CreateSubcontrol func(childComplexity int, input generated.CreateSubcontrolInput) int - CreateSubscriber func(childComplexity int, input generated.CreateSubscriberInput) int - CreateTFASetting func(childComplexity int, input generated.CreateTFASettingInput) int - CreateTask func(childComplexity int, input generated.CreateTaskInput) int - CreateTemplate func(childComplexity int, input generated.CreateTemplateInput) int - CreateUser func(childComplexity int, input generated.CreateUserInput, avatarFile *graphql.Upload) int - CreateUserSetting func(childComplexity int, input generated.CreateUserSettingInput) int - DeleteAPIToken func(childComplexity int, id string) int - DeleteActionPlan func(childComplexity int, id string) int - DeleteContact func(childComplexity int, id string) int - DeleteControl func(childComplexity int, id string) int - DeleteControlObjective func(childComplexity int, id string) int - DeleteDocumentData func(childComplexity int, id string) int - DeleteEntity func(childComplexity int, id string) int - DeleteEntityType func(childComplexity int, id string) int - DeleteEvent func(childComplexity int, id string) int - DeleteFile func(childComplexity int, id string) int - DeleteGroup func(childComplexity int, id string) int - DeleteGroupMembership func(childComplexity int, id string) int - DeleteGroupSetting func(childComplexity int, id string) int - DeleteHush func(childComplexity int, id string) int - DeleteIntegration func(childComplexity int, id string) int - DeleteInternalPolicy func(childComplexity int, id string) int - DeleteInvite func(childComplexity int, id string) int - DeleteNarrative func(childComplexity int, id string) int - DeleteOrgMembership func(childComplexity int, id string) int - DeleteOrgSubscription func(childComplexity int, id string) int - DeleteOrganization func(childComplexity int, id string) int - DeleteOrganizationSetting func(childComplexity int, id string) int - DeletePersonalAccessToken func(childComplexity int, id string) int - DeleteProcedure func(childComplexity int, id string) int - DeleteProgram func(childComplexity int, id string) int - DeleteProgramMembership func(childComplexity int, id string) int - DeleteRisk func(childComplexity int, id string) int - DeleteStandard func(childComplexity int, id string) int - DeleteSubcontrol func(childComplexity int, id string) int - DeleteSubscriber func(childComplexity int, email string, ownerID *string) int - DeleteTask func(childComplexity int, id string) int - DeleteTemplate func(childComplexity int, id string) int - DeleteUser func(childComplexity int, id string) int - UpdateAPIToken func(childComplexity int, id string, input generated.UpdateAPITokenInput) int - UpdateActionPlan func(childComplexity int, id string, input generated.UpdateActionPlanInput) int - UpdateContact func(childComplexity int, id string, input generated.UpdateContactInput) int - UpdateControl func(childComplexity int, id string, input generated.UpdateControlInput) int - UpdateControlObjective func(childComplexity int, id string, input generated.UpdateControlObjectiveInput) int - UpdateDocumentData func(childComplexity int, id string, input generated.UpdateDocumentDataInput) int - UpdateEntity func(childComplexity int, id string, input generated.UpdateEntityInput) int - UpdateEntityType func(childComplexity int, id string, input generated.UpdateEntityTypeInput) int - UpdateEvent func(childComplexity int, id string, input generated.UpdateEventInput) int - UpdateGroup func(childComplexity int, id string, input generated.UpdateGroupInput) int - UpdateGroupMembership func(childComplexity int, id string, input generated.UpdateGroupMembershipInput) int - UpdateGroupSetting func(childComplexity int, id string, input generated.UpdateGroupSettingInput) int - UpdateHush func(childComplexity int, id string, input generated.UpdateHushInput) int - UpdateIntegration func(childComplexity int, id string, input generated.UpdateIntegrationInput) int - UpdateInternalPolicy func(childComplexity int, id string, input generated.UpdateInternalPolicyInput) int - UpdateInvite func(childComplexity int, id string, input generated.UpdateInviteInput) int - UpdateNarrative func(childComplexity int, id string, input generated.UpdateNarrativeInput) int - UpdateOrgMembership func(childComplexity int, id string, input generated.UpdateOrgMembershipInput) int - UpdateOrgSubscription func(childComplexity int, id string, input generated.UpdateOrgSubscriptionInput) int - UpdateOrganization func(childComplexity int, id string, input generated.UpdateOrganizationInput) int - UpdateOrganizationSetting func(childComplexity int, id string, input generated.UpdateOrganizationSettingInput) int - UpdatePersonalAccessToken func(childComplexity int, id string, input generated.UpdatePersonalAccessTokenInput) int - UpdateProcedure func(childComplexity int, id string, input generated.UpdateProcedureInput) int - UpdateProgram func(childComplexity int, id string, input generated.UpdateProgramInput) int - UpdateProgramMembership func(childComplexity int, id string, input generated.UpdateProgramMembershipInput) int - UpdateRisk func(childComplexity int, id string, input generated.UpdateRiskInput) int - UpdateStandard func(childComplexity int, id string, input generated.UpdateStandardInput) int - UpdateSubcontrol func(childComplexity int, id string, input generated.UpdateSubcontrolInput) int - UpdateSubscriber func(childComplexity int, email string, input generated.UpdateSubscriberInput) int - UpdateTFASetting func(childComplexity int, input generated.UpdateTFASettingInput) int - UpdateTask func(childComplexity int, id string, input generated.UpdateTaskInput) int - UpdateTemplate func(childComplexity int, id string, input generated.UpdateTemplateInput) int - UpdateUser func(childComplexity int, id string, input generated.UpdateUserInput, avatarFile *graphql.Upload) int - UpdateUserSetting func(childComplexity int, id string, input generated.UpdateUserSettingInput) int - } - - Narrative struct { - BlockedGroups func(childComplexity int) int - Control func(childComplexity int) int - ControlObjective func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Editors func(childComplexity int) int - ID func(childComplexity int) int - InternalPolicy func(childComplexity int) int - Name func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Procedure func(childComplexity int) int - Programs func(childComplexity int) int - Satisfies func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Viewers func(childComplexity int) int - } - - NarrativeBulkCreatePayload struct { - Narratives func(childComplexity int) int - } - - NarrativeConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - NarrativeCreatePayload struct { - Narrative func(childComplexity int) int - } - - NarrativeDeletePayload struct { - DeletedID func(childComplexity int) int - } - - NarrativeEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - NarrativeHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Satisfies func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - NarrativeHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - NarrativeHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - NarrativeSearchResult struct { - Narratives func(childComplexity int) int - } - - NarrativeUpdatePayload struct { - Narrative func(childComplexity int) int - } - - Note struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Entity func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Program func(childComplexity int) int - Subcontrols func(childComplexity int) int - Tags func(childComplexity int) int - Text func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - NoteConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query_adminFileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminFileSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - NoteEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminFileSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - NoteHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - Text func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - NoteHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - NoteHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Query_adminGroupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminGroupSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - OrgMembership struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Events func(childComplexity int) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - OrganizationID func(childComplexity int) int - Role func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int - UserID func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminGroupSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - OrgMembershipBulkCreatePayload struct { - OrgMemberships func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - OrgMembershipConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - OrgMembershipCreatePayload struct { - OrgMembership func(childComplexity int) int +func (ec *executionContext) field_Query_adminGroupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminGroupSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - OrgMembershipDeletePayload struct { - DeletedID func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminGroupSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - OrgMembershipEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - OrgMembershipHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - OrganizationID func(childComplexity int) int - Ref func(childComplexity int) int - Role func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - UserID func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - OrgMembershipHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query_adminIntegrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminIntegrationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - OrgMembershipHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminIntegrationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - OrgMembershipUpdatePayload struct { - OrgMembership func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - OrgSubscription struct { - Active func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - ExpiresAt func(childComplexity int) int - Features func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - ProductTier func(childComplexity int) int - StripeCustomerID func(childComplexity int) int - StripeProductTierID func(childComplexity int) int - StripeSubscriptionID func(childComplexity int) int - StripeSubscriptionStatus func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - OrgSubscriptionBulkCreatePayload struct { - OrgSubscriptions func(childComplexity int) int - } - - OrgSubscriptionConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - OrgSubscriptionCreatePayload struct { - OrgSubscription func(childComplexity int) int - } - - OrgSubscriptionDeletePayload struct { - DeletedID func(childComplexity int) int - } - - OrgSubscriptionEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - OrgSubscriptionHistory struct { - Active func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - ExpiresAt func(childComplexity int) int - Features func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - ProductTier func(childComplexity int) int - Ref func(childComplexity int) int - StripeCustomerID func(childComplexity int) int - StripeProductTierID func(childComplexity int) int - StripeSubscriptionID func(childComplexity int) int - StripeSubscriptionStatus func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - OrgSubscriptionHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - OrgSubscriptionHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - OrgSubscriptionSearchResult struct { - OrgSubscriptions func(childComplexity int) int - } - - OrgSubscriptionUpdatePayload struct { - OrgSubscription func(childComplexity int) int - } - - Organization struct { - APITokens func(childComplexity int) int - AvatarRemoteURL func(childComplexity int) int - Children func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) int - Contacts func(childComplexity int) int - ControlCreators func(childComplexity int) int - ControlObjectiveCreators func(childComplexity int) int - ControlObjectives func(childComplexity int) int - Controls func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DedicatedDb func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - DisplayName func(childComplexity int) int - DocumentData func(childComplexity int) int - Entities func(childComplexity int) int - EntityTypes func(childComplexity int) int - Events func(childComplexity int) int - Files func(childComplexity int) int - GroupCreators func(childComplexity int) int - Groups func(childComplexity int) int - ID func(childComplexity int) int - Integrations func(childComplexity int) int - InternalPolicies func(childComplexity int) int - InternalPolicyCreators func(childComplexity int) int - Invites func(childComplexity int) int - Members func(childComplexity int) int - Name func(childComplexity int) int - NarrativeCreators func(childComplexity int) int - Narratives func(childComplexity int) int - Notes func(childComplexity int) int - OrgSubscriptions func(childComplexity int) int - Parent func(childComplexity int) int - PersonalAccessTokens func(childComplexity int) int - PersonalOrg func(childComplexity int) int - ProcedureCreators func(childComplexity int) int - Procedures func(childComplexity int) int - ProgramCreators func(childComplexity int) int - Programs func(childComplexity int) int - RiskCreators func(childComplexity int) int - Risks func(childComplexity int) int - Secrets func(childComplexity int) int - Setting func(childComplexity int) int - Subcontrols func(childComplexity int) int - Subscribers func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - TemplateCreators func(childComplexity int) int - Templates func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Users func(childComplexity int) int - } - - OrganizationBulkCreatePayload struct { - Organizations func(childComplexity int) int - } - - OrganizationConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - OrganizationCreatePayload struct { - Organization func(childComplexity int) int - } - - OrganizationDeletePayload struct { - DeletedID func(childComplexity int) int - } - - OrganizationEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - OrganizationHistory struct { - AvatarRemoteURL func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DedicatedDb func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - DisplayName func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - PersonalOrg func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - OrganizationHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - OrganizationHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - OrganizationSearchResult struct { - Organizations func(childComplexity int) int - } - - OrganizationSetting struct { - BillingAddress func(childComplexity int) int - BillingContact func(childComplexity int) int - BillingEmail func(childComplexity int) int - BillingPhone func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Domains func(childComplexity int) int - Files func(childComplexity int) int - GeoLocation func(childComplexity int) int - ID func(childComplexity int) int - Organization func(childComplexity int) int - OrganizationID func(childComplexity int) int - StripeID func(childComplexity int) int - Tags func(childComplexity int) int - TaxIdentifier func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - OrganizationSettingBulkCreatePayload struct { - OrganizationSettings func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - OrganizationSettingConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query_adminInternalPolicySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminInternalPolicySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - OrganizationSettingCreatePayload struct { - OrganizationSetting func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminInternalPolicySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - OrganizationSettingDeletePayload struct { - DeletedID func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - OrganizationSettingEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - OrganizationSettingHistory struct { - BillingAddress func(childComplexity int) int - BillingContact func(childComplexity int) int - BillingEmail func(childComplexity int) int - BillingPhone func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Domains func(childComplexity int) int - GeoLocation func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - OrganizationID func(childComplexity int) int - Ref func(childComplexity int) int - StripeID func(childComplexity int) int - Tags func(childComplexity int) int - TaxIdentifier func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int +func (ec *executionContext) field_Query_adminNarrativeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminNarrativeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - OrganizationSettingHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminNarrativeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - OrganizationSettingHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - OrganizationSettingSearchResult struct { - OrganizationSettings func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - OrganizationSettingUpdatePayload struct { - OrganizationSetting func(childComplexity int) int +func (ec *executionContext) field_Query_adminOrgSubscriptionSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminOrgSubscriptionSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - OrganizationUpdatePayload struct { - Organization func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminOrgSubscriptionSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - PageInfo struct { - EndCursor func(childComplexity int) int - HasNextPage func(childComplexity int) int - HasPreviousPage func(childComplexity int) int - StartCursor func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - PersonalAccessToken struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Events func(childComplexity int) int - ExpiresAt func(childComplexity int) int - ID func(childComplexity int) int - LastUsedAt func(childComplexity int) int - Name func(childComplexity int) int - Organizations func(childComplexity int) int - Owner func(childComplexity int) int - Scopes func(childComplexity int) int - Tags func(childComplexity int) int - Token func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - PersonalAccessTokenBulkCreatePayload struct { - PersonalAccessTokens func(childComplexity int) int +func (ec *executionContext) field_Query_adminOrganizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminOrganizationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - PersonalAccessTokenConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminOrganizationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - PersonalAccessTokenCreatePayload struct { - PersonalAccessToken func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - PersonalAccessTokenDeletePayload struct { - DeletedID func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - PersonalAccessTokenEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Query_adminOrganizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminOrganizationSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - PersonalAccessTokenSearchResult struct { - PersonalAccessTokens func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminOrganizationSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - PersonalAccessTokenUpdatePayload struct { - PersonalAccessToken func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - Procedure struct { - Background func(childComplexity int) int - BlockedGroups func(childComplexity int) int - Controls func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Editors func(childComplexity int) int - ID func(childComplexity int) int - InternalPolicies func(childComplexity int) int - Name func(childComplexity int) int - Narratives func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - ProcedureType func(childComplexity int) int - Programs func(childComplexity int) int - PurposeAndScope func(childComplexity int) int - Risks func(childComplexity int) int - Satisfies func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - } - - ProcedureBulkCreatePayload struct { - Procedures func(childComplexity int) int - } - - ProcedureConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProcedureCreatePayload struct { - Procedure func(childComplexity int) int - } - - ProcedureDeletePayload struct { - DeletedID func(childComplexity int) int - } - - ProcedureEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ProcedureHistory struct { - Background func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - ProcedureType func(childComplexity int) int - PurposeAndScope func(childComplexity int) int - Ref func(childComplexity int) int - Satisfies func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - } - - ProcedureHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProcedureHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ProcedureSearchResult struct { - Procedures func(childComplexity int) int - } - - ProcedureUpdatePayload struct { - Procedure func(childComplexity int) int - } - - Program struct { - ActionPlans func(childComplexity int) int - AuditorReadComments func(childComplexity int) int - AuditorReady func(childComplexity int) int - AuditorWriteComments func(childComplexity int) int - BlockedGroups func(childComplexity int) int - ControlObjectives func(childComplexity int) int - Controls func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Editors func(childComplexity int) int - EndDate func(childComplexity int) int - Files func(childComplexity int) int - ID func(childComplexity int) int - InternalPolicies func(childComplexity int) int - Members func(childComplexity int) int - Name func(childComplexity int) int - Narratives func(childComplexity int) int - Notes func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Procedures func(childComplexity int) int - Risks func(childComplexity int) int - Standards func(childComplexity int) int - StartDate func(childComplexity int) int - Status func(childComplexity int) int - Subcontrols func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Users func(childComplexity int) int - Viewers func(childComplexity int) int + var zeroVal string + return zeroVal, nil +} + +func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminPersonalAccessTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - ProgramBulkCreatePayload struct { - Programs func(childComplexity int) int - } - - ProgramConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProgramCreatePayload struct { - Program func(childComplexity int) int - } - - ProgramDeletePayload struct { - DeletedID func(childComplexity int) int - } - - ProgramEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ProgramHistory struct { - AuditorReadComments func(childComplexity int) int - AuditorReady func(childComplexity int) int - AuditorWriteComments func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - EndDate func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - StartDate func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - ProgramHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProgramHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ProgramMembership struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - ID func(childComplexity int) int - Program func(childComplexity int) int - ProgramID func(childComplexity int) int - Role func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int - UserID func(childComplexity int) int - } - - ProgramMembershipBulkCreatePayload struct { - ProgramMemberships func(childComplexity int) int - } - - ProgramMembershipConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProgramMembershipCreatePayload struct { - ProgramMembership func(childComplexity int) int - } - - ProgramMembershipDeletePayload struct { - DeletedID func(childComplexity int) int - } - - ProgramMembershipEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ProgramMembershipHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - ProgramID func(childComplexity int) int - Ref func(childComplexity int) int - Role func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - UserID func(childComplexity int) int - } - - ProgramMembershipHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - ProgramMembershipHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - ProgramMembershipUpdatePayload struct { - ProgramMembership func(childComplexity int) int - } - - ProgramSearchResult struct { - Programs func(childComplexity int) int - } - - ProgramUpdatePayload struct { - Program func(childComplexity int) int - } - - Query struct { - APIToken func(childComplexity int, id string) int - APITokenSearch func(childComplexity int, query string) int - APITokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.APITokenWhereInput) int - ActionPlan func(childComplexity int, id string) int - ActionPlanHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanHistoryWhereInput) int - ActionPlanSearch func(childComplexity int, query string) int - ActionPlans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanWhereInput) int - AdminAPITokenSearch func(childComplexity int, query string) int - AdminActionPlanSearch func(childComplexity int, query string) int - AdminContactSearch func(childComplexity int, query string) int - AdminControlObjectiveSearch func(childComplexity int, query string) int - AdminControlSearch func(childComplexity int, query string) int - AdminDocumentDataSearch func(childComplexity int, query string) int - AdminEntitySearch func(childComplexity int, query string) int - AdminEntityTypeSearch func(childComplexity int, query string) int - AdminEventSearch func(childComplexity int, query string) int - AdminFileSearch func(childComplexity int, query string) int - AdminGroupSearch func(childComplexity int, query string) int - AdminGroupSettingSearch func(childComplexity int, query string) int - AdminIntegrationSearch func(childComplexity int, query string) int - AdminInternalPolicySearch func(childComplexity int, query string) int - AdminNarrativeSearch func(childComplexity int, query string) int - AdminOrgSubscriptionSearch func(childComplexity int, query string) int - AdminOrganizationSearch func(childComplexity int, query string) int - AdminOrganizationSettingSearch func(childComplexity int, query string) int - AdminPersonalAccessTokenSearch func(childComplexity int, query string) int - AdminProcedureSearch func(childComplexity int, query string) int - AdminProgramSearch func(childComplexity int, query string) int - AdminRiskSearch func(childComplexity int, query string) int - AdminSearch func(childComplexity int, query string) int - AdminStandardSearch func(childComplexity int, query string) int - AdminSubcontrolSearch func(childComplexity int, query string) int - AdminSubscriberSearch func(childComplexity int, query string) int - AdminTFASettingSearch func(childComplexity int, query string) int - AdminTaskSearch func(childComplexity int, query string) int - AdminTemplateSearch func(childComplexity int, query string) int - AdminUserSearch func(childComplexity int, query string) int - AdminUserSettingSearch func(childComplexity int, query string) int - AuditLogs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *AuditLogWhereInput) int - Contact func(childComplexity int, id string) int - ContactHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactHistoryWhereInput) int - ContactSearch func(childComplexity int, query string) int - Contacts func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactWhereInput) int - Control func(childComplexity int, id string) int - ControlHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlHistoryWhereInput) int - ControlObjective func(childComplexity int, id string) int - ControlObjectiveHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveHistoryWhereInput) int - ControlObjectiveSearch func(childComplexity int, query string) int - ControlObjectives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveWhereInput) int - ControlSearch func(childComplexity int, query string) int - Controls func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlWhereInput) int - DocumentData func(childComplexity int, id string) int - DocumentDataHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataHistoryWhereInput) int - DocumentDataSearch func(childComplexity int, query string) int - DocumentDataSlice func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataWhereInput) int - Entities func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityOrder, where *generated.EntityWhereInput) int - Entity func(childComplexity int, id string) int - EntityHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityHistoryOrder, where *generated.EntityHistoryWhereInput) int - EntitySearch func(childComplexity int, query string) int - EntityType func(childComplexity int, id string) int - EntityTypeHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeHistoryOrder, where *generated.EntityTypeHistoryWhereInput) int - EntityTypeSearch func(childComplexity int, query string) int - EntityTypes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeOrder, where *generated.EntityTypeWhereInput) int - Event func(childComplexity int, id string) int - EventHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventHistoryWhereInput) int - EventSearch func(childComplexity int, query string) int - Events func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventWhereInput) int - File func(childComplexity int, id string) int - FileHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileHistoryWhereInput) int - FileSearch func(childComplexity int, query string) int - Files func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileWhereInput) int - Group func(childComplexity int, id string) int - GroupHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupHistoryOrder, where *generated.GroupHistoryWhereInput) int - GroupMembership func(childComplexity int, id string) int - GroupMembershipHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipHistoryWhereInput) int - GroupMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipWhereInput) int - GroupSearch func(childComplexity int, query string) int - GroupSetting func(childComplexity int, id string) int - GroupSettingHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingHistoryWhereInput) int - GroupSettingSearch func(childComplexity int, query string) int - GroupSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingWhereInput) int - Groups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupOrder, where *generated.GroupWhereInput) int - Hush func(childComplexity int, id string) int - HushHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushHistoryOrder, where *generated.HushHistoryWhereInput) int - Hushes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushOrder, where *generated.HushWhereInput) int - Integration func(childComplexity int, id string) int - IntegrationHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationHistoryOrder, where *generated.IntegrationHistoryWhereInput) int - IntegrationSearch func(childComplexity int, query string) int - Integrations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) int - InternalPolicies func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyWhereInput) int - InternalPolicy func(childComplexity int, id string) int - InternalPolicyHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyHistoryWhereInput) int - InternalPolicySearch func(childComplexity int, query string) int - Invite func(childComplexity int, id string) int - Invites func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) int - Narrative func(childComplexity int, id string) int - NarrativeHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeHistoryWhereInput) int - NarrativeSearch func(childComplexity int, query string) int - Narratives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeWhereInput) int - Node func(childComplexity int, id string) int - Nodes func(childComplexity int, ids []string) int - NoteHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteHistoryWhereInput) int - Notes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteWhereInput) int - OrgMembership func(childComplexity int, id string) int - OrgMembershipHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipHistoryWhereInput) int - OrgMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipWhereInput) int - OrgSubscription func(childComplexity int, id string) int - OrgSubscriptionHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionHistoryWhereInput) int - OrgSubscriptionSearch func(childComplexity int, query string) int - OrgSubscriptions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionWhereInput) int - Organization func(childComplexity int, id string) int - OrganizationHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationHistoryOrder, where *generated.OrganizationHistoryWhereInput) int - OrganizationSearch func(childComplexity int, query string) int - OrganizationSetting func(childComplexity int, id string) int - OrganizationSettingHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingHistoryWhereInput) int - OrganizationSettingSearch func(childComplexity int, query string) int - OrganizationSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingWhereInput) int - Organizations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) int - PersonalAccessToken func(childComplexity int, id string) int - PersonalAccessTokenSearch func(childComplexity int, query string) int - PersonalAccessTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) int - Procedure func(childComplexity int, id string) int - ProcedureHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureHistoryWhereInput) int - ProcedureSearch func(childComplexity int, query string) int - Procedures func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureWhereInput) int - Program func(childComplexity int, id string) int - ProgramHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramHistoryWhereInput) int - ProgramMembership func(childComplexity int, id string) int - ProgramMembershipHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipHistoryWhereInput) int - ProgramMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipWhereInput) int - ProgramSearch func(childComplexity int, query string) int - Programs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramWhereInput) int - Risk func(childComplexity int, id string) int - RiskHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskHistoryWhereInput) int - RiskSearch func(childComplexity int, query string) int - Risks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskWhereInput) int - Search func(childComplexity int, query string) int - Standard func(childComplexity int, id string) int - StandardHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardHistoryWhereInput) int - StandardSearch func(childComplexity int, query string) int - Standards func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardWhereInput) int - Subcontrol func(childComplexity int, id string) int - SubcontrolHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolHistoryWhereInput) int - SubcontrolSearch func(childComplexity int, query string) int - Subcontrols func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolWhereInput) int - Subscriber func(childComplexity int, email string) int - SubscriberSearch func(childComplexity int, query string) int - Subscribers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) int - TFASettingSearch func(childComplexity int, query string) int - Task func(childComplexity int, id string) int - TaskHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskHistoryWhereInput) int - TaskSearch func(childComplexity int, query string) int - Tasks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskWhereInput) int - Template func(childComplexity int, id string) int - TemplateHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateHistoryOrder, where *generated.TemplateHistoryWhereInput) int - TemplateSearch func(childComplexity int, query string) int - Templates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateOrder, where *generated.TemplateWhereInput) int - TfaSetting func(childComplexity int, id *string) int - TfaSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TFASettingWhereInput) int - User func(childComplexity int, id string) int - UserHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserHistoryOrder, where *generated.UserHistoryWhereInput) int - UserSearch func(childComplexity int, query string) int - UserSetting func(childComplexity int, id string) int - UserSettingHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingHistoryWhereInput) int - UserSettingSearch func(childComplexity int, query string) int - UserSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingWhereInput) int - Users func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserOrder, where *generated.UserWhereInput) int - } - - Risk struct { - ActionPlans func(childComplexity int) int - BlockedGroups func(childComplexity int) int - BusinessCosts func(childComplexity int) int - Control func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Editors func(childComplexity int) int - ID func(childComplexity int) int - Impact func(childComplexity int) int - Likelihood func(childComplexity int) int - Mitigation func(childComplexity int) int - Name func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Procedure func(childComplexity int) int - Programs func(childComplexity int) int - RiskType func(childComplexity int) int - Satisfies func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Viewers func(childComplexity int) int - } - - RiskBulkCreatePayload struct { - Risks func(childComplexity int) int - } - - RiskConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - RiskCreatePayload struct { - Risk func(childComplexity int) int - } - - RiskDeletePayload struct { - DeletedID func(childComplexity int) int - } - - RiskEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - RiskHistory struct { - BusinessCosts func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Impact func(childComplexity int) int - Likelihood func(childComplexity int) int - Mitigation func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - RiskType func(childComplexity int) int - Satisfies func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - RiskHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - RiskHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - RiskSearchResult struct { - Risks func(childComplexity int) int - } - - RiskUpdatePayload struct { - Risk func(childComplexity int) int - } - - SearchResultConnection struct { - Nodes func(childComplexity int) int - Page func(childComplexity int) int - } - - Standard struct { - ActionPlans func(childComplexity int) int - Background func(childComplexity int) int - ControlObjectives func(childComplexity int) int - Controls func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Family func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Procedures func(childComplexity int) int - Programs func(childComplexity int) int - PurposeAndScope func(childComplexity int) int - Satisfies func(childComplexity int) int - StandardType func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - } - - StandardBulkCreatePayload struct { - Standards func(childComplexity int) int - } - - StandardConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - StandardCreatePayload struct { - Standard func(childComplexity int) int - } - - StandardDeletePayload struct { - DeletedID func(childComplexity int) int - } - - StandardEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - StandardHistory struct { - Background func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Family func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - PurposeAndScope func(childComplexity int) int - Ref func(childComplexity int) int - Satisfies func(childComplexity int) int - StandardType func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int - } - - StandardHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - StandardHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - StandardSearchResult struct { - Standards func(childComplexity int) int - } - - StandardUpdatePayload struct { - Standard func(childComplexity int) int - } - - Subcontrol struct { - Class func(childComplexity int) int - Controls func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Family func(childComplexity int) int - ID func(childComplexity int) int - ImplementationDate func(childComplexity int) int - ImplementationEvidence func(childComplexity int) int - ImplementationStatus func(childComplexity int) int - ImplementationVerification func(childComplexity int) int - ImplementationVerificationDate func(childComplexity int) int - MappedFrameworks func(childComplexity int) int - Name func(childComplexity int) int - Notes func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Programs func(childComplexity int) int - Source func(childComplexity int) int - Status func(childComplexity int) int - SubcontrolNumber func(childComplexity int) int - SubcontrolType func(childComplexity int) int - Tags func(childComplexity int) int - Tasks func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int - Version func(childComplexity int) int - } - - SubcontrolBulkCreatePayload struct { - Subcontrols func(childComplexity int) int - } - - SubcontrolConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - SubcontrolCreatePayload struct { - Subcontrol func(childComplexity int) int - } - - SubcontrolDeletePayload struct { - DeletedID func(childComplexity int) int - } - - SubcontrolEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - SubcontrolHistory struct { - Class func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Family func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - ImplementationDate func(childComplexity int) int - ImplementationEvidence func(childComplexity int) int - ImplementationStatus func(childComplexity int) int - ImplementationVerification func(childComplexity int) int - ImplementationVerificationDate func(childComplexity int) int - MappedFrameworks func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Source func(childComplexity int) int - Status func(childComplexity int) int - SubcontrolNumber func(childComplexity int) int - SubcontrolType func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Version func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - SubcontrolHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - SubcontrolHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Query_adminProcedureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminProcedureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - SubcontrolSearchResult struct { - Subcontrols func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminProcedureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - SubcontrolUpdatePayload struct { - Subcontrol func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - Subscriber struct { - Active func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Email func(childComplexity int) int - Events func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - PhoneNumber func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - VerifiedEmail func(childComplexity int) int - VerifiedPhone func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - SubscriberBulkCreatePayload struct { - Subscribers func(childComplexity int) int +func (ec *executionContext) field_Query_adminProgramSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminProgramSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - SubscriberConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminProgramSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - SubscriberCreatePayload struct { - Subscriber func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - SubscriberDeletePayload struct { - Email func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - SubscriberEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int +func (ec *executionContext) field_Query_adminRiskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminRiskSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - SubscriberSearchResult struct { - Subscribers func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminRiskSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - SubscriberUpdatePayload struct { - Subscriber func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - TFASetting struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - ID func(childComplexity int) int - Owner func(childComplexity int) int - RecoveryCodes func(childComplexity int) int - Tags func(childComplexity int) int - TfaSecret func(childComplexity int) int - TotpAllowed func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - Verified func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - TFASettingConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query_adminSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - TFASettingCreatePayload struct { - TfaSetting func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - TFASettingEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - TFASettingSearchResult struct { - TFASettings func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - TFASettingUpdatePayload struct { - TfaSetting func(childComplexity int) int +func (ec *executionContext) field_Query_adminStandardSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminStandardSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - Task struct { - Assignee func(childComplexity int) int - Assigner func(childComplexity int) int - Completed func(childComplexity int) int - Control func(childComplexity int) int - ControlObjective func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Due func(childComplexity int) int - Group func(childComplexity int) int - ID func(childComplexity int) int - InternalPolicy func(childComplexity int) int - Organization func(childComplexity int) int - Procedure func(childComplexity int) int - Program func(childComplexity int) int - Status func(childComplexity int) int - Subcontrol func(childComplexity int) int - Tags func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminStandardSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - TaskBulkCreatePayload struct { - Tasks func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - TaskConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - TaskCreatePayload struct { - Task func(childComplexity int) int +func (ec *executionContext) field_Query_adminSubcontrolSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminSubcontrolSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - TaskDeletePayload struct { - DeletedID func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminSubcontrolSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - TaskEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - TaskHistory struct { - Completed func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Details func(childComplexity int) int - Due func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Operation func(childComplexity int) int - Ref func(childComplexity int) int - Status func(childComplexity int) int - Tags func(childComplexity int) int - Title func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - TaskHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int +func (ec *executionContext) field_Query_adminSubscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminSubscriberSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - TaskHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminSubscriberSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - TaskSearchResult struct { - Tasks func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - TaskUpdatePayload struct { - Task func(childComplexity int) int - } + var zeroVal string + return zeroVal, nil +} - Template struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - Documents func(childComplexity int) int - Files func(childComplexity int) int - ID func(childComplexity int) int - Jsonconfig func(childComplexity int) int - Name func(childComplexity int) int - Owner func(childComplexity int) int - OwnerID func(childComplexity int) int - Tags func(childComplexity int) int - TemplateType func(childComplexity int) int - Uischema func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - TemplateBulkCreatePayload struct { - Templates func(childComplexity int) int - } - - TemplateConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - TemplateCreatePayload struct { - Template func(childComplexity int) int +func (ec *executionContext) field_Query_adminTFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminTFASettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - - TemplateDeletePayload struct { - DeletedID func(childComplexity int) int + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminTFASettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - TemplateEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - TemplateHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - Description func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - Jsonconfig func(childComplexity int) int - Name func(childComplexity int) int - Operation func(childComplexity int) int - OwnerID func(childComplexity int) int - Ref func(childComplexity int) int - Tags func(childComplexity int) int - TemplateType func(childComplexity int) int - Uischema func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - TemplateHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - TemplateHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - TemplateSearchResult struct { - Templates func(childComplexity int) int - } - - TemplateUpdatePayload struct { - Template func(childComplexity int) int - } - - User struct { - ActionPlans func(childComplexity int) int - AssigneeTasks func(childComplexity int) int - AssignerTasks func(childComplexity int) int - AuthProvider func(childComplexity int) int - AvatarLocalFile func(childComplexity int) int - AvatarLocalFileID func(childComplexity int) int - AvatarRemoteURL func(childComplexity int) int - AvatarUpdatedAt func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - DisplayName func(childComplexity int) int - Email func(childComplexity int) int - Events func(childComplexity int) int - File func(childComplexity int) int - Files func(childComplexity int) int - FirstName func(childComplexity int) int - GroupMemberships func(childComplexity int) int - Groups func(childComplexity int) int - ID func(childComplexity int) int - LastName func(childComplexity int) int - LastSeen func(childComplexity int) int - OrgMemberships func(childComplexity int) int - Organizations func(childComplexity int) int - PersonalAccessTokens func(childComplexity int) int - ProgramMemberships func(childComplexity int) int - Programs func(childComplexity int) int - Role func(childComplexity int) int - Setting func(childComplexity int) int - Sub func(childComplexity int) int - Subcontrols func(childComplexity int) int - Tags func(childComplexity int) int - TfaSettings func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - UserBulkCreatePayload struct { - Users func(childComplexity int) int - } - - UserConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - UserCreatePayload struct { - User func(childComplexity int) int - } - - UserDeletePayload struct { - DeletedID func(childComplexity int) int - } - - UserEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - UserHistory struct { - AuthProvider func(childComplexity int) int - AvatarLocalFile func(childComplexity int) int - AvatarLocalFileID func(childComplexity int) int - AvatarRemoteURL func(childComplexity int) int - AvatarUpdatedAt func(childComplexity int) int - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - DisplayName func(childComplexity int) int - Email func(childComplexity int) int - FirstName func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - LastName func(childComplexity int) int - LastSeen func(childComplexity int) int - Operation func(childComplexity int) int - Ref func(childComplexity int) int - Role func(childComplexity int) int - Sub func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - } - - UserHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - UserHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - UserSearchResult struct { - Users func(childComplexity int) int - } - - UserSetting struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DefaultOrg func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - EmailConfirmed func(childComplexity int) int - Files func(childComplexity int) int - ID func(childComplexity int) int - IsTfaEnabled func(childComplexity int) int - IsWebauthnAllowed func(childComplexity int) int - Locked func(childComplexity int) int - SilencedAt func(childComplexity int) int - Status func(childComplexity int) int - SuspendedAt func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - User func(childComplexity int) int - UserID func(childComplexity int) int - } - - UserSettingBulkCreatePayload struct { - UserSettings func(childComplexity int) int - } - - UserSettingConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - UserSettingCreatePayload struct { - UserSetting func(childComplexity int) int - } - - UserSettingEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - UserSettingHistory struct { - CreatedAt func(childComplexity int) int - CreatedBy func(childComplexity int) int - DeletedAt func(childComplexity int) int - DeletedBy func(childComplexity int) int - EmailConfirmed func(childComplexity int) int - HistoryTime func(childComplexity int) int - ID func(childComplexity int) int - IsTfaEnabled func(childComplexity int) int - IsWebauthnAllowed func(childComplexity int) int - Locked func(childComplexity int) int - Operation func(childComplexity int) int - Ref func(childComplexity int) int - SilencedAt func(childComplexity int) int - Status func(childComplexity int) int - SuspendedAt func(childComplexity int) int - Tags func(childComplexity int) int - UpdatedAt func(childComplexity int) int - UpdatedBy func(childComplexity int) int - UserID func(childComplexity int) int - } - - UserSettingHistoryConnection struct { - Edges func(childComplexity int) int - PageInfo func(childComplexity int) int - TotalCount func(childComplexity int) int - } - - UserSettingHistoryEdge struct { - Cursor func(childComplexity int) int - Node func(childComplexity int) int - } - - UserSettingSearchResult struct { - UserSettings func(childComplexity int) int - } - - UserSettingUpdatePayload struct { - UserSetting func(childComplexity int) int - } - - UserUpdatePayload struct { - User func(childComplexity int) int - } -} - -type MutationResolver interface { - CreateActionPlan(ctx context.Context, input generated.CreateActionPlanInput) (*ActionPlanCreatePayload, error) - CreateBulkActionPlan(ctx context.Context, input []*generated.CreateActionPlanInput) (*ActionPlanBulkCreatePayload, error) - CreateBulkCSVActionPlan(ctx context.Context, input graphql.Upload) (*ActionPlanBulkCreatePayload, error) - UpdateActionPlan(ctx context.Context, id string, input generated.UpdateActionPlanInput) (*ActionPlanUpdatePayload, error) - DeleteActionPlan(ctx context.Context, id string) (*ActionPlanDeletePayload, error) - CreateAPIToken(ctx context.Context, input generated.CreateAPITokenInput) (*APITokenCreatePayload, error) - CreateBulkAPIToken(ctx context.Context, input []*generated.CreateAPITokenInput) (*APITokenBulkCreatePayload, error) - CreateBulkCSVAPIToken(ctx context.Context, input graphql.Upload) (*APITokenBulkCreatePayload, error) - UpdateAPIToken(ctx context.Context, id string, input generated.UpdateAPITokenInput) (*APITokenUpdatePayload, error) - DeleteAPIToken(ctx context.Context, id string) (*APITokenDeletePayload, error) - CreateContact(ctx context.Context, input generated.CreateContactInput) (*ContactCreatePayload, error) - CreateBulkContact(ctx context.Context, input []*generated.CreateContactInput) (*ContactBulkCreatePayload, error) - CreateBulkCSVContact(ctx context.Context, input graphql.Upload) (*ContactBulkCreatePayload, error) - UpdateContact(ctx context.Context, id string, input generated.UpdateContactInput) (*ContactUpdatePayload, error) - DeleteContact(ctx context.Context, id string) (*ContactDeletePayload, error) - CreateControl(ctx context.Context, input generated.CreateControlInput) (*ControlCreatePayload, error) - CreateBulkControl(ctx context.Context, input []*generated.CreateControlInput) (*ControlBulkCreatePayload, error) - CreateBulkCSVControl(ctx context.Context, input graphql.Upload) (*ControlBulkCreatePayload, error) - UpdateControl(ctx context.Context, id string, input generated.UpdateControlInput) (*ControlUpdatePayload, error) - DeleteControl(ctx context.Context, id string) (*ControlDeletePayload, error) - CreateControlObjective(ctx context.Context, input generated.CreateControlObjectiveInput) (*ControlObjectiveCreatePayload, error) - CreateBulkControlObjective(ctx context.Context, input []*generated.CreateControlObjectiveInput) (*ControlObjectiveBulkCreatePayload, error) - CreateBulkCSVControlObjective(ctx context.Context, input graphql.Upload) (*ControlObjectiveBulkCreatePayload, error) - UpdateControlObjective(ctx context.Context, id string, input generated.UpdateControlObjectiveInput) (*ControlObjectiveUpdatePayload, error) - DeleteControlObjective(ctx context.Context, id string) (*ControlObjectiveDeletePayload, error) - CreateDocumentData(ctx context.Context, input generated.CreateDocumentDataInput) (*DocumentDataCreatePayload, error) - CreateBulkDocumentData(ctx context.Context, input []*generated.CreateDocumentDataInput) (*DocumentDataBulkCreatePayload, error) - CreateBulkCSVDocumentData(ctx context.Context, input graphql.Upload) (*DocumentDataBulkCreatePayload, error) - UpdateDocumentData(ctx context.Context, id string, input generated.UpdateDocumentDataInput) (*DocumentDataUpdatePayload, error) - DeleteDocumentData(ctx context.Context, id string) (*DocumentDataDeletePayload, error) - CreateEntity(ctx context.Context, input generated.CreateEntityInput) (*EntityCreatePayload, error) - CreateBulkEntity(ctx context.Context, input []*generated.CreateEntityInput) (*EntityBulkCreatePayload, error) - CreateBulkCSVEntity(ctx context.Context, input graphql.Upload) (*EntityBulkCreatePayload, error) - UpdateEntity(ctx context.Context, id string, input generated.UpdateEntityInput) (*EntityUpdatePayload, error) - DeleteEntity(ctx context.Context, id string) (*EntityDeletePayload, error) - CreateEntityType(ctx context.Context, input generated.CreateEntityTypeInput) (*EntityTypeCreatePayload, error) - CreateBulkEntityType(ctx context.Context, input []*generated.CreateEntityTypeInput) (*EntityTypeBulkCreatePayload, error) - CreateBulkCSVEntityType(ctx context.Context, input graphql.Upload) (*EntityTypeBulkCreatePayload, error) - UpdateEntityType(ctx context.Context, id string, input generated.UpdateEntityTypeInput) (*EntityTypeUpdatePayload, error) - DeleteEntityType(ctx context.Context, id string) (*EntityTypeDeletePayload, error) - CreateEvent(ctx context.Context, input generated.CreateEventInput) (*EventCreatePayload, error) - CreateBulkEvent(ctx context.Context, input []*generated.CreateEventInput) (*EventBulkCreatePayload, error) - CreateBulkCSVEvent(ctx context.Context, input graphql.Upload) (*EventBulkCreatePayload, error) - UpdateEvent(ctx context.Context, id string, input generated.UpdateEventInput) (*EventUpdatePayload, error) - DeleteEvent(ctx context.Context, id string) (*EventDeletePayload, error) - DeleteFile(ctx context.Context, id string) (*FileDeletePayload, error) - CreateGroup(ctx context.Context, input generated.CreateGroupInput) (*GroupCreatePayload, error) - CreateBulkGroup(ctx context.Context, input []*generated.CreateGroupInput) (*GroupBulkCreatePayload, error) - CreateBulkCSVGroup(ctx context.Context, input graphql.Upload) (*GroupBulkCreatePayload, error) - UpdateGroup(ctx context.Context, id string, input generated.UpdateGroupInput) (*GroupUpdatePayload, error) - DeleteGroup(ctx context.Context, id string) (*GroupDeletePayload, error) - CreateGroupMembership(ctx context.Context, input generated.CreateGroupMembershipInput) (*GroupMembershipCreatePayload, error) - CreateBulkGroupMembership(ctx context.Context, input []*generated.CreateGroupMembershipInput) (*GroupMembershipBulkCreatePayload, error) - CreateBulkCSVGroupMembership(ctx context.Context, input graphql.Upload) (*GroupMembershipBulkCreatePayload, error) - UpdateGroupMembership(ctx context.Context, id string, input generated.UpdateGroupMembershipInput) (*GroupMembershipUpdatePayload, error) - DeleteGroupMembership(ctx context.Context, id string) (*GroupMembershipDeletePayload, error) - CreateGroupSetting(ctx context.Context, input generated.CreateGroupSettingInput) (*GroupSettingCreatePayload, error) - CreateBulkGroupSetting(ctx context.Context, input []*generated.CreateGroupSettingInput) (*GroupSettingBulkCreatePayload, error) - CreateBulkCSVGroupSetting(ctx context.Context, input graphql.Upload) (*GroupSettingBulkCreatePayload, error) - UpdateGroupSetting(ctx context.Context, id string, input generated.UpdateGroupSettingInput) (*GroupSettingUpdatePayload, error) - DeleteGroupSetting(ctx context.Context, id string) (*GroupSettingDeletePayload, error) - CreateHush(ctx context.Context, input generated.CreateHushInput) (*HushCreatePayload, error) - CreateBulkHush(ctx context.Context, input []*generated.CreateHushInput) (*HushBulkCreatePayload, error) - CreateBulkCSVHush(ctx context.Context, input graphql.Upload) (*HushBulkCreatePayload, error) - UpdateHush(ctx context.Context, id string, input generated.UpdateHushInput) (*HushUpdatePayload, error) - DeleteHush(ctx context.Context, id string) (*HushDeletePayload, error) - CreateIntegration(ctx context.Context, input generated.CreateIntegrationInput) (*IntegrationCreatePayload, error) - CreateBulkIntegration(ctx context.Context, input []*generated.CreateIntegrationInput) (*IntegrationBulkCreatePayload, error) - CreateBulkCSVIntegration(ctx context.Context, input graphql.Upload) (*IntegrationBulkCreatePayload, error) - UpdateIntegration(ctx context.Context, id string, input generated.UpdateIntegrationInput) (*IntegrationUpdatePayload, error) - DeleteIntegration(ctx context.Context, id string) (*IntegrationDeletePayload, error) - CreateInternalPolicy(ctx context.Context, input generated.CreateInternalPolicyInput) (*InternalPolicyCreatePayload, error) - CreateBulkInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*InternalPolicyBulkCreatePayload, error) - CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload) (*InternalPolicyBulkCreatePayload, error) - UpdateInternalPolicy(ctx context.Context, id string, input generated.UpdateInternalPolicyInput) (*InternalPolicyUpdatePayload, error) - DeleteInternalPolicy(ctx context.Context, id string) (*InternalPolicyDeletePayload, error) - CreateInvite(ctx context.Context, input generated.CreateInviteInput) (*InviteCreatePayload, error) - CreateBulkInvite(ctx context.Context, input []*generated.CreateInviteInput) (*InviteBulkCreatePayload, error) - CreateBulkCSVInvite(ctx context.Context, input graphql.Upload) (*InviteBulkCreatePayload, error) - UpdateInvite(ctx context.Context, id string, input generated.UpdateInviteInput) (*InviteUpdatePayload, error) - DeleteInvite(ctx context.Context, id string) (*InviteDeletePayload, error) - CreateNarrative(ctx context.Context, input generated.CreateNarrativeInput) (*NarrativeCreatePayload, error) - CreateBulkNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*NarrativeBulkCreatePayload, error) - CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload) (*NarrativeBulkCreatePayload, error) - UpdateNarrative(ctx context.Context, id string, input generated.UpdateNarrativeInput) (*NarrativeUpdatePayload, error) - DeleteNarrative(ctx context.Context, id string) (*NarrativeDeletePayload, error) - CreateOrganization(ctx context.Context, input generated.CreateOrganizationInput) (*OrganizationCreatePayload, error) - CreateBulkOrganization(ctx context.Context, input []*generated.CreateOrganizationInput) (*OrganizationBulkCreatePayload, error) - CreateBulkCSVOrganization(ctx context.Context, input graphql.Upload) (*OrganizationBulkCreatePayload, error) - UpdateOrganization(ctx context.Context, id string, input generated.UpdateOrganizationInput) (*OrganizationUpdatePayload, error) - DeleteOrganization(ctx context.Context, id string) (*OrganizationDeletePayload, error) - CreateOrganizationSetting(ctx context.Context, input generated.CreateOrganizationSettingInput) (*OrganizationSettingCreatePayload, error) - CreateBulkOrganizationSetting(ctx context.Context, input []*generated.CreateOrganizationSettingInput) (*OrganizationSettingBulkCreatePayload, error) - CreateBulkCSVOrganizationSetting(ctx context.Context, input graphql.Upload) (*OrganizationSettingBulkCreatePayload, error) - UpdateOrganizationSetting(ctx context.Context, id string, input generated.UpdateOrganizationSettingInput) (*OrganizationSettingUpdatePayload, error) - DeleteOrganizationSetting(ctx context.Context, id string) (*OrganizationSettingDeletePayload, error) - CreateOrgMembership(ctx context.Context, input generated.CreateOrgMembershipInput) (*OrgMembershipCreatePayload, error) - CreateBulkOrgMembership(ctx context.Context, input []*generated.CreateOrgMembershipInput) (*OrgMembershipBulkCreatePayload, error) - CreateBulkCSVOrgMembership(ctx context.Context, input graphql.Upload) (*OrgMembershipBulkCreatePayload, error) - UpdateOrgMembership(ctx context.Context, id string, input generated.UpdateOrgMembershipInput) (*OrgMembershipUpdatePayload, error) - DeleteOrgMembership(ctx context.Context, id string) (*OrgMembershipDeletePayload, error) - CreateOrgSubscription(ctx context.Context, input generated.CreateOrgSubscriptionInput) (*OrgSubscriptionCreatePayload, error) - CreateBulkOrgSubscription(ctx context.Context, input []*generated.CreateOrgSubscriptionInput) (*OrgSubscriptionBulkCreatePayload, error) - CreateBulkCSVOrgSubscription(ctx context.Context, input graphql.Upload) (*OrgSubscriptionBulkCreatePayload, error) - UpdateOrgSubscription(ctx context.Context, id string, input generated.UpdateOrgSubscriptionInput) (*OrgSubscriptionUpdatePayload, error) - DeleteOrgSubscription(ctx context.Context, id string) (*OrgSubscriptionDeletePayload, error) - CreatePersonalAccessToken(ctx context.Context, input generated.CreatePersonalAccessTokenInput) (*PersonalAccessTokenCreatePayload, error) - CreateBulkPersonalAccessToken(ctx context.Context, input []*generated.CreatePersonalAccessTokenInput) (*PersonalAccessTokenBulkCreatePayload, error) - CreateBulkCSVPersonalAccessToken(ctx context.Context, input graphql.Upload) (*PersonalAccessTokenBulkCreatePayload, error) - UpdatePersonalAccessToken(ctx context.Context, id string, input generated.UpdatePersonalAccessTokenInput) (*PersonalAccessTokenUpdatePayload, error) - DeletePersonalAccessToken(ctx context.Context, id string) (*PersonalAccessTokenDeletePayload, error) - CreateProcedure(ctx context.Context, input generated.CreateProcedureInput) (*ProcedureCreatePayload, error) - CreateBulkProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*ProcedureBulkCreatePayload, error) - CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload) (*ProcedureBulkCreatePayload, error) - UpdateProcedure(ctx context.Context, id string, input generated.UpdateProcedureInput) (*ProcedureUpdatePayload, error) - DeleteProcedure(ctx context.Context, id string) (*ProcedureDeletePayload, error) - CreateProgram(ctx context.Context, input generated.CreateProgramInput) (*ProgramCreatePayload, error) - CreateBulkProgram(ctx context.Context, input []*generated.CreateProgramInput) (*ProgramBulkCreatePayload, error) - CreateBulkCSVProgram(ctx context.Context, input graphql.Upload) (*ProgramBulkCreatePayload, error) - UpdateProgram(ctx context.Context, id string, input generated.UpdateProgramInput) (*ProgramUpdatePayload, error) - DeleteProgram(ctx context.Context, id string) (*ProgramDeletePayload, error) - CreateProgramWithMembers(ctx context.Context, input CreateProgramWithMembersInput) (*ProgramCreatePayload, error) - CreateFullProgram(ctx context.Context, input CreateFullProgramInput) (*ProgramCreatePayload, error) - CreateControlWithSubcontrols(ctx context.Context, input CreateControlWithSubcontrolsInput) (*ControlCreatePayload, error) - CreateProgramMembership(ctx context.Context, input generated.CreateProgramMembershipInput) (*ProgramMembershipCreatePayload, error) - CreateBulkProgramMembership(ctx context.Context, input []*generated.CreateProgramMembershipInput) (*ProgramMembershipBulkCreatePayload, error) - CreateBulkCSVProgramMembership(ctx context.Context, input graphql.Upload) (*ProgramMembershipBulkCreatePayload, error) - UpdateProgramMembership(ctx context.Context, id string, input generated.UpdateProgramMembershipInput) (*ProgramMembershipUpdatePayload, error) - DeleteProgramMembership(ctx context.Context, id string) (*ProgramMembershipDeletePayload, error) - CreateRisk(ctx context.Context, input generated.CreateRiskInput) (*RiskCreatePayload, error) - CreateBulkRisk(ctx context.Context, input []*generated.CreateRiskInput) (*RiskBulkCreatePayload, error) - CreateBulkCSVRisk(ctx context.Context, input graphql.Upload) (*RiskBulkCreatePayload, error) - UpdateRisk(ctx context.Context, id string, input generated.UpdateRiskInput) (*RiskUpdatePayload, error) - DeleteRisk(ctx context.Context, id string) (*RiskDeletePayload, error) - CreateStandard(ctx context.Context, input generated.CreateStandardInput) (*StandardCreatePayload, error) - CreateBulkStandard(ctx context.Context, input []*generated.CreateStandardInput) (*StandardBulkCreatePayload, error) - CreateBulkCSVStandard(ctx context.Context, input graphql.Upload) (*StandardBulkCreatePayload, error) - UpdateStandard(ctx context.Context, id string, input generated.UpdateStandardInput) (*StandardUpdatePayload, error) - DeleteStandard(ctx context.Context, id string) (*StandardDeletePayload, error) - CreateSubcontrol(ctx context.Context, input generated.CreateSubcontrolInput) (*SubcontrolCreatePayload, error) - CreateBulkSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*SubcontrolBulkCreatePayload, error) - CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload) (*SubcontrolBulkCreatePayload, error) - UpdateSubcontrol(ctx context.Context, id string, input generated.UpdateSubcontrolInput) (*SubcontrolUpdatePayload, error) - DeleteSubcontrol(ctx context.Context, id string) (*SubcontrolDeletePayload, error) - CreateSubscriber(ctx context.Context, input generated.CreateSubscriberInput) (*SubscriberCreatePayload, error) - CreateBulkSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*SubscriberBulkCreatePayload, error) - CreateBulkCSVSubscriber(ctx context.Context, input graphql.Upload) (*SubscriberBulkCreatePayload, error) - UpdateSubscriber(ctx context.Context, email string, input generated.UpdateSubscriberInput) (*SubscriberUpdatePayload, error) - DeleteSubscriber(ctx context.Context, email string, ownerID *string) (*SubscriberDeletePayload, error) - CreateTask(ctx context.Context, input generated.CreateTaskInput) (*TaskCreatePayload, error) - CreateBulkTask(ctx context.Context, input []*generated.CreateTaskInput) (*TaskBulkCreatePayload, error) - CreateBulkCSVTask(ctx context.Context, input graphql.Upload) (*TaskBulkCreatePayload, error) - UpdateTask(ctx context.Context, id string, input generated.UpdateTaskInput) (*TaskUpdatePayload, error) - DeleteTask(ctx context.Context, id string) (*TaskDeletePayload, error) - CreateTemplate(ctx context.Context, input generated.CreateTemplateInput) (*TemplateCreatePayload, error) - CreateBulkTemplate(ctx context.Context, input []*generated.CreateTemplateInput) (*TemplateBulkCreatePayload, error) - CreateBulkCSVTemplate(ctx context.Context, input graphql.Upload) (*TemplateBulkCreatePayload, error) - UpdateTemplate(ctx context.Context, id string, input generated.UpdateTemplateInput) (*TemplateUpdatePayload, error) - DeleteTemplate(ctx context.Context, id string) (*TemplateDeletePayload, error) - CreateTFASetting(ctx context.Context, input generated.CreateTFASettingInput) (*TFASettingCreatePayload, error) - UpdateTFASetting(ctx context.Context, input generated.UpdateTFASettingInput) (*TFASettingUpdatePayload, error) - CreateUser(ctx context.Context, input generated.CreateUserInput, avatarFile *graphql.Upload) (*UserCreatePayload, error) - UpdateUser(ctx context.Context, id string, input generated.UpdateUserInput, avatarFile *graphql.Upload) (*UserUpdatePayload, error) - DeleteUser(ctx context.Context, id string) (*UserDeletePayload, error) - CreateUserSetting(ctx context.Context, input generated.CreateUserSettingInput) (*UserSettingCreatePayload, error) - CreateBulkUserSetting(ctx context.Context, input []*generated.CreateUserSettingInput) (*UserSettingBulkCreatePayload, error) - CreateBulkCSVUserSetting(ctx context.Context, input graphql.Upload) (*UserSettingBulkCreatePayload, error) - UpdateUserSetting(ctx context.Context, id string, input generated.UpdateUserSettingInput) (*UserSettingUpdatePayload, error) -} -type QueryResolver interface { - Node(ctx context.Context, id string) (generated.Noder, error) - Nodes(ctx context.Context, ids []string) ([]generated.Noder, error) - APITokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.APITokenWhereInput) (*generated.APITokenConnection, error) - ActionPlans(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanWhereInput) (*generated.ActionPlanConnection, error) - ActionPlanHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanHistoryWhereInput) (*generated.ActionPlanHistoryConnection, error) - Contacts(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactWhereInput) (*generated.ContactConnection, error) - ContactHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactHistoryWhereInput) (*generated.ContactHistoryConnection, error) - Controls(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlWhereInput) (*generated.ControlConnection, error) - ControlHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlHistoryWhereInput) (*generated.ControlHistoryConnection, error) - ControlObjectives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveWhereInput) (*generated.ControlObjectiveConnection, error) - ControlObjectiveHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveHistoryWhereInput) (*generated.ControlObjectiveHistoryConnection, error) - DocumentDataSlice(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataWhereInput) (*generated.DocumentDataConnection, error) - DocumentDataHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataHistoryWhereInput) (*generated.DocumentDataHistoryConnection, error) - Entities(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityOrder, where *generated.EntityWhereInput) (*generated.EntityConnection, error) - EntityHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityHistoryOrder, where *generated.EntityHistoryWhereInput) (*generated.EntityHistoryConnection, error) - EntityTypes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeOrder, where *generated.EntityTypeWhereInput) (*generated.EntityTypeConnection, error) - EntityTypeHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeHistoryOrder, where *generated.EntityTypeHistoryWhereInput) (*generated.EntityTypeHistoryConnection, error) - Events(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventWhereInput) (*generated.EventConnection, error) - EventHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventHistoryWhereInput) (*generated.EventHistoryConnection, error) - Files(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileWhereInput) (*generated.FileConnection, error) - FileHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileHistoryWhereInput) (*generated.FileHistoryConnection, error) - Groups(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupOrder, where *generated.GroupWhereInput) (*generated.GroupConnection, error) - GroupHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupHistoryOrder, where *generated.GroupHistoryWhereInput) (*generated.GroupHistoryConnection, error) - GroupMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipWhereInput) (*generated.GroupMembershipConnection, error) - GroupMembershipHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipHistoryWhereInput) (*generated.GroupMembershipHistoryConnection, error) - GroupSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingWhereInput) (*generated.GroupSettingConnection, error) - GroupSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingHistoryWhereInput) (*generated.GroupSettingHistoryConnection, error) - Hushes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushOrder, where *generated.HushWhereInput) (*generated.HushConnection, error) - HushHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushHistoryOrder, where *generated.HushHistoryWhereInput) (*generated.HushHistoryConnection, error) - Integrations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) (*generated.IntegrationConnection, error) - IntegrationHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationHistoryOrder, where *generated.IntegrationHistoryWhereInput) (*generated.IntegrationHistoryConnection, error) - InternalPolicies(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyWhereInput) (*generated.InternalPolicyConnection, error) - InternalPolicyHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyHistoryWhereInput) (*generated.InternalPolicyHistoryConnection, error) - Invites(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) (*generated.InviteConnection, error) - Narratives(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeWhereInput) (*generated.NarrativeConnection, error) - NarrativeHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeHistoryWhereInput) (*generated.NarrativeHistoryConnection, error) - Notes(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteWhereInput) (*generated.NoteConnection, error) - NoteHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteHistoryWhereInput) (*generated.NoteHistoryConnection, error) - OrgMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipWhereInput) (*generated.OrgMembershipConnection, error) - OrgMembershipHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipHistoryWhereInput) (*generated.OrgMembershipHistoryConnection, error) - OrgSubscriptions(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionWhereInput) (*generated.OrgSubscriptionConnection, error) - OrgSubscriptionHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionHistoryWhereInput) (*generated.OrgSubscriptionHistoryConnection, error) - Organizations(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) (*generated.OrganizationConnection, error) - OrganizationHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationHistoryOrder, where *generated.OrganizationHistoryWhereInput) (*generated.OrganizationHistoryConnection, error) - OrganizationSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingWhereInput) (*generated.OrganizationSettingConnection, error) - OrganizationSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingHistoryWhereInput) (*generated.OrganizationSettingHistoryConnection, error) - PersonalAccessTokens(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) (*generated.PersonalAccessTokenConnection, error) - Procedures(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureWhereInput) (*generated.ProcedureConnection, error) - ProcedureHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureHistoryWhereInput) (*generated.ProcedureHistoryConnection, error) - Programs(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramWhereInput) (*generated.ProgramConnection, error) - ProgramHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramHistoryWhereInput) (*generated.ProgramHistoryConnection, error) - ProgramMemberships(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipWhereInput) (*generated.ProgramMembershipConnection, error) - ProgramMembershipHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipHistoryWhereInput) (*generated.ProgramMembershipHistoryConnection, error) - Risks(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskWhereInput) (*generated.RiskConnection, error) - RiskHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskHistoryWhereInput) (*generated.RiskHistoryConnection, error) - Standards(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardWhereInput) (*generated.StandardConnection, error) - StandardHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardHistoryWhereInput) (*generated.StandardHistoryConnection, error) - Subcontrols(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolWhereInput) (*generated.SubcontrolConnection, error) - SubcontrolHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolHistoryWhereInput) (*generated.SubcontrolHistoryConnection, error) - Subscribers(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) (*generated.SubscriberConnection, error) - TfaSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TFASettingWhereInput) (*generated.TFASettingConnection, error) - Tasks(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskWhereInput) (*generated.TaskConnection, error) - TaskHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskHistoryWhereInput) (*generated.TaskHistoryConnection, error) - Templates(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateOrder, where *generated.TemplateWhereInput) (*generated.TemplateConnection, error) - TemplateHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateHistoryOrder, where *generated.TemplateHistoryWhereInput) (*generated.TemplateHistoryConnection, error) - Users(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserOrder, where *generated.UserWhereInput) (*generated.UserConnection, error) - UserHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserHistoryOrder, where *generated.UserHistoryWhereInput) (*generated.UserHistoryConnection, error) - UserSettings(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingWhereInput) (*generated.UserSettingConnection, error) - UserSettingHistories(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingHistoryWhereInput) (*generated.UserSettingHistoryConnection, error) - ActionPlan(ctx context.Context, id string) (*generated.ActionPlan, error) - AdminAPITokenSearch(ctx context.Context, query string) (*APITokenSearchResult, error) - AdminActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) - AdminContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) - AdminControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) - AdminControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) - AdminDocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) - AdminEntitySearch(ctx context.Context, query string) (*EntitySearchResult, error) - AdminEntityTypeSearch(ctx context.Context, query string) (*EntityTypeSearchResult, error) - AdminEventSearch(ctx context.Context, query string) (*EventSearchResult, error) - AdminFileSearch(ctx context.Context, query string) (*FileSearchResult, error) - AdminGroupSearch(ctx context.Context, query string) (*GroupSearchResult, error) - AdminGroupSettingSearch(ctx context.Context, query string) (*GroupSettingSearchResult, error) - AdminIntegrationSearch(ctx context.Context, query string) (*IntegrationSearchResult, error) - AdminInternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) - AdminNarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) - AdminOrgSubscriptionSearch(ctx context.Context, query string) (*OrgSubscriptionSearchResult, error) - AdminOrganizationSearch(ctx context.Context, query string) (*OrganizationSearchResult, error) - AdminOrganizationSettingSearch(ctx context.Context, query string) (*OrganizationSettingSearchResult, error) - AdminPersonalAccessTokenSearch(ctx context.Context, query string) (*PersonalAccessTokenSearchResult, error) - AdminProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) - AdminProgramSearch(ctx context.Context, query string) (*ProgramSearchResult, error) - AdminRiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) - AdminStandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) - AdminSubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) - AdminSubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) - AdminTFASettingSearch(ctx context.Context, query string) (*TFASettingSearchResult, error) - AdminTaskSearch(ctx context.Context, query string) (*TaskSearchResult, error) - AdminTemplateSearch(ctx context.Context, query string) (*TemplateSearchResult, error) - AdminUserSearch(ctx context.Context, query string) (*UserSearchResult, error) - AdminUserSettingSearch(ctx context.Context, query string) (*UserSettingSearchResult, error) - APIToken(ctx context.Context, id string) (*generated.APIToken, error) - AuditLogs(ctx context.Context, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *AuditLogWhereInput) (*AuditLogConnection, error) - Contact(ctx context.Context, id string) (*generated.Contact, error) - Control(ctx context.Context, id string) (*generated.Control, error) - ControlObjective(ctx context.Context, id string) (*generated.ControlObjective, error) - DocumentData(ctx context.Context, id string) (*generated.DocumentData, error) - Entity(ctx context.Context, id string) (*generated.Entity, error) - EntityType(ctx context.Context, id string) (*generated.EntityType, error) - Event(ctx context.Context, id string) (*generated.Event, error) - File(ctx context.Context, id string) (*generated.File, error) - Group(ctx context.Context, id string) (*generated.Group, error) - GroupMembership(ctx context.Context, id string) (*generated.GroupMembership, error) - GroupSetting(ctx context.Context, id string) (*generated.GroupSetting, error) - Hush(ctx context.Context, id string) (*generated.Hush, error) - Integration(ctx context.Context, id string) (*generated.Integration, error) - InternalPolicy(ctx context.Context, id string) (*generated.InternalPolicy, error) - Invite(ctx context.Context, id string) (*generated.Invite, error) - Narrative(ctx context.Context, id string) (*generated.Narrative, error) - Organization(ctx context.Context, id string) (*generated.Organization, error) - OrganizationSetting(ctx context.Context, id string) (*generated.OrganizationSetting, error) - OrgMembership(ctx context.Context, id string) (*generated.OrgMembership, error) - OrgSubscription(ctx context.Context, id string) (*generated.OrgSubscription, error) - PersonalAccessToken(ctx context.Context, id string) (*generated.PersonalAccessToken, error) - Procedure(ctx context.Context, id string) (*generated.Procedure, error) - Program(ctx context.Context, id string) (*generated.Program, error) - ProgramMembership(ctx context.Context, id string) (*generated.ProgramMembership, error) - Risk(ctx context.Context, id string) (*generated.Risk, error) - APITokenSearch(ctx context.Context, query string) (*APITokenSearchResult, error) - ActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) - ContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) - ControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) - ControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) - DocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) - EntitySearch(ctx context.Context, query string) (*EntitySearchResult, error) - EntityTypeSearch(ctx context.Context, query string) (*EntityTypeSearchResult, error) - EventSearch(ctx context.Context, query string) (*EventSearchResult, error) - FileSearch(ctx context.Context, query string) (*FileSearchResult, error) - GroupSearch(ctx context.Context, query string) (*GroupSearchResult, error) - GroupSettingSearch(ctx context.Context, query string) (*GroupSettingSearchResult, error) - IntegrationSearch(ctx context.Context, query string) (*IntegrationSearchResult, error) - InternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) - NarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) - OrgSubscriptionSearch(ctx context.Context, query string) (*OrgSubscriptionSearchResult, error) - OrganizationSearch(ctx context.Context, query string) (*OrganizationSearchResult, error) - OrganizationSettingSearch(ctx context.Context, query string) (*OrganizationSettingSearchResult, error) - PersonalAccessTokenSearch(ctx context.Context, query string) (*PersonalAccessTokenSearchResult, error) - ProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) - ProgramSearch(ctx context.Context, query string) (*ProgramSearchResult, error) - RiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) - StandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) - SubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) - SubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) - TFASettingSearch(ctx context.Context, query string) (*TFASettingSearchResult, error) - TaskSearch(ctx context.Context, query string) (*TaskSearchResult, error) - TemplateSearch(ctx context.Context, query string) (*TemplateSearchResult, error) - UserSearch(ctx context.Context, query string) (*UserSearchResult, error) - UserSettingSearch(ctx context.Context, query string) (*UserSettingSearchResult, error) - Search(ctx context.Context, query string) (*SearchResultConnection, error) - AdminSearch(ctx context.Context, query string) (*SearchResultConnection, error) - Standard(ctx context.Context, id string) (*generated.Standard, error) - Subcontrol(ctx context.Context, id string) (*generated.Subcontrol, error) - Subscriber(ctx context.Context, email string) (*generated.Subscriber, error) - Task(ctx context.Context, id string) (*generated.Task, error) - Template(ctx context.Context, id string) (*generated.Template, error) - TfaSetting(ctx context.Context, id *string) (*generated.TFASetting, error) - User(ctx context.Context, id string) (*generated.User, error) - UserSetting(ctx context.Context, id string) (*generated.UserSetting, error) + var zeroVal string + return zeroVal, nil } -type CreateEntityInputResolver interface { - Note(ctx context.Context, obj *generated.CreateEntityInput, data *generated.CreateNoteInput) error -} -type CreateGroupInputResolver interface { - CreateGroupSettings(ctx context.Context, obj *generated.CreateGroupInput, data *generated.CreateGroupSettingInput) error -} -type CreateOrganizationInputResolver interface { - CreateOrgSettings(ctx context.Context, obj *generated.CreateOrganizationInput, data *generated.CreateOrganizationSettingInput) error -} -type UpdateEntityInputResolver interface { - Note(ctx context.Context, obj *generated.UpdateEntityInput, data *generated.CreateNoteInput) error -} -type UpdateGroupInputResolver interface { - AddGroupMembers(ctx context.Context, obj *generated.UpdateGroupInput, data []*generated.CreateGroupMembershipInput) error - UpdateGroupSettings(ctx context.Context, obj *generated.UpdateGroupInput, data *generated.UpdateGroupSettingInput) error -} -type UpdateOrganizationInputResolver interface { - AddOrgMembers(ctx context.Context, obj *generated.UpdateOrganizationInput, data []*generated.CreateOrgMembershipInput) error - UpdateOrgSettings(ctx context.Context, obj *generated.UpdateOrganizationInput, data *generated.UpdateOrganizationSettingInput) error -} -type UpdateProgramInputResolver interface { - AddProgramMembers(ctx context.Context, obj *generated.UpdateProgramInput, data []*generated.CreateProgramMembershipInput) error -} -type UpdateTFASettingInputResolver interface { - RegenBackupCodes(ctx context.Context, obj *generated.UpdateTFASettingInput, data *bool) error +func (ec *executionContext) field_Query_adminTaskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminTaskSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil } +func (ec *executionContext) field_Query_adminTaskSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } -type executableSchema struct { - schema *ast.Schema - resolvers ResolverRoot - directives DirectiveRoot - complexity ComplexityRoot + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } + + var zeroVal string + return zeroVal, nil } -func (e *executableSchema) Schema() *ast.Schema { - if e.schema != nil { - return e.schema +func (ec *executionContext) field_Query_adminTemplateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminTemplateSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err } - return parsedSchema + args["query"] = arg0 + return args, nil } +func (ec *executionContext) field_Query_adminTemplateSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { - ec := executionContext{nil, e, 0, 0, nil} - _ = ec - switch typeName + "." + field { - - case "APIToken.createdAt": - if e.complexity.APIToken.CreatedAt == nil { - break - } - - return e.complexity.APIToken.CreatedAt(childComplexity), true - - case "APIToken.createdBy": - if e.complexity.APIToken.CreatedBy == nil { - break - } - - return e.complexity.APIToken.CreatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "APIToken.deletedAt": - if e.complexity.APIToken.DeletedAt == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.APIToken.DeletedAt(childComplexity), true +func (ec *executionContext) field_Query_adminUserSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminUserSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminUserSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "APIToken.deletedBy": - if e.complexity.APIToken.DeletedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.APIToken.DeletedBy(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "APIToken.description": - if e.complexity.APIToken.Description == nil { - break - } +func (ec *executionContext) field_Query_adminUserSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_adminUserSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_adminUserSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.APIToken.Description(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "APIToken.expiresAt": - if e.complexity.APIToken.ExpiresAt == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.APIToken.ExpiresAt(childComplexity), true +func (ec *executionContext) field_Query_apiTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_apiTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_apiTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "APIToken.id": - if e.complexity.APIToken.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.APIToken.ID(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "APIToken.lastUsedAt": - if e.complexity.APIToken.LastUsedAt == nil { - break - } +func (ec *executionContext) field_Query_apiToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_apiToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_apiToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.APIToken.LastUsedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "APIToken.name": - if e.complexity.APIToken.Name == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.APIToken.Name(childComplexity), true +func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_apiTokens_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_apiTokens_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_apiTokens_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_apiTokens_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_apiTokens_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_apiTokens_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "APIToken.owner": - if e.complexity.APIToken.Owner == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.APIToken.Owner(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "APIToken.ownerID": - if e.complexity.APIToken.OwnerID == nil { - break - } +func (ec *executionContext) field_Query_apiTokens_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.APIToken.OwnerID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "APIToken.scopes": - if e.complexity.APIToken.Scopes == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.APIToken.Scopes(childComplexity), true +func (ec *executionContext) field_Query_apiTokens_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "APIToken.tags": - if e.complexity.APIToken.Tags == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.APIToken.Tags(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "APIToken.token": - if e.complexity.APIToken.Token == nil { - break - } +func (ec *executionContext) field_Query_apiTokens_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.APIToken.Token(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "APIToken.updatedAt": - if e.complexity.APIToken.UpdatedAt == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.APIToken.UpdatedAt(childComplexity), true +func (ec *executionContext) field_Query_apiTokens_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.APITokenWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.APITokenWhereInput + return zeroVal, nil + } - case "APIToken.updatedBy": - if e.complexity.APIToken.UpdatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, tmp) + } - return e.complexity.APIToken.UpdatedBy(childComplexity), true + var zeroVal *generated.APITokenWhereInput + return zeroVal, nil +} - case "APITokenBulkCreatePayload.apiTokens": - if e.complexity.APITokenBulkCreatePayload.APITokens == nil { - break - } +func (ec *executionContext) field_Query_auditLogs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_auditLogs_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_auditLogs_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_auditLogs_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_auditLogs_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_auditLogs_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_auditLogs_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.APITokenBulkCreatePayload.APITokens(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "APITokenConnection.edges": - if e.complexity.APITokenConnection.Edges == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.APITokenConnection.Edges(childComplexity), true +func (ec *executionContext) field_Query_auditLogs_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "APITokenConnection.pageInfo": - if e.complexity.APITokenConnection.PageInfo == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.APITokenConnection.PageInfo(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "APITokenConnection.totalCount": - if e.complexity.APITokenConnection.TotalCount == nil { - break - } +func (ec *executionContext) field_Query_auditLogs_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.APITokenConnection.TotalCount(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "APITokenCreatePayload.apiToken": - if e.complexity.APITokenCreatePayload.APIToken == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.APITokenCreatePayload.APIToken(childComplexity), true +func (ec *executionContext) field_Query_auditLogs_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "APITokenDeletePayload.deletedID": - if e.complexity.APITokenDeletePayload.DeletedID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.APITokenDeletePayload.DeletedID(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "APITokenEdge.cursor": - if e.complexity.APITokenEdge.Cursor == nil { - break - } +func (ec *executionContext) field_Query_auditLogs_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*model.AuditLogWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *model.AuditLogWhereInput + return zeroVal, nil + } - return e.complexity.APITokenEdge.Cursor(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogWhereInput(ctx, tmp) + } - case "APITokenEdge.node": - if e.complexity.APITokenEdge.Node == nil { - break - } + var zeroVal *model.AuditLogWhereInput + return zeroVal, nil +} - return e.complexity.APITokenEdge.Node(childComplexity), true +func (ec *executionContext) field_Query_contactHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contactHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_contactHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_contactHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_contactHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_contactHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_contactHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "APITokenSearchResult.apiTokens": - if e.complexity.APITokenSearchResult.APITokens == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.APITokenSearchResult.APITokens(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "APITokenUpdatePayload.apiToken": - if e.complexity.APITokenUpdatePayload.APIToken == nil { - break - } +func (ec *executionContext) field_Query_contactHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.APITokenUpdatePayload.APIToken(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ActionPlan.control": - if e.complexity.ActionPlan.Control == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ActionPlan.Control(childComplexity), true +func (ec *executionContext) field_Query_contactHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ActionPlan.createdAt": - if e.complexity.ActionPlan.CreatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ActionPlan.CreatedAt(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ActionPlan.createdBy": - if e.complexity.ActionPlan.CreatedBy == nil { - break - } +func (ec *executionContext) field_Query_contactHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ActionPlan.CreatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ActionPlan.deletedAt": - if e.complexity.ActionPlan.DeletedAt == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ActionPlan.DeletedAt(childComplexity), true - - case "ActionPlan.deletedBy": - if e.complexity.ActionPlan.DeletedBy == nil { - break - } - - return e.complexity.ActionPlan.DeletedBy(childComplexity), true +func (ec *executionContext) field_Query_contactHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ContactHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ContactHistoryWhereInput + return zeroVal, nil + } - case "ActionPlan.description": - if e.complexity.ActionPlan.Description == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, tmp) + } - return e.complexity.ActionPlan.Description(childComplexity), true + var zeroVal *generated.ContactHistoryWhereInput + return zeroVal, nil +} - case "ActionPlan.details": - if e.complexity.ActionPlan.Details == nil { - break - } +func (ec *executionContext) field_Query_contactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contactSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_contactSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ActionPlan.Details(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "ActionPlan.dueDate": - if e.complexity.ActionPlan.DueDate == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ActionPlan.DueDate(childComplexity), true +func (ec *executionContext) field_Query_contact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contact_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_contact_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ActionPlan.id": - if e.complexity.ActionPlan.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.ActionPlan.ID(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ActionPlan.name": - if e.complexity.ActionPlan.Name == nil { - break - } +func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_contacts_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_contacts_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_contacts_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_contacts_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_contacts_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_contacts_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ActionPlan.Name(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ActionPlan.priority": - if e.complexity.ActionPlan.Priority == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ActionPlan.Priority(childComplexity), true +func (ec *executionContext) field_Query_contacts_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ActionPlan.program": - if e.complexity.ActionPlan.Program == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ActionPlan.Program(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ActionPlan.risk": - if e.complexity.ActionPlan.Risk == nil { - break - } +func (ec *executionContext) field_Query_contacts_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ActionPlan.Risk(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ActionPlan.source": - if e.complexity.ActionPlan.Source == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ActionPlan.Source(childComplexity), true +func (ec *executionContext) field_Query_contacts_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ActionPlan.standard": - if e.complexity.ActionPlan.Standard == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ActionPlan.Standard(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ActionPlan.status": - if e.complexity.ActionPlan.Status == nil { - break - } +func (ec *executionContext) field_Query_contacts_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ContactWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ContactWhereInput + return zeroVal, nil + } - return e.complexity.ActionPlan.Status(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, tmp) + } - case "ActionPlan.tags": - if e.complexity.ActionPlan.Tags == nil { - break - } + var zeroVal *generated.ContactWhereInput + return zeroVal, nil +} - return e.complexity.ActionPlan.Tags(childComplexity), true +func (ec *executionContext) field_Query_controlHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controlHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controlHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controlHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controlHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controlHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ActionPlan.updatedAt": - if e.complexity.ActionPlan.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ActionPlan.UpdatedAt(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ActionPlan.updatedBy": - if e.complexity.ActionPlan.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_controlHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ActionPlan.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ActionPlan.user": - if e.complexity.ActionPlan.User == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ActionPlan.User(childComplexity), true +func (ec *executionContext) field_Query_controlHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ActionPlanBulkCreatePayload.actionPlans": - if e.complexity.ActionPlanBulkCreatePayload.ActionPlans == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ActionPlanBulkCreatePayload.ActionPlans(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ActionPlanConnection.edges": - if e.complexity.ActionPlanConnection.Edges == nil { - break - } +func (ec *executionContext) field_Query_controlHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ActionPlanConnection.Edges(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ActionPlanConnection.pageInfo": - if e.complexity.ActionPlanConnection.PageInfo == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ActionPlanConnection.PageInfo(childComplexity), true +func (ec *executionContext) field_Query_controlHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlHistoryWhereInput + return zeroVal, nil + } - case "ActionPlanConnection.totalCount": - if e.complexity.ActionPlanConnection.TotalCount == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInput(ctx, tmp) + } - return e.complexity.ActionPlanConnection.TotalCount(childComplexity), true + var zeroVal *generated.ControlHistoryWhereInput + return zeroVal, nil +} - case "ActionPlanCreatePayload.actionPlan": - if e.complexity.ActionPlanCreatePayload.ActionPlan == nil { - break - } +func (ec *executionContext) field_Query_controlObjectiveHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjectiveHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controlObjectiveHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controlObjectiveHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controlObjectiveHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controlObjectiveHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controlObjectiveHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ActionPlanCreatePayload.ActionPlan(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ActionPlanDeletePayload.deletedID": - if e.complexity.ActionPlanDeletePayload.DeletedID == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ActionPlanDeletePayload.DeletedID(childComplexity), true +func (ec *executionContext) field_Query_controlObjectiveHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ActionPlanEdge.cursor": - if e.complexity.ActionPlanEdge.Cursor == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ActionPlanEdge.Cursor(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ActionPlanEdge.node": - if e.complexity.ActionPlanEdge.Node == nil { - break - } +func (ec *executionContext) field_Query_controlObjectiveHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ActionPlanEdge.Node(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ActionPlanHistory.createdAt": - if e.complexity.ActionPlanHistory.CreatedAt == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ActionPlanHistory.CreatedAt(childComplexity), true +func (ec *executionContext) field_Query_controlObjectiveHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ActionPlanHistory.createdBy": - if e.complexity.ActionPlanHistory.CreatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ActionPlanHistory.CreatedBy(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ActionPlanHistory.deletedAt": - if e.complexity.ActionPlanHistory.DeletedAt == nil { - break - } +func (ec *executionContext) field_Query_controlObjectiveHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlObjectiveHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlObjectiveHistoryWhereInput + return zeroVal, nil + } - return e.complexity.ActionPlanHistory.DeletedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlObjectiveHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInput(ctx, tmp) + } - case "ActionPlanHistory.deletedBy": - if e.complexity.ActionPlanHistory.DeletedBy == nil { - break - } + var zeroVal *generated.ControlObjectiveHistoryWhereInput + return zeroVal, nil +} - return e.complexity.ActionPlanHistory.DeletedBy(childComplexity), true +func (ec *executionContext) field_Query_controlObjectiveSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjectiveSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_controlObjectiveSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ActionPlanHistory.description": - if e.complexity.ActionPlanHistory.Description == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.ActionPlanHistory.Description(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ActionPlanHistory.details": - if e.complexity.ActionPlanHistory.Details == nil { - break - } +func (ec *executionContext) field_Query_controlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjective_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_controlObjective_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ActionPlanHistory.Details(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "ActionPlanHistory.dueDate": - if e.complexity.ActionPlanHistory.DueDate == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ActionPlanHistory.DueDate(childComplexity), true +func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlObjectives_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controlObjectives_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controlObjectives_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controlObjectives_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controlObjectives_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controlObjectives_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ActionPlanHistory.historyTime": - if e.complexity.ActionPlanHistory.HistoryTime == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ActionPlanHistory.HistoryTime(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ActionPlanHistory.id": - if e.complexity.ActionPlanHistory.ID == nil { - break - } +func (ec *executionContext) field_Query_controlObjectives_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ActionPlanHistory.ID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ActionPlanHistory.name": - if e.complexity.ActionPlanHistory.Name == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ActionPlanHistory.Name(childComplexity), true +func (ec *executionContext) field_Query_controlObjectives_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ActionPlanHistory.operation": - if e.complexity.ActionPlanHistory.Operation == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ActionPlanHistory.Operation(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ActionPlanHistory.priority": - if e.complexity.ActionPlanHistory.Priority == nil { - break - } +func (ec *executionContext) field_Query_controlObjectives_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ActionPlanHistory.Priority(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ActionPlanHistory.ref": - if e.complexity.ActionPlanHistory.Ref == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ActionPlanHistory.Ref(childComplexity), true +func (ec *executionContext) field_Query_controlObjectives_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlObjectiveWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlObjectiveWhereInput + return zeroVal, nil + } - case "ActionPlanHistory.source": - if e.complexity.ActionPlanHistory.Source == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, tmp) + } - return e.complexity.ActionPlanHistory.Source(childComplexity), true + var zeroVal *generated.ControlObjectiveWhereInput + return zeroVal, nil +} - case "ActionPlanHistory.status": - if e.complexity.ActionPlanHistory.Status == nil { - break - } +func (ec *executionContext) field_Query_controlSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controlSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_controlSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ActionPlanHistory.Status(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "ActionPlanHistory.tags": - if e.complexity.ActionPlanHistory.Tags == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ActionPlanHistory.Tags(childComplexity), true +func (ec *executionContext) field_Query_control_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_control_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_control_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ActionPlanHistory.updatedAt": - if e.complexity.ActionPlanHistory.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.ActionPlanHistory.UpdatedAt(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ActionPlanHistory.updatedBy": - if e.complexity.ActionPlanHistory.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_controls_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_controls_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_controls_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_controls_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_controls_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_controls_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_controls_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ActionPlanHistory.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ActionPlanHistoryConnection.edges": - if e.complexity.ActionPlanHistoryConnection.Edges == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ActionPlanHistoryConnection.Edges(childComplexity), true +func (ec *executionContext) field_Query_controls_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ActionPlanHistoryConnection.pageInfo": - if e.complexity.ActionPlanHistoryConnection.PageInfo == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ActionPlanHistoryConnection.PageInfo(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ActionPlanHistoryConnection.totalCount": - if e.complexity.ActionPlanHistoryConnection.TotalCount == nil { - break - } +func (ec *executionContext) field_Query_controls_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ActionPlanHistoryConnection.TotalCount(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ActionPlanHistoryEdge.cursor": - if e.complexity.ActionPlanHistoryEdge.Cursor == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ActionPlanHistoryEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_controls_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ActionPlanHistoryEdge.node": - if e.complexity.ActionPlanHistoryEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ActionPlanHistoryEdge.Node(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ActionPlanSearchResult.actionPlans": - if e.complexity.ActionPlanSearchResult.ActionPlans == nil { - break - } +func (ec *executionContext) field_Query_controls_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ControlWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ControlWhereInput + return zeroVal, nil + } - return e.complexity.ActionPlanSearchResult.ActionPlans(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, tmp) + } - case "ActionPlanUpdatePayload.actionPlan": - if e.complexity.ActionPlanUpdatePayload.ActionPlan == nil { - break - } + var zeroVal *generated.ControlWhereInput + return zeroVal, nil +} - return e.complexity.ActionPlanUpdatePayload.ActionPlan(childComplexity), true +func (ec *executionContext) field_Query_documentDataHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentDataHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_documentDataHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_documentDataHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_documentDataHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_documentDataHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_documentDataHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "AuditLog.changes": - if e.complexity.AuditLog.Changes == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.AuditLog.Changes(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "AuditLog.id": - if e.complexity.AuditLog.ID == nil { - break - } +func (ec *executionContext) field_Query_documentDataHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.AuditLog.ID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "AuditLog.operation": - if e.complexity.AuditLog.Operation == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.AuditLog.Operation(childComplexity), true +func (ec *executionContext) field_Query_documentDataHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "AuditLog.table": - if e.complexity.AuditLog.Table == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.AuditLog.Table(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "AuditLog.time": - if e.complexity.AuditLog.Time == nil { - break - } +func (ec *executionContext) field_Query_documentDataHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.AuditLog.Time(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "AuditLog.updatedBy": - if e.complexity.AuditLog.UpdatedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.AuditLog.UpdatedBy(childComplexity), true +func (ec *executionContext) field_Query_documentDataHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.DocumentDataHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.DocumentDataHistoryWhereInput + return zeroVal, nil + } - case "AuditLogConnection.edges": - if e.complexity.AuditLogConnection.Edges == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, tmp) + } - return e.complexity.AuditLogConnection.Edges(childComplexity), true + var zeroVal *generated.DocumentDataHistoryWhereInput + return zeroVal, nil +} - case "AuditLogConnection.pageInfo": - if e.complexity.AuditLogConnection.PageInfo == nil { - break - } +func (ec *executionContext) field_Query_documentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentDataSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_documentDataSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.AuditLogConnection.PageInfo(childComplexity), true - - case "AuditLogConnection.totalCount": - if e.complexity.AuditLogConnection.TotalCount == nil { - break - } - - return e.complexity.AuditLogConnection.TotalCount(childComplexity), true - - case "AuditLogEdge.cursor": - if e.complexity.AuditLogEdge.Cursor == nil { - break - } - - return e.complexity.AuditLogEdge.Cursor(childComplexity), true - - case "AuditLogEdge.node": - if e.complexity.AuditLogEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.AuditLogEdge.Node(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Contact.address": - if e.complexity.Contact.Address == nil { - break - } +func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentDataSlice_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_documentDataSlice_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_documentDataSlice_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_documentDataSlice_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_documentDataSlice_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_documentDataSlice_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Contact.Address(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Contact.company": - if e.complexity.Contact.Company == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Contact.Company(childComplexity), true +func (ec *executionContext) field_Query_documentDataSlice_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Contact.createdAt": - if e.complexity.Contact.CreatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Contact.CreatedAt(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Contact.createdBy": - if e.complexity.Contact.CreatedBy == nil { - break - } +func (ec *executionContext) field_Query_documentDataSlice_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Contact.CreatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Contact.deletedAt": - if e.complexity.Contact.DeletedAt == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Contact.DeletedAt(childComplexity), true +func (ec *executionContext) field_Query_documentDataSlice_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Contact.deletedBy": - if e.complexity.Contact.DeletedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Contact.DeletedBy(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Contact.email": - if e.complexity.Contact.Email == nil { - break - } +func (ec *executionContext) field_Query_documentDataSlice_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.DocumentDataWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.DocumentDataWhereInput + return zeroVal, nil + } - return e.complexity.Contact.Email(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, tmp) + } - case "Contact.entities": - if e.complexity.Contact.Entities == nil { - break - } + var zeroVal *generated.DocumentDataWhereInput + return zeroVal, nil +} - return e.complexity.Contact.Entities(childComplexity), true +func (ec *executionContext) field_Query_documentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_documentData_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_documentData_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Contact.files": - if e.complexity.Contact.Files == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.Contact.Files(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Contact.fullName": - if e.complexity.Contact.FullName == nil { - break - } +func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entities_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entities_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entities_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entities_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entities_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entities_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entities_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Contact.FullName(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Contact.id": - if e.complexity.Contact.ID == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Contact.ID(childComplexity), true +func (ec *executionContext) field_Query_entities_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Contact.owner": - if e.complexity.Contact.Owner == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Contact.Owner(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Contact.ownerID": - if e.complexity.Contact.OwnerID == nil { - break - } +func (ec *executionContext) field_Query_entities_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Contact.OwnerID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Contact.phoneNumber": - if e.complexity.Contact.PhoneNumber == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Contact.PhoneNumber(childComplexity), true +func (ec *executionContext) field_Query_entities_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Contact.status": - if e.complexity.Contact.Status == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Contact.Status(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Contact.tags": - if e.complexity.Contact.Tags == nil { - break - } +func (ec *executionContext) field_Query_entities_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityOrder + return zeroVal, nil + } - return e.complexity.Contact.Tags(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrder(ctx, tmp) + } - case "Contact.title": - if e.complexity.Contact.Title == nil { - break - } + var zeroVal *generated.EntityOrder + return zeroVal, nil +} - return e.complexity.Contact.Title(childComplexity), true +func (ec *executionContext) field_Query_entities_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityWhereInput + return zeroVal, nil + } - case "Contact.updatedAt": - if e.complexity.Contact.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, tmp) + } - return e.complexity.Contact.UpdatedAt(childComplexity), true + var zeroVal *generated.EntityWhereInput + return zeroVal, nil +} - case "Contact.updatedBy": - if e.complexity.Contact.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_entityHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entityHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entityHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entityHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entityHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entityHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entityHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Contact.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ContactBulkCreatePayload.contacts": - if e.complexity.ContactBulkCreatePayload.Contacts == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ContactBulkCreatePayload.Contacts(childComplexity), true +func (ec *executionContext) field_Query_entityHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ContactConnection.edges": - if e.complexity.ContactConnection.Edges == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ContactConnection.Edges(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ContactConnection.pageInfo": - if e.complexity.ContactConnection.PageInfo == nil { - break - } +func (ec *executionContext) field_Query_entityHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ContactConnection.PageInfo(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ContactConnection.totalCount": - if e.complexity.ContactConnection.TotalCount == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ContactConnection.TotalCount(childComplexity), true +func (ec *executionContext) field_Query_entityHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ContactCreatePayload.contact": - if e.complexity.ContactCreatePayload.Contact == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ContactCreatePayload.Contact(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ContactDeletePayload.deletedID": - if e.complexity.ContactDeletePayload.DeletedID == nil { - break - } +func (ec *executionContext) field_Query_entityHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityHistoryOrder + return zeroVal, nil + } - return e.complexity.ContactDeletePayload.DeletedID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrder(ctx, tmp) + } - case "ContactEdge.cursor": - if e.complexity.ContactEdge.Cursor == nil { - break - } + var zeroVal *generated.EntityHistoryOrder + return zeroVal, nil +} - return e.complexity.ContactEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_entityHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityHistoryWhereInput + return zeroVal, nil + } - case "ContactEdge.node": - if e.complexity.ContactEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, tmp) + } - return e.complexity.ContactEdge.Node(childComplexity), true + var zeroVal *generated.EntityHistoryWhereInput + return zeroVal, nil +} - case "ContactHistory.address": - if e.complexity.ContactHistory.Address == nil { - break - } +func (ec *executionContext) field_Query_entitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entitySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entitySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ContactHistory.Address(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "ContactHistory.company": - if e.complexity.ContactHistory.Company == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ContactHistory.Company(childComplexity), true +func (ec *executionContext) field_Query_entityTypeHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityTypeHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entityTypeHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entityTypeHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entityTypeHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entityTypeHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entityTypeHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entityTypeHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ContactHistory.createdAt": - if e.complexity.ContactHistory.CreatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ContactHistory.CreatedAt(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ContactHistory.createdBy": - if e.complexity.ContactHistory.CreatedBy == nil { - break - } +func (ec *executionContext) field_Query_entityTypeHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ContactHistory.CreatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ContactHistory.deletedAt": - if e.complexity.ContactHistory.DeletedAt == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ContactHistory.DeletedAt(childComplexity), true +func (ec *executionContext) field_Query_entityTypeHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ContactHistory.deletedBy": - if e.complexity.ContactHistory.DeletedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ContactHistory.DeletedBy(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ContactHistory.email": - if e.complexity.ContactHistory.Email == nil { - break - } +func (ec *executionContext) field_Query_entityTypeHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ContactHistory.Email(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ContactHistory.fullName": - if e.complexity.ContactHistory.FullName == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ContactHistory.FullName(childComplexity), true +func (ec *executionContext) field_Query_entityTypeHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityTypeHistoryOrder + return zeroVal, nil + } - case "ContactHistory.historyTime": - if e.complexity.ContactHistory.HistoryTime == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityTypeHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrder(ctx, tmp) + } - return e.complexity.ContactHistory.HistoryTime(childComplexity), true + var zeroVal *generated.EntityTypeHistoryOrder + return zeroVal, nil +} - case "ContactHistory.id": - if e.complexity.ContactHistory.ID == nil { - break - } +func (ec *executionContext) field_Query_entityTypeHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityTypeHistoryWhereInput + return zeroVal, nil + } - return e.complexity.ContactHistory.ID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, tmp) + } - case "ContactHistory.operation": - if e.complexity.ContactHistory.Operation == nil { - break - } + var zeroVal *generated.EntityTypeHistoryWhereInput + return zeroVal, nil +} - return e.complexity.ContactHistory.Operation(childComplexity), true +func (ec *executionContext) field_Query_entityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityTypeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entityTypeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ContactHistory.ownerID": - if e.complexity.ContactHistory.OwnerID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.ContactHistory.OwnerID(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ContactHistory.phoneNumber": - if e.complexity.ContactHistory.PhoneNumber == nil { - break - } +func (ec *executionContext) field_Query_entityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityType_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entityType_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ContactHistory.PhoneNumber(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "ContactHistory.ref": - if e.complexity.ContactHistory.Ref == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ContactHistory.Ref(childComplexity), true +func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entityTypes_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_entityTypes_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_entityTypes_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_entityTypes_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_entityTypes_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_entityTypes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_entityTypes_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ContactHistory.status": - if e.complexity.ContactHistory.Status == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ContactHistory.Status(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ContactHistory.tags": - if e.complexity.ContactHistory.Tags == nil { - break - } +func (ec *executionContext) field_Query_entityTypes_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ContactHistory.Tags(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ContactHistory.title": - if e.complexity.ContactHistory.Title == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ContactHistory.Title(childComplexity), true +func (ec *executionContext) field_Query_entityTypes_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ContactHistory.updatedAt": - if e.complexity.ContactHistory.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ContactHistory.UpdatedAt(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ContactHistory.updatedBy": - if e.complexity.ContactHistory.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_entityTypes_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ContactHistory.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ContactHistoryConnection.edges": - if e.complexity.ContactHistoryConnection.Edges == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ContactHistoryConnection.Edges(childComplexity), true +func (ec *executionContext) field_Query_entityTypes_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.EntityTypeOrder + return zeroVal, nil + } - case "ContactHistoryConnection.pageInfo": - if e.complexity.ContactHistoryConnection.PageInfo == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOEntityTypeOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrder(ctx, tmp) + } - return e.complexity.ContactHistoryConnection.PageInfo(childComplexity), true + var zeroVal *generated.EntityTypeOrder + return zeroVal, nil +} - case "ContactHistoryConnection.totalCount": - if e.complexity.ContactHistoryConnection.TotalCount == nil { - break - } +func (ec *executionContext) field_Query_entityTypes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EntityTypeWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EntityTypeWhereInput + return zeroVal, nil + } - return e.complexity.ContactHistoryConnection.TotalCount(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, tmp) + } - case "ContactHistoryEdge.cursor": - if e.complexity.ContactHistoryEdge.Cursor == nil { - break - } + var zeroVal *generated.EntityTypeWhereInput + return zeroVal, nil +} - return e.complexity.ContactHistoryEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_entity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_entity_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_entity_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ContactHistoryEdge.node": - if e.complexity.ContactHistoryEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.ContactHistoryEdge.Node(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ContactSearchResult.contacts": - if e.complexity.ContactSearchResult.Contacts == nil { - break - } +func (ec *executionContext) field_Query_eventHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_eventHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_eventHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_eventHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_eventHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_eventHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_eventHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ContactSearchResult.Contacts(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ContactUpdatePayload.contact": - if e.complexity.ContactUpdatePayload.Contact == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ContactUpdatePayload.Contact(childComplexity), true +func (ec *executionContext) field_Query_eventHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Control.actionPlans": - if e.complexity.Control.ActionPlans == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Control.ActionPlans(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Control.blockedGroups": - if e.complexity.Control.BlockedGroups == nil { - break - } +func (ec *executionContext) field_Query_eventHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Control.BlockedGroups(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Control.class": - if e.complexity.Control.Class == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Control.Class(childComplexity), true - - case "Control.controlNumber": - if e.complexity.Control.ControlNumber == nil { - break - } - - return e.complexity.Control.ControlNumber(childComplexity), true - - case "Control.controlObjectives": - if e.complexity.Control.ControlObjectives == nil { - break - } - - return e.complexity.Control.ControlObjectives(childComplexity), true - - case "Control.controlType": - if e.complexity.Control.ControlType == nil { - break - } - - return e.complexity.Control.ControlType(childComplexity), true - - case "Control.createdAt": - if e.complexity.Control.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_eventHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Control.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Control.createdBy": - if e.complexity.Control.CreatedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Control.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_eventHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EventHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EventHistoryWhereInput + return zeroVal, nil + } - case "Control.deletedAt": - if e.complexity.Control.DeletedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, tmp) + } - return e.complexity.Control.DeletedAt(childComplexity), true + var zeroVal *generated.EventHistoryWhereInput + return zeroVal, nil +} - case "Control.deletedBy": - if e.complexity.Control.DeletedBy == nil { - break - } +func (ec *executionContext) field_Query_eventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_eventSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_eventSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.Control.DeletedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "Control.description": - if e.complexity.Control.Description == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.Control.Description(childComplexity), true +func (ec *executionContext) field_Query_event_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_event_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_event_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Control.details": - if e.complexity.Control.Details == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.Control.Details(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Control.editors": - if e.complexity.Control.Editors == nil { - break - } +func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_events_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_events_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_events_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_events_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_events_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_events_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Control.Editors(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Control.family": - if e.complexity.Control.Family == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Control.Family(childComplexity), true +func (ec *executionContext) field_Query_events_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Control.id": - if e.complexity.Control.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Control.ID(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Control.mappedFrameworks": - if e.complexity.Control.MappedFrameworks == nil { - break - } +func (ec *executionContext) field_Query_events_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Control.MappedFrameworks(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Control.name": - if e.complexity.Control.Name == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Control.Name(childComplexity), true +func (ec *executionContext) field_Query_events_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Control.narratives": - if e.complexity.Control.Narratives == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Control.Narratives(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Control.owner": - if e.complexity.Control.Owner == nil { - break - } +func (ec *executionContext) field_Query_events_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.EventWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.EventWhereInput + return zeroVal, nil + } - return e.complexity.Control.Owner(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, tmp) + } - case "Control.ownerID": - if e.complexity.Control.OwnerID == nil { - break - } + var zeroVal *generated.EventWhereInput + return zeroVal, nil +} - return e.complexity.Control.OwnerID(childComplexity), true +func (ec *executionContext) field_Query_fileHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_fileHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_fileHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_fileHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_fileHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_fileHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_fileHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Control.procedures": - if e.complexity.Control.Procedures == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Control.Procedures(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Control.programs": - if e.complexity.Control.Programs == nil { - break - } +func (ec *executionContext) field_Query_fileHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Control.Programs(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Control.risks": - if e.complexity.Control.Risks == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Control.Risks(childComplexity), true +func (ec *executionContext) field_Query_fileHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Control.satisfies": - if e.complexity.Control.Satisfies == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Control.Satisfies(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Control.source": - if e.complexity.Control.Source == nil { - break - } +func (ec *executionContext) field_Query_fileHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Control.Source(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Control.standard": - if e.complexity.Control.Standard == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Control.Standard(childComplexity), true +func (ec *executionContext) field_Query_fileHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.FileHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.FileHistoryWhereInput + return zeroVal, nil + } - case "Control.status": - if e.complexity.Control.Status == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, tmp) + } - return e.complexity.Control.Status(childComplexity), true + var zeroVal *generated.FileHistoryWhereInput + return zeroVal, nil +} - case "Control.subcontrols": - if e.complexity.Control.Subcontrols == nil { - break - } +func (ec *executionContext) field_Query_fileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_fileSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_fileSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.Control.Subcontrols(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "Control.tags": - if e.complexity.Control.Tags == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.Control.Tags(childComplexity), true +func (ec *executionContext) field_Query_file_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_file_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_file_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Control.tasks": - if e.complexity.Control.Tasks == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.Control.Tasks(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Control.updatedAt": - if e.complexity.Control.UpdatedAt == nil { - break - } +func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_files_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_files_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_files_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_files_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_files_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_files_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Control.UpdatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Control.updatedBy": - if e.complexity.Control.UpdatedBy == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Control.UpdatedBy(childComplexity), true +func (ec *executionContext) field_Query_files_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Control.version": - if e.complexity.Control.Version == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Control.Version(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Control.viewers": - if e.complexity.Control.Viewers == nil { - break - } +func (ec *executionContext) field_Query_files_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Control.Viewers(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlBulkCreatePayload.controls": - if e.complexity.ControlBulkCreatePayload.Controls == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlBulkCreatePayload.Controls(childComplexity), true +func (ec *executionContext) field_Query_files_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlConnection.edges": - if e.complexity.ControlConnection.Edges == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlConnection.Edges(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlConnection.pageInfo": - if e.complexity.ControlConnection.PageInfo == nil { - break - } +func (ec *executionContext) field_Query_files_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.FileWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.FileWhereInput + return zeroVal, nil + } - return e.complexity.ControlConnection.PageInfo(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, tmp) + } - case "ControlConnection.totalCount": - if e.complexity.ControlConnection.TotalCount == nil { - break - } + var zeroVal *generated.FileWhereInput + return zeroVal, nil +} - return e.complexity.ControlConnection.TotalCount(childComplexity), true +func (ec *executionContext) field_Query_groupHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_groupHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_groupHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlCreatePayload.control": - if e.complexity.ControlCreatePayload.Control == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlCreatePayload.Control(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlDeletePayload.deletedID": - if e.complexity.ControlDeletePayload.DeletedID == nil { - break - } +func (ec *executionContext) field_Query_groupHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlDeletePayload.DeletedID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlEdge.cursor": - if e.complexity.ControlEdge.Cursor == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_groupHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlEdge.node": - if e.complexity.ControlEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlEdge.Node(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlHistory.class": - if e.complexity.ControlHistory.Class == nil { - break - } +func (ec *executionContext) field_Query_groupHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlHistory.Class(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlHistory.controlNumber": - if e.complexity.ControlHistory.ControlNumber == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlHistory.ControlNumber(childComplexity), true +func (ec *executionContext) field_Query_groupHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.GroupHistoryOrder + return zeroVal, nil + } - case "ControlHistory.controlType": - if e.complexity.ControlHistory.ControlType == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOGroupHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrder(ctx, tmp) + } - return e.complexity.ControlHistory.ControlType(childComplexity), true + var zeroVal *generated.GroupHistoryOrder + return zeroVal, nil +} - case "ControlHistory.createdAt": - if e.complexity.ControlHistory.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_groupHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupHistoryWhereInput + return zeroVal, nil + } - return e.complexity.ControlHistory.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, tmp) + } - case "ControlHistory.createdBy": - if e.complexity.ControlHistory.CreatedBy == nil { - break - } + var zeroVal *generated.GroupHistoryWhereInput + return zeroVal, nil +} - return e.complexity.ControlHistory.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_groupMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupMembershipHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupMembershipHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupMembershipHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupMembershipHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupMembershipHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupMembershipHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlHistory.deletedAt": - if e.complexity.ControlHistory.DeletedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlHistory.DeletedAt(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlHistory.deletedBy": - if e.complexity.ControlHistory.DeletedBy == nil { - break - } +func (ec *executionContext) field_Query_groupMembershipHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlHistory.DeletedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlHistory.description": - if e.complexity.ControlHistory.Description == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlHistory.Description(childComplexity), true +func (ec *executionContext) field_Query_groupMembershipHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlHistory.details": - if e.complexity.ControlHistory.Details == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlHistory.Details(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlHistory.family": - if e.complexity.ControlHistory.Family == nil { - break - } +func (ec *executionContext) field_Query_groupMembershipHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlHistory.Family(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlHistory.historyTime": - if e.complexity.ControlHistory.HistoryTime == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlHistory.HistoryTime(childComplexity), true +func (ec *executionContext) field_Query_groupMembershipHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupMembershipHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupMembershipHistoryWhereInput + return zeroVal, nil + } - case "ControlHistory.id": - if e.complexity.ControlHistory.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, tmp) + } - return e.complexity.ControlHistory.ID(childComplexity), true + var zeroVal *generated.GroupMembershipHistoryWhereInput + return zeroVal, nil +} - case "ControlHistory.mappedFrameworks": - if e.complexity.ControlHistory.MappedFrameworks == nil { - break - } +func (ec *executionContext) field_Query_groupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ControlHistory.MappedFrameworks(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "ControlHistory.name": - if e.complexity.ControlHistory.Name == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ControlHistory.Name(childComplexity), true +func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupMemberships_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupMemberships_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupMemberships_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupMemberships_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupMemberships_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupMemberships_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlHistory.operation": - if e.complexity.ControlHistory.Operation == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlHistory.Operation(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlHistory.ownerID": - if e.complexity.ControlHistory.OwnerID == nil { - break - } +func (ec *executionContext) field_Query_groupMemberships_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlHistory.OwnerID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlHistory.ref": - if e.complexity.ControlHistory.Ref == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlHistory.Ref(childComplexity), true +func (ec *executionContext) field_Query_groupMemberships_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlHistory.satisfies": - if e.complexity.ControlHistory.Satisfies == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlHistory.Satisfies(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlHistory.source": - if e.complexity.ControlHistory.Source == nil { - break - } +func (ec *executionContext) field_Query_groupMemberships_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlHistory.Source(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlHistory.status": - if e.complexity.ControlHistory.Status == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlHistory.Status(childComplexity), true +func (ec *executionContext) field_Query_groupMemberships_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupMembershipWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupMembershipWhereInput + return zeroVal, nil + } - case "ControlHistory.tags": - if e.complexity.ControlHistory.Tags == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, tmp) + } - return e.complexity.ControlHistory.Tags(childComplexity), true + var zeroVal *generated.GroupMembershipWhereInput + return zeroVal, nil +} - case "ControlHistory.updatedAt": - if e.complexity.ControlHistory.UpdatedAt == nil { - break - } - - return e.complexity.ControlHistory.UpdatedAt(childComplexity), true - - case "ControlHistory.updatedBy": - if e.complexity.ControlHistory.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_groupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ControlHistory.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "ControlHistory.version": - if e.complexity.ControlHistory.Version == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ControlHistory.Version(childComplexity), true +func (ec *executionContext) field_Query_groupSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSettingHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupSettingHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupSettingHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupSettingHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupSettingHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupSettingHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlHistoryConnection.edges": - if e.complexity.ControlHistoryConnection.Edges == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlHistoryConnection.Edges(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlHistoryConnection.pageInfo": - if e.complexity.ControlHistoryConnection.PageInfo == nil { - break - } +func (ec *executionContext) field_Query_groupSettingHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlHistoryConnection.PageInfo(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlHistoryConnection.totalCount": - if e.complexity.ControlHistoryConnection.TotalCount == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlHistoryConnection.TotalCount(childComplexity), true +func (ec *executionContext) field_Query_groupSettingHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlHistoryEdge.cursor": - if e.complexity.ControlHistoryEdge.Cursor == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlHistoryEdge.Cursor(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlHistoryEdge.node": - if e.complexity.ControlHistoryEdge.Node == nil { - break - } +func (ec *executionContext) field_Query_groupSettingHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlHistoryEdge.Node(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlObjective.blockedGroups": - if e.complexity.ControlObjective.BlockedGroups == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlObjective.BlockedGroups(childComplexity), true +func (ec *executionContext) field_Query_groupSettingHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupSettingHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupSettingHistoryWhereInput + return zeroVal, nil + } - case "ControlObjective.class": - if e.complexity.ControlObjective.Class == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, tmp) + } - return e.complexity.ControlObjective.Class(childComplexity), true + var zeroVal *generated.GroupSettingHistoryWhereInput + return zeroVal, nil +} - case "ControlObjective.controlNumber": - if e.complexity.ControlObjective.ControlNumber == nil { - break - } +func (ec *executionContext) field_Query_groupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ControlObjective.ControlNumber(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "ControlObjective.controlObjectiveType": - if e.complexity.ControlObjective.ControlObjectiveType == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ControlObjective.ControlObjectiveType(childComplexity), true +func (ec *executionContext) field_Query_groupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_groupSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ControlObjective.controls": - if e.complexity.ControlObjective.Controls == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.ControlObjective.Controls(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ControlObjective.createdAt": - if e.complexity.ControlObjective.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groupSettings_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groupSettings_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groupSettings_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groupSettings_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groupSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_groupSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjective.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjective.createdBy": - if e.complexity.ControlObjective.CreatedBy == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjective.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_groupSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjective.deletedAt": - if e.complexity.ControlObjective.DeletedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjective.DeletedAt(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjective.deletedBy": - if e.complexity.ControlObjective.DeletedBy == nil { - break - } +func (ec *executionContext) field_Query_groupSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjective.DeletedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjective.description": - if e.complexity.ControlObjective.Description == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjective.Description(childComplexity), true +func (ec *executionContext) field_Query_groupSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjective.details": - if e.complexity.ControlObjective.Details == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjective.Details(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjective.editors": - if e.complexity.ControlObjective.Editors == nil { - break - } +func (ec *executionContext) field_Query_groupSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupSettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupSettingWhereInput + return zeroVal, nil + } - return e.complexity.ControlObjective.Editors(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, tmp) + } - case "ControlObjective.family": - if e.complexity.ControlObjective.Family == nil { - break - } + var zeroVal *generated.GroupSettingWhereInput + return zeroVal, nil +} - return e.complexity.ControlObjective.Family(childComplexity), true +func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_group_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_group_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ControlObjective.id": - if e.complexity.ControlObjective.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.ControlObjective.ID(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ControlObjective.internalPolicies": - if e.complexity.ControlObjective.InternalPolicies == nil { - break - } +func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_groups_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_groups_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_groups_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_groups_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_groups_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_groups_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_groups_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjective.InternalPolicies(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjective.mappedFrameworks": - if e.complexity.ControlObjective.MappedFrameworks == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjective.MappedFrameworks(childComplexity), true +func (ec *executionContext) field_Query_groups_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjective.name": - if e.complexity.ControlObjective.Name == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjective.Name(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjective.narratives": - if e.complexity.ControlObjective.Narratives == nil { - break - } +func (ec *executionContext) field_Query_groups_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjective.Narratives(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjective.owner": - if e.complexity.ControlObjective.Owner == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjective.Owner(childComplexity), true +func (ec *executionContext) field_Query_groups_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjective.ownerID": - if e.complexity.ControlObjective.OwnerID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjective.OwnerID(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjective.procedures": - if e.complexity.ControlObjective.Procedures == nil { - break - } +func (ec *executionContext) field_Query_groups_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.GroupOrder + return zeroVal, nil + } - return e.complexity.ControlObjective.Procedures(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOGroupOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrder(ctx, tmp) + } - case "ControlObjective.programs": - if e.complexity.ControlObjective.Programs == nil { - break - } + var zeroVal *generated.GroupOrder + return zeroVal, nil +} - return e.complexity.ControlObjective.Programs(childComplexity), true +func (ec *executionContext) field_Query_groups_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.GroupWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.GroupWhereInput + return zeroVal, nil + } - case "ControlObjective.risks": - if e.complexity.ControlObjective.Risks == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, tmp) + } - return e.complexity.ControlObjective.Risks(childComplexity), true + var zeroVal *generated.GroupWhereInput + return zeroVal, nil +} - case "ControlObjective.source": - if e.complexity.ControlObjective.Source == nil { - break - } +func (ec *executionContext) field_Query_hushHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_hushHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_hushHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_hushHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_hushHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_hushHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_hushHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_hushHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjective.Source(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjective.standard": - if e.complexity.ControlObjective.Standard == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjective.Standard(childComplexity), true +func (ec *executionContext) field_Query_hushHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjective.status": - if e.complexity.ControlObjective.Status == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjective.Status(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjective.subcontrols": - if e.complexity.ControlObjective.Subcontrols == nil { - break - } +func (ec *executionContext) field_Query_hushHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjective.Subcontrols(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjective.tags": - if e.complexity.ControlObjective.Tags == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjective.Tags(childComplexity), true +func (ec *executionContext) field_Query_hushHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjective.tasks": - if e.complexity.ControlObjective.Tasks == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjective.Tasks(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjective.updatedAt": - if e.complexity.ControlObjective.UpdatedAt == nil { - break - } +func (ec *executionContext) field_Query_hushHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.HushHistoryOrder + return zeroVal, nil + } - return e.complexity.ControlObjective.UpdatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOHushHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrder(ctx, tmp) + } - case "ControlObjective.updatedBy": - if e.complexity.ControlObjective.UpdatedBy == nil { - break - } + var zeroVal *generated.HushHistoryOrder + return zeroVal, nil +} - return e.complexity.ControlObjective.UpdatedBy(childComplexity), true +func (ec *executionContext) field_Query_hushHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.HushHistoryWhereInput + return zeroVal, nil + } - case "ControlObjective.version": - if e.complexity.ControlObjective.Version == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, tmp) + } - return e.complexity.ControlObjective.Version(childComplexity), true + var zeroVal *generated.HushHistoryWhereInput + return zeroVal, nil +} - case "ControlObjective.viewers": - if e.complexity.ControlObjective.Viewers == nil { - break - } +func (ec *executionContext) field_Query_hush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_hush_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_hush_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ControlObjective.Viewers(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "ControlObjectiveBulkCreatePayload.controlObjectives": - if e.complexity.ControlObjectiveBulkCreatePayload.ControlObjectives == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ControlObjectiveBulkCreatePayload.ControlObjectives(childComplexity), true +func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_hushes_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_hushes_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_hushes_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_hushes_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_hushes_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_hushes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_hushes_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlObjectiveConnection.edges": - if e.complexity.ControlObjectiveConnection.Edges == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlObjectiveConnection.Edges(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlObjectiveConnection.pageInfo": - if e.complexity.ControlObjectiveConnection.PageInfo == nil { - break - } +func (ec *executionContext) field_Query_hushes_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlObjectiveConnection.PageInfo(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlObjectiveConnection.totalCount": - if e.complexity.ControlObjectiveConnection.TotalCount == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlObjectiveConnection.TotalCount(childComplexity), true +func (ec *executionContext) field_Query_hushes_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlObjectiveCreatePayload.controlObjective": - if e.complexity.ControlObjectiveCreatePayload.ControlObjective == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlObjectiveCreatePayload.ControlObjective(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlObjectiveDeletePayload.deletedID": - if e.complexity.ControlObjectiveDeletePayload.DeletedID == nil { - break - } +func (ec *executionContext) field_Query_hushes_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlObjectiveDeletePayload.DeletedID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlObjectiveEdge.cursor": - if e.complexity.ControlObjectiveEdge.Cursor == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlObjectiveEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_hushes_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.HushOrder + return zeroVal, nil + } - case "ControlObjectiveEdge.node": - if e.complexity.ControlObjectiveEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOHushOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrder(ctx, tmp) + } - return e.complexity.ControlObjectiveEdge.Node(childComplexity), true + var zeroVal *generated.HushOrder + return zeroVal, nil +} - case "ControlObjectiveHistory.class": - if e.complexity.ControlObjectiveHistory.Class == nil { - break - } +func (ec *executionContext) field_Query_hushes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.HushWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.HushWhereInput + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistory.Class(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, tmp) + } - case "ControlObjectiveHistory.controlNumber": - if e.complexity.ControlObjectiveHistory.ControlNumber == nil { - break - } + var zeroVal *generated.HushWhereInput + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.ControlNumber(childComplexity), true +func (ec *executionContext) field_Query_integrationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integrationHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_integrationHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_integrationHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_integrationHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_integrationHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_integrationHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_integrationHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlObjectiveHistory.controlObjectiveType": - if e.complexity.ControlObjectiveHistory.ControlObjectiveType == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlObjectiveHistory.ControlObjectiveType(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlObjectiveHistory.createdAt": - if e.complexity.ControlObjectiveHistory.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_integrationHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistory.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlObjectiveHistory.createdBy": - if e.complexity.ControlObjectiveHistory.CreatedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_integrationHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlObjectiveHistory.deletedAt": - if e.complexity.ControlObjectiveHistory.DeletedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlObjectiveHistory.DeletedAt(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "ControlObjectiveHistory.deletedBy": - if e.complexity.ControlObjectiveHistory.DeletedBy == nil { - break - } +func (ec *executionContext) field_Query_integrationHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistory.DeletedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "ControlObjectiveHistory.description": - if e.complexity.ControlObjectiveHistory.Description == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.Description(childComplexity), true +func (ec *executionContext) field_Query_integrationHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.IntegrationHistoryOrder + return zeroVal, nil + } - case "ControlObjectiveHistory.details": - if e.complexity.ControlObjectiveHistory.Details == nil { - break - } - - return e.complexity.ControlObjectiveHistory.Details(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOIntegrationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrder(ctx, tmp) + } - case "ControlObjectiveHistory.family": - if e.complexity.ControlObjectiveHistory.Family == nil { - break - } + var zeroVal *generated.IntegrationHistoryOrder + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.Family(childComplexity), true +func (ec *executionContext) field_Query_integrationHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.IntegrationHistoryWhereInput + return zeroVal, nil + } - case "ControlObjectiveHistory.historyTime": - if e.complexity.ControlObjectiveHistory.HistoryTime == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, tmp) + } - return e.complexity.ControlObjectiveHistory.HistoryTime(childComplexity), true + var zeroVal *generated.IntegrationHistoryWhereInput + return zeroVal, nil +} - case "ControlObjectiveHistory.id": - if e.complexity.ControlObjectiveHistory.ID == nil { - break - } +func (ec *executionContext) field_Query_integrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integrationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_integrationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistory.ID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "ControlObjectiveHistory.mappedFrameworks": - if e.complexity.ControlObjectiveHistory.MappedFrameworks == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.MappedFrameworks(childComplexity), true +func (ec *executionContext) field_Query_integration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integration_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_integration_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "ControlObjectiveHistory.name": - if e.complexity.ControlObjectiveHistory.Name == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.ControlObjectiveHistory.Name(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "ControlObjectiveHistory.operation": - if e.complexity.ControlObjectiveHistory.Operation == nil { - break - } +func (ec *executionContext) field_Query_integrations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_integrations_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_integrations_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_integrations_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_integrations_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_integrations_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_integrations_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_integrations_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistory.Operation(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjectiveHistory.ownerID": - if e.complexity.ControlObjectiveHistory.OwnerID == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.OwnerID(childComplexity), true +func (ec *executionContext) field_Query_integrations_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjectiveHistory.ref": - if e.complexity.ControlObjectiveHistory.Ref == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjectiveHistory.Ref(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjectiveHistory.source": - if e.complexity.ControlObjectiveHistory.Source == nil { - break - } +func (ec *executionContext) field_Query_integrations_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistory.Source(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjectiveHistory.status": - if e.complexity.ControlObjectiveHistory.Status == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.Status(childComplexity), true +func (ec *executionContext) field_Query_integrations_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjectiveHistory.tags": - if e.complexity.ControlObjectiveHistory.Tags == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjectiveHistory.Tags(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjectiveHistory.updatedAt": - if e.complexity.ControlObjectiveHistory.UpdatedAt == nil { - break - } +func (ec *executionContext) field_Query_integrations_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.IntegrationOrder + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistory.UpdatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOIntegrationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrder(ctx, tmp) + } - case "ControlObjectiveHistory.updatedBy": - if e.complexity.ControlObjectiveHistory.UpdatedBy == nil { - break - } + var zeroVal *generated.IntegrationOrder + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistory.UpdatedBy(childComplexity), true +func (ec *executionContext) field_Query_integrations_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.IntegrationWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.IntegrationWhereInput + return zeroVal, nil + } - case "ControlObjectiveHistory.version": - if e.complexity.ControlObjectiveHistory.Version == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, tmp) + } - return e.complexity.ControlObjectiveHistory.Version(childComplexity), true + var zeroVal *generated.IntegrationWhereInput + return zeroVal, nil +} - case "ControlObjectiveHistoryConnection.edges": - if e.complexity.ControlObjectiveHistoryConnection.Edges == nil { - break - } +func (ec *executionContext) field_Query_internalPolicies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicies_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_internalPolicies_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_internalPolicies_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_internalPolicies_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_internalPolicies_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicies_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistoryConnection.Edges(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjectiveHistoryConnection.pageInfo": - if e.complexity.ControlObjectiveHistoryConnection.PageInfo == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistoryConnection.PageInfo(childComplexity), true +func (ec *executionContext) field_Query_internalPolicies_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjectiveHistoryConnection.totalCount": - if e.complexity.ControlObjectiveHistoryConnection.TotalCount == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjectiveHistoryConnection.TotalCount(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjectiveHistoryEdge.cursor": - if e.complexity.ControlObjectiveHistoryEdge.Cursor == nil { - break - } +func (ec *executionContext) field_Query_internalPolicies_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.ControlObjectiveHistoryEdge.Cursor(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "ControlObjectiveHistoryEdge.node": - if e.complexity.ControlObjectiveHistoryEdge.Node == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.ControlObjectiveHistoryEdge.Node(childComplexity), true +func (ec *executionContext) field_Query_internalPolicies_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "ControlObjectiveSearchResult.controlObjectives": - if e.complexity.ControlObjectiveSearchResult.ControlObjectives == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.ControlObjectiveSearchResult.ControlObjectives(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "ControlObjectiveUpdatePayload.controlObjective": - if e.complexity.ControlObjectiveUpdatePayload.ControlObjective == nil { - break - } +func (ec *executionContext) field_Query_internalPolicies_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.InternalPolicyWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.InternalPolicyWhereInput + return zeroVal, nil + } - return e.complexity.ControlObjectiveUpdatePayload.ControlObjective(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, tmp) + } - case "ControlSearchResult.controls": - if e.complexity.ControlSearchResult.Controls == nil { - break - } + var zeroVal *generated.InternalPolicyWhereInput + return zeroVal, nil +} - return e.complexity.ControlSearchResult.Controls(childComplexity), true +func (ec *executionContext) field_Query_internalPolicyHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicyHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_internalPolicyHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_internalPolicyHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_internalPolicyHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_internalPolicyHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicyHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "ControlUpdatePayload.control": - if e.complexity.ControlUpdatePayload.Control == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.ControlUpdatePayload.Control(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "DocumentData.createdAt": - if e.complexity.DocumentData.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_internalPolicyHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.DocumentData.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "DocumentData.createdBy": - if e.complexity.DocumentData.CreatedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.DocumentData.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_internalPolicyHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "DocumentData.data": - if e.complexity.DocumentData.Data == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.DocumentData.Data(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "DocumentData.deletedAt": - if e.complexity.DocumentData.DeletedAt == nil { - break - } +func (ec *executionContext) field_Query_internalPolicyHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.DocumentData.DeletedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "DocumentData.deletedBy": - if e.complexity.DocumentData.DeletedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.DocumentData.DeletedBy(childComplexity), true +func (ec *executionContext) field_Query_internalPolicyHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.InternalPolicyHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.InternalPolicyHistoryWhereInput + return zeroVal, nil + } - case "DocumentData.entity": - if e.complexity.DocumentData.Entity == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOInternalPolicyHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInput(ctx, tmp) + } - return e.complexity.DocumentData.Entity(childComplexity), true + var zeroVal *generated.InternalPolicyHistoryWhereInput + return zeroVal, nil +} - case "DocumentData.files": - if e.complexity.DocumentData.Files == nil { - break - } +func (ec *executionContext) field_Query_internalPolicySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicySearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicySearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.DocumentData.Files(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "DocumentData.id": - if e.complexity.DocumentData.ID == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.DocumentData.ID(childComplexity), true +func (ec *executionContext) field_Query_internalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_internalPolicy_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_internalPolicy_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "DocumentData.owner": - if e.complexity.DocumentData.Owner == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.DocumentData.Owner(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "DocumentData.ownerID": - if e.complexity.DocumentData.OwnerID == nil { - break - } +func (ec *executionContext) field_Query_invite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_invite_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_invite_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.DocumentData.OwnerID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "DocumentData.tags": - if e.complexity.DocumentData.Tags == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.DocumentData.Tags(childComplexity), true +func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_invites_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_invites_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_invites_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_invites_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_invites_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_invites_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "DocumentData.template": - if e.complexity.DocumentData.Template == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.DocumentData.Template(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "DocumentData.templateID": - if e.complexity.DocumentData.TemplateID == nil { - break - } +func (ec *executionContext) field_Query_invites_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.DocumentData.TemplateID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "DocumentData.updatedAt": - if e.complexity.DocumentData.UpdatedAt == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.DocumentData.UpdatedAt(childComplexity), true +func (ec *executionContext) field_Query_invites_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "DocumentData.updatedBy": - if e.complexity.DocumentData.UpdatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.DocumentData.UpdatedBy(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "DocumentDataBulkCreatePayload.documentData": - if e.complexity.DocumentDataBulkCreatePayload.DocumentData == nil { - break - } +func (ec *executionContext) field_Query_invites_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.DocumentDataBulkCreatePayload.DocumentData(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "DocumentDataConnection.edges": - if e.complexity.DocumentDataConnection.Edges == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.DocumentDataConnection.Edges(childComplexity), true +func (ec *executionContext) field_Query_invites_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.InviteWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.InviteWhereInput + return zeroVal, nil + } - case "DocumentDataConnection.pageInfo": - if e.complexity.DocumentDataConnection.PageInfo == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, tmp) + } - return e.complexity.DocumentDataConnection.PageInfo(childComplexity), true + var zeroVal *generated.InviteWhereInput + return zeroVal, nil +} - case "DocumentDataConnection.totalCount": - if e.complexity.DocumentDataConnection.TotalCount == nil { - break - } +func (ec *executionContext) field_Query_narrativeHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narrativeHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_narrativeHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_narrativeHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_narrativeHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_narrativeHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_narrativeHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.DocumentDataConnection.TotalCount(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "DocumentDataCreatePayload.documentData": - if e.complexity.DocumentDataCreatePayload.DocumentData == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.DocumentDataCreatePayload.DocumentData(childComplexity), true +func (ec *executionContext) field_Query_narrativeHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "DocumentDataDeletePayload.deletedID": - if e.complexity.DocumentDataDeletePayload.DeletedID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.DocumentDataDeletePayload.DeletedID(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "DocumentDataEdge.cursor": - if e.complexity.DocumentDataEdge.Cursor == nil { - break - } +func (ec *executionContext) field_Query_narrativeHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.DocumentDataEdge.Cursor(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "DocumentDataEdge.node": - if e.complexity.DocumentDataEdge.Node == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.DocumentDataEdge.Node(childComplexity), true +func (ec *executionContext) field_Query_narrativeHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "DocumentDataHistory.createdAt": - if e.complexity.DocumentDataHistory.CreatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.DocumentDataHistory.CreatedAt(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "DocumentDataHistory.createdBy": - if e.complexity.DocumentDataHistory.CreatedBy == nil { - break - } +func (ec *executionContext) field_Query_narrativeHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NarrativeHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NarrativeHistoryWhereInput + return zeroVal, nil + } - return e.complexity.DocumentDataHistory.CreatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONarrativeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInput(ctx, tmp) + } - case "DocumentDataHistory.data": - if e.complexity.DocumentDataHistory.Data == nil { - break - } + var zeroVal *generated.NarrativeHistoryWhereInput + return zeroVal, nil +} - return e.complexity.DocumentDataHistory.Data(childComplexity), true +func (ec *executionContext) field_Query_narrativeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narrativeSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_narrativeSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "DocumentDataHistory.deletedAt": - if e.complexity.DocumentDataHistory.DeletedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.DocumentDataHistory.DeletedAt(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "DocumentDataHistory.deletedBy": - if e.complexity.DocumentDataHistory.DeletedBy == nil { - break - } +func (ec *executionContext) field_Query_narrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narrative_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_narrative_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.DocumentDataHistory.DeletedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "DocumentDataHistory.historyTime": - if e.complexity.DocumentDataHistory.HistoryTime == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.DocumentDataHistory.HistoryTime(childComplexity), true +func (ec *executionContext) field_Query_narratives_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_narratives_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_narratives_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_narratives_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_narratives_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_narratives_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_narratives_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "DocumentDataHistory.id": - if e.complexity.DocumentDataHistory.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.DocumentDataHistory.ID(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "DocumentDataHistory.operation": - if e.complexity.DocumentDataHistory.Operation == nil { - break - } +func (ec *executionContext) field_Query_narratives_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.DocumentDataHistory.Operation(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "DocumentDataHistory.ownerID": - if e.complexity.DocumentDataHistory.OwnerID == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.DocumentDataHistory.OwnerID(childComplexity), true +func (ec *executionContext) field_Query_narratives_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "DocumentDataHistory.ref": - if e.complexity.DocumentDataHistory.Ref == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.DocumentDataHistory.Ref(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "DocumentDataHistory.tags": - if e.complexity.DocumentDataHistory.Tags == nil { - break - } - - return e.complexity.DocumentDataHistory.Tags(childComplexity), true - - case "DocumentDataHistory.templateID": - if e.complexity.DocumentDataHistory.TemplateID == nil { - break - } - - return e.complexity.DocumentDataHistory.TemplateID(childComplexity), true - - case "DocumentDataHistory.updatedAt": - if e.complexity.DocumentDataHistory.UpdatedAt == nil { - break - } - - return e.complexity.DocumentDataHistory.UpdatedAt(childComplexity), true - - case "DocumentDataHistory.updatedBy": - if e.complexity.DocumentDataHistory.UpdatedBy == nil { - break - } - - return e.complexity.DocumentDataHistory.UpdatedBy(childComplexity), true - - case "DocumentDataHistoryConnection.edges": - if e.complexity.DocumentDataHistoryConnection.Edges == nil { - break - } - - return e.complexity.DocumentDataHistoryConnection.Edges(childComplexity), true - - case "DocumentDataHistoryConnection.pageInfo": - if e.complexity.DocumentDataHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.DocumentDataHistoryConnection.PageInfo(childComplexity), true - - case "DocumentDataHistoryConnection.totalCount": - if e.complexity.DocumentDataHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.DocumentDataHistoryConnection.TotalCount(childComplexity), true - - case "DocumentDataHistoryEdge.cursor": - if e.complexity.DocumentDataHistoryEdge.Cursor == nil { - break - } - - return e.complexity.DocumentDataHistoryEdge.Cursor(childComplexity), true - - case "DocumentDataHistoryEdge.node": - if e.complexity.DocumentDataHistoryEdge.Node == nil { - break - } - - return e.complexity.DocumentDataHistoryEdge.Node(childComplexity), true - - case "DocumentDataSearchResult.documentData": - if e.complexity.DocumentDataSearchResult.DocumentData == nil { - break - } - - return e.complexity.DocumentDataSearchResult.DocumentData(childComplexity), true - - case "DocumentDataUpdatePayload.documentData": - if e.complexity.DocumentDataUpdatePayload.DocumentData == nil { - break - } - - return e.complexity.DocumentDataUpdatePayload.DocumentData(childComplexity), true - - case "Entity.contacts": - if e.complexity.Entity.Contacts == nil { - break - } - - return e.complexity.Entity.Contacts(childComplexity), true - - case "Entity.createdAt": - if e.complexity.Entity.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_narratives_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Entity.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Entity.createdBy": - if e.complexity.Entity.CreatedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Entity.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_narratives_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NarrativeWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NarrativeWhereInput + return zeroVal, nil + } - case "Entity.deletedAt": - if e.complexity.Entity.DeletedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, tmp) + } - return e.complexity.Entity.DeletedAt(childComplexity), true + var zeroVal *generated.NarrativeWhereInput + return zeroVal, nil +} - case "Entity.deletedBy": - if e.complexity.Entity.DeletedBy == nil { - break - } +func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + 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]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.Entity.DeletedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "Entity.description": - if e.complexity.Entity.Description == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.Entity.Description(childComplexity), true +func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_nodes_argsIds(ctx, rawArgs) + if err != nil { + return nil, err + } + args["ids"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_nodes_argsIds( + ctx context.Context, + rawArgs map[string]interface{}, +) ([]string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["ids"] + if !ok { + var zeroVal []string + return zeroVal, nil + } - case "Entity.displayName": - if e.complexity.Entity.DisplayName == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) + if tmp, ok := rawArgs["ids"]; ok { + return ec.unmarshalNID2ᚕstringᚄ(ctx, tmp) + } - return e.complexity.Entity.DisplayName(childComplexity), true + var zeroVal []string + return zeroVal, nil +} - case "Entity.documents": - if e.complexity.Entity.Documents == nil { - break - } +func (ec *executionContext) field_Query_noteHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_noteHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_noteHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_noteHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_noteHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_noteHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_noteHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Entity.Documents(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Entity.domains": - if e.complexity.Entity.Domains == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Entity.Domains(childComplexity), true +func (ec *executionContext) field_Query_noteHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Entity.entityType": - if e.complexity.Entity.EntityType == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Entity.EntityType(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Entity.entityTypeID": - if e.complexity.Entity.EntityTypeID == nil { - break - } +func (ec *executionContext) field_Query_noteHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Entity.EntityTypeID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Entity.files": - if e.complexity.Entity.Files == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Entity.Files(childComplexity), true +func (ec *executionContext) field_Query_noteHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Entity.id": - if e.complexity.Entity.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Entity.ID(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Entity.name": - if e.complexity.Entity.Name == nil { - break - } +func (ec *executionContext) field_Query_noteHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NoteHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NoteHistoryWhereInput + return zeroVal, nil + } - return e.complexity.Entity.Name(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, tmp) + } - case "Entity.notes": - if e.complexity.Entity.Notes == nil { - break - } + var zeroVal *generated.NoteHistoryWhereInput + return zeroVal, nil +} - return e.complexity.Entity.Notes(childComplexity), true +func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_notes_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_notes_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_notes_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_notes_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_notes_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_notes_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Entity.owner": - if e.complexity.Entity.Owner == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Entity.Owner(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Entity.ownerID": - if e.complexity.Entity.OwnerID == nil { - break - } +func (ec *executionContext) field_Query_notes_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Entity.OwnerID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Entity.status": - if e.complexity.Entity.Status == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Entity.Status(childComplexity), true +func (ec *executionContext) field_Query_notes_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Entity.tags": - if e.complexity.Entity.Tags == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Entity.Tags(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Entity.updatedAt": - if e.complexity.Entity.UpdatedAt == nil { - break - } +func (ec *executionContext) field_Query_notes_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Entity.UpdatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Entity.updatedBy": - if e.complexity.Entity.UpdatedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Entity.UpdatedBy(childComplexity), true +func (ec *executionContext) field_Query_notes_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.NoteWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.NoteWhereInput + return zeroVal, nil + } - case "EntityBulkCreatePayload.entities": - if e.complexity.EntityBulkCreatePayload.Entities == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, tmp) + } - return e.complexity.EntityBulkCreatePayload.Entities(childComplexity), true + var zeroVal *generated.NoteWhereInput + return zeroVal, nil +} - case "EntityConnection.edges": - if e.complexity.EntityConnection.Edges == nil { - break - } +func (ec *executionContext) field_Query_orgMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgMembershipHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_orgMembershipHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_orgMembershipHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_orgMembershipHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_orgMembershipHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_orgMembershipHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntityConnection.Edges(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityConnection.pageInfo": - if e.complexity.EntityConnection.PageInfo == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityConnection.PageInfo(childComplexity), true +func (ec *executionContext) field_Query_orgMembershipHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityConnection.totalCount": - if e.complexity.EntityConnection.TotalCount == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityConnection.TotalCount(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntityCreatePayload.entity": - if e.complexity.EntityCreatePayload.Entity == nil { - break - } +func (ec *executionContext) field_Query_orgMembershipHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntityCreatePayload.Entity(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityDeletePayload.deletedID": - if e.complexity.EntityDeletePayload.DeletedID == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityDeletePayload.DeletedID(childComplexity), true +func (ec *executionContext) field_Query_orgMembershipHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityEdge.cursor": - if e.complexity.EntityEdge.Cursor == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityEdge.Cursor(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntityEdge.node": - if e.complexity.EntityEdge.Node == nil { - break - } +func (ec *executionContext) field_Query_orgMembershipHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrgMembershipHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrgMembershipHistoryWhereInput + return zeroVal, nil + } - return e.complexity.EntityEdge.Node(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, tmp) + } - case "EntityHistory.createdAt": - if e.complexity.EntityHistory.CreatedAt == nil { - break - } + var zeroVal *generated.OrgMembershipHistoryWhereInput + return zeroVal, nil +} - return e.complexity.EntityHistory.CreatedAt(childComplexity), true +func (ec *executionContext) field_Query_orgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_orgMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "EntityHistory.createdBy": - if e.complexity.EntityHistory.CreatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.EntityHistory.CreatedBy(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "EntityHistory.deletedAt": - if e.complexity.EntityHistory.DeletedAt == nil { - break - } +func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgMemberships_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_orgMemberships_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_orgMemberships_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_orgMemberships_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_orgMemberships_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_orgMemberships_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntityHistory.DeletedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityHistory.deletedBy": - if e.complexity.EntityHistory.DeletedBy == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityHistory.DeletedBy(childComplexity), true +func (ec *executionContext) field_Query_orgMemberships_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityHistory.description": - if e.complexity.EntityHistory.Description == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityHistory.Description(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntityHistory.displayName": - if e.complexity.EntityHistory.DisplayName == nil { - break - } +func (ec *executionContext) field_Query_orgMemberships_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntityHistory.DisplayName(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityHistory.domains": - if e.complexity.EntityHistory.Domains == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityHistory.Domains(childComplexity), true +func (ec *executionContext) field_Query_orgMemberships_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityHistory.entityTypeID": - if e.complexity.EntityHistory.EntityTypeID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityHistory.EntityTypeID(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntityHistory.historyTime": - if e.complexity.EntityHistory.HistoryTime == nil { - break - } +func (ec *executionContext) field_Query_orgMemberships_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrgMembershipWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrgMembershipWhereInput + return zeroVal, nil + } - return e.complexity.EntityHistory.HistoryTime(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, tmp) + } - case "EntityHistory.id": - if e.complexity.EntityHistory.ID == nil { - break - } + var zeroVal *generated.OrgMembershipWhereInput + return zeroVal, nil +} - return e.complexity.EntityHistory.ID(childComplexity), true +func (ec *executionContext) field_Query_orgSubscriptionHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgSubscriptionHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_orgSubscriptionHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_orgSubscriptionHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_orgSubscriptionHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_orgSubscriptionHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_orgSubscriptionHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityHistory.name": - if e.complexity.EntityHistory.Name == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityHistory.Name(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityHistory.operation": - if e.complexity.EntityHistory.Operation == nil { - break - } +func (ec *executionContext) field_Query_orgSubscriptionHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityHistory.Operation(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityHistory.ownerID": - if e.complexity.EntityHistory.OwnerID == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityHistory.OwnerID(childComplexity), true +func (ec *executionContext) field_Query_orgSubscriptionHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityHistory.ref": - if e.complexity.EntityHistory.Ref == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityHistory.Ref(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityHistory.status": - if e.complexity.EntityHistory.Status == nil { - break - } +func (ec *executionContext) field_Query_orgSubscriptionHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityHistory.Status(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityHistory.tags": - if e.complexity.EntityHistory.Tags == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityHistory.Tags(childComplexity), true +func (ec *executionContext) field_Query_orgSubscriptionHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrgSubscriptionHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrgSubscriptionHistoryWhereInput + return zeroVal, nil + } - case "EntityHistory.updatedAt": - if e.complexity.EntityHistory.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrgSubscriptionHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryWhereInput(ctx, tmp) + } - return e.complexity.EntityHistory.UpdatedAt(childComplexity), true + var zeroVal *generated.OrgSubscriptionHistoryWhereInput + return zeroVal, nil +} - case "EntityHistory.updatedBy": - if e.complexity.EntityHistory.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_orgSubscriptionSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgSubscriptionSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_orgSubscriptionSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.EntityHistory.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "EntityHistoryConnection.edges": - if e.complexity.EntityHistoryConnection.Edges == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.EntityHistoryConnection.Edges(childComplexity), true +func (ec *executionContext) field_Query_orgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgSubscription_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_orgSubscription_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "EntityHistoryConnection.pageInfo": - if e.complexity.EntityHistoryConnection.PageInfo == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.EntityHistoryConnection.PageInfo(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "EntityHistoryConnection.totalCount": - if e.complexity.EntityHistoryConnection.TotalCount == nil { - break - } +func (ec *executionContext) field_Query_orgSubscriptions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_orgSubscriptions_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_orgSubscriptions_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_orgSubscriptions_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_orgSubscriptions_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_orgSubscriptions_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_orgSubscriptions_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntityHistoryConnection.TotalCount(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityHistoryEdge.cursor": - if e.complexity.EntityHistoryEdge.Cursor == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityHistoryEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_orgSubscriptions_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityHistoryEdge.node": - if e.complexity.EntityHistoryEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityHistoryEdge.Node(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntitySearchResult.entities": - if e.complexity.EntitySearchResult.Entities == nil { - break - } +func (ec *executionContext) field_Query_orgSubscriptions_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntitySearchResult.Entities(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityType.createdAt": - if e.complexity.EntityType.CreatedAt == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityType.CreatedAt(childComplexity), true +func (ec *executionContext) field_Query_orgSubscriptions_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityType.createdBy": - if e.complexity.EntityType.CreatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityType.CreatedBy(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntityType.deletedAt": - if e.complexity.EntityType.DeletedAt == nil { - break - } +func (ec *executionContext) field_Query_orgSubscriptions_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrgSubscriptionWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrgSubscriptionWhereInput + return zeroVal, nil + } - return e.complexity.EntityType.DeletedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx, tmp) + } - case "EntityType.deletedBy": - if e.complexity.EntityType.DeletedBy == nil { - break - } + var zeroVal *generated.OrgSubscriptionWhereInput + return zeroVal, nil +} - return e.complexity.EntityType.DeletedBy(childComplexity), true - - case "EntityType.entities": - if e.complexity.EntityType.Entities == nil { - break - } - - return e.complexity.EntityType.Entities(childComplexity), true +func (ec *executionContext) field_Query_organizationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizationHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizationHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizationHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizationHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_organizationHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_organizationHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityType.id": - if e.complexity.EntityType.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityType.ID(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityType.name": - if e.complexity.EntityType.Name == nil { - break - } +func (ec *executionContext) field_Query_organizationHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityType.Name(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityType.owner": - if e.complexity.EntityType.Owner == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityType.Owner(childComplexity), true +func (ec *executionContext) field_Query_organizationHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityType.ownerID": - if e.complexity.EntityType.OwnerID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityType.OwnerID(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityType.tags": - if e.complexity.EntityType.Tags == nil { - break - } +func (ec *executionContext) field_Query_organizationHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityType.Tags(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityType.updatedAt": - if e.complexity.EntityType.UpdatedAt == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityType.UpdatedAt(childComplexity), true +func (ec *executionContext) field_Query_organizationHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.OrganizationHistoryOrder + return zeroVal, nil + } - case "EntityType.updatedBy": - if e.complexity.EntityType.UpdatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOOrganizationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrder(ctx, tmp) + } - return e.complexity.EntityType.UpdatedBy(childComplexity), true + var zeroVal *generated.OrganizationHistoryOrder + return zeroVal, nil +} - case "EntityTypeBulkCreatePayload.entityTypes": - if e.complexity.EntityTypeBulkCreatePayload.EntityTypes == nil { - break - } +func (ec *executionContext) field_Query_organizationHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationHistoryWhereInput + return zeroVal, nil + } - return e.complexity.EntityTypeBulkCreatePayload.EntityTypes(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, tmp) + } - case "EntityTypeConnection.edges": - if e.complexity.EntityTypeConnection.Edges == nil { - break - } + var zeroVal *generated.OrganizationHistoryWhereInput + return zeroVal, nil +} - return e.complexity.EntityTypeConnection.Edges(childComplexity), true +func (ec *executionContext) field_Query_organizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organizationSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "EntityTypeConnection.pageInfo": - if e.complexity.EntityTypeConnection.PageInfo == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.EntityTypeConnection.PageInfo(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "EntityTypeConnection.totalCount": - if e.complexity.EntityTypeConnection.TotalCount == nil { - break - } +func (ec *executionContext) field_Query_organizationSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSettingHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizationSettingHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizationSettingHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizationSettingHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizationSettingHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_organizationSettingHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntityTypeConnection.TotalCount(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityTypeCreatePayload.entityType": - if e.complexity.EntityTypeCreatePayload.EntityType == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityTypeCreatePayload.EntityType(childComplexity), true +func (ec *executionContext) field_Query_organizationSettingHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityTypeDeletePayload.deletedID": - if e.complexity.EntityTypeDeletePayload.DeletedID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityTypeDeletePayload.DeletedID(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntityTypeEdge.cursor": - if e.complexity.EntityTypeEdge.Cursor == nil { - break - } +func (ec *executionContext) field_Query_organizationSettingHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EntityTypeEdge.Cursor(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EntityTypeEdge.node": - if e.complexity.EntityTypeEdge.Node == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EntityTypeEdge.Node(childComplexity), true +func (ec *executionContext) field_Query_organizationSettingHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EntityTypeHistory.createdAt": - if e.complexity.EntityTypeHistory.CreatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EntityTypeHistory.CreatedAt(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EntityTypeHistory.createdBy": - if e.complexity.EntityTypeHistory.CreatedBy == nil { - break - } +func (ec *executionContext) field_Query_organizationSettingHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationSettingHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationSettingHistoryWhereInput + return zeroVal, nil + } - return e.complexity.EntityTypeHistory.CreatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, tmp) + } - case "EntityTypeHistory.deletedAt": - if e.complexity.EntityTypeHistory.DeletedAt == nil { - break - } + var zeroVal *generated.OrganizationSettingHistoryWhereInput + return zeroVal, nil +} - return e.complexity.EntityTypeHistory.DeletedAt(childComplexity), true +func (ec *executionContext) field_Query_organizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organizationSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "EntityTypeHistory.deletedBy": - if e.complexity.EntityTypeHistory.DeletedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.EntityTypeHistory.DeletedBy(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "EntityTypeHistory.historyTime": - if e.complexity.EntityTypeHistory.HistoryTime == nil { - break - } +func (ec *executionContext) field_Query_organizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organizationSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.EntityTypeHistory.HistoryTime(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "EntityTypeHistory.id": - if e.complexity.EntityTypeHistory.ID == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.EntityTypeHistory.ID(childComplexity), true +func (ec *executionContext) field_Query_organizationSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizationSettings_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizationSettings_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizationSettings_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizationSettings_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizationSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_organizationSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityTypeHistory.name": - if e.complexity.EntityTypeHistory.Name == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityTypeHistory.Name(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityTypeHistory.operation": - if e.complexity.EntityTypeHistory.Operation == nil { - break - } +func (ec *executionContext) field_Query_organizationSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityTypeHistory.Operation(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityTypeHistory.ownerID": - if e.complexity.EntityTypeHistory.OwnerID == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityTypeHistory.OwnerID(childComplexity), true +func (ec *executionContext) field_Query_organizationSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityTypeHistory.ref": - if e.complexity.EntityTypeHistory.Ref == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityTypeHistory.Ref(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityTypeHistory.tags": - if e.complexity.EntityTypeHistory.Tags == nil { - break - } +func (ec *executionContext) field_Query_organizationSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityTypeHistory.Tags(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityTypeHistory.updatedAt": - if e.complexity.EntityTypeHistory.UpdatedAt == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityTypeHistory.UpdatedAt(childComplexity), true +func (ec *executionContext) field_Query_organizationSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationSettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationSettingWhereInput + return zeroVal, nil + } - case "EntityTypeHistory.updatedBy": - if e.complexity.EntityTypeHistory.UpdatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, tmp) + } - return e.complexity.EntityTypeHistory.UpdatedBy(childComplexity), true + var zeroVal *generated.OrganizationSettingWhereInput + return zeroVal, nil +} - case "EntityTypeHistoryConnection.edges": - if e.complexity.EntityTypeHistoryConnection.Edges == nil { - break - } +func (ec *executionContext) field_Query_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organization_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_organization_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.EntityTypeHistoryConnection.Edges(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "EntityTypeHistoryConnection.pageInfo": - if e.complexity.EntityTypeHistoryConnection.PageInfo == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.EntityTypeHistoryConnection.PageInfo(childComplexity), true +func (ec *executionContext) field_Query_organizations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_organizations_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_organizations_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_organizations_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_organizations_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_organizations_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_organizations_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_organizations_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityTypeHistoryConnection.totalCount": - if e.complexity.EntityTypeHistoryConnection.TotalCount == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityTypeHistoryConnection.TotalCount(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityTypeHistoryEdge.cursor": - if e.complexity.EntityTypeHistoryEdge.Cursor == nil { - break - } +func (ec *executionContext) field_Query_organizations_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityTypeHistoryEdge.Cursor(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityTypeHistoryEdge.node": - if e.complexity.EntityTypeHistoryEdge.Node == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityTypeHistoryEdge.Node(childComplexity), true +func (ec *executionContext) field_Query_organizations_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EntityTypeSearchResult.entityTypes": - if e.complexity.EntityTypeSearchResult.EntityTypes == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EntityTypeSearchResult.EntityTypes(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EntityTypeUpdatePayload.entityType": - if e.complexity.EntityTypeUpdatePayload.EntityType == nil { - break - } +func (ec *executionContext) field_Query_organizations_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EntityTypeUpdatePayload.EntityType(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EntityUpdatePayload.entity": - if e.complexity.EntityUpdatePayload.Entity == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EntityUpdatePayload.Entity(childComplexity), true +func (ec *executionContext) field_Query_organizations_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.OrganizationOrder + return zeroVal, nil + } - case "Event.correlationID": - if e.complexity.Event.CorrelationID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) + } - return e.complexity.Event.CorrelationID(childComplexity), true + var zeroVal *generated.OrganizationOrder + return zeroVal, nil +} - case "Event.createdAt": - if e.complexity.Event.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_organizations_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.OrganizationWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil + } - return e.complexity.Event.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) + } - case "Event.createdBy": - if e.complexity.Event.CreatedBy == nil { - break - } + var zeroVal *generated.OrganizationWhereInput + return zeroVal, nil +} - return e.complexity.Event.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_personalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_personalAccessTokenSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_personalAccessTokenSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Event.eventID": - if e.complexity.Event.EventID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.Event.EventID(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Event.eventType": - if e.complexity.Event.EventType == nil { - break - } +func (ec *executionContext) field_Query_personalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_personalAccessToken_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_personalAccessToken_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.Event.EventType(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "Event.file": - if e.complexity.Event.File == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.Event.File(childComplexity), true +func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_personalAccessTokens_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_personalAccessTokens_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_personalAccessTokens_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_personalAccessTokens_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_personalAccessTokens_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_personalAccessTokens_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Event.group": - if e.complexity.Event.Group == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Event.Group(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Event.groupmembership": - if e.complexity.Event.Groupmembership == nil { - break - } +func (ec *executionContext) field_Query_personalAccessTokens_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Event.Groupmembership(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Event.hush": - if e.complexity.Event.Hush == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Event.Hush(childComplexity), true +func (ec *executionContext) field_Query_personalAccessTokens_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Event.id": - if e.complexity.Event.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Event.ID(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Event.integration": - if e.complexity.Event.Integration == nil { - break - } +func (ec *executionContext) field_Query_personalAccessTokens_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Event.Integration(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Event.invite": - if e.complexity.Event.Invite == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Event.Invite(childComplexity), true +func (ec *executionContext) field_Query_personalAccessTokens_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.PersonalAccessTokenWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.PersonalAccessTokenWhereInput + return zeroVal, nil + } - case "Event.metadata": - if e.complexity.Event.Metadata == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, tmp) + } - return e.complexity.Event.Metadata(childComplexity), true + var zeroVal *generated.PersonalAccessTokenWhereInput + return zeroVal, nil +} - case "Event.organization": - if e.complexity.Event.Organization == nil { - break - } +func (ec *executionContext) field_Query_procedureHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedureHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_procedureHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_procedureHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_procedureHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_procedureHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_procedureHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Event.Organization(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Event.orgmembership": - if e.complexity.Event.Orgmembership == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Event.Orgmembership(childComplexity), true +func (ec *executionContext) field_Query_procedureHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Event.personalAccessToken": - if e.complexity.Event.PersonalAccessToken == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Event.PersonalAccessToken(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Event.subscriber": - if e.complexity.Event.Subscriber == nil { - break - } +func (ec *executionContext) field_Query_procedureHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Event.Subscriber(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Event.tags": - if e.complexity.Event.Tags == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Event.Tags(childComplexity), true +func (ec *executionContext) field_Query_procedureHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Event.updatedAt": - if e.complexity.Event.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Event.UpdatedAt(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Event.updatedBy": - if e.complexity.Event.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_procedureHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProcedureHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProcedureHistoryWhereInput + return zeroVal, nil + } - return e.complexity.Event.UpdatedBy(childComplexity), true - - case "Event.user": - if e.complexity.Event.User == nil { - break - } - - return e.complexity.Event.User(childComplexity), true - - case "EventBulkCreatePayload.events": - if e.complexity.EventBulkCreatePayload.Events == nil { - break - } - - return e.complexity.EventBulkCreatePayload.Events(childComplexity), true - - case "EventConnection.edges": - if e.complexity.EventConnection.Edges == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProcedureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInput(ctx, tmp) + } - return e.complexity.EventConnection.Edges(childComplexity), true + var zeroVal *generated.ProcedureHistoryWhereInput + return zeroVal, nil +} - case "EventConnection.pageInfo": - if e.complexity.EventConnection.PageInfo == nil { - break - } +func (ec *executionContext) field_Query_procedureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedureSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_procedureSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.EventConnection.PageInfo(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "EventConnection.totalCount": - if e.complexity.EventConnection.TotalCount == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.EventConnection.TotalCount(childComplexity), true +func (ec *executionContext) field_Query_procedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedure_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_procedure_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "EventCreatePayload.event": - if e.complexity.EventCreatePayload.Event == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.EventCreatePayload.Event(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "EventDeletePayload.deletedID": - if e.complexity.EventDeletePayload.DeletedID == nil { - break - } +func (ec *executionContext) field_Query_procedures_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_procedures_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_procedures_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_procedures_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_procedures_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_procedures_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_procedures_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EventDeletePayload.DeletedID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EventEdge.cursor": - if e.complexity.EventEdge.Cursor == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EventEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_procedures_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EventEdge.node": - if e.complexity.EventEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EventEdge.Node(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EventHistory.correlationID": - if e.complexity.EventHistory.CorrelationID == nil { - break - } +func (ec *executionContext) field_Query_procedures_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EventHistory.CorrelationID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EventHistory.createdAt": - if e.complexity.EventHistory.CreatedAt == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EventHistory.CreatedAt(childComplexity), true +func (ec *executionContext) field_Query_procedures_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EventHistory.createdBy": - if e.complexity.EventHistory.CreatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EventHistory.CreatedBy(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EventHistory.eventID": - if e.complexity.EventHistory.EventID == nil { - break - } +func (ec *executionContext) field_Query_procedures_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProcedureWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProcedureWhereInput + return zeroVal, nil + } - return e.complexity.EventHistory.EventID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, tmp) + } - case "EventHistory.eventType": - if e.complexity.EventHistory.EventType == nil { - break - } + var zeroVal *generated.ProcedureWhereInput + return zeroVal, nil +} - return e.complexity.EventHistory.EventType(childComplexity), true +func (ec *executionContext) field_Query_programHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_programHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_programHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_programHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_programHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_programHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_programHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EventHistory.historyTime": - if e.complexity.EventHistory.HistoryTime == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EventHistory.HistoryTime(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EventHistory.id": - if e.complexity.EventHistory.ID == nil { - break - } +func (ec *executionContext) field_Query_programHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EventHistory.ID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EventHistory.metadata": - if e.complexity.EventHistory.Metadata == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EventHistory.Metadata(childComplexity), true +func (ec *executionContext) field_Query_programHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "EventHistory.operation": - if e.complexity.EventHistory.Operation == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.EventHistory.Operation(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "EventHistory.ref": - if e.complexity.EventHistory.Ref == nil { - break - } +func (ec *executionContext) field_Query_programHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.EventHistory.Ref(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "EventHistory.tags": - if e.complexity.EventHistory.Tags == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.EventHistory.Tags(childComplexity), true +func (ec *executionContext) field_Query_programHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProgramHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProgramHistoryWhereInput + return zeroVal, nil + } - case "EventHistory.updatedAt": - if e.complexity.EventHistory.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProgramHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistoryWhereInput(ctx, tmp) + } - return e.complexity.EventHistory.UpdatedAt(childComplexity), true + var zeroVal *generated.ProgramHistoryWhereInput + return zeroVal, nil +} - case "EventHistory.updatedBy": - if e.complexity.EventHistory.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_programMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_programMembershipHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_programMembershipHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_programMembershipHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_programMembershipHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_programMembershipHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_programMembershipHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EventHistory.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EventHistoryConnection.edges": - if e.complexity.EventHistoryConnection.Edges == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EventHistoryConnection.Edges(childComplexity), true +func (ec *executionContext) field_Query_programMembershipHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EventHistoryConnection.pageInfo": - if e.complexity.EventHistoryConnection.PageInfo == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EventHistoryConnection.PageInfo(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EventHistoryConnection.totalCount": - if e.complexity.EventHistoryConnection.TotalCount == nil { - break - } +func (ec *executionContext) field_Query_programMembershipHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.EventHistoryConnection.TotalCount(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "EventHistoryEdge.cursor": - if e.complexity.EventHistoryEdge.Cursor == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.EventHistoryEdge.Cursor(childComplexity), true +func (ec *executionContext) field_Query_programMembershipHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "EventHistoryEdge.node": - if e.complexity.EventHistoryEdge.Node == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.EventHistoryEdge.Node(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "EventSearchResult.events": - if e.complexity.EventSearchResult.Events == nil { - break - } +func (ec *executionContext) field_Query_programMembershipHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProgramMembershipHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProgramMembershipHistoryWhereInput + return zeroVal, nil + } - return e.complexity.EventSearchResult.Events(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProgramMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistoryWhereInput(ctx, tmp) + } - case "EventUpdatePayload.event": - if e.complexity.EventUpdatePayload.Event == nil { - break - } + var zeroVal *generated.ProgramMembershipHistoryWhereInput + return zeroVal, nil +} - return e.complexity.EventUpdatePayload.Event(childComplexity), true +func (ec *executionContext) field_Query_programMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_programMembership_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_programMembership_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "File.categoryType": - if e.complexity.File.CategoryType == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.File.CategoryType(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "File.contact": - if e.complexity.File.Contact == nil { - break - } +func (ec *executionContext) field_Query_programMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_programMemberships_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_programMemberships_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_programMemberships_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_programMemberships_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_programMemberships_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_programMemberships_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.File.Contact(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "File.createdAt": - if e.complexity.File.CreatedAt == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.File.CreatedAt(childComplexity), true +func (ec *executionContext) field_Query_programMemberships_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "File.createdBy": - if e.complexity.File.CreatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.File.CreatedBy(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "File.deletedAt": - if e.complexity.File.DeletedAt == nil { - break - } +func (ec *executionContext) field_Query_programMemberships_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.File.DeletedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "File.deletedBy": - if e.complexity.File.DeletedBy == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.File.DeletedBy(childComplexity), true +func (ec *executionContext) field_Query_programMemberships_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "File.detectedContentType": - if e.complexity.File.DetectedContentType == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.File.DetectedContentType(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "File.detectedMimeType": - if e.complexity.File.DetectedMimeType == nil { - break - } +func (ec *executionContext) field_Query_programMemberships_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProgramMembershipWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProgramMembershipWhereInput + return zeroVal, nil + } - return e.complexity.File.DetectedMimeType(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, tmp) + } - case "File.documentData": - if e.complexity.File.DocumentData == nil { - break - } + var zeroVal *generated.ProgramMembershipWhereInput + return zeroVal, nil +} - return e.complexity.File.DocumentData(childComplexity), true +func (ec *executionContext) field_Query_programSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_programSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_programSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "File.entity": - if e.complexity.File.Entity == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.File.Entity(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "File.events": - if e.complexity.File.Events == nil { - break - } +func (ec *executionContext) field_Query_program_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_program_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_program_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.File.Events(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "File.group": - if e.complexity.File.Group == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.File.Group(childComplexity), true +func (ec *executionContext) field_Query_programs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_programs_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_programs_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_programs_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_programs_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_programs_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_programs_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "File.id": - if e.complexity.File.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.File.ID(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "File.md5Hash": - if e.complexity.File.Md5Hash == nil { - break - } +func (ec *executionContext) field_Query_programs_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.File.Md5Hash(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "File.organization": - if e.complexity.File.Organization == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.File.Organization(childComplexity), true +func (ec *executionContext) field_Query_programs_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "File.organizationSetting": - if e.complexity.File.OrganizationSetting == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.File.OrganizationSetting(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "File.persistedFileSize": - if e.complexity.File.PersistedFileSize == nil { - break - } +func (ec *executionContext) field_Query_programs_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.File.PersistedFileSize(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "File.program": - if e.complexity.File.Program == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.File.Program(childComplexity), true +func (ec *executionContext) field_Query_programs_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.ProgramWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.ProgramWhereInput + return zeroVal, nil + } - case "File.providedFileExtension": - if e.complexity.File.ProvidedFileExtension == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, tmp) + } - return e.complexity.File.ProvidedFileExtension(childComplexity), true + var zeroVal *generated.ProgramWhereInput + return zeroVal, nil +} - case "File.providedFileName": - if e.complexity.File.ProvidedFileName == nil { - break - } +func (ec *executionContext) field_Query_riskHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_riskHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_riskHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_riskHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_riskHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_riskHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_riskHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.File.ProvidedFileName(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "File.providedFileSize": - if e.complexity.File.ProvidedFileSize == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.File.ProvidedFileSize(childComplexity), true +func (ec *executionContext) field_Query_riskHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "File.storagePath": - if e.complexity.File.StoragePath == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.File.StoragePath(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "File.storageScheme": - if e.complexity.File.StorageScheme == nil { - break - } +func (ec *executionContext) field_Query_riskHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.File.StorageScheme(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "File.storageVolume": - if e.complexity.File.StorageVolume == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.File.StorageVolume(childComplexity), true +func (ec *executionContext) field_Query_riskHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "File.storeKey": - if e.complexity.File.StoreKey == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.File.StoreKey(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "File.tags": - if e.complexity.File.Tags == nil { - break - } +func (ec *executionContext) field_Query_riskHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.RiskHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.RiskHistoryWhereInput + return zeroVal, nil + } - return e.complexity.File.Tags(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalORiskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInput(ctx, tmp) + } - case "File.template": - if e.complexity.File.Template == nil { - break - } + var zeroVal *generated.RiskHistoryWhereInput + return zeroVal, nil +} - return e.complexity.File.Template(childComplexity), true +func (ec *executionContext) field_Query_riskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_riskSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_riskSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "File.uri": - if e.complexity.File.URI == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.File.URI(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "File.updatedAt": - if e.complexity.File.UpdatedAt == nil { - break - } +func (ec *executionContext) field_Query_risk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_risk_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_risk_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.File.UpdatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "File.updatedBy": - if e.complexity.File.UpdatedBy == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.File.UpdatedBy(childComplexity), true - - case "File.user": - if e.complexity.File.User == nil { - break - } - - return e.complexity.File.User(childComplexity), true - - case "File.userSetting": - if e.complexity.File.UserSetting == nil { - break - } - - return e.complexity.File.UserSetting(childComplexity), true - - case "FileConnection.edges": - if e.complexity.FileConnection.Edges == nil { - break - } - - return e.complexity.FileConnection.Edges(childComplexity), true - - case "FileConnection.pageInfo": - if e.complexity.FileConnection.PageInfo == nil { - break - } - - return e.complexity.FileConnection.PageInfo(childComplexity), true - - case "FileConnection.totalCount": - if e.complexity.FileConnection.TotalCount == nil { - break - } - - return e.complexity.FileConnection.TotalCount(childComplexity), true +func (ec *executionContext) field_Query_risks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_risks_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_risks_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_risks_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_risks_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_risks_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_risks_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "FileDeletePayload.deletedID": - if e.complexity.FileDeletePayload.DeletedID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.FileDeletePayload.DeletedID(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "FileEdge.cursor": - if e.complexity.FileEdge.Cursor == nil { - break - } +func (ec *executionContext) field_Query_risks_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.FileEdge.Cursor(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "FileEdge.node": - if e.complexity.FileEdge.Node == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.FileEdge.Node(childComplexity), true +func (ec *executionContext) field_Query_risks_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "FileHistory.categoryType": - if e.complexity.FileHistory.CategoryType == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.FileHistory.CategoryType(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "FileHistory.createdAt": - if e.complexity.FileHistory.CreatedAt == nil { - break - } +func (ec *executionContext) field_Query_risks_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.FileHistory.CreatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "FileHistory.createdBy": - if e.complexity.FileHistory.CreatedBy == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.FileHistory.CreatedBy(childComplexity), true +func (ec *executionContext) field_Query_risks_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.RiskWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.RiskWhereInput + return zeroVal, nil + } - case "FileHistory.deletedAt": - if e.complexity.FileHistory.DeletedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, tmp) + } - return e.complexity.FileHistory.DeletedAt(childComplexity), true + var zeroVal *generated.RiskWhereInput + return zeroVal, nil +} - case "FileHistory.deletedBy": - if e.complexity.FileHistory.DeletedBy == nil { - break - } +func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_search_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_search_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.FileHistory.DeletedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "FileHistory.detectedContentType": - if e.complexity.FileHistory.DetectedContentType == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.FileHistory.DetectedContentType(childComplexity), true +func (ec *executionContext) field_Query_standardHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standardHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_standardHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_standardHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_standardHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_standardHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_standardHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "FileHistory.detectedMimeType": - if e.complexity.FileHistory.DetectedMimeType == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.FileHistory.DetectedMimeType(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "FileHistory.historyTime": - if e.complexity.FileHistory.HistoryTime == nil { - break - } +func (ec *executionContext) field_Query_standardHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.FileHistory.HistoryTime(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "FileHistory.id": - if e.complexity.FileHistory.ID == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.FileHistory.ID(childComplexity), true +func (ec *executionContext) field_Query_standardHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "FileHistory.md5Hash": - if e.complexity.FileHistory.Md5Hash == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.FileHistory.Md5Hash(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "FileHistory.operation": - if e.complexity.FileHistory.Operation == nil { - break - } +func (ec *executionContext) field_Query_standardHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.FileHistory.Operation(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "FileHistory.persistedFileSize": - if e.complexity.FileHistory.PersistedFileSize == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.FileHistory.PersistedFileSize(childComplexity), true +func (ec *executionContext) field_Query_standardHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.StandardHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.StandardHistoryWhereInput + return zeroVal, nil + } - case "FileHistory.providedFileExtension": - if e.complexity.FileHistory.ProvidedFileExtension == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStandardHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInput(ctx, tmp) + } - return e.complexity.FileHistory.ProvidedFileExtension(childComplexity), true + var zeroVal *generated.StandardHistoryWhereInput + return zeroVal, nil +} - case "FileHistory.providedFileName": - if e.complexity.FileHistory.ProvidedFileName == nil { - break - } +func (ec *executionContext) field_Query_standardSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standardSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_standardSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.FileHistory.ProvidedFileName(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "FileHistory.providedFileSize": - if e.complexity.FileHistory.ProvidedFileSize == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.FileHistory.ProvidedFileSize(childComplexity), true +func (ec *executionContext) field_Query_standard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standard_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_standard_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "FileHistory.ref": - if e.complexity.FileHistory.Ref == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.FileHistory.Ref(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "FileHistory.storagePath": - if e.complexity.FileHistory.StoragePath == nil { - break - } +func (ec *executionContext) field_Query_standards_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_standards_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_standards_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_standards_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_standards_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_standards_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_standards_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.FileHistory.StoragePath(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "FileHistory.storageScheme": - if e.complexity.FileHistory.StorageScheme == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.FileHistory.StorageScheme(childComplexity), true +func (ec *executionContext) field_Query_standards_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "FileHistory.storageVolume": - if e.complexity.FileHistory.StorageVolume == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.FileHistory.StorageVolume(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "FileHistory.storeKey": - if e.complexity.FileHistory.StoreKey == nil { - break - } +func (ec *executionContext) field_Query_standards_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.FileHistory.StoreKey(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "FileHistory.tags": - if e.complexity.FileHistory.Tags == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.FileHistory.Tags(childComplexity), true +func (ec *executionContext) field_Query_standards_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "FileHistory.uri": - if e.complexity.FileHistory.URI == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.FileHistory.URI(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "FileHistory.updatedAt": - if e.complexity.FileHistory.UpdatedAt == nil { - break - } +func (ec *executionContext) field_Query_standards_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.StandardWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.StandardWhereInput + return zeroVal, nil + } - return e.complexity.FileHistory.UpdatedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, tmp) + } - case "FileHistory.updatedBy": - if e.complexity.FileHistory.UpdatedBy == nil { - break - } + var zeroVal *generated.StandardWhereInput + return zeroVal, nil +} - return e.complexity.FileHistory.UpdatedBy(childComplexity), true +func (ec *executionContext) field_Query_subcontrolHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrolHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_subcontrolHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_subcontrolHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_subcontrolHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_subcontrolHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_subcontrolHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "FileHistoryConnection.edges": - if e.complexity.FileHistoryConnection.Edges == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.FileHistoryConnection.Edges(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "FileHistoryConnection.pageInfo": - if e.complexity.FileHistoryConnection.PageInfo == nil { - break - } +func (ec *executionContext) field_Query_subcontrolHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.FileHistoryConnection.PageInfo(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "FileHistoryConnection.totalCount": - if e.complexity.FileHistoryConnection.TotalCount == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.FileHistoryConnection.TotalCount(childComplexity), true +func (ec *executionContext) field_Query_subcontrolHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "FileHistoryEdge.cursor": - if e.complexity.FileHistoryEdge.Cursor == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.FileHistoryEdge.Cursor(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "FileHistoryEdge.node": - if e.complexity.FileHistoryEdge.Node == nil { - break - } +func (ec *executionContext) field_Query_subcontrolHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.FileHistoryEdge.Node(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "FileSearchResult.files": - if e.complexity.FileSearchResult.Files == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.FileSearchResult.Files(childComplexity), true +func (ec *executionContext) field_Query_subcontrolHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.SubcontrolHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.SubcontrolHistoryWhereInput + return zeroVal, nil + } - case "Group.controlBlockedGroups": - if e.complexity.Group.ControlBlockedGroups == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOSubcontrolHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInput(ctx, tmp) + } - return e.complexity.Group.ControlBlockedGroups(childComplexity), true + var zeroVal *generated.SubcontrolHistoryWhereInput + return zeroVal, nil +} - case "Group.controlCreators": - if e.complexity.Group.ControlCreators == nil { - break - } +func (ec *executionContext) field_Query_subcontrolSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrolSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subcontrolSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.Group.ControlCreators(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "Group.controlEditors": - if e.complexity.Group.ControlEditors == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.Group.ControlEditors(childComplexity), true +func (ec *executionContext) field_Query_subcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrol_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subcontrol_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Group.controlObjectiveBlockedGroups": - if e.complexity.Group.ControlObjectiveBlockedGroups == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.Group.ControlObjectiveBlockedGroups(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Group.controlObjectiveCreators": - if e.complexity.Group.ControlObjectiveCreators == nil { - break - } +func (ec *executionContext) field_Query_subcontrols_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subcontrols_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_subcontrols_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_subcontrols_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_subcontrols_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_subcontrols_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_subcontrols_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Group.ControlObjectiveCreators(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Group.controlObjectiveEditors": - if e.complexity.Group.ControlObjectiveEditors == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Group.ControlObjectiveEditors(childComplexity), true +func (ec *executionContext) field_Query_subcontrols_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Group.controlObjectiveViewers": - if e.complexity.Group.ControlObjectiveViewers == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Group.ControlObjectiveViewers(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Group.controlViewers": - if e.complexity.Group.ControlViewers == nil { - break - } +func (ec *executionContext) field_Query_subcontrols_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Group.ControlViewers(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Group.createdAt": - if e.complexity.Group.CreatedAt == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Group.CreatedAt(childComplexity), true +func (ec *executionContext) field_Query_subcontrols_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Group.createdBy": - if e.complexity.Group.CreatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Group.CreatedBy(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Group.deletedAt": - if e.complexity.Group.DeletedAt == nil { - break - } +func (ec *executionContext) field_Query_subcontrols_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.SubcontrolWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.SubcontrolWhereInput + return zeroVal, nil + } - return e.complexity.Group.DeletedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, tmp) + } - case "Group.deletedBy": - if e.complexity.Group.DeletedBy == nil { - break - } + var zeroVal *generated.SubcontrolWhereInput + return zeroVal, nil +} - return e.complexity.Group.DeletedBy(childComplexity), true +func (ec *executionContext) field_Query_subscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subscriberSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subscriberSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Group.description": - if e.complexity.Group.Description == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.Group.Description(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Group.displayName": - if e.complexity.Group.DisplayName == nil { - break - } +func (ec *executionContext) field_Query_subscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subscriber_argsEmail(ctx, rawArgs) + if err != nil { + return nil, err + } + args["email"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_subscriber_argsEmail( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["email"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.Group.DisplayName(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) + if tmp, ok := rawArgs["email"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "Group.events": - if e.complexity.Group.Events == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.Group.Events(childComplexity), true +func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_subscribers_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_subscribers_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_subscribers_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_subscribers_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_subscribers_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_subscribers_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Group.files": - if e.complexity.Group.Files == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Group.Files(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Group.gravatarLogoURL": - if e.complexity.Group.GravatarLogoURL == nil { - break - } +func (ec *executionContext) field_Query_subscribers_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Group.GravatarLogoURL(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Group.groupCreators": - if e.complexity.Group.GroupCreators == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Group.GroupCreators(childComplexity), true +func (ec *executionContext) field_Query_subscribers_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Group.id": - if e.complexity.Group.ID == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Group.ID(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Group.integrations": - if e.complexity.Group.Integrations == nil { - break - } +func (ec *executionContext) field_Query_subscribers_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Group.Integrations(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Group.internalPolicyBlockedGroups": - if e.complexity.Group.InternalPolicyBlockedGroups == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Group.InternalPolicyBlockedGroups(childComplexity), true +func (ec *executionContext) field_Query_subscribers_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.SubscriberWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.SubscriberWhereInput + return zeroVal, nil + } - case "Group.internalPolicyCreators": - if e.complexity.Group.InternalPolicyCreators == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, tmp) + } - return e.complexity.Group.InternalPolicyCreators(childComplexity), true + var zeroVal *generated.SubscriberWhereInput + return zeroVal, nil +} - case "Group.internalPolicyEditors": - if e.complexity.Group.InternalPolicyEditors == nil { - break - } - - return e.complexity.Group.InternalPolicyEditors(childComplexity), true - - case "Group.logoURL": - if e.complexity.Group.LogoURL == nil { - break - } - - return e.complexity.Group.LogoURL(childComplexity), true - - case "Group.members": - if e.complexity.Group.Members == nil { - break - } - - return e.complexity.Group.Members(childComplexity), true - - case "Group.name": - if e.complexity.Group.Name == nil { - break - } - - return e.complexity.Group.Name(childComplexity), true +func (ec *executionContext) field_Query_tFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_tFASettingSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_tFASettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Group.narrativeBlockedGroups": - if e.complexity.Group.NarrativeBlockedGroups == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.Group.NarrativeBlockedGroups(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Group.narrativeCreators": - if e.complexity.Group.NarrativeCreators == nil { - break - } +func (ec *executionContext) field_Query_taskHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_taskHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_taskHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_taskHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_taskHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_taskHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_taskHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Group.NarrativeCreators(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Group.narrativeEditors": - if e.complexity.Group.NarrativeEditors == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Group.NarrativeEditors(childComplexity), true +func (ec *executionContext) field_Query_taskHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Group.narrativeViewers": - if e.complexity.Group.NarrativeViewers == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Group.NarrativeViewers(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Group.owner": - if e.complexity.Group.Owner == nil { - break - } +func (ec *executionContext) field_Query_taskHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Group.Owner(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Group.ownerID": - if e.complexity.Group.OwnerID == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Group.OwnerID(childComplexity), true +func (ec *executionContext) field_Query_taskHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Group.procedureBlockedGroups": - if e.complexity.Group.ProcedureBlockedGroups == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Group.ProcedureBlockedGroups(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Group.procedureCreators": - if e.complexity.Group.ProcedureCreators == nil { - break - } +func (ec *executionContext) field_Query_taskHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TaskHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TaskHistoryWhereInput + return zeroVal, nil + } - return e.complexity.Group.ProcedureCreators(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTaskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistoryWhereInput(ctx, tmp) + } - case "Group.procedureEditors": - if e.complexity.Group.ProcedureEditors == nil { - break - } + var zeroVal *generated.TaskHistoryWhereInput + return zeroVal, nil +} - return e.complexity.Group.ProcedureEditors(childComplexity), true +func (ec *executionContext) field_Query_taskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_taskSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_taskSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "Group.programBlockedGroups": - if e.complexity.Group.ProgramBlockedGroups == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - return e.complexity.Group.ProgramBlockedGroups(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "Group.programCreators": - if e.complexity.Group.ProgramCreators == nil { - break - } +func (ec *executionContext) field_Query_task_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_task_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_task_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.Group.ProgramCreators(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - case "Group.programEditors": - if e.complexity.Group.ProgramEditors == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.Group.ProgramEditors(childComplexity), true +func (ec *executionContext) field_Query_tasks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_tasks_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_tasks_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_tasks_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_tasks_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_tasks_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_tasks_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Group.programViewers": - if e.complexity.Group.ProgramViewers == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Group.ProgramViewers(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Group.riskBlockedGroups": - if e.complexity.Group.RiskBlockedGroups == nil { - break - } +func (ec *executionContext) field_Query_tasks_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Group.RiskBlockedGroups(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Group.riskCreators": - if e.complexity.Group.RiskCreators == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Group.RiskCreators(childComplexity), true +func (ec *executionContext) field_Query_tasks_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "Group.riskEditors": - if e.complexity.Group.RiskEditors == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.Group.RiskEditors(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "Group.riskViewers": - if e.complexity.Group.RiskViewers == nil { - break - } +func (ec *executionContext) field_Query_tasks_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.Group.RiskViewers(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "Group.setting": - if e.complexity.Group.Setting == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.Group.Setting(childComplexity), true +func (ec *executionContext) field_Query_tasks_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TaskWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TaskWhereInput + return zeroVal, nil + } - case "Group.tags": - if e.complexity.Group.Tags == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, tmp) + } - return e.complexity.Group.Tags(childComplexity), true + var zeroVal *generated.TaskWhereInput + return zeroVal, nil +} - case "Group.tasks": - if e.complexity.Group.Tasks == nil { - break - } +func (ec *executionContext) field_Query_templateHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_templateHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_templateHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_templateHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_templateHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_templateHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_templateHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_templateHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Group.Tasks(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Group.templateCreators": - if e.complexity.Group.TemplateCreators == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Group.TemplateCreators(childComplexity), true +func (ec *executionContext) field_Query_templateHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "Group.updatedAt": - if e.complexity.Group.UpdatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.Group.UpdatedAt(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "Group.updatedBy": - if e.complexity.Group.UpdatedBy == nil { - break - } +func (ec *executionContext) field_Query_templateHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.Group.UpdatedBy(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "Group.users": - if e.complexity.Group.Users == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.Group.Users(childComplexity), true +func (ec *executionContext) field_Query_templateHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "GroupBulkCreatePayload.groups": - if e.complexity.GroupBulkCreatePayload.Groups == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.GroupBulkCreatePayload.Groups(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "GroupConnection.edges": - if e.complexity.GroupConnection.Edges == nil { - break - } +func (ec *executionContext) field_Query_templateHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.TemplateHistoryOrder + return zeroVal, nil + } - return e.complexity.GroupConnection.Edges(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOTemplateHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrder(ctx, tmp) + } - case "GroupConnection.pageInfo": - if e.complexity.GroupConnection.PageInfo == nil { - break - } + var zeroVal *generated.TemplateHistoryOrder + return zeroVal, nil +} - return e.complexity.GroupConnection.PageInfo(childComplexity), true +func (ec *executionContext) field_Query_templateHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TemplateHistoryWhereInput + return zeroVal, nil + } - case "GroupConnection.totalCount": - if e.complexity.GroupConnection.TotalCount == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx, tmp) + } - return e.complexity.GroupConnection.TotalCount(childComplexity), true + var zeroVal *generated.TemplateHistoryWhereInput + return zeroVal, nil +} - case "GroupCreatePayload.group": - if e.complexity.GroupCreatePayload.Group == nil { - break - } +func (ec *executionContext) field_Query_templateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_templateSearch_argsQuery(ctx, rawArgs) + if err != nil { + return nil, err + } + args["query"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_templateSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } - return e.complexity.GroupCreatePayload.Group(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) + } - case "GroupDeletePayload.deletedID": - if e.complexity.GroupDeletePayload.DeletedID == nil { - break - } + var zeroVal string + return zeroVal, nil +} - return e.complexity.GroupDeletePayload.DeletedID(childComplexity), true +func (ec *executionContext) field_Query_template_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_template_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_template_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } - case "GroupEdge.cursor": - if e.complexity.GroupEdge.Cursor == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) + } - return e.complexity.GroupEdge.Cursor(childComplexity), true + var zeroVal string + return zeroVal, nil +} - case "GroupEdge.node": - if e.complexity.GroupEdge.Node == nil { - break - } +func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_templates_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_templates_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_templates_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_templates_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_templates_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_templates_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_templates_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.GroupEdge.Node(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "GroupHistory.createdAt": - if e.complexity.GroupHistory.CreatedAt == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.GroupHistory.CreatedAt(childComplexity), true +func (ec *executionContext) field_Query_templates_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "GroupHistory.createdBy": - if e.complexity.GroupHistory.CreatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.GroupHistory.CreatedBy(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "GroupHistory.deletedAt": - if e.complexity.GroupHistory.DeletedAt == nil { - break - } +func (ec *executionContext) field_Query_templates_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.GroupHistory.DeletedAt(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "GroupHistory.deletedBy": - if e.complexity.GroupHistory.DeletedBy == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.GroupHistory.DeletedBy(childComplexity), true +func (ec *executionContext) field_Query_templates_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "GroupHistory.description": - if e.complexity.GroupHistory.Description == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.GroupHistory.Description(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "GroupHistory.displayName": - if e.complexity.GroupHistory.DisplayName == nil { - break - } +func (ec *executionContext) field_Query_templates_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.TemplateOrder + return zeroVal, nil + } - return e.complexity.GroupHistory.DisplayName(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOTemplateOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrder(ctx, tmp) + } - case "GroupHistory.gravatarLogoURL": - if e.complexity.GroupHistory.GravatarLogoURL == nil { - break - } + var zeroVal *generated.TemplateOrder + return zeroVal, nil +} - return e.complexity.GroupHistory.GravatarLogoURL(childComplexity), true +func (ec *executionContext) field_Query_templates_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TemplateWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TemplateWhereInput + return zeroVal, nil + } - case "GroupHistory.historyTime": - if e.complexity.GroupHistory.HistoryTime == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, tmp) + } - return e.complexity.GroupHistory.HistoryTime(childComplexity), true + var zeroVal *generated.TemplateWhereInput + return zeroVal, nil +} - case "GroupHistory.id": - if e.complexity.GroupHistory.ID == nil { - break - } +func (ec *executionContext) field_Query_tfaSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_tfaSetting_argsID(ctx, rawArgs) + if err != nil { + return nil, err + } + args["id"] = arg0 + return args, nil +} +func (ec *executionContext) field_Query_tfaSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal *string + return zeroVal, nil + } - return e.complexity.GroupHistory.ID(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalOID2ᚖstring(ctx, tmp) + } - case "GroupHistory.logoURL": - if e.complexity.GroupHistory.LogoURL == nil { - break - } + var zeroVal *string + return zeroVal, nil +} - return e.complexity.GroupHistory.LogoURL(childComplexity), true +func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_tfaSettings_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_tfaSettings_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_tfaSettings_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_tfaSettings_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_tfaSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg4 + return args, nil +} +func (ec *executionContext) field_Query_tfaSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "GroupHistory.name": - if e.complexity.GroupHistory.Name == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.GroupHistory.Name(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "GroupHistory.operation": - if e.complexity.GroupHistory.Operation == nil { - break - } +func (ec *executionContext) field_Query_tfaSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.GroupHistory.Operation(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "GroupHistory.ownerID": - if e.complexity.GroupHistory.OwnerID == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.GroupHistory.OwnerID(childComplexity), true +func (ec *executionContext) field_Query_tfaSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - case "GroupHistory.ref": - if e.complexity.GroupHistory.Ref == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - return e.complexity.GroupHistory.Ref(childComplexity), true + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - case "GroupHistory.tags": - if e.complexity.GroupHistory.Tags == nil { - break - } +func (ec *executionContext) field_Query_tfaSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - return e.complexity.GroupHistory.Tags(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - case "GroupHistory.updatedAt": - if e.complexity.GroupHistory.UpdatedAt == nil { - break - } + var zeroVal *int + return zeroVal, nil +} - return e.complexity.GroupHistory.UpdatedAt(childComplexity), true +func (ec *executionContext) field_Query_tfaSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.TFASettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.TFASettingWhereInput + return zeroVal, nil + } - case "GroupHistory.updatedBy": - if e.complexity.GroupHistory.UpdatedBy == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, tmp) + } - return e.complexity.GroupHistory.UpdatedBy(childComplexity), true + var zeroVal *generated.TFASettingWhereInput + return zeroVal, nil +} - case "GroupHistoryConnection.edges": - if e.complexity.GroupHistoryConnection.Edges == nil { - break - } +func (ec *executionContext) field_Query_userHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userHistories_argsAfter(ctx, rawArgs) + if err != nil { + return nil, err + } + args["after"] = arg0 + arg1, err := ec.field_Query_userHistories_argsFirst(ctx, rawArgs) + if err != nil { + return nil, err + } + args["first"] = arg1 + arg2, err := ec.field_Query_userHistories_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err + } + args["before"] = arg2 + arg3, err := ec.field_Query_userHistories_argsLast(ctx, rawArgs) + if err != nil { + return nil, err + } + args["last"] = arg3 + arg4, err := ec.field_Query_userHistories_argsOrderBy(ctx, rawArgs) + if err != nil { + return nil, err + } + args["orderBy"] = arg4 + arg5, err := ec.field_Query_userHistories_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err + } + args["where"] = arg5 + return args, nil +} +func (ec *executionContext) field_Query_userHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.GroupHistoryConnection.Edges(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "GroupHistoryConnection.pageInfo": - if e.complexity.GroupHistoryConnection.PageInfo == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.GroupHistoryConnection.PageInfo(childComplexity), true +func (ec *executionContext) field_Query_userHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "GroupHistoryConnection.totalCount": - if e.complexity.GroupHistoryConnection.TotalCount == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.GroupHistoryConnection.TotalCount(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "GroupHistoryEdge.cursor": - if e.complexity.GroupHistoryEdge.Cursor == nil { - break - } +func (ec *executionContext) field_Query_userHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } - return e.complexity.GroupHistoryEdge.Cursor(childComplexity), true + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } - case "GroupHistoryEdge.node": - if e.complexity.GroupHistoryEdge.Node == nil { - break - } + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} - return e.complexity.GroupHistoryEdge.Node(childComplexity), true +func (ec *executionContext) field_Query_userHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil + } - case "GroupMembership.createdAt": - if e.complexity.GroupMembership.CreatedAt == nil { - break - } + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) + } - return e.complexity.GroupMembership.CreatedAt(childComplexity), true + var zeroVal *int + return zeroVal, nil +} - case "GroupMembership.createdBy": - if e.complexity.GroupMembership.CreatedBy == nil { - break - } - - return e.complexity.GroupMembership.CreatedBy(childComplexity), true - - case "GroupMembership.deletedAt": - if e.complexity.GroupMembership.DeletedAt == nil { - break - } - - return e.complexity.GroupMembership.DeletedAt(childComplexity), true - - case "GroupMembership.deletedBy": - if e.complexity.GroupMembership.DeletedBy == nil { - break - } - - return e.complexity.GroupMembership.DeletedBy(childComplexity), true - - case "GroupMembership.events": - if e.complexity.GroupMembership.Events == nil { - break - } - - return e.complexity.GroupMembership.Events(childComplexity), true - - case "GroupMembership.group": - if e.complexity.GroupMembership.Group == nil { - break - } - - return e.complexity.GroupMembership.Group(childComplexity), true - - case "GroupMembership.groupID": - if e.complexity.GroupMembership.GroupID == nil { - break - } - - return e.complexity.GroupMembership.GroupID(childComplexity), true - - case "GroupMembership.id": - if e.complexity.GroupMembership.ID == nil { - break - } - - return e.complexity.GroupMembership.ID(childComplexity), true - - case "GroupMembership.role": - if e.complexity.GroupMembership.Role == nil { - break - } - - return e.complexity.GroupMembership.Role(childComplexity), true - - case "GroupMembership.updatedAt": - if e.complexity.GroupMembership.UpdatedAt == nil { - break - } - - return e.complexity.GroupMembership.UpdatedAt(childComplexity), true - - case "GroupMembership.updatedBy": - if e.complexity.GroupMembership.UpdatedBy == nil { - break - } - - return e.complexity.GroupMembership.UpdatedBy(childComplexity), true - - case "GroupMembership.user": - if e.complexity.GroupMembership.User == nil { - break - } - - return e.complexity.GroupMembership.User(childComplexity), true - - case "GroupMembership.userID": - if e.complexity.GroupMembership.UserID == nil { - break - } - - return e.complexity.GroupMembership.UserID(childComplexity), true - - case "GroupMembershipBulkCreatePayload.groupMemberships": - if e.complexity.GroupMembershipBulkCreatePayload.GroupMemberships == nil { - break - } - - return e.complexity.GroupMembershipBulkCreatePayload.GroupMemberships(childComplexity), true - - case "GroupMembershipConnection.edges": - if e.complexity.GroupMembershipConnection.Edges == nil { - break - } - - return e.complexity.GroupMembershipConnection.Edges(childComplexity), true - - case "GroupMembershipConnection.pageInfo": - if e.complexity.GroupMembershipConnection.PageInfo == nil { - break - } - - return e.complexity.GroupMembershipConnection.PageInfo(childComplexity), true - - case "GroupMembershipConnection.totalCount": - if e.complexity.GroupMembershipConnection.TotalCount == nil { - break - } - - return e.complexity.GroupMembershipConnection.TotalCount(childComplexity), true - - case "GroupMembershipCreatePayload.groupMembership": - if e.complexity.GroupMembershipCreatePayload.GroupMembership == nil { - break - } - - return e.complexity.GroupMembershipCreatePayload.GroupMembership(childComplexity), true - - case "GroupMembershipDeletePayload.deletedID": - if e.complexity.GroupMembershipDeletePayload.DeletedID == nil { - break - } - - return e.complexity.GroupMembershipDeletePayload.DeletedID(childComplexity), true - - case "GroupMembershipEdge.cursor": - if e.complexity.GroupMembershipEdge.Cursor == nil { - break - } - - return e.complexity.GroupMembershipEdge.Cursor(childComplexity), true - - case "GroupMembershipEdge.node": - if e.complexity.GroupMembershipEdge.Node == nil { - break - } - - return e.complexity.GroupMembershipEdge.Node(childComplexity), true - - case "GroupMembershipHistory.createdAt": - if e.complexity.GroupMembershipHistory.CreatedAt == nil { - break - } - - return e.complexity.GroupMembershipHistory.CreatedAt(childComplexity), true - - case "GroupMembershipHistory.createdBy": - if e.complexity.GroupMembershipHistory.CreatedBy == nil { - break - } - - return e.complexity.GroupMembershipHistory.CreatedBy(childComplexity), true - - case "GroupMembershipHistory.deletedAt": - if e.complexity.GroupMembershipHistory.DeletedAt == nil { - break - } - - return e.complexity.GroupMembershipHistory.DeletedAt(childComplexity), true - - case "GroupMembershipHistory.deletedBy": - if e.complexity.GroupMembershipHistory.DeletedBy == nil { - break - } - - return e.complexity.GroupMembershipHistory.DeletedBy(childComplexity), true - - case "GroupMembershipHistory.groupID": - if e.complexity.GroupMembershipHistory.GroupID == nil { - break - } - - return e.complexity.GroupMembershipHistory.GroupID(childComplexity), true - - case "GroupMembershipHistory.historyTime": - if e.complexity.GroupMembershipHistory.HistoryTime == nil { - break - } - - return e.complexity.GroupMembershipHistory.HistoryTime(childComplexity), true - - case "GroupMembershipHistory.id": - if e.complexity.GroupMembershipHistory.ID == nil { - break - } - - return e.complexity.GroupMembershipHistory.ID(childComplexity), true - - case "GroupMembershipHistory.operation": - if e.complexity.GroupMembershipHistory.Operation == nil { - break - } - - return e.complexity.GroupMembershipHistory.Operation(childComplexity), true - - case "GroupMembershipHistory.ref": - if e.complexity.GroupMembershipHistory.Ref == nil { - break - } - - return e.complexity.GroupMembershipHistory.Ref(childComplexity), true - - case "GroupMembershipHistory.role": - if e.complexity.GroupMembershipHistory.Role == nil { - break - } - - return e.complexity.GroupMembershipHistory.Role(childComplexity), true - - case "GroupMembershipHistory.updatedAt": - if e.complexity.GroupMembershipHistory.UpdatedAt == nil { - break - } - - return e.complexity.GroupMembershipHistory.UpdatedAt(childComplexity), true - - case "GroupMembershipHistory.updatedBy": - if e.complexity.GroupMembershipHistory.UpdatedBy == nil { - break - } - - return e.complexity.GroupMembershipHistory.UpdatedBy(childComplexity), true - - case "GroupMembershipHistory.userID": - if e.complexity.GroupMembershipHistory.UserID == nil { - break - } - - return e.complexity.GroupMembershipHistory.UserID(childComplexity), true - - case "GroupMembershipHistoryConnection.edges": - if e.complexity.GroupMembershipHistoryConnection.Edges == nil { - break - } - - return e.complexity.GroupMembershipHistoryConnection.Edges(childComplexity), true - - case "GroupMembershipHistoryConnection.pageInfo": - if e.complexity.GroupMembershipHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.GroupMembershipHistoryConnection.PageInfo(childComplexity), true - - case "GroupMembershipHistoryConnection.totalCount": - if e.complexity.GroupMembershipHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.GroupMembershipHistoryConnection.TotalCount(childComplexity), true - - case "GroupMembershipHistoryEdge.cursor": - if e.complexity.GroupMembershipHistoryEdge.Cursor == nil { - break - } - - return e.complexity.GroupMembershipHistoryEdge.Cursor(childComplexity), true - - case "GroupMembershipHistoryEdge.node": - if e.complexity.GroupMembershipHistoryEdge.Node == nil { - break - } - - return e.complexity.GroupMembershipHistoryEdge.Node(childComplexity), true - - case "GroupMembershipUpdatePayload.groupMembership": - if e.complexity.GroupMembershipUpdatePayload.GroupMembership == nil { - break - } - - return e.complexity.GroupMembershipUpdatePayload.GroupMembership(childComplexity), true - - case "GroupSearchResult.groups": - if e.complexity.GroupSearchResult.Groups == nil { - break - } - - return e.complexity.GroupSearchResult.Groups(childComplexity), true - - case "GroupSetting.createdAt": - if e.complexity.GroupSetting.CreatedAt == nil { - break - } - - return e.complexity.GroupSetting.CreatedAt(childComplexity), true - - case "GroupSetting.createdBy": - if e.complexity.GroupSetting.CreatedBy == nil { - break - } - - return e.complexity.GroupSetting.CreatedBy(childComplexity), true - - case "GroupSetting.deletedAt": - if e.complexity.GroupSetting.DeletedAt == nil { - break - } - - return e.complexity.GroupSetting.DeletedAt(childComplexity), true - - case "GroupSetting.deletedBy": - if e.complexity.GroupSetting.DeletedBy == nil { - break - } - - return e.complexity.GroupSetting.DeletedBy(childComplexity), true - - case "GroupSetting.group": - if e.complexity.GroupSetting.Group == nil { - break - } - - return e.complexity.GroupSetting.Group(childComplexity), true - - case "GroupSetting.groupID": - if e.complexity.GroupSetting.GroupID == nil { - break - } - - return e.complexity.GroupSetting.GroupID(childComplexity), true - - case "GroupSetting.id": - if e.complexity.GroupSetting.ID == nil { - break - } - - return e.complexity.GroupSetting.ID(childComplexity), true - - case "GroupSetting.joinPolicy": - if e.complexity.GroupSetting.JoinPolicy == nil { - break - } - - return e.complexity.GroupSetting.JoinPolicy(childComplexity), true - - case "GroupSetting.syncToGithub": - if e.complexity.GroupSetting.SyncToGithub == nil { - break - } - - return e.complexity.GroupSetting.SyncToGithub(childComplexity), true - - case "GroupSetting.syncToSlack": - if e.complexity.GroupSetting.SyncToSlack == nil { - break - } - - return e.complexity.GroupSetting.SyncToSlack(childComplexity), true - - case "GroupSetting.tags": - if e.complexity.GroupSetting.Tags == nil { - break - } - - return e.complexity.GroupSetting.Tags(childComplexity), true - - case "GroupSetting.updatedAt": - if e.complexity.GroupSetting.UpdatedAt == nil { - break - } - - return e.complexity.GroupSetting.UpdatedAt(childComplexity), true - - case "GroupSetting.updatedBy": - if e.complexity.GroupSetting.UpdatedBy == nil { - break - } - - return e.complexity.GroupSetting.UpdatedBy(childComplexity), true - - case "GroupSetting.visibility": - if e.complexity.GroupSetting.Visibility == nil { - break - } - - return e.complexity.GroupSetting.Visibility(childComplexity), true - - case "GroupSettingBulkCreatePayload.groupSettings": - if e.complexity.GroupSettingBulkCreatePayload.GroupSettings == nil { - break - } - - return e.complexity.GroupSettingBulkCreatePayload.GroupSettings(childComplexity), true - - case "GroupSettingConnection.edges": - if e.complexity.GroupSettingConnection.Edges == nil { - break - } - - return e.complexity.GroupSettingConnection.Edges(childComplexity), true - - case "GroupSettingConnection.pageInfo": - if e.complexity.GroupSettingConnection.PageInfo == nil { - break - } - - return e.complexity.GroupSettingConnection.PageInfo(childComplexity), true - - case "GroupSettingConnection.totalCount": - if e.complexity.GroupSettingConnection.TotalCount == nil { - break - } - - return e.complexity.GroupSettingConnection.TotalCount(childComplexity), true - - case "GroupSettingCreatePayload.groupSetting": - if e.complexity.GroupSettingCreatePayload.GroupSetting == nil { - break - } - - return e.complexity.GroupSettingCreatePayload.GroupSetting(childComplexity), true - - case "GroupSettingDeletePayload.deletedID": - if e.complexity.GroupSettingDeletePayload.DeletedID == nil { - break - } - - return e.complexity.GroupSettingDeletePayload.DeletedID(childComplexity), true - - case "GroupSettingEdge.cursor": - if e.complexity.GroupSettingEdge.Cursor == nil { - break - } - - return e.complexity.GroupSettingEdge.Cursor(childComplexity), true - - case "GroupSettingEdge.node": - if e.complexity.GroupSettingEdge.Node == nil { - break - } - - return e.complexity.GroupSettingEdge.Node(childComplexity), true - - case "GroupSettingHistory.createdAt": - if e.complexity.GroupSettingHistory.CreatedAt == nil { - break - } - - return e.complexity.GroupSettingHistory.CreatedAt(childComplexity), true - - case "GroupSettingHistory.createdBy": - if e.complexity.GroupSettingHistory.CreatedBy == nil { - break - } - - return e.complexity.GroupSettingHistory.CreatedBy(childComplexity), true - - case "GroupSettingHistory.deletedAt": - if e.complexity.GroupSettingHistory.DeletedAt == nil { - break - } - - return e.complexity.GroupSettingHistory.DeletedAt(childComplexity), true - - case "GroupSettingHistory.deletedBy": - if e.complexity.GroupSettingHistory.DeletedBy == nil { - break - } - - return e.complexity.GroupSettingHistory.DeletedBy(childComplexity), true - - case "GroupSettingHistory.groupID": - if e.complexity.GroupSettingHistory.GroupID == nil { - break - } - - return e.complexity.GroupSettingHistory.GroupID(childComplexity), true - - case "GroupSettingHistory.historyTime": - if e.complexity.GroupSettingHistory.HistoryTime == nil { - break - } - - return e.complexity.GroupSettingHistory.HistoryTime(childComplexity), true - - case "GroupSettingHistory.id": - if e.complexity.GroupSettingHistory.ID == nil { - break - } - - return e.complexity.GroupSettingHistory.ID(childComplexity), true - - case "GroupSettingHistory.joinPolicy": - if e.complexity.GroupSettingHistory.JoinPolicy == nil { - break - } - - return e.complexity.GroupSettingHistory.JoinPolicy(childComplexity), true - - case "GroupSettingHistory.operation": - if e.complexity.GroupSettingHistory.Operation == nil { - break - } - - return e.complexity.GroupSettingHistory.Operation(childComplexity), true - - case "GroupSettingHistory.ref": - if e.complexity.GroupSettingHistory.Ref == nil { - break - } - - return e.complexity.GroupSettingHistory.Ref(childComplexity), true - - case "GroupSettingHistory.syncToGithub": - if e.complexity.GroupSettingHistory.SyncToGithub == nil { - break - } - - return e.complexity.GroupSettingHistory.SyncToGithub(childComplexity), true - - case "GroupSettingHistory.syncToSlack": - if e.complexity.GroupSettingHistory.SyncToSlack == nil { - break - } - - return e.complexity.GroupSettingHistory.SyncToSlack(childComplexity), true - - case "GroupSettingHistory.tags": - if e.complexity.GroupSettingHistory.Tags == nil { - break - } - - return e.complexity.GroupSettingHistory.Tags(childComplexity), true - - case "GroupSettingHistory.updatedAt": - if e.complexity.GroupSettingHistory.UpdatedAt == nil { - break - } - - return e.complexity.GroupSettingHistory.UpdatedAt(childComplexity), true - - case "GroupSettingHistory.updatedBy": - if e.complexity.GroupSettingHistory.UpdatedBy == nil { - break - } - - return e.complexity.GroupSettingHistory.UpdatedBy(childComplexity), true - - case "GroupSettingHistory.visibility": - if e.complexity.GroupSettingHistory.Visibility == nil { - break - } - - return e.complexity.GroupSettingHistory.Visibility(childComplexity), true - - case "GroupSettingHistoryConnection.edges": - if e.complexity.GroupSettingHistoryConnection.Edges == nil { - break - } - - return e.complexity.GroupSettingHistoryConnection.Edges(childComplexity), true - - case "GroupSettingHistoryConnection.pageInfo": - if e.complexity.GroupSettingHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.GroupSettingHistoryConnection.PageInfo(childComplexity), true - - case "GroupSettingHistoryConnection.totalCount": - if e.complexity.GroupSettingHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.GroupSettingHistoryConnection.TotalCount(childComplexity), true - - case "GroupSettingHistoryEdge.cursor": - if e.complexity.GroupSettingHistoryEdge.Cursor == nil { - break - } - - return e.complexity.GroupSettingHistoryEdge.Cursor(childComplexity), true - - case "GroupSettingHistoryEdge.node": - if e.complexity.GroupSettingHistoryEdge.Node == nil { - break - } - - return e.complexity.GroupSettingHistoryEdge.Node(childComplexity), true - - case "GroupSettingSearchResult.groupSettings": - if e.complexity.GroupSettingSearchResult.GroupSettings == nil { - break - } - - return e.complexity.GroupSettingSearchResult.GroupSettings(childComplexity), true - - case "GroupSettingUpdatePayload.groupSetting": - if e.complexity.GroupSettingUpdatePayload.GroupSetting == nil { - break - } - - return e.complexity.GroupSettingUpdatePayload.GroupSetting(childComplexity), true - - case "GroupUpdatePayload.group": - if e.complexity.GroupUpdatePayload.Group == nil { - break - } - - return e.complexity.GroupUpdatePayload.Group(childComplexity), true - - case "Hush.createdAt": - if e.complexity.Hush.CreatedAt == nil { - break - } - - return e.complexity.Hush.CreatedAt(childComplexity), true - - case "Hush.createdBy": - if e.complexity.Hush.CreatedBy == nil { - break - } - - return e.complexity.Hush.CreatedBy(childComplexity), true - - case "Hush.deletedAt": - if e.complexity.Hush.DeletedAt == nil { - break - } - - return e.complexity.Hush.DeletedAt(childComplexity), true - - case "Hush.deletedBy": - if e.complexity.Hush.DeletedBy == nil { - break - } - - return e.complexity.Hush.DeletedBy(childComplexity), true - - case "Hush.description": - if e.complexity.Hush.Description == nil { - break - } - - return e.complexity.Hush.Description(childComplexity), true - - case "Hush.events": - if e.complexity.Hush.Events == nil { - break - } - - return e.complexity.Hush.Events(childComplexity), true - - case "Hush.id": - if e.complexity.Hush.ID == nil { - break - } - - return e.complexity.Hush.ID(childComplexity), true - - case "Hush.integrations": - if e.complexity.Hush.Integrations == nil { - break - } - - return e.complexity.Hush.Integrations(childComplexity), true - - case "Hush.kind": - if e.complexity.Hush.Kind == nil { - break - } - - return e.complexity.Hush.Kind(childComplexity), true - - case "Hush.name": - if e.complexity.Hush.Name == nil { - break - } - - return e.complexity.Hush.Name(childComplexity), true - - case "Hush.organization": - if e.complexity.Hush.Organization == nil { - break - } - - return e.complexity.Hush.Organization(childComplexity), true - - case "Hush.secretName": - if e.complexity.Hush.SecretName == nil { - break - } - - return e.complexity.Hush.SecretName(childComplexity), true - - case "Hush.updatedAt": - if e.complexity.Hush.UpdatedAt == nil { - break - } - - return e.complexity.Hush.UpdatedAt(childComplexity), true - - case "Hush.updatedBy": - if e.complexity.Hush.UpdatedBy == nil { - break - } - - return e.complexity.Hush.UpdatedBy(childComplexity), true - - case "HushBulkCreatePayload.hushes": - if e.complexity.HushBulkCreatePayload.Hushes == nil { - break - } - - return e.complexity.HushBulkCreatePayload.Hushes(childComplexity), true - - case "HushConnection.edges": - if e.complexity.HushConnection.Edges == nil { - break - } - - return e.complexity.HushConnection.Edges(childComplexity), true - - case "HushConnection.pageInfo": - if e.complexity.HushConnection.PageInfo == nil { - break - } - - return e.complexity.HushConnection.PageInfo(childComplexity), true - - case "HushConnection.totalCount": - if e.complexity.HushConnection.TotalCount == nil { - break - } - - return e.complexity.HushConnection.TotalCount(childComplexity), true - - case "HushCreatePayload.hush": - if e.complexity.HushCreatePayload.Hush == nil { - break - } - - return e.complexity.HushCreatePayload.Hush(childComplexity), true - - case "HushDeletePayload.deletedID": - if e.complexity.HushDeletePayload.DeletedID == nil { - break - } - - return e.complexity.HushDeletePayload.DeletedID(childComplexity), true - - case "HushEdge.cursor": - if e.complexity.HushEdge.Cursor == nil { - break - } - - return e.complexity.HushEdge.Cursor(childComplexity), true - - case "HushEdge.node": - if e.complexity.HushEdge.Node == nil { - break - } - - return e.complexity.HushEdge.Node(childComplexity), true - - case "HushHistory.createdAt": - if e.complexity.HushHistory.CreatedAt == nil { - break - } - - return e.complexity.HushHistory.CreatedAt(childComplexity), true - - case "HushHistory.createdBy": - if e.complexity.HushHistory.CreatedBy == nil { - break - } - - return e.complexity.HushHistory.CreatedBy(childComplexity), true - - case "HushHistory.deletedAt": - if e.complexity.HushHistory.DeletedAt == nil { - break - } - - return e.complexity.HushHistory.DeletedAt(childComplexity), true - - case "HushHistory.deletedBy": - if e.complexity.HushHistory.DeletedBy == nil { - break - } - - return e.complexity.HushHistory.DeletedBy(childComplexity), true - - case "HushHistory.description": - if e.complexity.HushHistory.Description == nil { - break - } - - return e.complexity.HushHistory.Description(childComplexity), true - - case "HushHistory.historyTime": - if e.complexity.HushHistory.HistoryTime == nil { - break - } - - return e.complexity.HushHistory.HistoryTime(childComplexity), true - - case "HushHistory.id": - if e.complexity.HushHistory.ID == nil { - break - } - - return e.complexity.HushHistory.ID(childComplexity), true - - case "HushHistory.kind": - if e.complexity.HushHistory.Kind == nil { - break - } - - return e.complexity.HushHistory.Kind(childComplexity), true - - case "HushHistory.name": - if e.complexity.HushHistory.Name == nil { - break - } - - return e.complexity.HushHistory.Name(childComplexity), true - - case "HushHistory.operation": - if e.complexity.HushHistory.Operation == nil { - break - } - - return e.complexity.HushHistory.Operation(childComplexity), true - - case "HushHistory.ref": - if e.complexity.HushHistory.Ref == nil { - break - } - - return e.complexity.HushHistory.Ref(childComplexity), true - - case "HushHistory.secretName": - if e.complexity.HushHistory.SecretName == nil { - break - } - - return e.complexity.HushHistory.SecretName(childComplexity), true - - case "HushHistory.updatedAt": - if e.complexity.HushHistory.UpdatedAt == nil { - break - } - - return e.complexity.HushHistory.UpdatedAt(childComplexity), true - - case "HushHistory.updatedBy": - if e.complexity.HushHistory.UpdatedBy == nil { - break - } - - return e.complexity.HushHistory.UpdatedBy(childComplexity), true - - case "HushHistoryConnection.edges": - if e.complexity.HushHistoryConnection.Edges == nil { - break - } - - return e.complexity.HushHistoryConnection.Edges(childComplexity), true - - case "HushHistoryConnection.pageInfo": - if e.complexity.HushHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.HushHistoryConnection.PageInfo(childComplexity), true - - case "HushHistoryConnection.totalCount": - if e.complexity.HushHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.HushHistoryConnection.TotalCount(childComplexity), true - - case "HushHistoryEdge.cursor": - if e.complexity.HushHistoryEdge.Cursor == nil { - break - } - - return e.complexity.HushHistoryEdge.Cursor(childComplexity), true - - case "HushHistoryEdge.node": - if e.complexity.HushHistoryEdge.Node == nil { - break - } - - return e.complexity.HushHistoryEdge.Node(childComplexity), true - - case "HushUpdatePayload.hush": - if e.complexity.HushUpdatePayload.Hush == nil { - break - } - - return e.complexity.HushUpdatePayload.Hush(childComplexity), true - - case "Integration.createdAt": - if e.complexity.Integration.CreatedAt == nil { - break - } - - return e.complexity.Integration.CreatedAt(childComplexity), true - - case "Integration.createdBy": - if e.complexity.Integration.CreatedBy == nil { - break - } - - return e.complexity.Integration.CreatedBy(childComplexity), true - - case "Integration.deletedAt": - if e.complexity.Integration.DeletedAt == nil { - break - } - - return e.complexity.Integration.DeletedAt(childComplexity), true - - case "Integration.deletedBy": - if e.complexity.Integration.DeletedBy == nil { - break - } - - return e.complexity.Integration.DeletedBy(childComplexity), true - - case "Integration.description": - if e.complexity.Integration.Description == nil { - break - } - - return e.complexity.Integration.Description(childComplexity), true - - case "Integration.events": - if e.complexity.Integration.Events == nil { - break - } - - return e.complexity.Integration.Events(childComplexity), true - - case "Integration.id": - if e.complexity.Integration.ID == nil { - break - } - - return e.complexity.Integration.ID(childComplexity), true - - case "Integration.kind": - if e.complexity.Integration.Kind == nil { - break - } - - return e.complexity.Integration.Kind(childComplexity), true - - case "Integration.name": - if e.complexity.Integration.Name == nil { - break - } - - return e.complexity.Integration.Name(childComplexity), true - - case "Integration.owner": - if e.complexity.Integration.Owner == nil { - break - } - - return e.complexity.Integration.Owner(childComplexity), true - - case "Integration.ownerID": - if e.complexity.Integration.OwnerID == nil { - break - } - - return e.complexity.Integration.OwnerID(childComplexity), true - - case "Integration.secrets": - if e.complexity.Integration.Secrets == nil { - break - } - - return e.complexity.Integration.Secrets(childComplexity), true - - case "Integration.tags": - if e.complexity.Integration.Tags == nil { - break - } - - return e.complexity.Integration.Tags(childComplexity), true - - case "Integration.updatedAt": - if e.complexity.Integration.UpdatedAt == nil { - break - } - - return e.complexity.Integration.UpdatedAt(childComplexity), true - - case "Integration.updatedBy": - if e.complexity.Integration.UpdatedBy == nil { - break - } - - return e.complexity.Integration.UpdatedBy(childComplexity), true - - case "IntegrationBulkCreatePayload.integrations": - if e.complexity.IntegrationBulkCreatePayload.Integrations == nil { - break - } - - return e.complexity.IntegrationBulkCreatePayload.Integrations(childComplexity), true - - case "IntegrationConnection.edges": - if e.complexity.IntegrationConnection.Edges == nil { - break - } - - return e.complexity.IntegrationConnection.Edges(childComplexity), true - - case "IntegrationConnection.pageInfo": - if e.complexity.IntegrationConnection.PageInfo == nil { - break - } - - return e.complexity.IntegrationConnection.PageInfo(childComplexity), true - - case "IntegrationConnection.totalCount": - if e.complexity.IntegrationConnection.TotalCount == nil { - break - } - - return e.complexity.IntegrationConnection.TotalCount(childComplexity), true - - case "IntegrationCreatePayload.integration": - if e.complexity.IntegrationCreatePayload.Integration == nil { - break - } - - return e.complexity.IntegrationCreatePayload.Integration(childComplexity), true - - case "IntegrationDeletePayload.deletedID": - if e.complexity.IntegrationDeletePayload.DeletedID == nil { - break - } - - return e.complexity.IntegrationDeletePayload.DeletedID(childComplexity), true - - case "IntegrationEdge.cursor": - if e.complexity.IntegrationEdge.Cursor == nil { - break - } - - return e.complexity.IntegrationEdge.Cursor(childComplexity), true - - case "IntegrationEdge.node": - if e.complexity.IntegrationEdge.Node == nil { - break - } - - return e.complexity.IntegrationEdge.Node(childComplexity), true - - case "IntegrationHistory.createdAt": - if e.complexity.IntegrationHistory.CreatedAt == nil { - break - } - - return e.complexity.IntegrationHistory.CreatedAt(childComplexity), true - - case "IntegrationHistory.createdBy": - if e.complexity.IntegrationHistory.CreatedBy == nil { - break - } - - return e.complexity.IntegrationHistory.CreatedBy(childComplexity), true - - case "IntegrationHistory.deletedAt": - if e.complexity.IntegrationHistory.DeletedAt == nil { - break - } - - return e.complexity.IntegrationHistory.DeletedAt(childComplexity), true - - case "IntegrationHistory.deletedBy": - if e.complexity.IntegrationHistory.DeletedBy == nil { - break - } - - return e.complexity.IntegrationHistory.DeletedBy(childComplexity), true - - case "IntegrationHistory.description": - if e.complexity.IntegrationHistory.Description == nil { - break - } - - return e.complexity.IntegrationHistory.Description(childComplexity), true - - case "IntegrationHistory.historyTime": - if e.complexity.IntegrationHistory.HistoryTime == nil { - break - } - - return e.complexity.IntegrationHistory.HistoryTime(childComplexity), true - - case "IntegrationHistory.id": - if e.complexity.IntegrationHistory.ID == nil { - break - } - - return e.complexity.IntegrationHistory.ID(childComplexity), true - - case "IntegrationHistory.kind": - if e.complexity.IntegrationHistory.Kind == nil { - break - } - - return e.complexity.IntegrationHistory.Kind(childComplexity), true - - case "IntegrationHistory.name": - if e.complexity.IntegrationHistory.Name == nil { - break - } - - return e.complexity.IntegrationHistory.Name(childComplexity), true - - case "IntegrationHistory.operation": - if e.complexity.IntegrationHistory.Operation == nil { - break - } - - return e.complexity.IntegrationHistory.Operation(childComplexity), true - - case "IntegrationHistory.ownerID": - if e.complexity.IntegrationHistory.OwnerID == nil { - break - } - - return e.complexity.IntegrationHistory.OwnerID(childComplexity), true - - case "IntegrationHistory.ref": - if e.complexity.IntegrationHistory.Ref == nil { - break - } - - return e.complexity.IntegrationHistory.Ref(childComplexity), true - - case "IntegrationHistory.tags": - if e.complexity.IntegrationHistory.Tags == nil { - break - } - - return e.complexity.IntegrationHistory.Tags(childComplexity), true - - case "IntegrationHistory.updatedAt": - if e.complexity.IntegrationHistory.UpdatedAt == nil { - break - } - - return e.complexity.IntegrationHistory.UpdatedAt(childComplexity), true - - case "IntegrationHistory.updatedBy": - if e.complexity.IntegrationHistory.UpdatedBy == nil { - break - } - - return e.complexity.IntegrationHistory.UpdatedBy(childComplexity), true - - case "IntegrationHistoryConnection.edges": - if e.complexity.IntegrationHistoryConnection.Edges == nil { - break - } - - return e.complexity.IntegrationHistoryConnection.Edges(childComplexity), true - - case "IntegrationHistoryConnection.pageInfo": - if e.complexity.IntegrationHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.IntegrationHistoryConnection.PageInfo(childComplexity), true - - case "IntegrationHistoryConnection.totalCount": - if e.complexity.IntegrationHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.IntegrationHistoryConnection.TotalCount(childComplexity), true - - case "IntegrationHistoryEdge.cursor": - if e.complexity.IntegrationHistoryEdge.Cursor == nil { - break - } - - return e.complexity.IntegrationHistoryEdge.Cursor(childComplexity), true - - case "IntegrationHistoryEdge.node": - if e.complexity.IntegrationHistoryEdge.Node == nil { - break - } - - return e.complexity.IntegrationHistoryEdge.Node(childComplexity), true - - case "IntegrationSearchResult.integrations": - if e.complexity.IntegrationSearchResult.Integrations == nil { - break - } - - return e.complexity.IntegrationSearchResult.Integrations(childComplexity), true - - case "IntegrationUpdatePayload.integration": - if e.complexity.IntegrationUpdatePayload.Integration == nil { - break - } - - return e.complexity.IntegrationUpdatePayload.Integration(childComplexity), true - - case "InternalPolicy.background": - if e.complexity.InternalPolicy.Background == nil { - break - } - - return e.complexity.InternalPolicy.Background(childComplexity), true - - case "InternalPolicy.blockedGroups": - if e.complexity.InternalPolicy.BlockedGroups == nil { - break - } - - return e.complexity.InternalPolicy.BlockedGroups(childComplexity), true - - case "InternalPolicy.controlObjectives": - if e.complexity.InternalPolicy.ControlObjectives == nil { - break - } - - return e.complexity.InternalPolicy.ControlObjectives(childComplexity), true - - case "InternalPolicy.controls": - if e.complexity.InternalPolicy.Controls == nil { - break - } - - return e.complexity.InternalPolicy.Controls(childComplexity), true - - case "InternalPolicy.createdAt": - if e.complexity.InternalPolicy.CreatedAt == nil { - break - } - - return e.complexity.InternalPolicy.CreatedAt(childComplexity), true - - case "InternalPolicy.createdBy": - if e.complexity.InternalPolicy.CreatedBy == nil { - break - } - - return e.complexity.InternalPolicy.CreatedBy(childComplexity), true - - case "InternalPolicy.deletedAt": - if e.complexity.InternalPolicy.DeletedAt == nil { - break - } - - return e.complexity.InternalPolicy.DeletedAt(childComplexity), true - - case "InternalPolicy.deletedBy": - if e.complexity.InternalPolicy.DeletedBy == nil { - break - } - - return e.complexity.InternalPolicy.DeletedBy(childComplexity), true - - case "InternalPolicy.description": - if e.complexity.InternalPolicy.Description == nil { - break - } - - return e.complexity.InternalPolicy.Description(childComplexity), true - - case "InternalPolicy.details": - if e.complexity.InternalPolicy.Details == nil { - break - } - - return e.complexity.InternalPolicy.Details(childComplexity), true - - case "InternalPolicy.editors": - if e.complexity.InternalPolicy.Editors == nil { - break - } - - return e.complexity.InternalPolicy.Editors(childComplexity), true - - case "InternalPolicy.id": - if e.complexity.InternalPolicy.ID == nil { - break - } - - return e.complexity.InternalPolicy.ID(childComplexity), true - - case "InternalPolicy.name": - if e.complexity.InternalPolicy.Name == nil { - break - } - - return e.complexity.InternalPolicy.Name(childComplexity), true - - case "InternalPolicy.narratives": - if e.complexity.InternalPolicy.Narratives == nil { - break - } - - return e.complexity.InternalPolicy.Narratives(childComplexity), true - - case "InternalPolicy.owner": - if e.complexity.InternalPolicy.Owner == nil { - break - } - - return e.complexity.InternalPolicy.Owner(childComplexity), true - - case "InternalPolicy.ownerID": - if e.complexity.InternalPolicy.OwnerID == nil { - break - } - - return e.complexity.InternalPolicy.OwnerID(childComplexity), true - - case "InternalPolicy.policyType": - if e.complexity.InternalPolicy.PolicyType == nil { - break - } - - return e.complexity.InternalPolicy.PolicyType(childComplexity), true - - case "InternalPolicy.procedures": - if e.complexity.InternalPolicy.Procedures == nil { - break - } - - return e.complexity.InternalPolicy.Procedures(childComplexity), true - - case "InternalPolicy.programs": - if e.complexity.InternalPolicy.Programs == nil { - break - } - - return e.complexity.InternalPolicy.Programs(childComplexity), true - - case "InternalPolicy.purposeAndScope": - if e.complexity.InternalPolicy.PurposeAndScope == nil { - break - } - - return e.complexity.InternalPolicy.PurposeAndScope(childComplexity), true - - case "InternalPolicy.status": - if e.complexity.InternalPolicy.Status == nil { - break - } - - return e.complexity.InternalPolicy.Status(childComplexity), true - - case "InternalPolicy.tags": - if e.complexity.InternalPolicy.Tags == nil { - break - } - - return e.complexity.InternalPolicy.Tags(childComplexity), true - - case "InternalPolicy.tasks": - if e.complexity.InternalPolicy.Tasks == nil { - break - } - - return e.complexity.InternalPolicy.Tasks(childComplexity), true - - case "InternalPolicy.updatedAt": - if e.complexity.InternalPolicy.UpdatedAt == nil { - break - } - - return e.complexity.InternalPolicy.UpdatedAt(childComplexity), true - - case "InternalPolicy.updatedBy": - if e.complexity.InternalPolicy.UpdatedBy == nil { - break - } - - return e.complexity.InternalPolicy.UpdatedBy(childComplexity), true - - case "InternalPolicy.version": - if e.complexity.InternalPolicy.Version == nil { - break - } - - return e.complexity.InternalPolicy.Version(childComplexity), true - - case "InternalPolicyBulkCreatePayload.internalPolicies": - if e.complexity.InternalPolicyBulkCreatePayload.InternalPolicies == nil { - break - } - - return e.complexity.InternalPolicyBulkCreatePayload.InternalPolicies(childComplexity), true - - case "InternalPolicyConnection.edges": - if e.complexity.InternalPolicyConnection.Edges == nil { - break - } - - return e.complexity.InternalPolicyConnection.Edges(childComplexity), true - - case "InternalPolicyConnection.pageInfo": - if e.complexity.InternalPolicyConnection.PageInfo == nil { - break - } - - return e.complexity.InternalPolicyConnection.PageInfo(childComplexity), true - - case "InternalPolicyConnection.totalCount": - if e.complexity.InternalPolicyConnection.TotalCount == nil { - break - } - - return e.complexity.InternalPolicyConnection.TotalCount(childComplexity), true - - case "InternalPolicyCreatePayload.internalPolicy": - if e.complexity.InternalPolicyCreatePayload.InternalPolicy == nil { - break - } - - return e.complexity.InternalPolicyCreatePayload.InternalPolicy(childComplexity), true - - case "InternalPolicyDeletePayload.deletedID": - if e.complexity.InternalPolicyDeletePayload.DeletedID == nil { - break - } - - return e.complexity.InternalPolicyDeletePayload.DeletedID(childComplexity), true - - case "InternalPolicyEdge.cursor": - if e.complexity.InternalPolicyEdge.Cursor == nil { - break - } - - return e.complexity.InternalPolicyEdge.Cursor(childComplexity), true - - case "InternalPolicyEdge.node": - if e.complexity.InternalPolicyEdge.Node == nil { - break - } - - return e.complexity.InternalPolicyEdge.Node(childComplexity), true - - case "InternalPolicyHistory.background": - if e.complexity.InternalPolicyHistory.Background == nil { - break - } - - return e.complexity.InternalPolicyHistory.Background(childComplexity), true - - case "InternalPolicyHistory.createdAt": - if e.complexity.InternalPolicyHistory.CreatedAt == nil { - break - } - - return e.complexity.InternalPolicyHistory.CreatedAt(childComplexity), true - - case "InternalPolicyHistory.createdBy": - if e.complexity.InternalPolicyHistory.CreatedBy == nil { - break - } - - return e.complexity.InternalPolicyHistory.CreatedBy(childComplexity), true - - case "InternalPolicyHistory.deletedAt": - if e.complexity.InternalPolicyHistory.DeletedAt == nil { - break - } - - return e.complexity.InternalPolicyHistory.DeletedAt(childComplexity), true - - case "InternalPolicyHistory.deletedBy": - if e.complexity.InternalPolicyHistory.DeletedBy == nil { - break - } - - return e.complexity.InternalPolicyHistory.DeletedBy(childComplexity), true - - case "InternalPolicyHistory.description": - if e.complexity.InternalPolicyHistory.Description == nil { - break - } - - return e.complexity.InternalPolicyHistory.Description(childComplexity), true - - case "InternalPolicyHistory.details": - if e.complexity.InternalPolicyHistory.Details == nil { - break - } - - return e.complexity.InternalPolicyHistory.Details(childComplexity), true - - case "InternalPolicyHistory.historyTime": - if e.complexity.InternalPolicyHistory.HistoryTime == nil { - break - } - - return e.complexity.InternalPolicyHistory.HistoryTime(childComplexity), true - - case "InternalPolicyHistory.id": - if e.complexity.InternalPolicyHistory.ID == nil { - break - } - - return e.complexity.InternalPolicyHistory.ID(childComplexity), true - - case "InternalPolicyHistory.name": - if e.complexity.InternalPolicyHistory.Name == nil { - break - } - - return e.complexity.InternalPolicyHistory.Name(childComplexity), true - - case "InternalPolicyHistory.operation": - if e.complexity.InternalPolicyHistory.Operation == nil { - break - } - - return e.complexity.InternalPolicyHistory.Operation(childComplexity), true - - case "InternalPolicyHistory.ownerID": - if e.complexity.InternalPolicyHistory.OwnerID == nil { - break - } - - return e.complexity.InternalPolicyHistory.OwnerID(childComplexity), true - - case "InternalPolicyHistory.policyType": - if e.complexity.InternalPolicyHistory.PolicyType == nil { - break - } - - return e.complexity.InternalPolicyHistory.PolicyType(childComplexity), true - - case "InternalPolicyHistory.purposeAndScope": - if e.complexity.InternalPolicyHistory.PurposeAndScope == nil { - break - } - - return e.complexity.InternalPolicyHistory.PurposeAndScope(childComplexity), true - - case "InternalPolicyHistory.ref": - if e.complexity.InternalPolicyHistory.Ref == nil { - break - } - - return e.complexity.InternalPolicyHistory.Ref(childComplexity), true - - case "InternalPolicyHistory.status": - if e.complexity.InternalPolicyHistory.Status == nil { - break - } - - return e.complexity.InternalPolicyHistory.Status(childComplexity), true - - case "InternalPolicyHistory.tags": - if e.complexity.InternalPolicyHistory.Tags == nil { - break - } - - return e.complexity.InternalPolicyHistory.Tags(childComplexity), true - - case "InternalPolicyHistory.updatedAt": - if e.complexity.InternalPolicyHistory.UpdatedAt == nil { - break - } - - return e.complexity.InternalPolicyHistory.UpdatedAt(childComplexity), true - - case "InternalPolicyHistory.updatedBy": - if e.complexity.InternalPolicyHistory.UpdatedBy == nil { - break - } - - return e.complexity.InternalPolicyHistory.UpdatedBy(childComplexity), true - - case "InternalPolicyHistory.version": - if e.complexity.InternalPolicyHistory.Version == nil { - break - } - - return e.complexity.InternalPolicyHistory.Version(childComplexity), true - - case "InternalPolicyHistoryConnection.edges": - if e.complexity.InternalPolicyHistoryConnection.Edges == nil { - break - } - - return e.complexity.InternalPolicyHistoryConnection.Edges(childComplexity), true - - case "InternalPolicyHistoryConnection.pageInfo": - if e.complexity.InternalPolicyHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.InternalPolicyHistoryConnection.PageInfo(childComplexity), true - - case "InternalPolicyHistoryConnection.totalCount": - if e.complexity.InternalPolicyHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.InternalPolicyHistoryConnection.TotalCount(childComplexity), true - - case "InternalPolicyHistoryEdge.cursor": - if e.complexity.InternalPolicyHistoryEdge.Cursor == nil { - break - } - - return e.complexity.InternalPolicyHistoryEdge.Cursor(childComplexity), true - - case "InternalPolicyHistoryEdge.node": - if e.complexity.InternalPolicyHistoryEdge.Node == nil { - break - } - - return e.complexity.InternalPolicyHistoryEdge.Node(childComplexity), true - - case "InternalPolicySearchResult.internalPolicies": - if e.complexity.InternalPolicySearchResult.InternalPolicies == nil { - break - } - - return e.complexity.InternalPolicySearchResult.InternalPolicies(childComplexity), true - - case "InternalPolicyUpdatePayload.internalPolicy": - if e.complexity.InternalPolicyUpdatePayload.InternalPolicy == nil { - break - } - - return e.complexity.InternalPolicyUpdatePayload.InternalPolicy(childComplexity), true - - case "Invite.createdAt": - if e.complexity.Invite.CreatedAt == nil { - break - } - - return e.complexity.Invite.CreatedAt(childComplexity), true - - case "Invite.createdBy": - if e.complexity.Invite.CreatedBy == nil { - break - } - - return e.complexity.Invite.CreatedBy(childComplexity), true - - case "Invite.deletedAt": - if e.complexity.Invite.DeletedAt == nil { - break - } - - return e.complexity.Invite.DeletedAt(childComplexity), true - - case "Invite.deletedBy": - if e.complexity.Invite.DeletedBy == nil { - break - } - - return e.complexity.Invite.DeletedBy(childComplexity), true - - case "Invite.events": - if e.complexity.Invite.Events == nil { - break - } - - return e.complexity.Invite.Events(childComplexity), true - - case "Invite.expires": - if e.complexity.Invite.Expires == nil { - break - } - - return e.complexity.Invite.Expires(childComplexity), true - - case "Invite.id": - if e.complexity.Invite.ID == nil { - break - } - - return e.complexity.Invite.ID(childComplexity), true - - case "Invite.owner": - if e.complexity.Invite.Owner == nil { - break - } - - return e.complexity.Invite.Owner(childComplexity), true - - case "Invite.ownerID": - if e.complexity.Invite.OwnerID == nil { - break - } - - return e.complexity.Invite.OwnerID(childComplexity), true - - case "Invite.recipient": - if e.complexity.Invite.Recipient == nil { - break - } - - return e.complexity.Invite.Recipient(childComplexity), true - - case "Invite.requestorID": - if e.complexity.Invite.RequestorID == nil { - break - } - - return e.complexity.Invite.RequestorID(childComplexity), true - - case "Invite.role": - if e.complexity.Invite.Role == nil { - break - } - - return e.complexity.Invite.Role(childComplexity), true - - case "Invite.sendAttempts": - if e.complexity.Invite.SendAttempts == nil { - break - } - - return e.complexity.Invite.SendAttempts(childComplexity), true - - case "Invite.status": - if e.complexity.Invite.Status == nil { - break - } - - return e.complexity.Invite.Status(childComplexity), true - - case "Invite.updatedAt": - if e.complexity.Invite.UpdatedAt == nil { - break - } - - return e.complexity.Invite.UpdatedAt(childComplexity), true - - case "Invite.updatedBy": - if e.complexity.Invite.UpdatedBy == nil { - break - } - - return e.complexity.Invite.UpdatedBy(childComplexity), true - - case "InviteBulkCreatePayload.invites": - if e.complexity.InviteBulkCreatePayload.Invites == nil { - break - } - - return e.complexity.InviteBulkCreatePayload.Invites(childComplexity), true - - case "InviteConnection.edges": - if e.complexity.InviteConnection.Edges == nil { - break - } - - return e.complexity.InviteConnection.Edges(childComplexity), true - - case "InviteConnection.pageInfo": - if e.complexity.InviteConnection.PageInfo == nil { - break - } - - return e.complexity.InviteConnection.PageInfo(childComplexity), true - - case "InviteConnection.totalCount": - if e.complexity.InviteConnection.TotalCount == nil { - break - } - - return e.complexity.InviteConnection.TotalCount(childComplexity), true - - case "InviteCreatePayload.invite": - if e.complexity.InviteCreatePayload.Invite == nil { - break - } - - return e.complexity.InviteCreatePayload.Invite(childComplexity), true - - case "InviteDeletePayload.deletedID": - if e.complexity.InviteDeletePayload.DeletedID == nil { - break - } - - return e.complexity.InviteDeletePayload.DeletedID(childComplexity), true - - case "InviteEdge.cursor": - if e.complexity.InviteEdge.Cursor == nil { - break - } - - return e.complexity.InviteEdge.Cursor(childComplexity), true - - case "InviteEdge.node": - if e.complexity.InviteEdge.Node == nil { - break - } - - return e.complexity.InviteEdge.Node(childComplexity), true - - case "InviteUpdatePayload.invite": - if e.complexity.InviteUpdatePayload.Invite == nil { - break - } - - return e.complexity.InviteUpdatePayload.Invite(childComplexity), true - - case "Mutation.createAPIToken": - if e.complexity.Mutation.CreateAPIToken == nil { - break - } - - args, err := ec.field_Mutation_createAPIToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateAPIToken(childComplexity, args["input"].(generated.CreateAPITokenInput)), true - - case "Mutation.createActionPlan": - if e.complexity.Mutation.CreateActionPlan == nil { - break - } - - args, err := ec.field_Mutation_createActionPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateActionPlan(childComplexity, args["input"].(generated.CreateActionPlanInput)), true - - case "Mutation.createBulkAPIToken": - if e.complexity.Mutation.CreateBulkAPIToken == nil { - break - } - - args, err := ec.field_Mutation_createBulkAPIToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkAPIToken(childComplexity, args["input"].([]*generated.CreateAPITokenInput)), true - - case "Mutation.createBulkActionPlan": - if e.complexity.Mutation.CreateBulkActionPlan == nil { - break - } - - args, err := ec.field_Mutation_createBulkActionPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkActionPlan(childComplexity, args["input"].([]*generated.CreateActionPlanInput)), true - - case "Mutation.createBulkCSVAPIToken": - if e.complexity.Mutation.CreateBulkCSVAPIToken == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVAPIToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVAPIToken(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVActionPlan": - if e.complexity.Mutation.CreateBulkCSVActionPlan == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVActionPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVActionPlan(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVContact": - if e.complexity.Mutation.CreateBulkCSVContact == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVContact_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVContact(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVControl": - if e.complexity.Mutation.CreateBulkCSVControl == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVControl_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVControl(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVControlObjective": - if e.complexity.Mutation.CreateBulkCSVControlObjective == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVControlObjective_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVControlObjective(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVDocumentData": - if e.complexity.Mutation.CreateBulkCSVDocumentData == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVDocumentData_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVDocumentData(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVEntity": - if e.complexity.Mutation.CreateBulkCSVEntity == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVEntity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVEntity(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVEntityType": - if e.complexity.Mutation.CreateBulkCSVEntityType == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVEntityType_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVEntityType(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVEvent": - if e.complexity.Mutation.CreateBulkCSVEvent == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVEvent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVEvent(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVGroup": - if e.complexity.Mutation.CreateBulkCSVGroup == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVGroup(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVGroupMembership": - if e.complexity.Mutation.CreateBulkCSVGroupMembership == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVGroupMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVGroupMembership(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVGroupSetting": - if e.complexity.Mutation.CreateBulkCSVGroupSetting == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVGroupSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVGroupSetting(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVHush": - if e.complexity.Mutation.CreateBulkCSVHush == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVHush_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVHush(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVIntegration": - if e.complexity.Mutation.CreateBulkCSVIntegration == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVIntegration_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVIntegration(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVInternalPolicy": - if e.complexity.Mutation.CreateBulkCSVInternalPolicy == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVInternalPolicy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVInternalPolicy(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVInvite": - if e.complexity.Mutation.CreateBulkCSVInvite == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVInvite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVInvite(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVNarrative": - if e.complexity.Mutation.CreateBulkCSVNarrative == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVNarrative_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVNarrative(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVOrgMembership": - if e.complexity.Mutation.CreateBulkCSVOrgMembership == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVOrgMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVOrgMembership(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVOrgSubscription": - if e.complexity.Mutation.CreateBulkCSVOrgSubscription == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVOrgSubscription_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVOrgSubscription(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVOrganization": - if e.complexity.Mutation.CreateBulkCSVOrganization == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVOrganization_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVOrganization(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVOrganizationSetting": - if e.complexity.Mutation.CreateBulkCSVOrganizationSetting == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVOrganizationSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVOrganizationSetting(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVPersonalAccessToken": - if e.complexity.Mutation.CreateBulkCSVPersonalAccessToken == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVPersonalAccessToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVPersonalAccessToken(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVProcedure": - if e.complexity.Mutation.CreateBulkCSVProcedure == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVProcedure_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVProcedure(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVProgram": - if e.complexity.Mutation.CreateBulkCSVProgram == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVProgram_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVProgram(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVProgramMembership": - if e.complexity.Mutation.CreateBulkCSVProgramMembership == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVProgramMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVProgramMembership(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVRisk": - if e.complexity.Mutation.CreateBulkCSVRisk == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVRisk_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVRisk(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVStandard": - if e.complexity.Mutation.CreateBulkCSVStandard == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVStandard_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVStandard(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVSubcontrol": - if e.complexity.Mutation.CreateBulkCSVSubcontrol == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVSubcontrol_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVSubcontrol(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVSubscriber": - if e.complexity.Mutation.CreateBulkCSVSubscriber == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVSubscriber_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVSubscriber(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVTask": - if e.complexity.Mutation.CreateBulkCSVTask == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVTask_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVTask(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVTemplate": - if e.complexity.Mutation.CreateBulkCSVTemplate == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVTemplate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVTemplate(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkCSVUserSetting": - if e.complexity.Mutation.CreateBulkCSVUserSetting == nil { - break - } - - args, err := ec.field_Mutation_createBulkCSVUserSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkCSVUserSetting(childComplexity, args["input"].(graphql.Upload)), true - - case "Mutation.createBulkContact": - if e.complexity.Mutation.CreateBulkContact == nil { - break - } - - args, err := ec.field_Mutation_createBulkContact_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkContact(childComplexity, args["input"].([]*generated.CreateContactInput)), true - - case "Mutation.createBulkControl": - if e.complexity.Mutation.CreateBulkControl == nil { - break - } - - args, err := ec.field_Mutation_createBulkControl_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkControl(childComplexity, args["input"].([]*generated.CreateControlInput)), true - - case "Mutation.createBulkControlObjective": - if e.complexity.Mutation.CreateBulkControlObjective == nil { - break - } - - args, err := ec.field_Mutation_createBulkControlObjective_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkControlObjective(childComplexity, args["input"].([]*generated.CreateControlObjectiveInput)), true - - case "Mutation.createBulkDocumentData": - if e.complexity.Mutation.CreateBulkDocumentData == nil { - break - } - - args, err := ec.field_Mutation_createBulkDocumentData_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkDocumentData(childComplexity, args["input"].([]*generated.CreateDocumentDataInput)), true - - case "Mutation.createBulkEntity": - if e.complexity.Mutation.CreateBulkEntity == nil { - break - } - - args, err := ec.field_Mutation_createBulkEntity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkEntity(childComplexity, args["input"].([]*generated.CreateEntityInput)), true - - case "Mutation.createBulkEntityType": - if e.complexity.Mutation.CreateBulkEntityType == nil { - break - } - - args, err := ec.field_Mutation_createBulkEntityType_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkEntityType(childComplexity, args["input"].([]*generated.CreateEntityTypeInput)), true - - case "Mutation.createBulkEvent": - if e.complexity.Mutation.CreateBulkEvent == nil { - break - } - - args, err := ec.field_Mutation_createBulkEvent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkEvent(childComplexity, args["input"].([]*generated.CreateEventInput)), true - - case "Mutation.createBulkGroup": - if e.complexity.Mutation.CreateBulkGroup == nil { - break - } - - args, err := ec.field_Mutation_createBulkGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkGroup(childComplexity, args["input"].([]*generated.CreateGroupInput)), true - - case "Mutation.createBulkGroupMembership": - if e.complexity.Mutation.CreateBulkGroupMembership == nil { - break - } - - args, err := ec.field_Mutation_createBulkGroupMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkGroupMembership(childComplexity, args["input"].([]*generated.CreateGroupMembershipInput)), true - - case "Mutation.createBulkGroupSetting": - if e.complexity.Mutation.CreateBulkGroupSetting == nil { - break - } - - args, err := ec.field_Mutation_createBulkGroupSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkGroupSetting(childComplexity, args["input"].([]*generated.CreateGroupSettingInput)), true - - case "Mutation.createBulkHush": - if e.complexity.Mutation.CreateBulkHush == nil { - break - } - - args, err := ec.field_Mutation_createBulkHush_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkHush(childComplexity, args["input"].([]*generated.CreateHushInput)), true - - case "Mutation.createBulkIntegration": - if e.complexity.Mutation.CreateBulkIntegration == nil { - break - } - - args, err := ec.field_Mutation_createBulkIntegration_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkIntegration(childComplexity, args["input"].([]*generated.CreateIntegrationInput)), true - - case "Mutation.createBulkInternalPolicy": - if e.complexity.Mutation.CreateBulkInternalPolicy == nil { - break - } - - args, err := ec.field_Mutation_createBulkInternalPolicy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkInternalPolicy(childComplexity, args["input"].([]*generated.CreateInternalPolicyInput)), true - - case "Mutation.createBulkInvite": - if e.complexity.Mutation.CreateBulkInvite == nil { - break - } - - args, err := ec.field_Mutation_createBulkInvite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkInvite(childComplexity, args["input"].([]*generated.CreateInviteInput)), true - - case "Mutation.createBulkNarrative": - if e.complexity.Mutation.CreateBulkNarrative == nil { - break - } - - args, err := ec.field_Mutation_createBulkNarrative_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkNarrative(childComplexity, args["input"].([]*generated.CreateNarrativeInput)), true - - case "Mutation.createBulkOrgMembership": - if e.complexity.Mutation.CreateBulkOrgMembership == nil { - break - } - - args, err := ec.field_Mutation_createBulkOrgMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkOrgMembership(childComplexity, args["input"].([]*generated.CreateOrgMembershipInput)), true - - case "Mutation.createBulkOrgSubscription": - if e.complexity.Mutation.CreateBulkOrgSubscription == nil { - break - } - - args, err := ec.field_Mutation_createBulkOrgSubscription_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkOrgSubscription(childComplexity, args["input"].([]*generated.CreateOrgSubscriptionInput)), true - - case "Mutation.createBulkOrganization": - if e.complexity.Mutation.CreateBulkOrganization == nil { - break - } - - args, err := ec.field_Mutation_createBulkOrganization_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkOrganization(childComplexity, args["input"].([]*generated.CreateOrganizationInput)), true - - case "Mutation.createBulkOrganizationSetting": - if e.complexity.Mutation.CreateBulkOrganizationSetting == nil { - break - } - - args, err := ec.field_Mutation_createBulkOrganizationSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkOrganizationSetting(childComplexity, args["input"].([]*generated.CreateOrganizationSettingInput)), true - - case "Mutation.createBulkPersonalAccessToken": - if e.complexity.Mutation.CreateBulkPersonalAccessToken == nil { - break - } - - args, err := ec.field_Mutation_createBulkPersonalAccessToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkPersonalAccessToken(childComplexity, args["input"].([]*generated.CreatePersonalAccessTokenInput)), true - - case "Mutation.createBulkProcedure": - if e.complexity.Mutation.CreateBulkProcedure == nil { - break - } - - args, err := ec.field_Mutation_createBulkProcedure_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkProcedure(childComplexity, args["input"].([]*generated.CreateProcedureInput)), true - - case "Mutation.createBulkProgram": - if e.complexity.Mutation.CreateBulkProgram == nil { - break - } - - args, err := ec.field_Mutation_createBulkProgram_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkProgram(childComplexity, args["input"].([]*generated.CreateProgramInput)), true - - case "Mutation.createBulkProgramMembership": - if e.complexity.Mutation.CreateBulkProgramMembership == nil { - break - } - - args, err := ec.field_Mutation_createBulkProgramMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkProgramMembership(childComplexity, args["input"].([]*generated.CreateProgramMembershipInput)), true - - case "Mutation.createBulkRisk": - if e.complexity.Mutation.CreateBulkRisk == nil { - break - } - - args, err := ec.field_Mutation_createBulkRisk_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkRisk(childComplexity, args["input"].([]*generated.CreateRiskInput)), true - - case "Mutation.createBulkStandard": - if e.complexity.Mutation.CreateBulkStandard == nil { - break - } - - args, err := ec.field_Mutation_createBulkStandard_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkStandard(childComplexity, args["input"].([]*generated.CreateStandardInput)), true - - case "Mutation.createBulkSubcontrol": - if e.complexity.Mutation.CreateBulkSubcontrol == nil { - break - } - - args, err := ec.field_Mutation_createBulkSubcontrol_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkSubcontrol(childComplexity, args["input"].([]*generated.CreateSubcontrolInput)), true - - case "Mutation.createBulkSubscriber": - if e.complexity.Mutation.CreateBulkSubscriber == nil { - break - } - - args, err := ec.field_Mutation_createBulkSubscriber_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkSubscriber(childComplexity, args["input"].([]*generated.CreateSubscriberInput)), true - - case "Mutation.createBulkTask": - if e.complexity.Mutation.CreateBulkTask == nil { - break - } - - args, err := ec.field_Mutation_createBulkTask_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkTask(childComplexity, args["input"].([]*generated.CreateTaskInput)), true - - case "Mutation.createBulkTemplate": - if e.complexity.Mutation.CreateBulkTemplate == nil { - break - } - - args, err := ec.field_Mutation_createBulkTemplate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkTemplate(childComplexity, args["input"].([]*generated.CreateTemplateInput)), true - - case "Mutation.createBulkUserSetting": - if e.complexity.Mutation.CreateBulkUserSetting == nil { - break - } - - args, err := ec.field_Mutation_createBulkUserSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateBulkUserSetting(childComplexity, args["input"].([]*generated.CreateUserSettingInput)), true - - case "Mutation.createContact": - if e.complexity.Mutation.CreateContact == nil { - break - } - - args, err := ec.field_Mutation_createContact_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateContact(childComplexity, args["input"].(generated.CreateContactInput)), true - - case "Mutation.createControl": - if e.complexity.Mutation.CreateControl == nil { - break - } - - args, err := ec.field_Mutation_createControl_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateControl(childComplexity, args["input"].(generated.CreateControlInput)), true - - case "Mutation.createControlObjective": - if e.complexity.Mutation.CreateControlObjective == nil { - break - } - - args, err := ec.field_Mutation_createControlObjective_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateControlObjective(childComplexity, args["input"].(generated.CreateControlObjectiveInput)), true - - case "Mutation.createControlWithSubcontrols": - if e.complexity.Mutation.CreateControlWithSubcontrols == nil { - break - } - - args, err := ec.field_Mutation_createControlWithSubcontrols_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateControlWithSubcontrols(childComplexity, args["input"].(CreateControlWithSubcontrolsInput)), true - - case "Mutation.createDocumentData": - if e.complexity.Mutation.CreateDocumentData == nil { - break - } - - args, err := ec.field_Mutation_createDocumentData_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateDocumentData(childComplexity, args["input"].(generated.CreateDocumentDataInput)), true - - case "Mutation.createEntity": - if e.complexity.Mutation.CreateEntity == nil { - break - } - - args, err := ec.field_Mutation_createEntity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateEntity(childComplexity, args["input"].(generated.CreateEntityInput)), true - - case "Mutation.createEntityType": - if e.complexity.Mutation.CreateEntityType == nil { - break - } - - args, err := ec.field_Mutation_createEntityType_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateEntityType(childComplexity, args["input"].(generated.CreateEntityTypeInput)), true - - case "Mutation.createEvent": - if e.complexity.Mutation.CreateEvent == nil { - break - } - - args, err := ec.field_Mutation_createEvent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateEvent(childComplexity, args["input"].(generated.CreateEventInput)), true - - case "Mutation.createFullProgram": - if e.complexity.Mutation.CreateFullProgram == nil { - break - } - - args, err := ec.field_Mutation_createFullProgram_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateFullProgram(childComplexity, args["input"].(CreateFullProgramInput)), true - - case "Mutation.createGroup": - if e.complexity.Mutation.CreateGroup == nil { - break - } - - args, err := ec.field_Mutation_createGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateGroup(childComplexity, args["input"].(generated.CreateGroupInput)), true - - case "Mutation.createGroupMembership": - if e.complexity.Mutation.CreateGroupMembership == nil { - break - } - - args, err := ec.field_Mutation_createGroupMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateGroupMembership(childComplexity, args["input"].(generated.CreateGroupMembershipInput)), true - - case "Mutation.createGroupSetting": - if e.complexity.Mutation.CreateGroupSetting == nil { - break - } - - args, err := ec.field_Mutation_createGroupSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateGroupSetting(childComplexity, args["input"].(generated.CreateGroupSettingInput)), true - - case "Mutation.createHush": - if e.complexity.Mutation.CreateHush == nil { - break - } - - args, err := ec.field_Mutation_createHush_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateHush(childComplexity, args["input"].(generated.CreateHushInput)), true - - case "Mutation.createIntegration": - if e.complexity.Mutation.CreateIntegration == nil { - break - } - - args, err := ec.field_Mutation_createIntegration_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateIntegration(childComplexity, args["input"].(generated.CreateIntegrationInput)), true - - case "Mutation.createInternalPolicy": - if e.complexity.Mutation.CreateInternalPolicy == nil { - break - } - - args, err := ec.field_Mutation_createInternalPolicy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateInternalPolicy(childComplexity, args["input"].(generated.CreateInternalPolicyInput)), true - - case "Mutation.createInvite": - if e.complexity.Mutation.CreateInvite == nil { - break - } - - args, err := ec.field_Mutation_createInvite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateInvite(childComplexity, args["input"].(generated.CreateInviteInput)), true - - case "Mutation.createNarrative": - if e.complexity.Mutation.CreateNarrative == nil { - break - } - - args, err := ec.field_Mutation_createNarrative_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateNarrative(childComplexity, args["input"].(generated.CreateNarrativeInput)), true - - case "Mutation.createOrgMembership": - if e.complexity.Mutation.CreateOrgMembership == nil { - break - } - - args, err := ec.field_Mutation_createOrgMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateOrgMembership(childComplexity, args["input"].(generated.CreateOrgMembershipInput)), true - - case "Mutation.createOrgSubscription": - if e.complexity.Mutation.CreateOrgSubscription == nil { - break - } - - args, err := ec.field_Mutation_createOrgSubscription_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateOrgSubscription(childComplexity, args["input"].(generated.CreateOrgSubscriptionInput)), true - - case "Mutation.createOrganization": - if e.complexity.Mutation.CreateOrganization == nil { - break - } - - args, err := ec.field_Mutation_createOrganization_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateOrganization(childComplexity, args["input"].(generated.CreateOrganizationInput)), true - - case "Mutation.createOrganizationSetting": - if e.complexity.Mutation.CreateOrganizationSetting == nil { - break - } - - args, err := ec.field_Mutation_createOrganizationSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateOrganizationSetting(childComplexity, args["input"].(generated.CreateOrganizationSettingInput)), true - - case "Mutation.createPersonalAccessToken": - if e.complexity.Mutation.CreatePersonalAccessToken == nil { - break - } - - args, err := ec.field_Mutation_createPersonalAccessToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreatePersonalAccessToken(childComplexity, args["input"].(generated.CreatePersonalAccessTokenInput)), true - - case "Mutation.createProcedure": - if e.complexity.Mutation.CreateProcedure == nil { - break - } - - args, err := ec.field_Mutation_createProcedure_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateProcedure(childComplexity, args["input"].(generated.CreateProcedureInput)), true - - case "Mutation.createProgram": - if e.complexity.Mutation.CreateProgram == nil { - break - } - - args, err := ec.field_Mutation_createProgram_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateProgram(childComplexity, args["input"].(generated.CreateProgramInput)), true - - case "Mutation.createProgramMembership": - if e.complexity.Mutation.CreateProgramMembership == nil { - break - } - - args, err := ec.field_Mutation_createProgramMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateProgramMembership(childComplexity, args["input"].(generated.CreateProgramMembershipInput)), true - - case "Mutation.createProgramWithMembers": - if e.complexity.Mutation.CreateProgramWithMembers == nil { - break - } - - args, err := ec.field_Mutation_createProgramWithMembers_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateProgramWithMembers(childComplexity, args["input"].(CreateProgramWithMembersInput)), true - - case "Mutation.createRisk": - if e.complexity.Mutation.CreateRisk == nil { - break - } - - args, err := ec.field_Mutation_createRisk_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateRisk(childComplexity, args["input"].(generated.CreateRiskInput)), true - - case "Mutation.createStandard": - if e.complexity.Mutation.CreateStandard == nil { - break - } - - args, err := ec.field_Mutation_createStandard_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateStandard(childComplexity, args["input"].(generated.CreateStandardInput)), true - - case "Mutation.createSubcontrol": - if e.complexity.Mutation.CreateSubcontrol == nil { - break - } - - args, err := ec.field_Mutation_createSubcontrol_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateSubcontrol(childComplexity, args["input"].(generated.CreateSubcontrolInput)), true - - case "Mutation.createSubscriber": - if e.complexity.Mutation.CreateSubscriber == nil { - break - } - - args, err := ec.field_Mutation_createSubscriber_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateSubscriber(childComplexity, args["input"].(generated.CreateSubscriberInput)), true - - case "Mutation.createTFASetting": - if e.complexity.Mutation.CreateTFASetting == nil { - break - } - - args, err := ec.field_Mutation_createTFASetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateTFASetting(childComplexity, args["input"].(generated.CreateTFASettingInput)), true - - case "Mutation.createTask": - if e.complexity.Mutation.CreateTask == nil { - break - } - - args, err := ec.field_Mutation_createTask_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateTask(childComplexity, args["input"].(generated.CreateTaskInput)), true - - case "Mutation.createTemplate": - if e.complexity.Mutation.CreateTemplate == nil { - break - } - - args, err := ec.field_Mutation_createTemplate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateTemplate(childComplexity, args["input"].(generated.CreateTemplateInput)), true - - case "Mutation.createUser": - if e.complexity.Mutation.CreateUser == nil { - break - } - - args, err := ec.field_Mutation_createUser_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateUser(childComplexity, args["input"].(generated.CreateUserInput), args["avatarFile"].(*graphql.Upload)), true - - case "Mutation.createUserSetting": - if e.complexity.Mutation.CreateUserSetting == nil { - break - } - - args, err := ec.field_Mutation_createUserSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.CreateUserSetting(childComplexity, args["input"].(generated.CreateUserSettingInput)), true - - case "Mutation.deleteAPIToken": - if e.complexity.Mutation.DeleteAPIToken == nil { - break - } - - args, err := ec.field_Mutation_deleteAPIToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteAPIToken(childComplexity, args["id"].(string)), true - - case "Mutation.deleteActionPlan": - if e.complexity.Mutation.DeleteActionPlan == nil { - break - } - - args, err := ec.field_Mutation_deleteActionPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteActionPlan(childComplexity, args["id"].(string)), true - - case "Mutation.deleteContact": - if e.complexity.Mutation.DeleteContact == nil { - break - } - - args, err := ec.field_Mutation_deleteContact_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteContact(childComplexity, args["id"].(string)), true - - case "Mutation.deleteControl": - if e.complexity.Mutation.DeleteControl == nil { - break - } - - args, err := ec.field_Mutation_deleteControl_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteControl(childComplexity, args["id"].(string)), true - - case "Mutation.deleteControlObjective": - if e.complexity.Mutation.DeleteControlObjective == nil { - break - } - - args, err := ec.field_Mutation_deleteControlObjective_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteControlObjective(childComplexity, args["id"].(string)), true - - case "Mutation.deleteDocumentData": - if e.complexity.Mutation.DeleteDocumentData == nil { - break - } - - args, err := ec.field_Mutation_deleteDocumentData_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteDocumentData(childComplexity, args["id"].(string)), true - - case "Mutation.deleteEntity": - if e.complexity.Mutation.DeleteEntity == nil { - break - } - - args, err := ec.field_Mutation_deleteEntity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteEntity(childComplexity, args["id"].(string)), true - - case "Mutation.deleteEntityType": - if e.complexity.Mutation.DeleteEntityType == nil { - break - } - - args, err := ec.field_Mutation_deleteEntityType_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteEntityType(childComplexity, args["id"].(string)), true - - case "Mutation.deleteEvent": - if e.complexity.Mutation.DeleteEvent == nil { - break - } - - args, err := ec.field_Mutation_deleteEvent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteEvent(childComplexity, args["id"].(string)), true - - case "Mutation.deleteFile": - if e.complexity.Mutation.DeleteFile == nil { - break - } - - args, err := ec.field_Mutation_deleteFile_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteFile(childComplexity, args["id"].(string)), true - - case "Mutation.deleteGroup": - if e.complexity.Mutation.DeleteGroup == nil { - break - } - - args, err := ec.field_Mutation_deleteGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteGroup(childComplexity, args["id"].(string)), true - - case "Mutation.deleteGroupMembership": - if e.complexity.Mutation.DeleteGroupMembership == nil { - break - } - - args, err := ec.field_Mutation_deleteGroupMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteGroupMembership(childComplexity, args["id"].(string)), true - - case "Mutation.deleteGroupSetting": - if e.complexity.Mutation.DeleteGroupSetting == nil { - break - } - - args, err := ec.field_Mutation_deleteGroupSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteGroupSetting(childComplexity, args["id"].(string)), true - - case "Mutation.deleteHush": - if e.complexity.Mutation.DeleteHush == nil { - break - } - - args, err := ec.field_Mutation_deleteHush_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteHush(childComplexity, args["id"].(string)), true - - case "Mutation.deleteIntegration": - if e.complexity.Mutation.DeleteIntegration == nil { - break - } - - args, err := ec.field_Mutation_deleteIntegration_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteIntegration(childComplexity, args["id"].(string)), true - - case "Mutation.deleteInternalPolicy": - if e.complexity.Mutation.DeleteInternalPolicy == nil { - break - } - - args, err := ec.field_Mutation_deleteInternalPolicy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteInternalPolicy(childComplexity, args["id"].(string)), true - - case "Mutation.deleteInvite": - if e.complexity.Mutation.DeleteInvite == nil { - break - } - - args, err := ec.field_Mutation_deleteInvite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteInvite(childComplexity, args["id"].(string)), true - - case "Mutation.deleteNarrative": - if e.complexity.Mutation.DeleteNarrative == nil { - break - } - - args, err := ec.field_Mutation_deleteNarrative_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteNarrative(childComplexity, args["id"].(string)), true - - case "Mutation.deleteOrgMembership": - if e.complexity.Mutation.DeleteOrgMembership == nil { - break - } - - args, err := ec.field_Mutation_deleteOrgMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteOrgMembership(childComplexity, args["id"].(string)), true - - case "Mutation.deleteOrgSubscription": - if e.complexity.Mutation.DeleteOrgSubscription == nil { - break - } - - args, err := ec.field_Mutation_deleteOrgSubscription_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteOrgSubscription(childComplexity, args["id"].(string)), true - - case "Mutation.deleteOrganization": - if e.complexity.Mutation.DeleteOrganization == nil { - break - } - - args, err := ec.field_Mutation_deleteOrganization_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteOrganization(childComplexity, args["id"].(string)), true - - case "Mutation.deleteOrganizationSetting": - if e.complexity.Mutation.DeleteOrganizationSetting == nil { - break - } - - args, err := ec.field_Mutation_deleteOrganizationSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteOrganizationSetting(childComplexity, args["id"].(string)), true - - case "Mutation.deletePersonalAccessToken": - if e.complexity.Mutation.DeletePersonalAccessToken == nil { - break - } - - args, err := ec.field_Mutation_deletePersonalAccessToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeletePersonalAccessToken(childComplexity, args["id"].(string)), true - - case "Mutation.deleteProcedure": - if e.complexity.Mutation.DeleteProcedure == nil { - break - } - - args, err := ec.field_Mutation_deleteProcedure_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteProcedure(childComplexity, args["id"].(string)), true - - case "Mutation.deleteProgram": - if e.complexity.Mutation.DeleteProgram == nil { - break - } - - args, err := ec.field_Mutation_deleteProgram_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteProgram(childComplexity, args["id"].(string)), true - - case "Mutation.deleteProgramMembership": - if e.complexity.Mutation.DeleteProgramMembership == nil { - break - } - - args, err := ec.field_Mutation_deleteProgramMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteProgramMembership(childComplexity, args["id"].(string)), true - - case "Mutation.deleteRisk": - if e.complexity.Mutation.DeleteRisk == nil { - break - } - - args, err := ec.field_Mutation_deleteRisk_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteRisk(childComplexity, args["id"].(string)), true - - case "Mutation.deleteStandard": - if e.complexity.Mutation.DeleteStandard == nil { - break - } - - args, err := ec.field_Mutation_deleteStandard_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteStandard(childComplexity, args["id"].(string)), true - - case "Mutation.deleteSubcontrol": - if e.complexity.Mutation.DeleteSubcontrol == nil { - break - } - - args, err := ec.field_Mutation_deleteSubcontrol_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteSubcontrol(childComplexity, args["id"].(string)), true - - case "Mutation.deleteSubscriber": - if e.complexity.Mutation.DeleteSubscriber == nil { - break - } - - args, err := ec.field_Mutation_deleteSubscriber_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteSubscriber(childComplexity, args["email"].(string), args["ownerID"].(*string)), true - - case "Mutation.deleteTask": - if e.complexity.Mutation.DeleteTask == nil { - break - } - - args, err := ec.field_Mutation_deleteTask_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteTask(childComplexity, args["id"].(string)), true - - case "Mutation.deleteTemplate": - if e.complexity.Mutation.DeleteTemplate == nil { - break - } - - args, err := ec.field_Mutation_deleteTemplate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteTemplate(childComplexity, args["id"].(string)), true - - case "Mutation.deleteUser": - if e.complexity.Mutation.DeleteUser == nil { - break - } - - args, err := ec.field_Mutation_deleteUser_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.DeleteUser(childComplexity, args["id"].(string)), true - - case "Mutation.updateAPIToken": - if e.complexity.Mutation.UpdateAPIToken == nil { - break - } - - args, err := ec.field_Mutation_updateAPIToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateAPIToken(childComplexity, args["id"].(string), args["input"].(generated.UpdateAPITokenInput)), true - - case "Mutation.updateActionPlan": - if e.complexity.Mutation.UpdateActionPlan == nil { - break - } - - args, err := ec.field_Mutation_updateActionPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateActionPlan(childComplexity, args["id"].(string), args["input"].(generated.UpdateActionPlanInput)), true - - case "Mutation.updateContact": - if e.complexity.Mutation.UpdateContact == nil { - break - } - - args, err := ec.field_Mutation_updateContact_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateContact(childComplexity, args["id"].(string), args["input"].(generated.UpdateContactInput)), true - - case "Mutation.updateControl": - if e.complexity.Mutation.UpdateControl == nil { - break - } - - args, err := ec.field_Mutation_updateControl_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateControl(childComplexity, args["id"].(string), args["input"].(generated.UpdateControlInput)), true - - case "Mutation.updateControlObjective": - if e.complexity.Mutation.UpdateControlObjective == nil { - break - } - - args, err := ec.field_Mutation_updateControlObjective_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateControlObjective(childComplexity, args["id"].(string), args["input"].(generated.UpdateControlObjectiveInput)), true - - case "Mutation.updateDocumentData": - if e.complexity.Mutation.UpdateDocumentData == nil { - break - } - - args, err := ec.field_Mutation_updateDocumentData_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateDocumentData(childComplexity, args["id"].(string), args["input"].(generated.UpdateDocumentDataInput)), true - - case "Mutation.updateEntity": - if e.complexity.Mutation.UpdateEntity == nil { - break - } - - args, err := ec.field_Mutation_updateEntity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateEntity(childComplexity, args["id"].(string), args["input"].(generated.UpdateEntityInput)), true - - case "Mutation.updateEntityType": - if e.complexity.Mutation.UpdateEntityType == nil { - break - } - - args, err := ec.field_Mutation_updateEntityType_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateEntityType(childComplexity, args["id"].(string), args["input"].(generated.UpdateEntityTypeInput)), true - - case "Mutation.updateEvent": - if e.complexity.Mutation.UpdateEvent == nil { - break - } - - args, err := ec.field_Mutation_updateEvent_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateEvent(childComplexity, args["id"].(string), args["input"].(generated.UpdateEventInput)), true - - case "Mutation.updateGroup": - if e.complexity.Mutation.UpdateGroup == nil { - break - } - - args, err := ec.field_Mutation_updateGroup_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateGroup(childComplexity, args["id"].(string), args["input"].(generated.UpdateGroupInput)), true - - case "Mutation.updateGroupMembership": - if e.complexity.Mutation.UpdateGroupMembership == nil { - break - } - - args, err := ec.field_Mutation_updateGroupMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateGroupMembership(childComplexity, args["id"].(string), args["input"].(generated.UpdateGroupMembershipInput)), true - - case "Mutation.updateGroupSetting": - if e.complexity.Mutation.UpdateGroupSetting == nil { - break - } - - args, err := ec.field_Mutation_updateGroupSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateGroupSetting(childComplexity, args["id"].(string), args["input"].(generated.UpdateGroupSettingInput)), true - - case "Mutation.updateHush": - if e.complexity.Mutation.UpdateHush == nil { - break - } - - args, err := ec.field_Mutation_updateHush_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateHush(childComplexity, args["id"].(string), args["input"].(generated.UpdateHushInput)), true - - case "Mutation.updateIntegration": - if e.complexity.Mutation.UpdateIntegration == nil { - break - } - - args, err := ec.field_Mutation_updateIntegration_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateIntegration(childComplexity, args["id"].(string), args["input"].(generated.UpdateIntegrationInput)), true - - case "Mutation.updateInternalPolicy": - if e.complexity.Mutation.UpdateInternalPolicy == nil { - break - } - - args, err := ec.field_Mutation_updateInternalPolicy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateInternalPolicy(childComplexity, args["id"].(string), args["input"].(generated.UpdateInternalPolicyInput)), true - - case "Mutation.updateInvite": - if e.complexity.Mutation.UpdateInvite == nil { - break - } - - args, err := ec.field_Mutation_updateInvite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateInvite(childComplexity, args["id"].(string), args["input"].(generated.UpdateInviteInput)), true - - case "Mutation.updateNarrative": - if e.complexity.Mutation.UpdateNarrative == nil { - break - } - - args, err := ec.field_Mutation_updateNarrative_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateNarrative(childComplexity, args["id"].(string), args["input"].(generated.UpdateNarrativeInput)), true - - case "Mutation.updateOrgMembership": - if e.complexity.Mutation.UpdateOrgMembership == nil { - break - } - - args, err := ec.field_Mutation_updateOrgMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateOrgMembership(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrgMembershipInput)), true - - case "Mutation.updateOrgSubscription": - if e.complexity.Mutation.UpdateOrgSubscription == nil { - break - } - - args, err := ec.field_Mutation_updateOrgSubscription_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateOrgSubscription(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrgSubscriptionInput)), true - - case "Mutation.updateOrganization": - if e.complexity.Mutation.UpdateOrganization == nil { - break - } - - args, err := ec.field_Mutation_updateOrganization_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateOrganization(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrganizationInput)), true - - case "Mutation.updateOrganizationSetting": - if e.complexity.Mutation.UpdateOrganizationSetting == nil { - break - } - - args, err := ec.field_Mutation_updateOrganizationSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateOrganizationSetting(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrganizationSettingInput)), true - - case "Mutation.updatePersonalAccessToken": - if e.complexity.Mutation.UpdatePersonalAccessToken == nil { - break - } - - args, err := ec.field_Mutation_updatePersonalAccessToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdatePersonalAccessToken(childComplexity, args["id"].(string), args["input"].(generated.UpdatePersonalAccessTokenInput)), true - - case "Mutation.updateProcedure": - if e.complexity.Mutation.UpdateProcedure == nil { - break - } - - args, err := ec.field_Mutation_updateProcedure_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateProcedure(childComplexity, args["id"].(string), args["input"].(generated.UpdateProcedureInput)), true - - case "Mutation.updateProgram": - if e.complexity.Mutation.UpdateProgram == nil { - break - } - - args, err := ec.field_Mutation_updateProgram_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateProgram(childComplexity, args["id"].(string), args["input"].(generated.UpdateProgramInput)), true - - case "Mutation.updateProgramMembership": - if e.complexity.Mutation.UpdateProgramMembership == nil { - break - } - - args, err := ec.field_Mutation_updateProgramMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateProgramMembership(childComplexity, args["id"].(string), args["input"].(generated.UpdateProgramMembershipInput)), true - - case "Mutation.updateRisk": - if e.complexity.Mutation.UpdateRisk == nil { - break - } - - args, err := ec.field_Mutation_updateRisk_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateRisk(childComplexity, args["id"].(string), args["input"].(generated.UpdateRiskInput)), true - - case "Mutation.updateStandard": - if e.complexity.Mutation.UpdateStandard == nil { - break - } - - args, err := ec.field_Mutation_updateStandard_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateStandard(childComplexity, args["id"].(string), args["input"].(generated.UpdateStandardInput)), true - - case "Mutation.updateSubcontrol": - if e.complexity.Mutation.UpdateSubcontrol == nil { - break - } - - args, err := ec.field_Mutation_updateSubcontrol_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateSubcontrol(childComplexity, args["id"].(string), args["input"].(generated.UpdateSubcontrolInput)), true - - case "Mutation.updateSubscriber": - if e.complexity.Mutation.UpdateSubscriber == nil { - break - } - - args, err := ec.field_Mutation_updateSubscriber_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateSubscriber(childComplexity, args["email"].(string), args["input"].(generated.UpdateSubscriberInput)), true - - case "Mutation.updateTFASetting": - if e.complexity.Mutation.UpdateTFASetting == nil { - break - } - - args, err := ec.field_Mutation_updateTFASetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateTFASetting(childComplexity, args["input"].(generated.UpdateTFASettingInput)), true - - case "Mutation.updateTask": - if e.complexity.Mutation.UpdateTask == nil { - break - } - - args, err := ec.field_Mutation_updateTask_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateTask(childComplexity, args["id"].(string), args["input"].(generated.UpdateTaskInput)), true - - case "Mutation.updateTemplate": - if e.complexity.Mutation.UpdateTemplate == nil { - break - } - - args, err := ec.field_Mutation_updateTemplate_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateTemplate(childComplexity, args["id"].(string), args["input"].(generated.UpdateTemplateInput)), true - - case "Mutation.updateUser": - if e.complexity.Mutation.UpdateUser == nil { - break - } - - args, err := ec.field_Mutation_updateUser_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateUser(childComplexity, args["id"].(string), args["input"].(generated.UpdateUserInput), args["avatarFile"].(*graphql.Upload)), true - - case "Mutation.updateUserSetting": - if e.complexity.Mutation.UpdateUserSetting == nil { - break - } - - args, err := ec.field_Mutation_updateUserSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Mutation.UpdateUserSetting(childComplexity, args["id"].(string), args["input"].(generated.UpdateUserSettingInput)), true - - case "Narrative.blockedGroups": - if e.complexity.Narrative.BlockedGroups == nil { - break - } - - return e.complexity.Narrative.BlockedGroups(childComplexity), true - - case "Narrative.control": - if e.complexity.Narrative.Control == nil { - break - } - - return e.complexity.Narrative.Control(childComplexity), true - - case "Narrative.controlObjective": - if e.complexity.Narrative.ControlObjective == nil { - break - } - - return e.complexity.Narrative.ControlObjective(childComplexity), true - - case "Narrative.createdAt": - if e.complexity.Narrative.CreatedAt == nil { - break - } - - return e.complexity.Narrative.CreatedAt(childComplexity), true - - case "Narrative.createdBy": - if e.complexity.Narrative.CreatedBy == nil { - break - } - - return e.complexity.Narrative.CreatedBy(childComplexity), true - - case "Narrative.deletedAt": - if e.complexity.Narrative.DeletedAt == nil { - break - } - - return e.complexity.Narrative.DeletedAt(childComplexity), true - - case "Narrative.deletedBy": - if e.complexity.Narrative.DeletedBy == nil { - break - } - - return e.complexity.Narrative.DeletedBy(childComplexity), true - - case "Narrative.description": - if e.complexity.Narrative.Description == nil { - break - } - - return e.complexity.Narrative.Description(childComplexity), true - - case "Narrative.details": - if e.complexity.Narrative.Details == nil { - break - } - - return e.complexity.Narrative.Details(childComplexity), true - - case "Narrative.editors": - if e.complexity.Narrative.Editors == nil { - break - } - - return e.complexity.Narrative.Editors(childComplexity), true - - case "Narrative.id": - if e.complexity.Narrative.ID == nil { - break - } - - return e.complexity.Narrative.ID(childComplexity), true - - case "Narrative.internalPolicy": - if e.complexity.Narrative.InternalPolicy == nil { - break - } - - return e.complexity.Narrative.InternalPolicy(childComplexity), true - - case "Narrative.name": - if e.complexity.Narrative.Name == nil { - break - } - - return e.complexity.Narrative.Name(childComplexity), true - - case "Narrative.owner": - if e.complexity.Narrative.Owner == nil { - break - } - - return e.complexity.Narrative.Owner(childComplexity), true - - case "Narrative.ownerID": - if e.complexity.Narrative.OwnerID == nil { - break - } - - return e.complexity.Narrative.OwnerID(childComplexity), true - - case "Narrative.procedure": - if e.complexity.Narrative.Procedure == nil { - break - } - - return e.complexity.Narrative.Procedure(childComplexity), true - - case "Narrative.programs": - if e.complexity.Narrative.Programs == nil { - break - } - - return e.complexity.Narrative.Programs(childComplexity), true - - case "Narrative.satisfies": - if e.complexity.Narrative.Satisfies == nil { - break - } - - return e.complexity.Narrative.Satisfies(childComplexity), true - - case "Narrative.tags": - if e.complexity.Narrative.Tags == nil { - break - } - - return e.complexity.Narrative.Tags(childComplexity), true - - case "Narrative.updatedAt": - if e.complexity.Narrative.UpdatedAt == nil { - break - } - - return e.complexity.Narrative.UpdatedAt(childComplexity), true - - case "Narrative.updatedBy": - if e.complexity.Narrative.UpdatedBy == nil { - break - } - - return e.complexity.Narrative.UpdatedBy(childComplexity), true - - case "Narrative.viewers": - if e.complexity.Narrative.Viewers == nil { - break - } - - return e.complexity.Narrative.Viewers(childComplexity), true - - case "NarrativeBulkCreatePayload.narratives": - if e.complexity.NarrativeBulkCreatePayload.Narratives == nil { - break - } - - return e.complexity.NarrativeBulkCreatePayload.Narratives(childComplexity), true - - case "NarrativeConnection.edges": - if e.complexity.NarrativeConnection.Edges == nil { - break - } - - return e.complexity.NarrativeConnection.Edges(childComplexity), true - - case "NarrativeConnection.pageInfo": - if e.complexity.NarrativeConnection.PageInfo == nil { - break - } - - return e.complexity.NarrativeConnection.PageInfo(childComplexity), true - - case "NarrativeConnection.totalCount": - if e.complexity.NarrativeConnection.TotalCount == nil { - break - } - - return e.complexity.NarrativeConnection.TotalCount(childComplexity), true - - case "NarrativeCreatePayload.narrative": - if e.complexity.NarrativeCreatePayload.Narrative == nil { - break - } - - return e.complexity.NarrativeCreatePayload.Narrative(childComplexity), true - - case "NarrativeDeletePayload.deletedID": - if e.complexity.NarrativeDeletePayload.DeletedID == nil { - break - } - - return e.complexity.NarrativeDeletePayload.DeletedID(childComplexity), true - - case "NarrativeEdge.cursor": - if e.complexity.NarrativeEdge.Cursor == nil { - break - } - - return e.complexity.NarrativeEdge.Cursor(childComplexity), true - - case "NarrativeEdge.node": - if e.complexity.NarrativeEdge.Node == nil { - break - } - - return e.complexity.NarrativeEdge.Node(childComplexity), true - - case "NarrativeHistory.createdAt": - if e.complexity.NarrativeHistory.CreatedAt == nil { - break - } - - return e.complexity.NarrativeHistory.CreatedAt(childComplexity), true - - case "NarrativeHistory.createdBy": - if e.complexity.NarrativeHistory.CreatedBy == nil { - break - } - - return e.complexity.NarrativeHistory.CreatedBy(childComplexity), true - - case "NarrativeHistory.deletedAt": - if e.complexity.NarrativeHistory.DeletedAt == nil { - break - } - - return e.complexity.NarrativeHistory.DeletedAt(childComplexity), true - - case "NarrativeHistory.deletedBy": - if e.complexity.NarrativeHistory.DeletedBy == nil { - break - } - - return e.complexity.NarrativeHistory.DeletedBy(childComplexity), true - - case "NarrativeHistory.description": - if e.complexity.NarrativeHistory.Description == nil { - break - } - - return e.complexity.NarrativeHistory.Description(childComplexity), true - - case "NarrativeHistory.details": - if e.complexity.NarrativeHistory.Details == nil { - break - } - - return e.complexity.NarrativeHistory.Details(childComplexity), true - - case "NarrativeHistory.historyTime": - if e.complexity.NarrativeHistory.HistoryTime == nil { - break - } - - return e.complexity.NarrativeHistory.HistoryTime(childComplexity), true - - case "NarrativeHistory.id": - if e.complexity.NarrativeHistory.ID == nil { - break - } - - return e.complexity.NarrativeHistory.ID(childComplexity), true - - case "NarrativeHistory.name": - if e.complexity.NarrativeHistory.Name == nil { - break - } - - return e.complexity.NarrativeHistory.Name(childComplexity), true - - case "NarrativeHistory.operation": - if e.complexity.NarrativeHistory.Operation == nil { - break - } - - return e.complexity.NarrativeHistory.Operation(childComplexity), true - - case "NarrativeHistory.ownerID": - if e.complexity.NarrativeHistory.OwnerID == nil { - break - } - - return e.complexity.NarrativeHistory.OwnerID(childComplexity), true - - case "NarrativeHistory.ref": - if e.complexity.NarrativeHistory.Ref == nil { - break - } - - return e.complexity.NarrativeHistory.Ref(childComplexity), true - - case "NarrativeHistory.satisfies": - if e.complexity.NarrativeHistory.Satisfies == nil { - break - } - - return e.complexity.NarrativeHistory.Satisfies(childComplexity), true - - case "NarrativeHistory.tags": - if e.complexity.NarrativeHistory.Tags == nil { - break - } - - return e.complexity.NarrativeHistory.Tags(childComplexity), true - - case "NarrativeHistory.updatedAt": - if e.complexity.NarrativeHistory.UpdatedAt == nil { - break - } - - return e.complexity.NarrativeHistory.UpdatedAt(childComplexity), true - - case "NarrativeHistory.updatedBy": - if e.complexity.NarrativeHistory.UpdatedBy == nil { - break - } - - return e.complexity.NarrativeHistory.UpdatedBy(childComplexity), true - - case "NarrativeHistoryConnection.edges": - if e.complexity.NarrativeHistoryConnection.Edges == nil { - break - } - - return e.complexity.NarrativeHistoryConnection.Edges(childComplexity), true - - case "NarrativeHistoryConnection.pageInfo": - if e.complexity.NarrativeHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.NarrativeHistoryConnection.PageInfo(childComplexity), true - - case "NarrativeHistoryConnection.totalCount": - if e.complexity.NarrativeHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.NarrativeHistoryConnection.TotalCount(childComplexity), true - - case "NarrativeHistoryEdge.cursor": - if e.complexity.NarrativeHistoryEdge.Cursor == nil { - break - } - - return e.complexity.NarrativeHistoryEdge.Cursor(childComplexity), true - - case "NarrativeHistoryEdge.node": - if e.complexity.NarrativeHistoryEdge.Node == nil { - break - } - - return e.complexity.NarrativeHistoryEdge.Node(childComplexity), true - - case "NarrativeSearchResult.narratives": - if e.complexity.NarrativeSearchResult.Narratives == nil { - break - } - - return e.complexity.NarrativeSearchResult.Narratives(childComplexity), true - - case "NarrativeUpdatePayload.narrative": - if e.complexity.NarrativeUpdatePayload.Narrative == nil { - break - } - - return e.complexity.NarrativeUpdatePayload.Narrative(childComplexity), true - - case "Note.createdAt": - if e.complexity.Note.CreatedAt == nil { - break - } - - return e.complexity.Note.CreatedAt(childComplexity), true - - case "Note.createdBy": - if e.complexity.Note.CreatedBy == nil { - break - } - - return e.complexity.Note.CreatedBy(childComplexity), true - - case "Note.deletedAt": - if e.complexity.Note.DeletedAt == nil { - break - } - - return e.complexity.Note.DeletedAt(childComplexity), true - - case "Note.deletedBy": - if e.complexity.Note.DeletedBy == nil { - break - } - - return e.complexity.Note.DeletedBy(childComplexity), true - - case "Note.entity": - if e.complexity.Note.Entity == nil { - break - } - - return e.complexity.Note.Entity(childComplexity), true - - case "Note.id": - if e.complexity.Note.ID == nil { - break - } - - return e.complexity.Note.ID(childComplexity), true - - case "Note.owner": - if e.complexity.Note.Owner == nil { - break - } - - return e.complexity.Note.Owner(childComplexity), true - - case "Note.ownerID": - if e.complexity.Note.OwnerID == nil { - break - } - - return e.complexity.Note.OwnerID(childComplexity), true - - case "Note.program": - if e.complexity.Note.Program == nil { - break - } - - return e.complexity.Note.Program(childComplexity), true - - case "Note.subcontrols": - if e.complexity.Note.Subcontrols == nil { - break - } - - return e.complexity.Note.Subcontrols(childComplexity), true - - case "Note.tags": - if e.complexity.Note.Tags == nil { - break - } - - return e.complexity.Note.Tags(childComplexity), true - - case "Note.text": - if e.complexity.Note.Text == nil { - break - } - - return e.complexity.Note.Text(childComplexity), true - - case "Note.updatedAt": - if e.complexity.Note.UpdatedAt == nil { - break - } - - return e.complexity.Note.UpdatedAt(childComplexity), true - - case "Note.updatedBy": - if e.complexity.Note.UpdatedBy == nil { - break - } - - return e.complexity.Note.UpdatedBy(childComplexity), true - - case "NoteConnection.edges": - if e.complexity.NoteConnection.Edges == nil { - break - } - - return e.complexity.NoteConnection.Edges(childComplexity), true - - case "NoteConnection.pageInfo": - if e.complexity.NoteConnection.PageInfo == nil { - break - } - - return e.complexity.NoteConnection.PageInfo(childComplexity), true - - case "NoteConnection.totalCount": - if e.complexity.NoteConnection.TotalCount == nil { - break - } - - return e.complexity.NoteConnection.TotalCount(childComplexity), true - - case "NoteEdge.cursor": - if e.complexity.NoteEdge.Cursor == nil { - break - } - - return e.complexity.NoteEdge.Cursor(childComplexity), true - - case "NoteEdge.node": - if e.complexity.NoteEdge.Node == nil { - break - } - - return e.complexity.NoteEdge.Node(childComplexity), true - - case "NoteHistory.createdAt": - if e.complexity.NoteHistory.CreatedAt == nil { - break - } - - return e.complexity.NoteHistory.CreatedAt(childComplexity), true - - case "NoteHistory.createdBy": - if e.complexity.NoteHistory.CreatedBy == nil { - break - } - - return e.complexity.NoteHistory.CreatedBy(childComplexity), true - - case "NoteHistory.deletedAt": - if e.complexity.NoteHistory.DeletedAt == nil { - break - } - - return e.complexity.NoteHistory.DeletedAt(childComplexity), true - - case "NoteHistory.deletedBy": - if e.complexity.NoteHistory.DeletedBy == nil { - break - } - - return e.complexity.NoteHistory.DeletedBy(childComplexity), true - - case "NoteHistory.historyTime": - if e.complexity.NoteHistory.HistoryTime == nil { - break - } - - return e.complexity.NoteHistory.HistoryTime(childComplexity), true - - case "NoteHistory.id": - if e.complexity.NoteHistory.ID == nil { - break - } - - return e.complexity.NoteHistory.ID(childComplexity), true - - case "NoteHistory.operation": - if e.complexity.NoteHistory.Operation == nil { - break - } - - return e.complexity.NoteHistory.Operation(childComplexity), true - - case "NoteHistory.ownerID": - if e.complexity.NoteHistory.OwnerID == nil { - break - } - - return e.complexity.NoteHistory.OwnerID(childComplexity), true - - case "NoteHistory.ref": - if e.complexity.NoteHistory.Ref == nil { - break - } - - return e.complexity.NoteHistory.Ref(childComplexity), true - - case "NoteHistory.tags": - if e.complexity.NoteHistory.Tags == nil { - break - } - - return e.complexity.NoteHistory.Tags(childComplexity), true - - case "NoteHistory.text": - if e.complexity.NoteHistory.Text == nil { - break - } - - return e.complexity.NoteHistory.Text(childComplexity), true - - case "NoteHistory.updatedAt": - if e.complexity.NoteHistory.UpdatedAt == nil { - break - } - - return e.complexity.NoteHistory.UpdatedAt(childComplexity), true - - case "NoteHistory.updatedBy": - if e.complexity.NoteHistory.UpdatedBy == nil { - break - } - - return e.complexity.NoteHistory.UpdatedBy(childComplexity), true - - case "NoteHistoryConnection.edges": - if e.complexity.NoteHistoryConnection.Edges == nil { - break - } - - return e.complexity.NoteHistoryConnection.Edges(childComplexity), true - - case "NoteHistoryConnection.pageInfo": - if e.complexity.NoteHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.NoteHistoryConnection.PageInfo(childComplexity), true - - case "NoteHistoryConnection.totalCount": - if e.complexity.NoteHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.NoteHistoryConnection.TotalCount(childComplexity), true - - case "NoteHistoryEdge.cursor": - if e.complexity.NoteHistoryEdge.Cursor == nil { - break - } - - return e.complexity.NoteHistoryEdge.Cursor(childComplexity), true - - case "NoteHistoryEdge.node": - if e.complexity.NoteHistoryEdge.Node == nil { - break - } - - return e.complexity.NoteHistoryEdge.Node(childComplexity), true - - case "OrgMembership.createdAt": - if e.complexity.OrgMembership.CreatedAt == nil { - break - } - - return e.complexity.OrgMembership.CreatedAt(childComplexity), true - - case "OrgMembership.createdBy": - if e.complexity.OrgMembership.CreatedBy == nil { - break - } - - return e.complexity.OrgMembership.CreatedBy(childComplexity), true - - case "OrgMembership.deletedAt": - if e.complexity.OrgMembership.DeletedAt == nil { - break - } - - return e.complexity.OrgMembership.DeletedAt(childComplexity), true - - case "OrgMembership.deletedBy": - if e.complexity.OrgMembership.DeletedBy == nil { - break - } - - return e.complexity.OrgMembership.DeletedBy(childComplexity), true - - case "OrgMembership.events": - if e.complexity.OrgMembership.Events == nil { - break - } - - return e.complexity.OrgMembership.Events(childComplexity), true - - case "OrgMembership.id": - if e.complexity.OrgMembership.ID == nil { - break - } - - return e.complexity.OrgMembership.ID(childComplexity), true - - case "OrgMembership.organization": - if e.complexity.OrgMembership.Organization == nil { - break - } - - return e.complexity.OrgMembership.Organization(childComplexity), true - - case "OrgMembership.organizationID": - if e.complexity.OrgMembership.OrganizationID == nil { - break - } - - return e.complexity.OrgMembership.OrganizationID(childComplexity), true - - case "OrgMembership.role": - if e.complexity.OrgMembership.Role == nil { - break - } - - return e.complexity.OrgMembership.Role(childComplexity), true - - case "OrgMembership.updatedAt": - if e.complexity.OrgMembership.UpdatedAt == nil { - break - } - - return e.complexity.OrgMembership.UpdatedAt(childComplexity), true - - case "OrgMembership.updatedBy": - if e.complexity.OrgMembership.UpdatedBy == nil { - break - } - - return e.complexity.OrgMembership.UpdatedBy(childComplexity), true - - case "OrgMembership.user": - if e.complexity.OrgMembership.User == nil { - break - } - - return e.complexity.OrgMembership.User(childComplexity), true - - case "OrgMembership.userID": - if e.complexity.OrgMembership.UserID == nil { - break - } - - return e.complexity.OrgMembership.UserID(childComplexity), true - - case "OrgMembershipBulkCreatePayload.orgMemberships": - if e.complexity.OrgMembershipBulkCreatePayload.OrgMemberships == nil { - break - } - - return e.complexity.OrgMembershipBulkCreatePayload.OrgMemberships(childComplexity), true - - case "OrgMembershipConnection.edges": - if e.complexity.OrgMembershipConnection.Edges == nil { - break - } - - return e.complexity.OrgMembershipConnection.Edges(childComplexity), true - - case "OrgMembershipConnection.pageInfo": - if e.complexity.OrgMembershipConnection.PageInfo == nil { - break - } - - return e.complexity.OrgMembershipConnection.PageInfo(childComplexity), true - - case "OrgMembershipConnection.totalCount": - if e.complexity.OrgMembershipConnection.TotalCount == nil { - break - } - - return e.complexity.OrgMembershipConnection.TotalCount(childComplexity), true - - case "OrgMembershipCreatePayload.orgMembership": - if e.complexity.OrgMembershipCreatePayload.OrgMembership == nil { - break - } - - return e.complexity.OrgMembershipCreatePayload.OrgMembership(childComplexity), true - - case "OrgMembershipDeletePayload.deletedID": - if e.complexity.OrgMembershipDeletePayload.DeletedID == nil { - break - } - - return e.complexity.OrgMembershipDeletePayload.DeletedID(childComplexity), true - - case "OrgMembershipEdge.cursor": - if e.complexity.OrgMembershipEdge.Cursor == nil { - break - } - - return e.complexity.OrgMembershipEdge.Cursor(childComplexity), true - - case "OrgMembershipEdge.node": - if e.complexity.OrgMembershipEdge.Node == nil { - break - } - - return e.complexity.OrgMembershipEdge.Node(childComplexity), true - - case "OrgMembershipHistory.createdAt": - if e.complexity.OrgMembershipHistory.CreatedAt == nil { - break - } - - return e.complexity.OrgMembershipHistory.CreatedAt(childComplexity), true - - case "OrgMembershipHistory.createdBy": - if e.complexity.OrgMembershipHistory.CreatedBy == nil { - break - } - - return e.complexity.OrgMembershipHistory.CreatedBy(childComplexity), true - - case "OrgMembershipHistory.deletedAt": - if e.complexity.OrgMembershipHistory.DeletedAt == nil { - break - } - - return e.complexity.OrgMembershipHistory.DeletedAt(childComplexity), true - - case "OrgMembershipHistory.deletedBy": - if e.complexity.OrgMembershipHistory.DeletedBy == nil { - break - } - - return e.complexity.OrgMembershipHistory.DeletedBy(childComplexity), true - - case "OrgMembershipHistory.historyTime": - if e.complexity.OrgMembershipHistory.HistoryTime == nil { - break - } - - return e.complexity.OrgMembershipHistory.HistoryTime(childComplexity), true - - case "OrgMembershipHistory.id": - if e.complexity.OrgMembershipHistory.ID == nil { - break - } - - return e.complexity.OrgMembershipHistory.ID(childComplexity), true - - case "OrgMembershipHistory.operation": - if e.complexity.OrgMembershipHistory.Operation == nil { - break - } - - return e.complexity.OrgMembershipHistory.Operation(childComplexity), true - - case "OrgMembershipHistory.organizationID": - if e.complexity.OrgMembershipHistory.OrganizationID == nil { - break - } - - return e.complexity.OrgMembershipHistory.OrganizationID(childComplexity), true - - case "OrgMembershipHistory.ref": - if e.complexity.OrgMembershipHistory.Ref == nil { - break - } - - return e.complexity.OrgMembershipHistory.Ref(childComplexity), true - - case "OrgMembershipHistory.role": - if e.complexity.OrgMembershipHistory.Role == nil { - break - } - - return e.complexity.OrgMembershipHistory.Role(childComplexity), true - - case "OrgMembershipHistory.updatedAt": - if e.complexity.OrgMembershipHistory.UpdatedAt == nil { - break - } - - return e.complexity.OrgMembershipHistory.UpdatedAt(childComplexity), true - - case "OrgMembershipHistory.updatedBy": - if e.complexity.OrgMembershipHistory.UpdatedBy == nil { - break - } - - return e.complexity.OrgMembershipHistory.UpdatedBy(childComplexity), true - - case "OrgMembershipHistory.userID": - if e.complexity.OrgMembershipHistory.UserID == nil { - break - } - - return e.complexity.OrgMembershipHistory.UserID(childComplexity), true - - case "OrgMembershipHistoryConnection.edges": - if e.complexity.OrgMembershipHistoryConnection.Edges == nil { - break - } - - return e.complexity.OrgMembershipHistoryConnection.Edges(childComplexity), true - - case "OrgMembershipHistoryConnection.pageInfo": - if e.complexity.OrgMembershipHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.OrgMembershipHistoryConnection.PageInfo(childComplexity), true - - case "OrgMembershipHistoryConnection.totalCount": - if e.complexity.OrgMembershipHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.OrgMembershipHistoryConnection.TotalCount(childComplexity), true - - case "OrgMembershipHistoryEdge.cursor": - if e.complexity.OrgMembershipHistoryEdge.Cursor == nil { - break - } - - return e.complexity.OrgMembershipHistoryEdge.Cursor(childComplexity), true - - case "OrgMembershipHistoryEdge.node": - if e.complexity.OrgMembershipHistoryEdge.Node == nil { - break - } - - return e.complexity.OrgMembershipHistoryEdge.Node(childComplexity), true - - case "OrgMembershipUpdatePayload.orgMembership": - if e.complexity.OrgMembershipUpdatePayload.OrgMembership == nil { - break - } - - return e.complexity.OrgMembershipUpdatePayload.OrgMembership(childComplexity), true - - case "OrgSubscription.active": - if e.complexity.OrgSubscription.Active == nil { - break - } - - return e.complexity.OrgSubscription.Active(childComplexity), true - - case "OrgSubscription.createdAt": - if e.complexity.OrgSubscription.CreatedAt == nil { - break - } - - return e.complexity.OrgSubscription.CreatedAt(childComplexity), true - - case "OrgSubscription.createdBy": - if e.complexity.OrgSubscription.CreatedBy == nil { - break - } - - return e.complexity.OrgSubscription.CreatedBy(childComplexity), true - - case "OrgSubscription.deletedAt": - if e.complexity.OrgSubscription.DeletedAt == nil { - break - } - - return e.complexity.OrgSubscription.DeletedAt(childComplexity), true - - case "OrgSubscription.deletedBy": - if e.complexity.OrgSubscription.DeletedBy == nil { - break - } - - return e.complexity.OrgSubscription.DeletedBy(childComplexity), true - - case "OrgSubscription.expiresAt": - if e.complexity.OrgSubscription.ExpiresAt == nil { - break - } - - return e.complexity.OrgSubscription.ExpiresAt(childComplexity), true - - case "OrgSubscription.features": - if e.complexity.OrgSubscription.Features == nil { - break - } - - return e.complexity.OrgSubscription.Features(childComplexity), true - - case "OrgSubscription.id": - if e.complexity.OrgSubscription.ID == nil { - break - } - - return e.complexity.OrgSubscription.ID(childComplexity), true - - case "OrgSubscription.owner": - if e.complexity.OrgSubscription.Owner == nil { - break - } - - return e.complexity.OrgSubscription.Owner(childComplexity), true - - case "OrgSubscription.ownerID": - if e.complexity.OrgSubscription.OwnerID == nil { - break - } - - return e.complexity.OrgSubscription.OwnerID(childComplexity), true - - case "OrgSubscription.productTier": - if e.complexity.OrgSubscription.ProductTier == nil { - break - } - - return e.complexity.OrgSubscription.ProductTier(childComplexity), true - - case "OrgSubscription.stripeCustomerID": - if e.complexity.OrgSubscription.StripeCustomerID == nil { - break - } - - return e.complexity.OrgSubscription.StripeCustomerID(childComplexity), true - - case "OrgSubscription.stripeProductTierID": - if e.complexity.OrgSubscription.StripeProductTierID == nil { - break - } - - return e.complexity.OrgSubscription.StripeProductTierID(childComplexity), true - - case "OrgSubscription.stripeSubscriptionID": - if e.complexity.OrgSubscription.StripeSubscriptionID == nil { - break - } - - return e.complexity.OrgSubscription.StripeSubscriptionID(childComplexity), true - - case "OrgSubscription.stripeSubscriptionStatus": - if e.complexity.OrgSubscription.StripeSubscriptionStatus == nil { - break - } - - return e.complexity.OrgSubscription.StripeSubscriptionStatus(childComplexity), true - - case "OrgSubscription.tags": - if e.complexity.OrgSubscription.Tags == nil { - break - } - - return e.complexity.OrgSubscription.Tags(childComplexity), true - - case "OrgSubscription.updatedAt": - if e.complexity.OrgSubscription.UpdatedAt == nil { - break - } - - return e.complexity.OrgSubscription.UpdatedAt(childComplexity), true - - case "OrgSubscription.updatedBy": - if e.complexity.OrgSubscription.UpdatedBy == nil { - break - } - - return e.complexity.OrgSubscription.UpdatedBy(childComplexity), true - - case "OrgSubscriptionBulkCreatePayload.orgSubscriptions": - if e.complexity.OrgSubscriptionBulkCreatePayload.OrgSubscriptions == nil { - break - } - - return e.complexity.OrgSubscriptionBulkCreatePayload.OrgSubscriptions(childComplexity), true - - case "OrgSubscriptionConnection.edges": - if e.complexity.OrgSubscriptionConnection.Edges == nil { - break - } - - return e.complexity.OrgSubscriptionConnection.Edges(childComplexity), true - - case "OrgSubscriptionConnection.pageInfo": - if e.complexity.OrgSubscriptionConnection.PageInfo == nil { - break - } - - return e.complexity.OrgSubscriptionConnection.PageInfo(childComplexity), true - - case "OrgSubscriptionConnection.totalCount": - if e.complexity.OrgSubscriptionConnection.TotalCount == nil { - break - } - - return e.complexity.OrgSubscriptionConnection.TotalCount(childComplexity), true - - case "OrgSubscriptionCreatePayload.orgSubscription": - if e.complexity.OrgSubscriptionCreatePayload.OrgSubscription == nil { - break - } - - return e.complexity.OrgSubscriptionCreatePayload.OrgSubscription(childComplexity), true - - case "OrgSubscriptionDeletePayload.deletedID": - if e.complexity.OrgSubscriptionDeletePayload.DeletedID == nil { - break - } - - return e.complexity.OrgSubscriptionDeletePayload.DeletedID(childComplexity), true - - case "OrgSubscriptionEdge.cursor": - if e.complexity.OrgSubscriptionEdge.Cursor == nil { - break - } - - return e.complexity.OrgSubscriptionEdge.Cursor(childComplexity), true - - case "OrgSubscriptionEdge.node": - if e.complexity.OrgSubscriptionEdge.Node == nil { - break - } - - return e.complexity.OrgSubscriptionEdge.Node(childComplexity), true - - case "OrgSubscriptionHistory.active": - if e.complexity.OrgSubscriptionHistory.Active == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.Active(childComplexity), true - - case "OrgSubscriptionHistory.createdAt": - if e.complexity.OrgSubscriptionHistory.CreatedAt == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.CreatedAt(childComplexity), true - - case "OrgSubscriptionHistory.createdBy": - if e.complexity.OrgSubscriptionHistory.CreatedBy == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.CreatedBy(childComplexity), true - - case "OrgSubscriptionHistory.deletedAt": - if e.complexity.OrgSubscriptionHistory.DeletedAt == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.DeletedAt(childComplexity), true - - case "OrgSubscriptionHistory.deletedBy": - if e.complexity.OrgSubscriptionHistory.DeletedBy == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.DeletedBy(childComplexity), true - - case "OrgSubscriptionHistory.expiresAt": - if e.complexity.OrgSubscriptionHistory.ExpiresAt == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.ExpiresAt(childComplexity), true - - case "OrgSubscriptionHistory.features": - if e.complexity.OrgSubscriptionHistory.Features == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.Features(childComplexity), true - - case "OrgSubscriptionHistory.historyTime": - if e.complexity.OrgSubscriptionHistory.HistoryTime == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.HistoryTime(childComplexity), true - - case "OrgSubscriptionHistory.id": - if e.complexity.OrgSubscriptionHistory.ID == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.ID(childComplexity), true - - case "OrgSubscriptionHistory.operation": - if e.complexity.OrgSubscriptionHistory.Operation == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.Operation(childComplexity), true - - case "OrgSubscriptionHistory.ownerID": - if e.complexity.OrgSubscriptionHistory.OwnerID == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.OwnerID(childComplexity), true - - case "OrgSubscriptionHistory.productTier": - if e.complexity.OrgSubscriptionHistory.ProductTier == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.ProductTier(childComplexity), true - - case "OrgSubscriptionHistory.ref": - if e.complexity.OrgSubscriptionHistory.Ref == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.Ref(childComplexity), true - - case "OrgSubscriptionHistory.stripeCustomerID": - if e.complexity.OrgSubscriptionHistory.StripeCustomerID == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.StripeCustomerID(childComplexity), true - - case "OrgSubscriptionHistory.stripeProductTierID": - if e.complexity.OrgSubscriptionHistory.StripeProductTierID == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.StripeProductTierID(childComplexity), true - - case "OrgSubscriptionHistory.stripeSubscriptionID": - if e.complexity.OrgSubscriptionHistory.StripeSubscriptionID == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.StripeSubscriptionID(childComplexity), true - - case "OrgSubscriptionHistory.stripeSubscriptionStatus": - if e.complexity.OrgSubscriptionHistory.StripeSubscriptionStatus == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.StripeSubscriptionStatus(childComplexity), true - - case "OrgSubscriptionHistory.tags": - if e.complexity.OrgSubscriptionHistory.Tags == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.Tags(childComplexity), true - - case "OrgSubscriptionHistory.updatedAt": - if e.complexity.OrgSubscriptionHistory.UpdatedAt == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.UpdatedAt(childComplexity), true - - case "OrgSubscriptionHistory.updatedBy": - if e.complexity.OrgSubscriptionHistory.UpdatedBy == nil { - break - } - - return e.complexity.OrgSubscriptionHistory.UpdatedBy(childComplexity), true - - case "OrgSubscriptionHistoryConnection.edges": - if e.complexity.OrgSubscriptionHistoryConnection.Edges == nil { - break - } - - return e.complexity.OrgSubscriptionHistoryConnection.Edges(childComplexity), true - - case "OrgSubscriptionHistoryConnection.pageInfo": - if e.complexity.OrgSubscriptionHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.OrgSubscriptionHistoryConnection.PageInfo(childComplexity), true - - case "OrgSubscriptionHistoryConnection.totalCount": - if e.complexity.OrgSubscriptionHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.OrgSubscriptionHistoryConnection.TotalCount(childComplexity), true - - case "OrgSubscriptionHistoryEdge.cursor": - if e.complexity.OrgSubscriptionHistoryEdge.Cursor == nil { - break - } - - return e.complexity.OrgSubscriptionHistoryEdge.Cursor(childComplexity), true - - case "OrgSubscriptionHistoryEdge.node": - if e.complexity.OrgSubscriptionHistoryEdge.Node == nil { - break - } - - return e.complexity.OrgSubscriptionHistoryEdge.Node(childComplexity), true - - case "OrgSubscriptionSearchResult.orgSubscriptions": - if e.complexity.OrgSubscriptionSearchResult.OrgSubscriptions == nil { - break - } - - return e.complexity.OrgSubscriptionSearchResult.OrgSubscriptions(childComplexity), true - - case "OrgSubscriptionUpdatePayload.orgSubscription": - if e.complexity.OrgSubscriptionUpdatePayload.OrgSubscription == nil { - break - } - - return e.complexity.OrgSubscriptionUpdatePayload.OrgSubscription(childComplexity), true - - case "Organization.apiTokens": - if e.complexity.Organization.APITokens == nil { - break - } - - return e.complexity.Organization.APITokens(childComplexity), true - - case "Organization.avatarRemoteURL": - if e.complexity.Organization.AvatarRemoteURL == nil { - break - } - - return e.complexity.Organization.AvatarRemoteURL(childComplexity), true - - case "Organization.children": - if e.complexity.Organization.Children == nil { - break - } - - args, err := ec.field_Organization_children_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Organization.Children(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.OrganizationOrder), args["where"].(*generated.OrganizationWhereInput)), true - - case "Organization.contacts": - if e.complexity.Organization.Contacts == nil { - break - } - - return e.complexity.Organization.Contacts(childComplexity), true - - case "Organization.controlCreators": - if e.complexity.Organization.ControlCreators == nil { - break - } - - return e.complexity.Organization.ControlCreators(childComplexity), true - - case "Organization.controlObjectiveCreators": - if e.complexity.Organization.ControlObjectiveCreators == nil { - break - } - - return e.complexity.Organization.ControlObjectiveCreators(childComplexity), true - - case "Organization.controlObjectives": - if e.complexity.Organization.ControlObjectives == nil { - break - } - - return e.complexity.Organization.ControlObjectives(childComplexity), true - - case "Organization.controls": - if e.complexity.Organization.Controls == nil { - break - } - - return e.complexity.Organization.Controls(childComplexity), true - - case "Organization.createdAt": - if e.complexity.Organization.CreatedAt == nil { - break - } - - return e.complexity.Organization.CreatedAt(childComplexity), true - - case "Organization.createdBy": - if e.complexity.Organization.CreatedBy == nil { - break - } - - return e.complexity.Organization.CreatedBy(childComplexity), true - - case "Organization.dedicatedDb": - if e.complexity.Organization.DedicatedDb == nil { - break - } - - return e.complexity.Organization.DedicatedDb(childComplexity), true - - case "Organization.deletedAt": - if e.complexity.Organization.DeletedAt == nil { - break - } - - return e.complexity.Organization.DeletedAt(childComplexity), true - - case "Organization.deletedBy": - if e.complexity.Organization.DeletedBy == nil { - break - } - - return e.complexity.Organization.DeletedBy(childComplexity), true - - case "Organization.description": - if e.complexity.Organization.Description == nil { - break - } - - return e.complexity.Organization.Description(childComplexity), true - - case "Organization.displayName": - if e.complexity.Organization.DisplayName == nil { - break - } - - return e.complexity.Organization.DisplayName(childComplexity), true - - case "Organization.documentData": - if e.complexity.Organization.DocumentData == nil { - break - } - - return e.complexity.Organization.DocumentData(childComplexity), true - - case "Organization.entities": - if e.complexity.Organization.Entities == nil { - break - } - - return e.complexity.Organization.Entities(childComplexity), true - - case "Organization.entityTypes": - if e.complexity.Organization.EntityTypes == nil { - break - } - - return e.complexity.Organization.EntityTypes(childComplexity), true - - case "Organization.events": - if e.complexity.Organization.Events == nil { - break - } - - return e.complexity.Organization.Events(childComplexity), true - - case "Organization.files": - if e.complexity.Organization.Files == nil { - break - } - - return e.complexity.Organization.Files(childComplexity), true - - case "Organization.groupCreators": - if e.complexity.Organization.GroupCreators == nil { - break - } - - return e.complexity.Organization.GroupCreators(childComplexity), true - - case "Organization.groups": - if e.complexity.Organization.Groups == nil { - break - } - - return e.complexity.Organization.Groups(childComplexity), true - - case "Organization.id": - if e.complexity.Organization.ID == nil { - break - } - - return e.complexity.Organization.ID(childComplexity), true - - case "Organization.integrations": - if e.complexity.Organization.Integrations == nil { - break - } - - return e.complexity.Organization.Integrations(childComplexity), true - - case "Organization.internalPolicies": - if e.complexity.Organization.InternalPolicies == nil { - break - } - - return e.complexity.Organization.InternalPolicies(childComplexity), true - - case "Organization.internalPolicyCreators": - if e.complexity.Organization.InternalPolicyCreators == nil { - break - } - - return e.complexity.Organization.InternalPolicyCreators(childComplexity), true - - case "Organization.invites": - if e.complexity.Organization.Invites == nil { - break - } - - return e.complexity.Organization.Invites(childComplexity), true - - case "Organization.members": - if e.complexity.Organization.Members == nil { - break - } - - return e.complexity.Organization.Members(childComplexity), true - - case "Organization.name": - if e.complexity.Organization.Name == nil { - break - } - - return e.complexity.Organization.Name(childComplexity), true - - case "Organization.narrativeCreators": - if e.complexity.Organization.NarrativeCreators == nil { - break - } - - return e.complexity.Organization.NarrativeCreators(childComplexity), true - - case "Organization.narratives": - if e.complexity.Organization.Narratives == nil { - break - } - - return e.complexity.Organization.Narratives(childComplexity), true - - case "Organization.notes": - if e.complexity.Organization.Notes == nil { - break - } - - return e.complexity.Organization.Notes(childComplexity), true - - case "Organization.orgSubscriptions": - if e.complexity.Organization.OrgSubscriptions == nil { - break - } - - return e.complexity.Organization.OrgSubscriptions(childComplexity), true - - case "Organization.parent": - if e.complexity.Organization.Parent == nil { - break - } - - return e.complexity.Organization.Parent(childComplexity), true - - case "Organization.personalAccessTokens": - if e.complexity.Organization.PersonalAccessTokens == nil { - break - } - - return e.complexity.Organization.PersonalAccessTokens(childComplexity), true - - case "Organization.personalOrg": - if e.complexity.Organization.PersonalOrg == nil { - break - } - - return e.complexity.Organization.PersonalOrg(childComplexity), true - - case "Organization.procedureCreators": - if e.complexity.Organization.ProcedureCreators == nil { - break - } - - return e.complexity.Organization.ProcedureCreators(childComplexity), true - - case "Organization.procedures": - if e.complexity.Organization.Procedures == nil { - break - } - - return e.complexity.Organization.Procedures(childComplexity), true - - case "Organization.programCreators": - if e.complexity.Organization.ProgramCreators == nil { - break - } - - return e.complexity.Organization.ProgramCreators(childComplexity), true - - case "Organization.programs": - if e.complexity.Organization.Programs == nil { - break - } - - return e.complexity.Organization.Programs(childComplexity), true - - case "Organization.riskCreators": - if e.complexity.Organization.RiskCreators == nil { - break - } - - return e.complexity.Organization.RiskCreators(childComplexity), true - - case "Organization.risks": - if e.complexity.Organization.Risks == nil { - break - } - - return e.complexity.Organization.Risks(childComplexity), true - - case "Organization.secrets": - if e.complexity.Organization.Secrets == nil { - break - } - - return e.complexity.Organization.Secrets(childComplexity), true - - case "Organization.setting": - if e.complexity.Organization.Setting == nil { - break - } - - return e.complexity.Organization.Setting(childComplexity), true - - case "Organization.subcontrols": - if e.complexity.Organization.Subcontrols == nil { - break - } - - return e.complexity.Organization.Subcontrols(childComplexity), true - - case "Organization.subscribers": - if e.complexity.Organization.Subscribers == nil { - break - } - - return e.complexity.Organization.Subscribers(childComplexity), true - - case "Organization.tags": - if e.complexity.Organization.Tags == nil { - break - } - - return e.complexity.Organization.Tags(childComplexity), true - - case "Organization.tasks": - if e.complexity.Organization.Tasks == nil { - break - } - - return e.complexity.Organization.Tasks(childComplexity), true - - case "Organization.templateCreators": - if e.complexity.Organization.TemplateCreators == nil { - break - } - - return e.complexity.Organization.TemplateCreators(childComplexity), true - - case "Organization.templates": - if e.complexity.Organization.Templates == nil { - break - } - - return e.complexity.Organization.Templates(childComplexity), true - - case "Organization.updatedAt": - if e.complexity.Organization.UpdatedAt == nil { - break - } - - return e.complexity.Organization.UpdatedAt(childComplexity), true - - case "Organization.updatedBy": - if e.complexity.Organization.UpdatedBy == nil { - break - } - - return e.complexity.Organization.UpdatedBy(childComplexity), true - - case "Organization.users": - if e.complexity.Organization.Users == nil { - break - } - - return e.complexity.Organization.Users(childComplexity), true - - case "OrganizationBulkCreatePayload.organizations": - if e.complexity.OrganizationBulkCreatePayload.Organizations == nil { - break - } - - return e.complexity.OrganizationBulkCreatePayload.Organizations(childComplexity), 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 "OrganizationConnection.totalCount": - if e.complexity.OrganizationConnection.TotalCount == nil { - break - } - - return e.complexity.OrganizationConnection.TotalCount(childComplexity), true - - case "OrganizationCreatePayload.organization": - if e.complexity.OrganizationCreatePayload.Organization == nil { - break - } - - return e.complexity.OrganizationCreatePayload.Organization(childComplexity), true - - case "OrganizationDeletePayload.deletedID": - if e.complexity.OrganizationDeletePayload.DeletedID == nil { - break - } - - return e.complexity.OrganizationDeletePayload.DeletedID(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 "OrganizationHistory.avatarRemoteURL": - if e.complexity.OrganizationHistory.AvatarRemoteURL == nil { - break - } - - return e.complexity.OrganizationHistory.AvatarRemoteURL(childComplexity), true - - case "OrganizationHistory.createdAt": - if e.complexity.OrganizationHistory.CreatedAt == nil { - break - } - - return e.complexity.OrganizationHistory.CreatedAt(childComplexity), true - - case "OrganizationHistory.createdBy": - if e.complexity.OrganizationHistory.CreatedBy == nil { - break - } - - return e.complexity.OrganizationHistory.CreatedBy(childComplexity), true - - case "OrganizationHistory.dedicatedDb": - if e.complexity.OrganizationHistory.DedicatedDb == nil { - break - } - - return e.complexity.OrganizationHistory.DedicatedDb(childComplexity), true - - case "OrganizationHistory.deletedAt": - if e.complexity.OrganizationHistory.DeletedAt == nil { - break - } - - return e.complexity.OrganizationHistory.DeletedAt(childComplexity), true - - case "OrganizationHistory.deletedBy": - if e.complexity.OrganizationHistory.DeletedBy == nil { - break - } - - return e.complexity.OrganizationHistory.DeletedBy(childComplexity), true - - case "OrganizationHistory.description": - if e.complexity.OrganizationHistory.Description == nil { - break - } - - return e.complexity.OrganizationHistory.Description(childComplexity), true - - case "OrganizationHistory.displayName": - if e.complexity.OrganizationHistory.DisplayName == nil { - break - } - - return e.complexity.OrganizationHistory.DisplayName(childComplexity), true - - case "OrganizationHistory.historyTime": - if e.complexity.OrganizationHistory.HistoryTime == nil { - break - } - - return e.complexity.OrganizationHistory.HistoryTime(childComplexity), true - - case "OrganizationHistory.id": - if e.complexity.OrganizationHistory.ID == nil { - break - } - - return e.complexity.OrganizationHistory.ID(childComplexity), true - - case "OrganizationHistory.name": - if e.complexity.OrganizationHistory.Name == nil { - break - } - - return e.complexity.OrganizationHistory.Name(childComplexity), true - - case "OrganizationHistory.operation": - if e.complexity.OrganizationHistory.Operation == nil { - break - } - - return e.complexity.OrganizationHistory.Operation(childComplexity), true - - case "OrganizationHistory.personalOrg": - if e.complexity.OrganizationHistory.PersonalOrg == nil { - break - } - - return e.complexity.OrganizationHistory.PersonalOrg(childComplexity), true - - case "OrganizationHistory.ref": - if e.complexity.OrganizationHistory.Ref == nil { - break - } - - return e.complexity.OrganizationHistory.Ref(childComplexity), true - - case "OrganizationHistory.tags": - if e.complexity.OrganizationHistory.Tags == nil { - break - } - - return e.complexity.OrganizationHistory.Tags(childComplexity), true - - case "OrganizationHistory.updatedAt": - if e.complexity.OrganizationHistory.UpdatedAt == nil { - break - } - - return e.complexity.OrganizationHistory.UpdatedAt(childComplexity), true - - case "OrganizationHistory.updatedBy": - if e.complexity.OrganizationHistory.UpdatedBy == nil { - break - } - - return e.complexity.OrganizationHistory.UpdatedBy(childComplexity), true - - case "OrganizationHistoryConnection.edges": - if e.complexity.OrganizationHistoryConnection.Edges == nil { - break - } - - return e.complexity.OrganizationHistoryConnection.Edges(childComplexity), true - - case "OrganizationHistoryConnection.pageInfo": - if e.complexity.OrganizationHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.OrganizationHistoryConnection.PageInfo(childComplexity), true - - case "OrganizationHistoryConnection.totalCount": - if e.complexity.OrganizationHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.OrganizationHistoryConnection.TotalCount(childComplexity), true - - case "OrganizationHistoryEdge.cursor": - if e.complexity.OrganizationHistoryEdge.Cursor == nil { - break - } - - return e.complexity.OrganizationHistoryEdge.Cursor(childComplexity), true - - case "OrganizationHistoryEdge.node": - if e.complexity.OrganizationHistoryEdge.Node == nil { - break - } - - return e.complexity.OrganizationHistoryEdge.Node(childComplexity), true - - case "OrganizationSearchResult.organizations": - if e.complexity.OrganizationSearchResult.Organizations == nil { - break - } - - return e.complexity.OrganizationSearchResult.Organizations(childComplexity), true - - case "OrganizationSetting.billingAddress": - if e.complexity.OrganizationSetting.BillingAddress == nil { - break - } - - return e.complexity.OrganizationSetting.BillingAddress(childComplexity), true - - case "OrganizationSetting.billingContact": - if e.complexity.OrganizationSetting.BillingContact == nil { - break - } - - return e.complexity.OrganizationSetting.BillingContact(childComplexity), true - - case "OrganizationSetting.billingEmail": - if e.complexity.OrganizationSetting.BillingEmail == nil { - break - } - - return e.complexity.OrganizationSetting.BillingEmail(childComplexity), true - - case "OrganizationSetting.billingPhone": - if e.complexity.OrganizationSetting.BillingPhone == nil { - break - } - - return e.complexity.OrganizationSetting.BillingPhone(childComplexity), true - - case "OrganizationSetting.createdAt": - if e.complexity.OrganizationSetting.CreatedAt == nil { - break - } - - return e.complexity.OrganizationSetting.CreatedAt(childComplexity), true - - case "OrganizationSetting.createdBy": - if e.complexity.OrganizationSetting.CreatedBy == nil { - break - } - - return e.complexity.OrganizationSetting.CreatedBy(childComplexity), true - - case "OrganizationSetting.deletedAt": - if e.complexity.OrganizationSetting.DeletedAt == nil { - break - } - - return e.complexity.OrganizationSetting.DeletedAt(childComplexity), true - - case "OrganizationSetting.deletedBy": - if e.complexity.OrganizationSetting.DeletedBy == nil { - break - } - - return e.complexity.OrganizationSetting.DeletedBy(childComplexity), true - - case "OrganizationSetting.domains": - if e.complexity.OrganizationSetting.Domains == nil { - break - } - - return e.complexity.OrganizationSetting.Domains(childComplexity), true - - case "OrganizationSetting.files": - if e.complexity.OrganizationSetting.Files == nil { - break - } - - return e.complexity.OrganizationSetting.Files(childComplexity), true - - case "OrganizationSetting.geoLocation": - if e.complexity.OrganizationSetting.GeoLocation == nil { - break - } - - return e.complexity.OrganizationSetting.GeoLocation(childComplexity), true - - case "OrganizationSetting.id": - if e.complexity.OrganizationSetting.ID == nil { - break - } - - return e.complexity.OrganizationSetting.ID(childComplexity), true - - case "OrganizationSetting.organization": - if e.complexity.OrganizationSetting.Organization == nil { - break - } - - return e.complexity.OrganizationSetting.Organization(childComplexity), true - - case "OrganizationSetting.organizationID": - if e.complexity.OrganizationSetting.OrganizationID == nil { - break - } - - return e.complexity.OrganizationSetting.OrganizationID(childComplexity), true - - case "OrganizationSetting.stripeID": - if e.complexity.OrganizationSetting.StripeID == nil { - break - } - - return e.complexity.OrganizationSetting.StripeID(childComplexity), true - - case "OrganizationSetting.tags": - if e.complexity.OrganizationSetting.Tags == nil { - break - } - - return e.complexity.OrganizationSetting.Tags(childComplexity), true - - case "OrganizationSetting.taxIdentifier": - if e.complexity.OrganizationSetting.TaxIdentifier == nil { - break - } - - return e.complexity.OrganizationSetting.TaxIdentifier(childComplexity), true - - case "OrganizationSetting.updatedAt": - if e.complexity.OrganizationSetting.UpdatedAt == nil { - break - } - - return e.complexity.OrganizationSetting.UpdatedAt(childComplexity), true - - case "OrganizationSetting.updatedBy": - if e.complexity.OrganizationSetting.UpdatedBy == nil { - break - } - - return e.complexity.OrganizationSetting.UpdatedBy(childComplexity), true - - case "OrganizationSettingBulkCreatePayload.organizationSettings": - if e.complexity.OrganizationSettingBulkCreatePayload.OrganizationSettings == nil { - break - } - - return e.complexity.OrganizationSettingBulkCreatePayload.OrganizationSettings(childComplexity), true - - case "OrganizationSettingConnection.edges": - if e.complexity.OrganizationSettingConnection.Edges == nil { - break - } - - return e.complexity.OrganizationSettingConnection.Edges(childComplexity), true - - case "OrganizationSettingConnection.pageInfo": - if e.complexity.OrganizationSettingConnection.PageInfo == nil { - break - } - - return e.complexity.OrganizationSettingConnection.PageInfo(childComplexity), true - - case "OrganizationSettingConnection.totalCount": - if e.complexity.OrganizationSettingConnection.TotalCount == nil { - break - } - - return e.complexity.OrganizationSettingConnection.TotalCount(childComplexity), true - - case "OrganizationSettingCreatePayload.organizationSetting": - if e.complexity.OrganizationSettingCreatePayload.OrganizationSetting == nil { - break - } - - return e.complexity.OrganizationSettingCreatePayload.OrganizationSetting(childComplexity), true - - case "OrganizationSettingDeletePayload.deletedID": - if e.complexity.OrganizationSettingDeletePayload.DeletedID == nil { - break - } - - return e.complexity.OrganizationSettingDeletePayload.DeletedID(childComplexity), true - - case "OrganizationSettingEdge.cursor": - if e.complexity.OrganizationSettingEdge.Cursor == nil { - break - } - - return e.complexity.OrganizationSettingEdge.Cursor(childComplexity), true - - case "OrganizationSettingEdge.node": - if e.complexity.OrganizationSettingEdge.Node == nil { - break - } - - return e.complexity.OrganizationSettingEdge.Node(childComplexity), true - - case "OrganizationSettingHistory.billingAddress": - if e.complexity.OrganizationSettingHistory.BillingAddress == nil { - break - } - - return e.complexity.OrganizationSettingHistory.BillingAddress(childComplexity), true - - case "OrganizationSettingHistory.billingContact": - if e.complexity.OrganizationSettingHistory.BillingContact == nil { - break - } - - return e.complexity.OrganizationSettingHistory.BillingContact(childComplexity), true - - case "OrganizationSettingHistory.billingEmail": - if e.complexity.OrganizationSettingHistory.BillingEmail == nil { - break - } - - return e.complexity.OrganizationSettingHistory.BillingEmail(childComplexity), true - - case "OrganizationSettingHistory.billingPhone": - if e.complexity.OrganizationSettingHistory.BillingPhone == nil { - break - } - - return e.complexity.OrganizationSettingHistory.BillingPhone(childComplexity), true - - case "OrganizationSettingHistory.createdAt": - if e.complexity.OrganizationSettingHistory.CreatedAt == nil { - break - } - - return e.complexity.OrganizationSettingHistory.CreatedAt(childComplexity), true - - case "OrganizationSettingHistory.createdBy": - if e.complexity.OrganizationSettingHistory.CreatedBy == nil { - break - } - - return e.complexity.OrganizationSettingHistory.CreatedBy(childComplexity), true - - case "OrganizationSettingHistory.deletedAt": - if e.complexity.OrganizationSettingHistory.DeletedAt == nil { - break - } - - return e.complexity.OrganizationSettingHistory.DeletedAt(childComplexity), true - - case "OrganizationSettingHistory.deletedBy": - if e.complexity.OrganizationSettingHistory.DeletedBy == nil { - break - } - - return e.complexity.OrganizationSettingHistory.DeletedBy(childComplexity), true - - case "OrganizationSettingHistory.domains": - if e.complexity.OrganizationSettingHistory.Domains == nil { - break - } - - return e.complexity.OrganizationSettingHistory.Domains(childComplexity), true - - case "OrganizationSettingHistory.geoLocation": - if e.complexity.OrganizationSettingHistory.GeoLocation == nil { - break - } - - return e.complexity.OrganizationSettingHistory.GeoLocation(childComplexity), true - - case "OrganizationSettingHistory.historyTime": - if e.complexity.OrganizationSettingHistory.HistoryTime == nil { - break - } - - return e.complexity.OrganizationSettingHistory.HistoryTime(childComplexity), true - - case "OrganizationSettingHistory.id": - if e.complexity.OrganizationSettingHistory.ID == nil { - break - } - - return e.complexity.OrganizationSettingHistory.ID(childComplexity), true - - case "OrganizationSettingHistory.operation": - if e.complexity.OrganizationSettingHistory.Operation == nil { - break - } - - return e.complexity.OrganizationSettingHistory.Operation(childComplexity), true - - case "OrganizationSettingHistory.organizationID": - if e.complexity.OrganizationSettingHistory.OrganizationID == nil { - break - } - - return e.complexity.OrganizationSettingHistory.OrganizationID(childComplexity), true - - case "OrganizationSettingHistory.ref": - if e.complexity.OrganizationSettingHistory.Ref == nil { - break - } - - return e.complexity.OrganizationSettingHistory.Ref(childComplexity), true - - case "OrganizationSettingHistory.stripeID": - if e.complexity.OrganizationSettingHistory.StripeID == nil { - break - } - - return e.complexity.OrganizationSettingHistory.StripeID(childComplexity), true - - case "OrganizationSettingHistory.tags": - if e.complexity.OrganizationSettingHistory.Tags == nil { - break - } - - return e.complexity.OrganizationSettingHistory.Tags(childComplexity), true - - case "OrganizationSettingHistory.taxIdentifier": - if e.complexity.OrganizationSettingHistory.TaxIdentifier == nil { - break - } - - return e.complexity.OrganizationSettingHistory.TaxIdentifier(childComplexity), true - - case "OrganizationSettingHistory.updatedAt": - if e.complexity.OrganizationSettingHistory.UpdatedAt == nil { - break - } - - return e.complexity.OrganizationSettingHistory.UpdatedAt(childComplexity), true - - case "OrganizationSettingHistory.updatedBy": - if e.complexity.OrganizationSettingHistory.UpdatedBy == nil { - break - } - - return e.complexity.OrganizationSettingHistory.UpdatedBy(childComplexity), true - - case "OrganizationSettingHistoryConnection.edges": - if e.complexity.OrganizationSettingHistoryConnection.Edges == nil { - break - } - - return e.complexity.OrganizationSettingHistoryConnection.Edges(childComplexity), true - - case "OrganizationSettingHistoryConnection.pageInfo": - if e.complexity.OrganizationSettingHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.OrganizationSettingHistoryConnection.PageInfo(childComplexity), true - - case "OrganizationSettingHistoryConnection.totalCount": - if e.complexity.OrganizationSettingHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.OrganizationSettingHistoryConnection.TotalCount(childComplexity), true - - case "OrganizationSettingHistoryEdge.cursor": - if e.complexity.OrganizationSettingHistoryEdge.Cursor == nil { - break - } - - return e.complexity.OrganizationSettingHistoryEdge.Cursor(childComplexity), true - - case "OrganizationSettingHistoryEdge.node": - if e.complexity.OrganizationSettingHistoryEdge.Node == nil { - break - } - - return e.complexity.OrganizationSettingHistoryEdge.Node(childComplexity), true - - case "OrganizationSettingSearchResult.organizationSettings": - if e.complexity.OrganizationSettingSearchResult.OrganizationSettings == nil { - break - } - - return e.complexity.OrganizationSettingSearchResult.OrganizationSettings(childComplexity), true - - case "OrganizationSettingUpdatePayload.organizationSetting": - if e.complexity.OrganizationSettingUpdatePayload.OrganizationSetting == nil { - break - } - - return e.complexity.OrganizationSettingUpdatePayload.OrganizationSetting(childComplexity), true - - case "OrganizationUpdatePayload.organization": - if e.complexity.OrganizationUpdatePayload.Organization == nil { - break - } - - return e.complexity.OrganizationUpdatePayload.Organization(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 "PersonalAccessToken.createdAt": - if e.complexity.PersonalAccessToken.CreatedAt == nil { - break - } - - return e.complexity.PersonalAccessToken.CreatedAt(childComplexity), true - - case "PersonalAccessToken.createdBy": - if e.complexity.PersonalAccessToken.CreatedBy == nil { - break - } - - return e.complexity.PersonalAccessToken.CreatedBy(childComplexity), true - - case "PersonalAccessToken.deletedAt": - if e.complexity.PersonalAccessToken.DeletedAt == nil { - break - } - - return e.complexity.PersonalAccessToken.DeletedAt(childComplexity), true - - case "PersonalAccessToken.deletedBy": - if e.complexity.PersonalAccessToken.DeletedBy == nil { - break - } - - return e.complexity.PersonalAccessToken.DeletedBy(childComplexity), true - - case "PersonalAccessToken.description": - if e.complexity.PersonalAccessToken.Description == nil { - break - } - - return e.complexity.PersonalAccessToken.Description(childComplexity), true - - case "PersonalAccessToken.events": - if e.complexity.PersonalAccessToken.Events == nil { - break - } - - return e.complexity.PersonalAccessToken.Events(childComplexity), true - - case "PersonalAccessToken.expiresAt": - if e.complexity.PersonalAccessToken.ExpiresAt == nil { - break - } - - return e.complexity.PersonalAccessToken.ExpiresAt(childComplexity), true - - case "PersonalAccessToken.id": - if e.complexity.PersonalAccessToken.ID == nil { - break - } - - return e.complexity.PersonalAccessToken.ID(childComplexity), true - - case "PersonalAccessToken.lastUsedAt": - if e.complexity.PersonalAccessToken.LastUsedAt == nil { - break - } - - return e.complexity.PersonalAccessToken.LastUsedAt(childComplexity), true - - case "PersonalAccessToken.name": - if e.complexity.PersonalAccessToken.Name == nil { - break - } - - return e.complexity.PersonalAccessToken.Name(childComplexity), true - - case "PersonalAccessToken.organizations": - if e.complexity.PersonalAccessToken.Organizations == nil { - break - } - - return e.complexity.PersonalAccessToken.Organizations(childComplexity), true - - case "PersonalAccessToken.owner": - if e.complexity.PersonalAccessToken.Owner == nil { - break - } - - return e.complexity.PersonalAccessToken.Owner(childComplexity), true - - case "PersonalAccessToken.scopes": - if e.complexity.PersonalAccessToken.Scopes == nil { - break - } - - return e.complexity.PersonalAccessToken.Scopes(childComplexity), true - - case "PersonalAccessToken.tags": - if e.complexity.PersonalAccessToken.Tags == nil { - break - } - - return e.complexity.PersonalAccessToken.Tags(childComplexity), true - - case "PersonalAccessToken.token": - if e.complexity.PersonalAccessToken.Token == nil { - break - } - - return e.complexity.PersonalAccessToken.Token(childComplexity), true - - case "PersonalAccessToken.updatedAt": - if e.complexity.PersonalAccessToken.UpdatedAt == nil { - break - } - - return e.complexity.PersonalAccessToken.UpdatedAt(childComplexity), true - - case "PersonalAccessToken.updatedBy": - if e.complexity.PersonalAccessToken.UpdatedBy == nil { - break - } - - return e.complexity.PersonalAccessToken.UpdatedBy(childComplexity), true - - case "PersonalAccessTokenBulkCreatePayload.personalAccessTokens": - if e.complexity.PersonalAccessTokenBulkCreatePayload.PersonalAccessTokens == nil { - break - } - - return e.complexity.PersonalAccessTokenBulkCreatePayload.PersonalAccessTokens(childComplexity), true - - case "PersonalAccessTokenConnection.edges": - if e.complexity.PersonalAccessTokenConnection.Edges == nil { - break - } - - return e.complexity.PersonalAccessTokenConnection.Edges(childComplexity), true - - case "PersonalAccessTokenConnection.pageInfo": - if e.complexity.PersonalAccessTokenConnection.PageInfo == nil { - break - } - - return e.complexity.PersonalAccessTokenConnection.PageInfo(childComplexity), true - - case "PersonalAccessTokenConnection.totalCount": - if e.complexity.PersonalAccessTokenConnection.TotalCount == nil { - break - } - - return e.complexity.PersonalAccessTokenConnection.TotalCount(childComplexity), true - - case "PersonalAccessTokenCreatePayload.personalAccessToken": - if e.complexity.PersonalAccessTokenCreatePayload.PersonalAccessToken == nil { - break - } - - return e.complexity.PersonalAccessTokenCreatePayload.PersonalAccessToken(childComplexity), true - - case "PersonalAccessTokenDeletePayload.deletedID": - if e.complexity.PersonalAccessTokenDeletePayload.DeletedID == nil { - break - } - - return e.complexity.PersonalAccessTokenDeletePayload.DeletedID(childComplexity), true - - case "PersonalAccessTokenEdge.cursor": - if e.complexity.PersonalAccessTokenEdge.Cursor == nil { - break - } - - return e.complexity.PersonalAccessTokenEdge.Cursor(childComplexity), true - - case "PersonalAccessTokenEdge.node": - if e.complexity.PersonalAccessTokenEdge.Node == nil { - break - } - - return e.complexity.PersonalAccessTokenEdge.Node(childComplexity), true - - case "PersonalAccessTokenSearchResult.personalAccessTokens": - if e.complexity.PersonalAccessTokenSearchResult.PersonalAccessTokens == nil { - break - } - - return e.complexity.PersonalAccessTokenSearchResult.PersonalAccessTokens(childComplexity), true - - case "PersonalAccessTokenUpdatePayload.personalAccessToken": - if e.complexity.PersonalAccessTokenUpdatePayload.PersonalAccessToken == nil { - break - } - - return e.complexity.PersonalAccessTokenUpdatePayload.PersonalAccessToken(childComplexity), true - - case "Procedure.background": - if e.complexity.Procedure.Background == nil { - break - } - - return e.complexity.Procedure.Background(childComplexity), true - - case "Procedure.blockedGroups": - if e.complexity.Procedure.BlockedGroups == nil { - break - } - - return e.complexity.Procedure.BlockedGroups(childComplexity), true - - case "Procedure.controls": - if e.complexity.Procedure.Controls == nil { - break - } - - return e.complexity.Procedure.Controls(childComplexity), true - - case "Procedure.createdAt": - if e.complexity.Procedure.CreatedAt == nil { - break - } - - return e.complexity.Procedure.CreatedAt(childComplexity), true - - case "Procedure.createdBy": - if e.complexity.Procedure.CreatedBy == nil { - break - } - - return e.complexity.Procedure.CreatedBy(childComplexity), true - - case "Procedure.deletedAt": - if e.complexity.Procedure.DeletedAt == nil { - break - } - - return e.complexity.Procedure.DeletedAt(childComplexity), true - - case "Procedure.deletedBy": - if e.complexity.Procedure.DeletedBy == nil { - break - } - - return e.complexity.Procedure.DeletedBy(childComplexity), true - - case "Procedure.description": - if e.complexity.Procedure.Description == nil { - break - } - - return e.complexity.Procedure.Description(childComplexity), true - - case "Procedure.details": - if e.complexity.Procedure.Details == nil { - break - } - - return e.complexity.Procedure.Details(childComplexity), true - - case "Procedure.editors": - if e.complexity.Procedure.Editors == nil { - break - } - - return e.complexity.Procedure.Editors(childComplexity), true - - case "Procedure.id": - if e.complexity.Procedure.ID == nil { - break - } - - return e.complexity.Procedure.ID(childComplexity), true - - case "Procedure.internalPolicies": - if e.complexity.Procedure.InternalPolicies == nil { - break - } - - return e.complexity.Procedure.InternalPolicies(childComplexity), true - - case "Procedure.name": - if e.complexity.Procedure.Name == nil { - break - } - - return e.complexity.Procedure.Name(childComplexity), true - - case "Procedure.narratives": - if e.complexity.Procedure.Narratives == nil { - break - } - - return e.complexity.Procedure.Narratives(childComplexity), true - - case "Procedure.owner": - if e.complexity.Procedure.Owner == nil { - break - } - - return e.complexity.Procedure.Owner(childComplexity), true - - case "Procedure.ownerID": - if e.complexity.Procedure.OwnerID == nil { - break - } - - return e.complexity.Procedure.OwnerID(childComplexity), true - - case "Procedure.procedureType": - if e.complexity.Procedure.ProcedureType == nil { - break - } - - return e.complexity.Procedure.ProcedureType(childComplexity), true - - case "Procedure.programs": - if e.complexity.Procedure.Programs == nil { - break - } - - return e.complexity.Procedure.Programs(childComplexity), true - - case "Procedure.purposeAndScope": - if e.complexity.Procedure.PurposeAndScope == nil { - break - } - - return e.complexity.Procedure.PurposeAndScope(childComplexity), true - - case "Procedure.risks": - if e.complexity.Procedure.Risks == nil { - break - } - - return e.complexity.Procedure.Risks(childComplexity), true - - case "Procedure.satisfies": - if e.complexity.Procedure.Satisfies == nil { - break - } - - return e.complexity.Procedure.Satisfies(childComplexity), true - - case "Procedure.status": - if e.complexity.Procedure.Status == nil { - break - } - - return e.complexity.Procedure.Status(childComplexity), true - - case "Procedure.tags": - if e.complexity.Procedure.Tags == nil { - break - } - - return e.complexity.Procedure.Tags(childComplexity), true - - case "Procedure.tasks": - if e.complexity.Procedure.Tasks == nil { - break - } - - return e.complexity.Procedure.Tasks(childComplexity), true - - case "Procedure.updatedAt": - if e.complexity.Procedure.UpdatedAt == nil { - break - } - - return e.complexity.Procedure.UpdatedAt(childComplexity), true - - case "Procedure.updatedBy": - if e.complexity.Procedure.UpdatedBy == nil { - break - } - - return e.complexity.Procedure.UpdatedBy(childComplexity), true - - case "Procedure.version": - if e.complexity.Procedure.Version == nil { - break - } - - return e.complexity.Procedure.Version(childComplexity), true - - case "ProcedureBulkCreatePayload.procedures": - if e.complexity.ProcedureBulkCreatePayload.Procedures == nil { - break - } - - return e.complexity.ProcedureBulkCreatePayload.Procedures(childComplexity), true - - case "ProcedureConnection.edges": - if e.complexity.ProcedureConnection.Edges == nil { - break - } - - return e.complexity.ProcedureConnection.Edges(childComplexity), true - - case "ProcedureConnection.pageInfo": - if e.complexity.ProcedureConnection.PageInfo == nil { - break - } - - return e.complexity.ProcedureConnection.PageInfo(childComplexity), true - - case "ProcedureConnection.totalCount": - if e.complexity.ProcedureConnection.TotalCount == nil { - break - } - - return e.complexity.ProcedureConnection.TotalCount(childComplexity), true - - case "ProcedureCreatePayload.procedure": - if e.complexity.ProcedureCreatePayload.Procedure == nil { - break - } - - return e.complexity.ProcedureCreatePayload.Procedure(childComplexity), true - - case "ProcedureDeletePayload.deletedID": - if e.complexity.ProcedureDeletePayload.DeletedID == nil { - break - } - - return e.complexity.ProcedureDeletePayload.DeletedID(childComplexity), true - - case "ProcedureEdge.cursor": - if e.complexity.ProcedureEdge.Cursor == nil { - break - } - - return e.complexity.ProcedureEdge.Cursor(childComplexity), true - - case "ProcedureEdge.node": - if e.complexity.ProcedureEdge.Node == nil { - break - } - - return e.complexity.ProcedureEdge.Node(childComplexity), true - - case "ProcedureHistory.background": - if e.complexity.ProcedureHistory.Background == nil { - break - } - - return e.complexity.ProcedureHistory.Background(childComplexity), true - - case "ProcedureHistory.createdAt": - if e.complexity.ProcedureHistory.CreatedAt == nil { - break - } - - return e.complexity.ProcedureHistory.CreatedAt(childComplexity), true - - case "ProcedureHistory.createdBy": - if e.complexity.ProcedureHistory.CreatedBy == nil { - break - } - - return e.complexity.ProcedureHistory.CreatedBy(childComplexity), true - - case "ProcedureHistory.deletedAt": - if e.complexity.ProcedureHistory.DeletedAt == nil { - break - } - - return e.complexity.ProcedureHistory.DeletedAt(childComplexity), true - - case "ProcedureHistory.deletedBy": - if e.complexity.ProcedureHistory.DeletedBy == nil { - break - } - - return e.complexity.ProcedureHistory.DeletedBy(childComplexity), true - - case "ProcedureHistory.description": - if e.complexity.ProcedureHistory.Description == nil { - break - } - - return e.complexity.ProcedureHistory.Description(childComplexity), true - - case "ProcedureHistory.details": - if e.complexity.ProcedureHistory.Details == nil { - break - } - - return e.complexity.ProcedureHistory.Details(childComplexity), true - - case "ProcedureHistory.historyTime": - if e.complexity.ProcedureHistory.HistoryTime == nil { - break - } - - return e.complexity.ProcedureHistory.HistoryTime(childComplexity), true - - case "ProcedureHistory.id": - if e.complexity.ProcedureHistory.ID == nil { - break - } - - return e.complexity.ProcedureHistory.ID(childComplexity), true - - case "ProcedureHistory.name": - if e.complexity.ProcedureHistory.Name == nil { - break - } - - return e.complexity.ProcedureHistory.Name(childComplexity), true - - case "ProcedureHistory.operation": - if e.complexity.ProcedureHistory.Operation == nil { - break - } - - return e.complexity.ProcedureHistory.Operation(childComplexity), true - - case "ProcedureHistory.ownerID": - if e.complexity.ProcedureHistory.OwnerID == nil { - break - } - - return e.complexity.ProcedureHistory.OwnerID(childComplexity), true - - case "ProcedureHistory.procedureType": - if e.complexity.ProcedureHistory.ProcedureType == nil { - break - } - - return e.complexity.ProcedureHistory.ProcedureType(childComplexity), true - - case "ProcedureHistory.purposeAndScope": - if e.complexity.ProcedureHistory.PurposeAndScope == nil { - break - } - - return e.complexity.ProcedureHistory.PurposeAndScope(childComplexity), true - - case "ProcedureHistory.ref": - if e.complexity.ProcedureHistory.Ref == nil { - break - } - - return e.complexity.ProcedureHistory.Ref(childComplexity), true - - case "ProcedureHistory.satisfies": - if e.complexity.ProcedureHistory.Satisfies == nil { - break - } - - return e.complexity.ProcedureHistory.Satisfies(childComplexity), true - - case "ProcedureHistory.status": - if e.complexity.ProcedureHistory.Status == nil { - break - } - - return e.complexity.ProcedureHistory.Status(childComplexity), true - - case "ProcedureHistory.tags": - if e.complexity.ProcedureHistory.Tags == nil { - break - } - - return e.complexity.ProcedureHistory.Tags(childComplexity), true - - case "ProcedureHistory.updatedAt": - if e.complexity.ProcedureHistory.UpdatedAt == nil { - break - } - - return e.complexity.ProcedureHistory.UpdatedAt(childComplexity), true - - case "ProcedureHistory.updatedBy": - if e.complexity.ProcedureHistory.UpdatedBy == nil { - break - } - - return e.complexity.ProcedureHistory.UpdatedBy(childComplexity), true - - case "ProcedureHistory.version": - if e.complexity.ProcedureHistory.Version == nil { - break - } - - return e.complexity.ProcedureHistory.Version(childComplexity), true - - case "ProcedureHistoryConnection.edges": - if e.complexity.ProcedureHistoryConnection.Edges == nil { - break - } - - return e.complexity.ProcedureHistoryConnection.Edges(childComplexity), true - - case "ProcedureHistoryConnection.pageInfo": - if e.complexity.ProcedureHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.ProcedureHistoryConnection.PageInfo(childComplexity), true - - case "ProcedureHistoryConnection.totalCount": - if e.complexity.ProcedureHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.ProcedureHistoryConnection.TotalCount(childComplexity), true - - case "ProcedureHistoryEdge.cursor": - if e.complexity.ProcedureHistoryEdge.Cursor == nil { - break - } - - return e.complexity.ProcedureHistoryEdge.Cursor(childComplexity), true - - case "ProcedureHistoryEdge.node": - if e.complexity.ProcedureHistoryEdge.Node == nil { - break - } - - return e.complexity.ProcedureHistoryEdge.Node(childComplexity), true - - case "ProcedureSearchResult.procedures": - if e.complexity.ProcedureSearchResult.Procedures == nil { - break - } - - return e.complexity.ProcedureSearchResult.Procedures(childComplexity), true - - case "ProcedureUpdatePayload.procedure": - if e.complexity.ProcedureUpdatePayload.Procedure == nil { - break - } - - return e.complexity.ProcedureUpdatePayload.Procedure(childComplexity), true - - case "Program.actionPlans": - if e.complexity.Program.ActionPlans == nil { - break - } - - return e.complexity.Program.ActionPlans(childComplexity), true - - case "Program.auditorReadComments": - if e.complexity.Program.AuditorReadComments == nil { - break - } - - return e.complexity.Program.AuditorReadComments(childComplexity), true - - case "Program.auditorReady": - if e.complexity.Program.AuditorReady == nil { - break - } - - return e.complexity.Program.AuditorReady(childComplexity), true - - case "Program.auditorWriteComments": - if e.complexity.Program.AuditorWriteComments == nil { - break - } - - return e.complexity.Program.AuditorWriteComments(childComplexity), true - - case "Program.blockedGroups": - if e.complexity.Program.BlockedGroups == nil { - break - } - - return e.complexity.Program.BlockedGroups(childComplexity), true - - case "Program.controlObjectives": - if e.complexity.Program.ControlObjectives == nil { - break - } - - return e.complexity.Program.ControlObjectives(childComplexity), true - - case "Program.controls": - if e.complexity.Program.Controls == nil { - break - } - - return e.complexity.Program.Controls(childComplexity), true - - case "Program.createdAt": - if e.complexity.Program.CreatedAt == nil { - break - } - - return e.complexity.Program.CreatedAt(childComplexity), true - - case "Program.createdBy": - if e.complexity.Program.CreatedBy == nil { - break - } - - return e.complexity.Program.CreatedBy(childComplexity), true - - case "Program.deletedAt": - if e.complexity.Program.DeletedAt == nil { - break - } - - return e.complexity.Program.DeletedAt(childComplexity), true - - case "Program.deletedBy": - if e.complexity.Program.DeletedBy == nil { - break - } - - return e.complexity.Program.DeletedBy(childComplexity), true - - case "Program.description": - if e.complexity.Program.Description == nil { - break - } - - return e.complexity.Program.Description(childComplexity), true - - case "Program.editors": - if e.complexity.Program.Editors == nil { - break - } - - return e.complexity.Program.Editors(childComplexity), true - - case "Program.endDate": - if e.complexity.Program.EndDate == nil { - break - } - - return e.complexity.Program.EndDate(childComplexity), true - - case "Program.files": - if e.complexity.Program.Files == nil { - break - } - - return e.complexity.Program.Files(childComplexity), true - - case "Program.id": - if e.complexity.Program.ID == nil { - break - } - - return e.complexity.Program.ID(childComplexity), true - - case "Program.internalPolicies": - if e.complexity.Program.InternalPolicies == nil { - break - } - - return e.complexity.Program.InternalPolicies(childComplexity), true - - case "Program.members": - if e.complexity.Program.Members == nil { - break - } - - return e.complexity.Program.Members(childComplexity), true - - case "Program.name": - if e.complexity.Program.Name == nil { - break - } - - return e.complexity.Program.Name(childComplexity), true - - case "Program.narratives": - if e.complexity.Program.Narratives == nil { - break - } - - return e.complexity.Program.Narratives(childComplexity), true - - case "Program.notes": - if e.complexity.Program.Notes == nil { - break - } - - return e.complexity.Program.Notes(childComplexity), true - - case "Program.owner": - if e.complexity.Program.Owner == nil { - break - } - - return e.complexity.Program.Owner(childComplexity), true - - case "Program.ownerID": - if e.complexity.Program.OwnerID == nil { - break - } - - return e.complexity.Program.OwnerID(childComplexity), true - - case "Program.procedures": - if e.complexity.Program.Procedures == nil { - break - } - - return e.complexity.Program.Procedures(childComplexity), true - - case "Program.risks": - if e.complexity.Program.Risks == nil { - break - } - - return e.complexity.Program.Risks(childComplexity), true - - case "Program.standards": - if e.complexity.Program.Standards == nil { - break - } - - return e.complexity.Program.Standards(childComplexity), true - - case "Program.startDate": - if e.complexity.Program.StartDate == nil { - break - } - - return e.complexity.Program.StartDate(childComplexity), true - - case "Program.status": - if e.complexity.Program.Status == nil { - break - } - - return e.complexity.Program.Status(childComplexity), true - - case "Program.subcontrols": - if e.complexity.Program.Subcontrols == nil { - break - } - - return e.complexity.Program.Subcontrols(childComplexity), true - - case "Program.tags": - if e.complexity.Program.Tags == nil { - break - } - - return e.complexity.Program.Tags(childComplexity), true - - case "Program.tasks": - if e.complexity.Program.Tasks == nil { - break - } - - return e.complexity.Program.Tasks(childComplexity), true - - case "Program.updatedAt": - if e.complexity.Program.UpdatedAt == nil { - break - } - - return e.complexity.Program.UpdatedAt(childComplexity), true - - case "Program.updatedBy": - if e.complexity.Program.UpdatedBy == nil { - break - } - - return e.complexity.Program.UpdatedBy(childComplexity), true - - case "Program.users": - if e.complexity.Program.Users == nil { - break - } - - return e.complexity.Program.Users(childComplexity), true - - case "Program.viewers": - if e.complexity.Program.Viewers == nil { - break - } - - return e.complexity.Program.Viewers(childComplexity), true - - case "ProgramBulkCreatePayload.programs": - if e.complexity.ProgramBulkCreatePayload.Programs == nil { - break - } - - return e.complexity.ProgramBulkCreatePayload.Programs(childComplexity), true - - case "ProgramConnection.edges": - if e.complexity.ProgramConnection.Edges == nil { - break - } - - return e.complexity.ProgramConnection.Edges(childComplexity), true - - case "ProgramConnection.pageInfo": - if e.complexity.ProgramConnection.PageInfo == nil { - break - } - - return e.complexity.ProgramConnection.PageInfo(childComplexity), true - - case "ProgramConnection.totalCount": - if e.complexity.ProgramConnection.TotalCount == nil { - break - } - - return e.complexity.ProgramConnection.TotalCount(childComplexity), true - - case "ProgramCreatePayload.program": - if e.complexity.ProgramCreatePayload.Program == nil { - break - } - - return e.complexity.ProgramCreatePayload.Program(childComplexity), true - - case "ProgramDeletePayload.deletedID": - if e.complexity.ProgramDeletePayload.DeletedID == nil { - break - } - - return e.complexity.ProgramDeletePayload.DeletedID(childComplexity), true - - case "ProgramEdge.cursor": - if e.complexity.ProgramEdge.Cursor == nil { - break - } - - return e.complexity.ProgramEdge.Cursor(childComplexity), true - - case "ProgramEdge.node": - if e.complexity.ProgramEdge.Node == nil { - break - } - - return e.complexity.ProgramEdge.Node(childComplexity), true - - case "ProgramHistory.auditorReadComments": - if e.complexity.ProgramHistory.AuditorReadComments == nil { - break - } - - return e.complexity.ProgramHistory.AuditorReadComments(childComplexity), true - - case "ProgramHistory.auditorReady": - if e.complexity.ProgramHistory.AuditorReady == nil { - break - } - - return e.complexity.ProgramHistory.AuditorReady(childComplexity), true - - case "ProgramHistory.auditorWriteComments": - if e.complexity.ProgramHistory.AuditorWriteComments == nil { - break - } - - return e.complexity.ProgramHistory.AuditorWriteComments(childComplexity), true - - case "ProgramHistory.createdAt": - if e.complexity.ProgramHistory.CreatedAt == nil { - break - } - - return e.complexity.ProgramHistory.CreatedAt(childComplexity), true - - case "ProgramHistory.createdBy": - if e.complexity.ProgramHistory.CreatedBy == nil { - break - } - - return e.complexity.ProgramHistory.CreatedBy(childComplexity), true - - case "ProgramHistory.deletedAt": - if e.complexity.ProgramHistory.DeletedAt == nil { - break - } - - return e.complexity.ProgramHistory.DeletedAt(childComplexity), true - - case "ProgramHistory.deletedBy": - if e.complexity.ProgramHistory.DeletedBy == nil { - break - } - - return e.complexity.ProgramHistory.DeletedBy(childComplexity), true - - case "ProgramHistory.description": - if e.complexity.ProgramHistory.Description == nil { - break - } - - return e.complexity.ProgramHistory.Description(childComplexity), true - - case "ProgramHistory.endDate": - if e.complexity.ProgramHistory.EndDate == nil { - break - } - - return e.complexity.ProgramHistory.EndDate(childComplexity), true - - case "ProgramHistory.historyTime": - if e.complexity.ProgramHistory.HistoryTime == nil { - break - } - - return e.complexity.ProgramHistory.HistoryTime(childComplexity), true - - case "ProgramHistory.id": - if e.complexity.ProgramHistory.ID == nil { - break - } - - return e.complexity.ProgramHistory.ID(childComplexity), true - - case "ProgramHistory.name": - if e.complexity.ProgramHistory.Name == nil { - break - } - - return e.complexity.ProgramHistory.Name(childComplexity), true - - case "ProgramHistory.operation": - if e.complexity.ProgramHistory.Operation == nil { - break - } - - return e.complexity.ProgramHistory.Operation(childComplexity), true - - case "ProgramHistory.ownerID": - if e.complexity.ProgramHistory.OwnerID == nil { - break - } - - return e.complexity.ProgramHistory.OwnerID(childComplexity), true - - case "ProgramHistory.ref": - if e.complexity.ProgramHistory.Ref == nil { - break - } - - return e.complexity.ProgramHistory.Ref(childComplexity), true - - case "ProgramHistory.startDate": - if e.complexity.ProgramHistory.StartDate == nil { - break - } - - return e.complexity.ProgramHistory.StartDate(childComplexity), true - - case "ProgramHistory.status": - if e.complexity.ProgramHistory.Status == nil { - break - } - - return e.complexity.ProgramHistory.Status(childComplexity), true - - case "ProgramHistory.tags": - if e.complexity.ProgramHistory.Tags == nil { - break - } - - return e.complexity.ProgramHistory.Tags(childComplexity), true - - case "ProgramHistory.updatedAt": - if e.complexity.ProgramHistory.UpdatedAt == nil { - break - } - - return e.complexity.ProgramHistory.UpdatedAt(childComplexity), true - - case "ProgramHistory.updatedBy": - if e.complexity.ProgramHistory.UpdatedBy == nil { - break - } - - return e.complexity.ProgramHistory.UpdatedBy(childComplexity), true - - case "ProgramHistoryConnection.edges": - if e.complexity.ProgramHistoryConnection.Edges == nil { - break - } - - return e.complexity.ProgramHistoryConnection.Edges(childComplexity), true - - case "ProgramHistoryConnection.pageInfo": - if e.complexity.ProgramHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.ProgramHistoryConnection.PageInfo(childComplexity), true - - case "ProgramHistoryConnection.totalCount": - if e.complexity.ProgramHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.ProgramHistoryConnection.TotalCount(childComplexity), true - - case "ProgramHistoryEdge.cursor": - if e.complexity.ProgramHistoryEdge.Cursor == nil { - break - } - - return e.complexity.ProgramHistoryEdge.Cursor(childComplexity), true - - case "ProgramHistoryEdge.node": - if e.complexity.ProgramHistoryEdge.Node == nil { - break - } - - return e.complexity.ProgramHistoryEdge.Node(childComplexity), true - - case "ProgramMembership.createdAt": - if e.complexity.ProgramMembership.CreatedAt == nil { - break - } - - return e.complexity.ProgramMembership.CreatedAt(childComplexity), true - - case "ProgramMembership.createdBy": - if e.complexity.ProgramMembership.CreatedBy == nil { - break - } - - return e.complexity.ProgramMembership.CreatedBy(childComplexity), true - - case "ProgramMembership.deletedAt": - if e.complexity.ProgramMembership.DeletedAt == nil { - break - } - - return e.complexity.ProgramMembership.DeletedAt(childComplexity), true - - case "ProgramMembership.deletedBy": - if e.complexity.ProgramMembership.DeletedBy == nil { - break - } - - return e.complexity.ProgramMembership.DeletedBy(childComplexity), true - - case "ProgramMembership.id": - if e.complexity.ProgramMembership.ID == nil { - break - } - - return e.complexity.ProgramMembership.ID(childComplexity), true - - case "ProgramMembership.program": - if e.complexity.ProgramMembership.Program == nil { - break - } - - return e.complexity.ProgramMembership.Program(childComplexity), true - - case "ProgramMembership.programID": - if e.complexity.ProgramMembership.ProgramID == nil { - break - } - - return e.complexity.ProgramMembership.ProgramID(childComplexity), true - - case "ProgramMembership.role": - if e.complexity.ProgramMembership.Role == nil { - break - } - - return e.complexity.ProgramMembership.Role(childComplexity), true - - case "ProgramMembership.updatedAt": - if e.complexity.ProgramMembership.UpdatedAt == nil { - break - } - - return e.complexity.ProgramMembership.UpdatedAt(childComplexity), true - - case "ProgramMembership.updatedBy": - if e.complexity.ProgramMembership.UpdatedBy == nil { - break - } - - return e.complexity.ProgramMembership.UpdatedBy(childComplexity), true - - case "ProgramMembership.user": - if e.complexity.ProgramMembership.User == nil { - break - } - - return e.complexity.ProgramMembership.User(childComplexity), true - - case "ProgramMembership.userID": - if e.complexity.ProgramMembership.UserID == nil { - break - } - - return e.complexity.ProgramMembership.UserID(childComplexity), true - - case "ProgramMembershipBulkCreatePayload.programMemberships": - if e.complexity.ProgramMembershipBulkCreatePayload.ProgramMemberships == nil { - break - } - - return e.complexity.ProgramMembershipBulkCreatePayload.ProgramMemberships(childComplexity), true - - case "ProgramMembershipConnection.edges": - if e.complexity.ProgramMembershipConnection.Edges == nil { - break - } - - return e.complexity.ProgramMembershipConnection.Edges(childComplexity), true - - case "ProgramMembershipConnection.pageInfo": - if e.complexity.ProgramMembershipConnection.PageInfo == nil { - break - } - - return e.complexity.ProgramMembershipConnection.PageInfo(childComplexity), true - - case "ProgramMembershipConnection.totalCount": - if e.complexity.ProgramMembershipConnection.TotalCount == nil { - break - } - - return e.complexity.ProgramMembershipConnection.TotalCount(childComplexity), true - - case "ProgramMembershipCreatePayload.programMembership": - if e.complexity.ProgramMembershipCreatePayload.ProgramMembership == nil { - break - } - - return e.complexity.ProgramMembershipCreatePayload.ProgramMembership(childComplexity), true - - case "ProgramMembershipDeletePayload.deletedID": - if e.complexity.ProgramMembershipDeletePayload.DeletedID == nil { - break - } - - return e.complexity.ProgramMembershipDeletePayload.DeletedID(childComplexity), true - - case "ProgramMembershipEdge.cursor": - if e.complexity.ProgramMembershipEdge.Cursor == nil { - break - } - - return e.complexity.ProgramMembershipEdge.Cursor(childComplexity), true - - case "ProgramMembershipEdge.node": - if e.complexity.ProgramMembershipEdge.Node == nil { - break - } - - return e.complexity.ProgramMembershipEdge.Node(childComplexity), true - - case "ProgramMembershipHistory.createdAt": - if e.complexity.ProgramMembershipHistory.CreatedAt == nil { - break - } - - return e.complexity.ProgramMembershipHistory.CreatedAt(childComplexity), true - - case "ProgramMembershipHistory.createdBy": - if e.complexity.ProgramMembershipHistory.CreatedBy == nil { - break - } - - return e.complexity.ProgramMembershipHistory.CreatedBy(childComplexity), true - - case "ProgramMembershipHistory.deletedAt": - if e.complexity.ProgramMembershipHistory.DeletedAt == nil { - break - } - - return e.complexity.ProgramMembershipHistory.DeletedAt(childComplexity), true - - case "ProgramMembershipHistory.deletedBy": - if e.complexity.ProgramMembershipHistory.DeletedBy == nil { - break - } - - return e.complexity.ProgramMembershipHistory.DeletedBy(childComplexity), true - - case "ProgramMembershipHistory.historyTime": - if e.complexity.ProgramMembershipHistory.HistoryTime == nil { - break - } - - return e.complexity.ProgramMembershipHistory.HistoryTime(childComplexity), true - - case "ProgramMembershipHistory.id": - if e.complexity.ProgramMembershipHistory.ID == nil { - break - } - - return e.complexity.ProgramMembershipHistory.ID(childComplexity), true - - case "ProgramMembershipHistory.operation": - if e.complexity.ProgramMembershipHistory.Operation == nil { - break - } - - return e.complexity.ProgramMembershipHistory.Operation(childComplexity), true - - case "ProgramMembershipHistory.programID": - if e.complexity.ProgramMembershipHistory.ProgramID == nil { - break - } - - return e.complexity.ProgramMembershipHistory.ProgramID(childComplexity), true - - case "ProgramMembershipHistory.ref": - if e.complexity.ProgramMembershipHistory.Ref == nil { - break - } - - return e.complexity.ProgramMembershipHistory.Ref(childComplexity), true - - case "ProgramMembershipHistory.role": - if e.complexity.ProgramMembershipHistory.Role == nil { - break - } - - return e.complexity.ProgramMembershipHistory.Role(childComplexity), true - - case "ProgramMembershipHistory.updatedAt": - if e.complexity.ProgramMembershipHistory.UpdatedAt == nil { - break - } - - return e.complexity.ProgramMembershipHistory.UpdatedAt(childComplexity), true - - case "ProgramMembershipHistory.updatedBy": - if e.complexity.ProgramMembershipHistory.UpdatedBy == nil { - break - } - - return e.complexity.ProgramMembershipHistory.UpdatedBy(childComplexity), true - - case "ProgramMembershipHistory.userID": - if e.complexity.ProgramMembershipHistory.UserID == nil { - break - } - - return e.complexity.ProgramMembershipHistory.UserID(childComplexity), true - - case "ProgramMembershipHistoryConnection.edges": - if e.complexity.ProgramMembershipHistoryConnection.Edges == nil { - break - } - - return e.complexity.ProgramMembershipHistoryConnection.Edges(childComplexity), true - - case "ProgramMembershipHistoryConnection.pageInfo": - if e.complexity.ProgramMembershipHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.ProgramMembershipHistoryConnection.PageInfo(childComplexity), true - - case "ProgramMembershipHistoryConnection.totalCount": - if e.complexity.ProgramMembershipHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.ProgramMembershipHistoryConnection.TotalCount(childComplexity), true - - case "ProgramMembershipHistoryEdge.cursor": - if e.complexity.ProgramMembershipHistoryEdge.Cursor == nil { - break - } - - return e.complexity.ProgramMembershipHistoryEdge.Cursor(childComplexity), true - - case "ProgramMembershipHistoryEdge.node": - if e.complexity.ProgramMembershipHistoryEdge.Node == nil { - break - } - - return e.complexity.ProgramMembershipHistoryEdge.Node(childComplexity), true - - case "ProgramMembershipUpdatePayload.programMembership": - if e.complexity.ProgramMembershipUpdatePayload.ProgramMembership == nil { - break - } - - return e.complexity.ProgramMembershipUpdatePayload.ProgramMembership(childComplexity), true - - case "ProgramSearchResult.programs": - if e.complexity.ProgramSearchResult.Programs == nil { - break - } - - return e.complexity.ProgramSearchResult.Programs(childComplexity), true - - case "ProgramUpdatePayload.program": - if e.complexity.ProgramUpdatePayload.Program == nil { - break - } - - return e.complexity.ProgramUpdatePayload.Program(childComplexity), true - - case "Query.apiToken": - if e.complexity.Query.APIToken == nil { - break - } - - args, err := ec.field_Query_apiToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.APIToken(childComplexity, args["id"].(string)), true - - case "Query.apiTokenSearch": - if e.complexity.Query.APITokenSearch == nil { - break - } - - args, err := ec.field_Query_apiTokenSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.APITokenSearch(childComplexity, args["query"].(string)), true - - case "Query.apiTokens": - if e.complexity.Query.APITokens == nil { - break - } - - args, err := ec.field_Query_apiTokens_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.APITokens(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.APITokenWhereInput)), true - - case "Query.actionPlan": - if e.complexity.Query.ActionPlan == nil { - break - } - - args, err := ec.field_Query_actionPlan_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ActionPlan(childComplexity, args["id"].(string)), true - - case "Query.actionPlanHistories": - if e.complexity.Query.ActionPlanHistories == nil { - break - } - - args, err := ec.field_Query_actionPlanHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ActionPlanHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ActionPlanHistoryWhereInput)), true - - case "Query.actionPlanSearch": - if e.complexity.Query.ActionPlanSearch == nil { - break - } - - args, err := ec.field_Query_actionPlanSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ActionPlanSearch(childComplexity, args["query"].(string)), true - - case "Query.actionPlans": - if e.complexity.Query.ActionPlans == nil { - break - } - - args, err := ec.field_Query_actionPlans_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ActionPlans(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ActionPlanWhereInput)), true - - case "Query.adminAPITokenSearch": - if e.complexity.Query.AdminAPITokenSearch == nil { - break - } - - args, err := ec.field_Query_adminAPITokenSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminAPITokenSearch(childComplexity, args["query"].(string)), true - - case "Query.adminActionPlanSearch": - if e.complexity.Query.AdminActionPlanSearch == nil { - break - } - - args, err := ec.field_Query_adminActionPlanSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminActionPlanSearch(childComplexity, args["query"].(string)), true - - case "Query.adminContactSearch": - if e.complexity.Query.AdminContactSearch == nil { - break - } - - args, err := ec.field_Query_adminContactSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminContactSearch(childComplexity, args["query"].(string)), true - - case "Query.adminControlObjectiveSearch": - if e.complexity.Query.AdminControlObjectiveSearch == nil { - break - } - - args, err := ec.field_Query_adminControlObjectiveSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminControlObjectiveSearch(childComplexity, args["query"].(string)), true - - case "Query.adminControlSearch": - if e.complexity.Query.AdminControlSearch == nil { - break - } - - args, err := ec.field_Query_adminControlSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminControlSearch(childComplexity, args["query"].(string)), true - - case "Query.adminDocumentDataSearch": - if e.complexity.Query.AdminDocumentDataSearch == nil { - break - } - - args, err := ec.field_Query_adminDocumentDataSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminDocumentDataSearch(childComplexity, args["query"].(string)), true - - case "Query.adminEntitySearch": - if e.complexity.Query.AdminEntitySearch == nil { - break - } - - args, err := ec.field_Query_adminEntitySearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminEntitySearch(childComplexity, args["query"].(string)), true - - case "Query.adminEntityTypeSearch": - if e.complexity.Query.AdminEntityTypeSearch == nil { - break - } - - args, err := ec.field_Query_adminEntityTypeSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminEntityTypeSearch(childComplexity, args["query"].(string)), true - - case "Query.adminEventSearch": - if e.complexity.Query.AdminEventSearch == nil { - break - } - - args, err := ec.field_Query_adminEventSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminEventSearch(childComplexity, args["query"].(string)), true - - case "Query.adminFileSearch": - if e.complexity.Query.AdminFileSearch == nil { - break - } - - args, err := ec.field_Query_adminFileSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminFileSearch(childComplexity, args["query"].(string)), true - - case "Query.adminGroupSearch": - if e.complexity.Query.AdminGroupSearch == nil { - break - } - - args, err := ec.field_Query_adminGroupSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminGroupSearch(childComplexity, args["query"].(string)), true - - case "Query.adminGroupSettingSearch": - if e.complexity.Query.AdminGroupSettingSearch == nil { - break - } - - args, err := ec.field_Query_adminGroupSettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminGroupSettingSearch(childComplexity, args["query"].(string)), true - - case "Query.adminIntegrationSearch": - if e.complexity.Query.AdminIntegrationSearch == nil { - break - } - - args, err := ec.field_Query_adminIntegrationSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminIntegrationSearch(childComplexity, args["query"].(string)), true - - case "Query.adminInternalPolicySearch": - if e.complexity.Query.AdminInternalPolicySearch == nil { - break - } - - args, err := ec.field_Query_adminInternalPolicySearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminInternalPolicySearch(childComplexity, args["query"].(string)), true - - case "Query.adminNarrativeSearch": - if e.complexity.Query.AdminNarrativeSearch == nil { - break - } - - args, err := ec.field_Query_adminNarrativeSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminNarrativeSearch(childComplexity, args["query"].(string)), true - - case "Query.adminOrgSubscriptionSearch": - if e.complexity.Query.AdminOrgSubscriptionSearch == nil { - break - } - - args, err := ec.field_Query_adminOrgSubscriptionSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminOrgSubscriptionSearch(childComplexity, args["query"].(string)), true - - case "Query.adminOrganizationSearch": - if e.complexity.Query.AdminOrganizationSearch == nil { - break - } - - args, err := ec.field_Query_adminOrganizationSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminOrganizationSearch(childComplexity, args["query"].(string)), true - - case "Query.adminOrganizationSettingSearch": - if e.complexity.Query.AdminOrganizationSettingSearch == nil { - break - } - - args, err := ec.field_Query_adminOrganizationSettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminOrganizationSettingSearch(childComplexity, args["query"].(string)), true - - case "Query.adminPersonalAccessTokenSearch": - if e.complexity.Query.AdminPersonalAccessTokenSearch == nil { - break - } - - args, err := ec.field_Query_adminPersonalAccessTokenSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminPersonalAccessTokenSearch(childComplexity, args["query"].(string)), true - - case "Query.adminProcedureSearch": - if e.complexity.Query.AdminProcedureSearch == nil { - break - } - - args, err := ec.field_Query_adminProcedureSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminProcedureSearch(childComplexity, args["query"].(string)), true - - case "Query.adminProgramSearch": - if e.complexity.Query.AdminProgramSearch == nil { - break - } - - args, err := ec.field_Query_adminProgramSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminProgramSearch(childComplexity, args["query"].(string)), true - - case "Query.adminRiskSearch": - if e.complexity.Query.AdminRiskSearch == nil { - break - } - - args, err := ec.field_Query_adminRiskSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminRiskSearch(childComplexity, args["query"].(string)), true - - case "Query.adminSearch": - if e.complexity.Query.AdminSearch == nil { - break - } - - args, err := ec.field_Query_adminSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminSearch(childComplexity, args["query"].(string)), true - - case "Query.adminStandardSearch": - if e.complexity.Query.AdminStandardSearch == nil { - break - } - - args, err := ec.field_Query_adminStandardSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminStandardSearch(childComplexity, args["query"].(string)), true - - case "Query.adminSubcontrolSearch": - if e.complexity.Query.AdminSubcontrolSearch == nil { - break - } - - args, err := ec.field_Query_adminSubcontrolSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminSubcontrolSearch(childComplexity, args["query"].(string)), true - - case "Query.adminSubscriberSearch": - if e.complexity.Query.AdminSubscriberSearch == nil { - break - } - - args, err := ec.field_Query_adminSubscriberSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminSubscriberSearch(childComplexity, args["query"].(string)), true - - case "Query.adminTFASettingSearch": - if e.complexity.Query.AdminTFASettingSearch == nil { - break - } - - args, err := ec.field_Query_adminTFASettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminTFASettingSearch(childComplexity, args["query"].(string)), true - - case "Query.adminTaskSearch": - if e.complexity.Query.AdminTaskSearch == nil { - break - } - - args, err := ec.field_Query_adminTaskSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminTaskSearch(childComplexity, args["query"].(string)), true - - case "Query.adminTemplateSearch": - if e.complexity.Query.AdminTemplateSearch == nil { - break - } - - args, err := ec.field_Query_adminTemplateSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminTemplateSearch(childComplexity, args["query"].(string)), true - - case "Query.adminUserSearch": - if e.complexity.Query.AdminUserSearch == nil { - break - } - - args, err := ec.field_Query_adminUserSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminUserSearch(childComplexity, args["query"].(string)), true - - case "Query.adminUserSettingSearch": - if e.complexity.Query.AdminUserSettingSearch == nil { - break - } - - args, err := ec.field_Query_adminUserSettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AdminUserSettingSearch(childComplexity, args["query"].(string)), true - - case "Query.auditLogs": - if e.complexity.Query.AuditLogs == nil { - break - } - - args, err := ec.field_Query_auditLogs_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.AuditLogs(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*AuditLogWhereInput)), true - - case "Query.contact": - if e.complexity.Query.Contact == nil { - break - } - - args, err := ec.field_Query_contact_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Contact(childComplexity, args["id"].(string)), true - - case "Query.contactHistories": - if e.complexity.Query.ContactHistories == nil { - break - } - - args, err := ec.field_Query_contactHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ContactHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ContactHistoryWhereInput)), true - - case "Query.contactSearch": - if e.complexity.Query.ContactSearch == nil { - break - } - - args, err := ec.field_Query_contactSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ContactSearch(childComplexity, args["query"].(string)), true - - case "Query.contacts": - if e.complexity.Query.Contacts == nil { - break - } - - args, err := ec.field_Query_contacts_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Contacts(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ContactWhereInput)), true - - case "Query.control": - if e.complexity.Query.Control == nil { - break - } - - args, err := ec.field_Query_control_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Control(childComplexity, args["id"].(string)), true - - case "Query.controlHistories": - if e.complexity.Query.ControlHistories == nil { - break - } - - args, err := ec.field_Query_controlHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ControlHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlHistoryWhereInput)), true - - case "Query.controlObjective": - if e.complexity.Query.ControlObjective == nil { - break - } - - args, err := ec.field_Query_controlObjective_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ControlObjective(childComplexity, args["id"].(string)), true - - case "Query.controlObjectiveHistories": - if e.complexity.Query.ControlObjectiveHistories == nil { - break - } - - args, err := ec.field_Query_controlObjectiveHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ControlObjectiveHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlObjectiveHistoryWhereInput)), true - - case "Query.controlObjectiveSearch": - if e.complexity.Query.ControlObjectiveSearch == nil { - break - } - - args, err := ec.field_Query_controlObjectiveSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ControlObjectiveSearch(childComplexity, args["query"].(string)), true - - case "Query.controlObjectives": - if e.complexity.Query.ControlObjectives == nil { - break - } - - args, err := ec.field_Query_controlObjectives_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ControlObjectives(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlObjectiveWhereInput)), true - - case "Query.controlSearch": - if e.complexity.Query.ControlSearch == nil { - break - } - - args, err := ec.field_Query_controlSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ControlSearch(childComplexity, args["query"].(string)), true - - case "Query.controls": - if e.complexity.Query.Controls == nil { - break - } - - args, err := ec.field_Query_controls_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Controls(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlWhereInput)), true - - case "Query.documentData": - if e.complexity.Query.DocumentData == nil { - break - } - - args, err := ec.field_Query_documentData_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.DocumentData(childComplexity, args["id"].(string)), true - - case "Query.documentDataHistories": - if e.complexity.Query.DocumentDataHistories == nil { - break - } - - args, err := ec.field_Query_documentDataHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.DocumentDataHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.DocumentDataHistoryWhereInput)), true - - case "Query.documentDataSearch": - if e.complexity.Query.DocumentDataSearch == nil { - break - } - - args, err := ec.field_Query_documentDataSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.DocumentDataSearch(childComplexity, args["query"].(string)), true - - case "Query.documentDataSlice": - if e.complexity.Query.DocumentDataSlice == nil { - break - } - - args, err := ec.field_Query_documentDataSlice_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.DocumentDataSlice(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.DocumentDataWhereInput)), true - - case "Query.entities": - if e.complexity.Query.Entities == nil { - break - } - - args, err := ec.field_Query_entities_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Entities(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityOrder), args["where"].(*generated.EntityWhereInput)), true - - case "Query.entity": - if e.complexity.Query.Entity == nil { - break - } - - args, err := ec.field_Query_entity_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Entity(childComplexity, args["id"].(string)), true - - case "Query.entityHistories": - if e.complexity.Query.EntityHistories == nil { - break - } - - args, err := ec.field_Query_entityHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EntityHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityHistoryOrder), args["where"].(*generated.EntityHistoryWhereInput)), true - - case "Query.entitySearch": - if e.complexity.Query.EntitySearch == nil { - break - } - - args, err := ec.field_Query_entitySearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EntitySearch(childComplexity, args["query"].(string)), true - - case "Query.entityType": - if e.complexity.Query.EntityType == nil { - break - } - - args, err := ec.field_Query_entityType_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EntityType(childComplexity, args["id"].(string)), true - - case "Query.entityTypeHistories": - if e.complexity.Query.EntityTypeHistories == nil { - break - } - - args, err := ec.field_Query_entityTypeHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EntityTypeHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityTypeHistoryOrder), args["where"].(*generated.EntityTypeHistoryWhereInput)), true - - case "Query.entityTypeSearch": - if e.complexity.Query.EntityTypeSearch == nil { - break - } - - args, err := ec.field_Query_entityTypeSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EntityTypeSearch(childComplexity, args["query"].(string)), true - - case "Query.entityTypes": - if e.complexity.Query.EntityTypes == nil { - break - } - - args, err := ec.field_Query_entityTypes_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EntityTypes(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityTypeOrder), args["where"].(*generated.EntityTypeWhereInput)), true - - case "Query.event": - if e.complexity.Query.Event == nil { - break - } - - args, err := ec.field_Query_event_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Event(childComplexity, args["id"].(string)), true - - case "Query.eventHistories": - if e.complexity.Query.EventHistories == nil { - break - } - - args, err := ec.field_Query_eventHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EventHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.EventHistoryWhereInput)), true - - case "Query.eventSearch": - if e.complexity.Query.EventSearch == nil { - break - } - - args, err := ec.field_Query_eventSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.EventSearch(childComplexity, args["query"].(string)), true - - case "Query.events": - if e.complexity.Query.Events == nil { - break - } - - args, err := ec.field_Query_events_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Events(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.EventWhereInput)), true - - case "Query.file": - if e.complexity.Query.File == nil { - break - } - - args, err := ec.field_Query_file_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.File(childComplexity, args["id"].(string)), true - - case "Query.fileHistories": - if e.complexity.Query.FileHistories == nil { - break - } - - args, err := ec.field_Query_fileHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FileHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.FileHistoryWhereInput)), true - - case "Query.fileSearch": - if e.complexity.Query.FileSearch == nil { - break - } - - args, err := ec.field_Query_fileSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.FileSearch(childComplexity, args["query"].(string)), true - - case "Query.files": - if e.complexity.Query.Files == nil { - break - } - - args, err := ec.field_Query_files_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Files(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.FileWhereInput)), true - - case "Query.group": - if e.complexity.Query.Group == nil { - break - } - - args, err := ec.field_Query_group_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Group(childComplexity, args["id"].(string)), true - - case "Query.groupHistories": - if e.complexity.Query.GroupHistories == nil { - break - } - - args, err := ec.field_Query_groupHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.GroupHistoryOrder), args["where"].(*generated.GroupHistoryWhereInput)), true - - case "Query.groupMembership": - if e.complexity.Query.GroupMembership == nil { - break - } - - args, err := ec.field_Query_groupMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupMembership(childComplexity, args["id"].(string)), true - - case "Query.groupMembershipHistories": - if e.complexity.Query.GroupMembershipHistories == nil { - break - } - - args, err := ec.field_Query_groupMembershipHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupMembershipHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupMembershipHistoryWhereInput)), true - - case "Query.groupMemberships": - if e.complexity.Query.GroupMemberships == nil { - break - } - - args, err := ec.field_Query_groupMemberships_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupMemberships(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupMembershipWhereInput)), true - - case "Query.groupSearch": - if e.complexity.Query.GroupSearch == nil { - break - } - - args, err := ec.field_Query_groupSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupSearch(childComplexity, args["query"].(string)), true - - case "Query.groupSetting": - if e.complexity.Query.GroupSetting == nil { - break - } - - args, err := ec.field_Query_groupSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupSetting(childComplexity, args["id"].(string)), true - - case "Query.groupSettingHistories": - if e.complexity.Query.GroupSettingHistories == nil { - break - } - - args, err := ec.field_Query_groupSettingHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupSettingHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupSettingHistoryWhereInput)), true - - case "Query.groupSettingSearch": - if e.complexity.Query.GroupSettingSearch == nil { - break - } - - args, err := ec.field_Query_groupSettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupSettingSearch(childComplexity, args["query"].(string)), true - - case "Query.groupSettings": - if e.complexity.Query.GroupSettings == nil { - break - } - - args, err := ec.field_Query_groupSettings_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.GroupSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupSettingWhereInput)), true - - case "Query.groups": - if e.complexity.Query.Groups == nil { - break - } - - args, err := ec.field_Query_groups_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Groups(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.GroupOrder), args["where"].(*generated.GroupWhereInput)), true - - case "Query.hush": - if e.complexity.Query.Hush == nil { - break - } - - args, err := ec.field_Query_hush_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Hush(childComplexity, args["id"].(string)), true - - case "Query.hushHistories": - if e.complexity.Query.HushHistories == nil { - break - } - - args, err := ec.field_Query_hushHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.HushHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.HushHistoryOrder), args["where"].(*generated.HushHistoryWhereInput)), true - - case "Query.hushes": - if e.complexity.Query.Hushes == nil { - break - } - - args, err := ec.field_Query_hushes_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Hushes(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.HushOrder), args["where"].(*generated.HushWhereInput)), true - - case "Query.integration": - if e.complexity.Query.Integration == nil { - break - } - - args, err := ec.field_Query_integration_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Integration(childComplexity, args["id"].(string)), true - - case "Query.integrationHistories": - if e.complexity.Query.IntegrationHistories == nil { - break - } - - args, err := ec.field_Query_integrationHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.IntegrationHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.IntegrationHistoryOrder), args["where"].(*generated.IntegrationHistoryWhereInput)), true - - case "Query.integrationSearch": - if e.complexity.Query.IntegrationSearch == nil { - break - } - - args, err := ec.field_Query_integrationSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.IntegrationSearch(childComplexity, args["query"].(string)), true - - case "Query.integrations": - if e.complexity.Query.Integrations == nil { - break - } - - args, err := ec.field_Query_integrations_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Integrations(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.IntegrationOrder), args["where"].(*generated.IntegrationWhereInput)), true - - case "Query.internalPolicies": - if e.complexity.Query.InternalPolicies == nil { - break - } - - args, err := ec.field_Query_internalPolicies_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.InternalPolicies(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InternalPolicyWhereInput)), true - - case "Query.internalPolicy": - if e.complexity.Query.InternalPolicy == nil { - break - } - - args, err := ec.field_Query_internalPolicy_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.InternalPolicy(childComplexity, args["id"].(string)), true - - case "Query.internalPolicyHistories": - if e.complexity.Query.InternalPolicyHistories == nil { - break - } - - args, err := ec.field_Query_internalPolicyHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.InternalPolicyHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InternalPolicyHistoryWhereInput)), true - - case "Query.internalPolicySearch": - if e.complexity.Query.InternalPolicySearch == nil { - break - } - - args, err := ec.field_Query_internalPolicySearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.InternalPolicySearch(childComplexity, args["query"].(string)), true - - case "Query.invite": - if e.complexity.Query.Invite == nil { - break - } - - args, err := ec.field_Query_invite_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Invite(childComplexity, args["id"].(string)), true - - case "Query.invites": - if e.complexity.Query.Invites == nil { - break - } - - args, err := ec.field_Query_invites_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Invites(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InviteWhereInput)), true - - case "Query.narrative": - if e.complexity.Query.Narrative == nil { - break - } - - args, err := ec.field_Query_narrative_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Narrative(childComplexity, args["id"].(string)), true - - case "Query.narrativeHistories": - if e.complexity.Query.NarrativeHistories == nil { - break - } - - args, err := ec.field_Query_narrativeHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.NarrativeHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NarrativeHistoryWhereInput)), true - - case "Query.narrativeSearch": - if e.complexity.Query.NarrativeSearch == nil { - break - } - - args, err := ec.field_Query_narrativeSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.NarrativeSearch(childComplexity, args["query"].(string)), true - - case "Query.narratives": - if e.complexity.Query.Narratives == nil { - break - } - - args, err := ec.field_Query_narratives_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Narratives(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NarrativeWhereInput)), true - - case "Query.node": - if e.complexity.Query.Node == nil { - break - } - - args, err := ec.field_Query_node_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Node(childComplexity, args["id"].(string)), true - - case "Query.nodes": - if e.complexity.Query.Nodes == nil { - break - } - - args, err := ec.field_Query_nodes_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Nodes(childComplexity, args["ids"].([]string)), true - - case "Query.noteHistories": - if e.complexity.Query.NoteHistories == nil { - break - } - - args, err := ec.field_Query_noteHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.NoteHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NoteHistoryWhereInput)), true - - case "Query.notes": - if e.complexity.Query.Notes == nil { - break - } - - args, err := ec.field_Query_notes_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Notes(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NoteWhereInput)), true - - case "Query.orgMembership": - if e.complexity.Query.OrgMembership == nil { - break - } - - args, err := ec.field_Query_orgMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrgMembership(childComplexity, args["id"].(string)), true - - case "Query.orgMembershipHistories": - if e.complexity.Query.OrgMembershipHistories == nil { - break - } - - args, err := ec.field_Query_orgMembershipHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrgMembershipHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgMembershipHistoryWhereInput)), true - - case "Query.orgMemberships": - if e.complexity.Query.OrgMemberships == nil { - break - } - - args, err := ec.field_Query_orgMemberships_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrgMemberships(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgMembershipWhereInput)), true - - case "Query.orgSubscription": - if e.complexity.Query.OrgSubscription == nil { - break - } - - args, err := ec.field_Query_orgSubscription_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrgSubscription(childComplexity, args["id"].(string)), true - - case "Query.orgSubscriptionHistories": - if e.complexity.Query.OrgSubscriptionHistories == nil { - break - } - - args, err := ec.field_Query_orgSubscriptionHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrgSubscriptionHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgSubscriptionHistoryWhereInput)), true - - case "Query.orgSubscriptionSearch": - if e.complexity.Query.OrgSubscriptionSearch == nil { - break - } - - args, err := ec.field_Query_orgSubscriptionSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrgSubscriptionSearch(childComplexity, args["query"].(string)), true - - case "Query.orgSubscriptions": - if e.complexity.Query.OrgSubscriptions == nil { - break - } - - args, err := ec.field_Query_orgSubscriptions_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrgSubscriptions(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgSubscriptionWhereInput)), true - - case "Query.organization": - if e.complexity.Query.Organization == nil { - break - } - - args, err := ec.field_Query_organization_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Organization(childComplexity, args["id"].(string)), true - - case "Query.organizationHistories": - if e.complexity.Query.OrganizationHistories == nil { - break - } - - args, err := ec.field_Query_organizationHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrganizationHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.OrganizationHistoryOrder), args["where"].(*generated.OrganizationHistoryWhereInput)), true - - case "Query.organizationSearch": - if e.complexity.Query.OrganizationSearch == nil { - break - } - - args, err := ec.field_Query_organizationSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrganizationSearch(childComplexity, args["query"].(string)), true - - case "Query.organizationSetting": - if e.complexity.Query.OrganizationSetting == nil { - break - } - - args, err := ec.field_Query_organizationSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrganizationSetting(childComplexity, args["id"].(string)), true - - case "Query.organizationSettingHistories": - if e.complexity.Query.OrganizationSettingHistories == nil { - break - } - - args, err := ec.field_Query_organizationSettingHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrganizationSettingHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrganizationSettingHistoryWhereInput)), true - - case "Query.organizationSettingSearch": - if e.complexity.Query.OrganizationSettingSearch == nil { - break - } - - args, err := ec.field_Query_organizationSettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrganizationSettingSearch(childComplexity, args["query"].(string)), true - - case "Query.organizationSettings": - if e.complexity.Query.OrganizationSettings == nil { - break - } - - args, err := ec.field_Query_organizationSettings_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.OrganizationSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrganizationSettingWhereInput)), true - - case "Query.organizations": - if e.complexity.Query.Organizations == nil { - break - } - - args, err := ec.field_Query_organizations_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Organizations(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.OrganizationOrder), args["where"].(*generated.OrganizationWhereInput)), true - - case "Query.personalAccessToken": - if e.complexity.Query.PersonalAccessToken == nil { - break - } - - args, err := ec.field_Query_personalAccessToken_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PersonalAccessToken(childComplexity, args["id"].(string)), true - - case "Query.personalAccessTokenSearch": - if e.complexity.Query.PersonalAccessTokenSearch == nil { - break - } - - args, err := ec.field_Query_personalAccessTokenSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PersonalAccessTokenSearch(childComplexity, args["query"].(string)), true - - case "Query.personalAccessTokens": - if e.complexity.Query.PersonalAccessTokens == nil { - break - } - - args, err := ec.field_Query_personalAccessTokens_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.PersonalAccessTokens(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.PersonalAccessTokenWhereInput)), true - - case "Query.procedure": - if e.complexity.Query.Procedure == nil { - break - } - - args, err := ec.field_Query_procedure_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Procedure(childComplexity, args["id"].(string)), true - - case "Query.procedureHistories": - if e.complexity.Query.ProcedureHistories == nil { - break - } - - args, err := ec.field_Query_procedureHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ProcedureHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProcedureHistoryWhereInput)), true - - case "Query.procedureSearch": - if e.complexity.Query.ProcedureSearch == nil { - break - } - - args, err := ec.field_Query_procedureSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ProcedureSearch(childComplexity, args["query"].(string)), true - - case "Query.procedures": - if e.complexity.Query.Procedures == nil { - break - } - - args, err := ec.field_Query_procedures_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Procedures(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProcedureWhereInput)), true - - case "Query.program": - if e.complexity.Query.Program == nil { - break - } - - args, err := ec.field_Query_program_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Program(childComplexity, args["id"].(string)), true - - case "Query.programHistories": - if e.complexity.Query.ProgramHistories == nil { - break - } - - args, err := ec.field_Query_programHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ProgramHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramHistoryWhereInput)), true - - case "Query.programMembership": - if e.complexity.Query.ProgramMembership == nil { - break - } - - args, err := ec.field_Query_programMembership_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ProgramMembership(childComplexity, args["id"].(string)), true - - case "Query.programMembershipHistories": - if e.complexity.Query.ProgramMembershipHistories == nil { - break - } - - args, err := ec.field_Query_programMembershipHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ProgramMembershipHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramMembershipHistoryWhereInput)), true - - case "Query.programMemberships": - if e.complexity.Query.ProgramMemberships == nil { - break - } - - args, err := ec.field_Query_programMemberships_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ProgramMemberships(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramMembershipWhereInput)), true - - case "Query.programSearch": - if e.complexity.Query.ProgramSearch == nil { - break - } - - args, err := ec.field_Query_programSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.ProgramSearch(childComplexity, args["query"].(string)), true - - case "Query.programs": - if e.complexity.Query.Programs == nil { - break - } - - args, err := ec.field_Query_programs_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Programs(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramWhereInput)), true - - case "Query.risk": - if e.complexity.Query.Risk == nil { - break - } - - args, err := ec.field_Query_risk_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Risk(childComplexity, args["id"].(string)), true - - case "Query.riskHistories": - if e.complexity.Query.RiskHistories == nil { - break - } - - args, err := ec.field_Query_riskHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.RiskHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.RiskHistoryWhereInput)), true - - case "Query.riskSearch": - if e.complexity.Query.RiskSearch == nil { - break - } - - args, err := ec.field_Query_riskSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.RiskSearch(childComplexity, args["query"].(string)), true - - case "Query.risks": - if e.complexity.Query.Risks == nil { - break - } - - args, err := ec.field_Query_risks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Risks(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.RiskWhereInput)), true - - case "Query.search": - if e.complexity.Query.Search == nil { - break - } - - args, err := ec.field_Query_search_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Search(childComplexity, args["query"].(string)), true - - case "Query.standard": - if e.complexity.Query.Standard == nil { - break - } - - args, err := ec.field_Query_standard_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Standard(childComplexity, args["id"].(string)), true - - case "Query.standardHistories": - if e.complexity.Query.StandardHistories == nil { - break - } - - args, err := ec.field_Query_standardHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.StandardHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.StandardHistoryWhereInput)), true - - case "Query.standardSearch": - if e.complexity.Query.StandardSearch == nil { - break - } - - args, err := ec.field_Query_standardSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.StandardSearch(childComplexity, args["query"].(string)), true - - case "Query.standards": - if e.complexity.Query.Standards == nil { - break - } - - args, err := ec.field_Query_standards_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Standards(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.StandardWhereInput)), true - - case "Query.subcontrol": - if e.complexity.Query.Subcontrol == nil { - break - } - - args, err := ec.field_Query_subcontrol_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Subcontrol(childComplexity, args["id"].(string)), true - - case "Query.subcontrolHistories": - if e.complexity.Query.SubcontrolHistories == nil { - break - } - - args, err := ec.field_Query_subcontrolHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.SubcontrolHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubcontrolHistoryWhereInput)), true - - case "Query.subcontrolSearch": - if e.complexity.Query.SubcontrolSearch == nil { - break - } - - args, err := ec.field_Query_subcontrolSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.SubcontrolSearch(childComplexity, args["query"].(string)), true - - case "Query.subcontrols": - if e.complexity.Query.Subcontrols == nil { - break - } - - args, err := ec.field_Query_subcontrols_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Subcontrols(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubcontrolWhereInput)), true - - case "Query.subscriber": - if e.complexity.Query.Subscriber == nil { - break - } - - args, err := ec.field_Query_subscriber_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Subscriber(childComplexity, args["email"].(string)), true - - case "Query.subscriberSearch": - if e.complexity.Query.SubscriberSearch == nil { - break - } - - args, err := ec.field_Query_subscriberSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.SubscriberSearch(childComplexity, args["query"].(string)), true - - case "Query.subscribers": - if e.complexity.Query.Subscribers == nil { - break - } - - args, err := ec.field_Query_subscribers_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Subscribers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubscriberWhereInput)), true - - case "Query.tFASettingSearch": - if e.complexity.Query.TFASettingSearch == nil { - break - } - - args, err := ec.field_Query_tFASettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TFASettingSearch(childComplexity, args["query"].(string)), true - - case "Query.task": - if e.complexity.Query.Task == nil { - break - } - - args, err := ec.field_Query_task_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Task(childComplexity, args["id"].(string)), true - - case "Query.taskHistories": - if e.complexity.Query.TaskHistories == nil { - break - } - - args, err := ec.field_Query_taskHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TaskHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.TaskHistoryWhereInput)), true - - case "Query.taskSearch": - if e.complexity.Query.TaskSearch == nil { - break - } - - args, err := ec.field_Query_taskSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TaskSearch(childComplexity, args["query"].(string)), true - - case "Query.tasks": - if e.complexity.Query.Tasks == nil { - break - } - - args, err := ec.field_Query_tasks_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Tasks(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.TaskWhereInput)), true - - case "Query.template": - if e.complexity.Query.Template == nil { - break - } - - args, err := ec.field_Query_template_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Template(childComplexity, args["id"].(string)), true - - case "Query.templateHistories": - if e.complexity.Query.TemplateHistories == nil { - break - } - - args, err := ec.field_Query_templateHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TemplateHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.TemplateHistoryOrder), args["where"].(*generated.TemplateHistoryWhereInput)), true - - case "Query.templateSearch": - if e.complexity.Query.TemplateSearch == nil { - break - } - - args, err := ec.field_Query_templateSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TemplateSearch(childComplexity, args["query"].(string)), true - - case "Query.templates": - if e.complexity.Query.Templates == nil { - break - } - - args, err := ec.field_Query_templates_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Templates(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.TemplateOrder), args["where"].(*generated.TemplateWhereInput)), true - - case "Query.tfaSetting": - if e.complexity.Query.TfaSetting == nil { - break - } - - args, err := ec.field_Query_tfaSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TfaSetting(childComplexity, args["id"].(*string)), true - - case "Query.tfaSettings": - if e.complexity.Query.TfaSettings == nil { - break - } - - args, err := ec.field_Query_tfaSettings_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.TfaSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.TFASettingWhereInput)), true - - case "Query.user": - if e.complexity.Query.User == nil { - break - } - - args, err := ec.field_Query_user_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.User(childComplexity, args["id"].(string)), true - - case "Query.userHistories": - if e.complexity.Query.UserHistories == nil { - break - } - - args, err := ec.field_Query_userHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.UserHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.UserHistoryOrder), args["where"].(*generated.UserHistoryWhereInput)), true - - case "Query.userSearch": - if e.complexity.Query.UserSearch == nil { - break - } - - args, err := ec.field_Query_userSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.UserSearch(childComplexity, args["query"].(string)), true - - case "Query.userSetting": - if e.complexity.Query.UserSetting == nil { - break - } - - args, err := ec.field_Query_userSetting_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.UserSetting(childComplexity, args["id"].(string)), true - - case "Query.userSettingHistories": - if e.complexity.Query.UserSettingHistories == nil { - break - } - - args, err := ec.field_Query_userSettingHistories_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.UserSettingHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.UserSettingHistoryWhereInput)), true - - case "Query.userSettingSearch": - if e.complexity.Query.UserSettingSearch == nil { - break - } - - args, err := ec.field_Query_userSettingSearch_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.UserSettingSearch(childComplexity, args["query"].(string)), true - - case "Query.userSettings": - if e.complexity.Query.UserSettings == nil { - break - } - - args, err := ec.field_Query_userSettings_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.UserSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.UserSettingWhereInput)), true - - case "Query.users": - if e.complexity.Query.Users == nil { - break - } - - args, err := ec.field_Query_users_args(context.TODO(), rawArgs) - if err != nil { - return 0, false - } - - return e.complexity.Query.Users(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.UserOrder), args["where"].(*generated.UserWhereInput)), true - - case "Risk.actionPlans": - if e.complexity.Risk.ActionPlans == nil { - break - } - - return e.complexity.Risk.ActionPlans(childComplexity), true - - case "Risk.blockedGroups": - if e.complexity.Risk.BlockedGroups == nil { - break - } - - return e.complexity.Risk.BlockedGroups(childComplexity), true - - case "Risk.businessCosts": - if e.complexity.Risk.BusinessCosts == nil { - break - } - - return e.complexity.Risk.BusinessCosts(childComplexity), true - - case "Risk.control": - if e.complexity.Risk.Control == nil { - break - } - - return e.complexity.Risk.Control(childComplexity), true - - case "Risk.createdAt": - if e.complexity.Risk.CreatedAt == nil { - break - } - - return e.complexity.Risk.CreatedAt(childComplexity), true - - case "Risk.createdBy": - if e.complexity.Risk.CreatedBy == nil { - break - } - - return e.complexity.Risk.CreatedBy(childComplexity), true - - case "Risk.deletedAt": - if e.complexity.Risk.DeletedAt == nil { - break - } - - return e.complexity.Risk.DeletedAt(childComplexity), true - - case "Risk.deletedBy": - if e.complexity.Risk.DeletedBy == nil { - break - } - - return e.complexity.Risk.DeletedBy(childComplexity), true - - case "Risk.description": - if e.complexity.Risk.Description == nil { - break - } - - return e.complexity.Risk.Description(childComplexity), true - - case "Risk.details": - if e.complexity.Risk.Details == nil { - break - } - - return e.complexity.Risk.Details(childComplexity), true - - case "Risk.editors": - if e.complexity.Risk.Editors == nil { - break - } - - return e.complexity.Risk.Editors(childComplexity), true - - case "Risk.id": - if e.complexity.Risk.ID == nil { - break - } - - return e.complexity.Risk.ID(childComplexity), true - - case "Risk.impact": - if e.complexity.Risk.Impact == nil { - break - } - - return e.complexity.Risk.Impact(childComplexity), true - - case "Risk.likelihood": - if e.complexity.Risk.Likelihood == nil { - break - } - - return e.complexity.Risk.Likelihood(childComplexity), true - - case "Risk.mitigation": - if e.complexity.Risk.Mitigation == nil { - break - } - - return e.complexity.Risk.Mitigation(childComplexity), true - - case "Risk.name": - if e.complexity.Risk.Name == nil { - break - } - - return e.complexity.Risk.Name(childComplexity), true - - case "Risk.owner": - if e.complexity.Risk.Owner == nil { - break - } - - return e.complexity.Risk.Owner(childComplexity), true - - case "Risk.ownerID": - if e.complexity.Risk.OwnerID == nil { - break - } - - return e.complexity.Risk.OwnerID(childComplexity), true - - case "Risk.procedure": - if e.complexity.Risk.Procedure == nil { - break - } - - return e.complexity.Risk.Procedure(childComplexity), true - - case "Risk.programs": - if e.complexity.Risk.Programs == nil { - break - } - - return e.complexity.Risk.Programs(childComplexity), true - - case "Risk.riskType": - if e.complexity.Risk.RiskType == nil { - break - } - - return e.complexity.Risk.RiskType(childComplexity), true - - case "Risk.satisfies": - if e.complexity.Risk.Satisfies == nil { - break - } - - return e.complexity.Risk.Satisfies(childComplexity), true - - case "Risk.status": - if e.complexity.Risk.Status == nil { - break - } - - return e.complexity.Risk.Status(childComplexity), true - - case "Risk.tags": - if e.complexity.Risk.Tags == nil { - break - } - - return e.complexity.Risk.Tags(childComplexity), true - - case "Risk.updatedAt": - if e.complexity.Risk.UpdatedAt == nil { - break - } - - return e.complexity.Risk.UpdatedAt(childComplexity), true - - case "Risk.updatedBy": - if e.complexity.Risk.UpdatedBy == nil { - break - } - - return e.complexity.Risk.UpdatedBy(childComplexity), true - - case "Risk.viewers": - if e.complexity.Risk.Viewers == nil { - break - } - - return e.complexity.Risk.Viewers(childComplexity), true - - case "RiskBulkCreatePayload.risks": - if e.complexity.RiskBulkCreatePayload.Risks == nil { - break - } - - return e.complexity.RiskBulkCreatePayload.Risks(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 "RiskCreatePayload.risk": - if e.complexity.RiskCreatePayload.Risk == nil { - break - } - - return e.complexity.RiskCreatePayload.Risk(childComplexity), true - - case "RiskDeletePayload.deletedID": - if e.complexity.RiskDeletePayload.DeletedID == nil { - break - } - - return e.complexity.RiskDeletePayload.DeletedID(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 "RiskHistory.businessCosts": - if e.complexity.RiskHistory.BusinessCosts == nil { - break - } - - return e.complexity.RiskHistory.BusinessCosts(childComplexity), true - - case "RiskHistory.createdAt": - if e.complexity.RiskHistory.CreatedAt == nil { - break - } - - return e.complexity.RiskHistory.CreatedAt(childComplexity), true - - case "RiskHistory.createdBy": - if e.complexity.RiskHistory.CreatedBy == nil { - break - } - - return e.complexity.RiskHistory.CreatedBy(childComplexity), true - - case "RiskHistory.deletedAt": - if e.complexity.RiskHistory.DeletedAt == nil { - break - } - - return e.complexity.RiskHistory.DeletedAt(childComplexity), true - - case "RiskHistory.deletedBy": - if e.complexity.RiskHistory.DeletedBy == nil { - break - } - - return e.complexity.RiskHistory.DeletedBy(childComplexity), true - - case "RiskHistory.description": - if e.complexity.RiskHistory.Description == nil { - break - } - - return e.complexity.RiskHistory.Description(childComplexity), true - - case "RiskHistory.details": - if e.complexity.RiskHistory.Details == nil { - break - } - - return e.complexity.RiskHistory.Details(childComplexity), true - - case "RiskHistory.historyTime": - if e.complexity.RiskHistory.HistoryTime == nil { - break - } - - return e.complexity.RiskHistory.HistoryTime(childComplexity), true - - case "RiskHistory.id": - if e.complexity.RiskHistory.ID == nil { - break - } - - return e.complexity.RiskHistory.ID(childComplexity), true - - case "RiskHistory.impact": - if e.complexity.RiskHistory.Impact == nil { - break - } - - return e.complexity.RiskHistory.Impact(childComplexity), true - - case "RiskHistory.likelihood": - if e.complexity.RiskHistory.Likelihood == nil { - break - } - - return e.complexity.RiskHistory.Likelihood(childComplexity), true - - case "RiskHistory.mitigation": - if e.complexity.RiskHistory.Mitigation == nil { - break - } - - return e.complexity.RiskHistory.Mitigation(childComplexity), true - - case "RiskHistory.name": - if e.complexity.RiskHistory.Name == nil { - break - } - - return e.complexity.RiskHistory.Name(childComplexity), true - - case "RiskHistory.operation": - if e.complexity.RiskHistory.Operation == nil { - break - } - - return e.complexity.RiskHistory.Operation(childComplexity), true - - case "RiskHistory.ownerID": - if e.complexity.RiskHistory.OwnerID == nil { - break - } - - return e.complexity.RiskHistory.OwnerID(childComplexity), true - - case "RiskHistory.ref": - if e.complexity.RiskHistory.Ref == nil { - break - } - - return e.complexity.RiskHistory.Ref(childComplexity), true - - case "RiskHistory.riskType": - if e.complexity.RiskHistory.RiskType == nil { - break - } - - return e.complexity.RiskHistory.RiskType(childComplexity), true - - case "RiskHistory.satisfies": - if e.complexity.RiskHistory.Satisfies == nil { - break - } - - return e.complexity.RiskHistory.Satisfies(childComplexity), true - - case "RiskHistory.status": - if e.complexity.RiskHistory.Status == nil { - break - } - - return e.complexity.RiskHistory.Status(childComplexity), true - - case "RiskHistory.tags": - if e.complexity.RiskHistory.Tags == nil { - break - } - - return e.complexity.RiskHistory.Tags(childComplexity), true - - case "RiskHistory.updatedAt": - if e.complexity.RiskHistory.UpdatedAt == nil { - break - } - - return e.complexity.RiskHistory.UpdatedAt(childComplexity), true - - case "RiskHistory.updatedBy": - if e.complexity.RiskHistory.UpdatedBy == nil { - break - } - - return e.complexity.RiskHistory.UpdatedBy(childComplexity), true - - case "RiskHistoryConnection.edges": - if e.complexity.RiskHistoryConnection.Edges == nil { - break - } - - return e.complexity.RiskHistoryConnection.Edges(childComplexity), true - - case "RiskHistoryConnection.pageInfo": - if e.complexity.RiskHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.RiskHistoryConnection.PageInfo(childComplexity), true - - case "RiskHistoryConnection.totalCount": - if e.complexity.RiskHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.RiskHistoryConnection.TotalCount(childComplexity), true - - case "RiskHistoryEdge.cursor": - if e.complexity.RiskHistoryEdge.Cursor == nil { - break - } - - return e.complexity.RiskHistoryEdge.Cursor(childComplexity), true - - case "RiskHistoryEdge.node": - if e.complexity.RiskHistoryEdge.Node == nil { - break - } - - return e.complexity.RiskHistoryEdge.Node(childComplexity), true - - case "RiskSearchResult.risks": - if e.complexity.RiskSearchResult.Risks == nil { - break - } - - return e.complexity.RiskSearchResult.Risks(childComplexity), true - - case "RiskUpdatePayload.risk": - if e.complexity.RiskUpdatePayload.Risk == nil { - break - } - - return e.complexity.RiskUpdatePayload.Risk(childComplexity), true - - case "SearchResultConnection.nodes": - if e.complexity.SearchResultConnection.Nodes == nil { - break - } - - return e.complexity.SearchResultConnection.Nodes(childComplexity), true - - case "SearchResultConnection.page": - if e.complexity.SearchResultConnection.Page == nil { - break - } - - return e.complexity.SearchResultConnection.Page(childComplexity), true - - case "Standard.actionPlans": - if e.complexity.Standard.ActionPlans == nil { - break - } - - return e.complexity.Standard.ActionPlans(childComplexity), true - - case "Standard.background": - if e.complexity.Standard.Background == nil { - break - } - - return e.complexity.Standard.Background(childComplexity), true - - case "Standard.controlObjectives": - if e.complexity.Standard.ControlObjectives == nil { - break - } - - return e.complexity.Standard.ControlObjectives(childComplexity), true - - case "Standard.controls": - if e.complexity.Standard.Controls == nil { - break - } - - return e.complexity.Standard.Controls(childComplexity), true - - case "Standard.createdAt": - if e.complexity.Standard.CreatedAt == nil { - break - } - - return e.complexity.Standard.CreatedAt(childComplexity), true - - case "Standard.createdBy": - if e.complexity.Standard.CreatedBy == nil { - break - } - - return e.complexity.Standard.CreatedBy(childComplexity), true - - case "Standard.deletedAt": - if e.complexity.Standard.DeletedAt == nil { - break - } - - return e.complexity.Standard.DeletedAt(childComplexity), true - - case "Standard.deletedBy": - if e.complexity.Standard.DeletedBy == nil { - break - } - - return e.complexity.Standard.DeletedBy(childComplexity), true - - case "Standard.description": - if e.complexity.Standard.Description == nil { - break - } - - return e.complexity.Standard.Description(childComplexity), true - - case "Standard.details": - if e.complexity.Standard.Details == nil { - break - } - - return e.complexity.Standard.Details(childComplexity), true - - case "Standard.family": - if e.complexity.Standard.Family == nil { - break - } - - return e.complexity.Standard.Family(childComplexity), true - - case "Standard.id": - if e.complexity.Standard.ID == nil { - break - } - - return e.complexity.Standard.ID(childComplexity), true - - case "Standard.name": - if e.complexity.Standard.Name == nil { - break - } - - return e.complexity.Standard.Name(childComplexity), true - - case "Standard.procedures": - if e.complexity.Standard.Procedures == nil { - break - } - - return e.complexity.Standard.Procedures(childComplexity), true - - case "Standard.programs": - if e.complexity.Standard.Programs == nil { - break - } - - return e.complexity.Standard.Programs(childComplexity), true - - case "Standard.purposeAndScope": - if e.complexity.Standard.PurposeAndScope == nil { - break - } - - return e.complexity.Standard.PurposeAndScope(childComplexity), true - - case "Standard.satisfies": - if e.complexity.Standard.Satisfies == nil { - break - } - - return e.complexity.Standard.Satisfies(childComplexity), true - - case "Standard.standardType": - if e.complexity.Standard.StandardType == nil { - break - } - - return e.complexity.Standard.StandardType(childComplexity), true - - case "Standard.status": - if e.complexity.Standard.Status == nil { - break - } - - return e.complexity.Standard.Status(childComplexity), true - - case "Standard.tags": - if e.complexity.Standard.Tags == nil { - break - } - - return e.complexity.Standard.Tags(childComplexity), true - - case "Standard.updatedAt": - if e.complexity.Standard.UpdatedAt == nil { - break - } - - return e.complexity.Standard.UpdatedAt(childComplexity), true - - case "Standard.updatedBy": - if e.complexity.Standard.UpdatedBy == nil { - break - } - - return e.complexity.Standard.UpdatedBy(childComplexity), true - - case "Standard.version": - if e.complexity.Standard.Version == nil { - break - } - - return e.complexity.Standard.Version(childComplexity), true - - case "StandardBulkCreatePayload.standards": - if e.complexity.StandardBulkCreatePayload.Standards == nil { - break - } - - return e.complexity.StandardBulkCreatePayload.Standards(childComplexity), true - - case "StandardConnection.edges": - if e.complexity.StandardConnection.Edges == nil { - break - } - - return e.complexity.StandardConnection.Edges(childComplexity), true - - case "StandardConnection.pageInfo": - if e.complexity.StandardConnection.PageInfo == nil { - break - } - - return e.complexity.StandardConnection.PageInfo(childComplexity), true - - case "StandardConnection.totalCount": - if e.complexity.StandardConnection.TotalCount == nil { - break - } - - return e.complexity.StandardConnection.TotalCount(childComplexity), true - - case "StandardCreatePayload.standard": - if e.complexity.StandardCreatePayload.Standard == nil { - break - } - - return e.complexity.StandardCreatePayload.Standard(childComplexity), true - - case "StandardDeletePayload.deletedID": - if e.complexity.StandardDeletePayload.DeletedID == nil { - break - } - - return e.complexity.StandardDeletePayload.DeletedID(childComplexity), true - - case "StandardEdge.cursor": - if e.complexity.StandardEdge.Cursor == nil { - break - } - - return e.complexity.StandardEdge.Cursor(childComplexity), true - - case "StandardEdge.node": - if e.complexity.StandardEdge.Node == nil { - break - } - - return e.complexity.StandardEdge.Node(childComplexity), true - - case "StandardHistory.background": - if e.complexity.StandardHistory.Background == nil { - break - } - - return e.complexity.StandardHistory.Background(childComplexity), true - - case "StandardHistory.createdAt": - if e.complexity.StandardHistory.CreatedAt == nil { - break - } - - return e.complexity.StandardHistory.CreatedAt(childComplexity), true - - case "StandardHistory.createdBy": - if e.complexity.StandardHistory.CreatedBy == nil { - break - } - - return e.complexity.StandardHistory.CreatedBy(childComplexity), true - - case "StandardHistory.deletedAt": - if e.complexity.StandardHistory.DeletedAt == nil { - break - } - - return e.complexity.StandardHistory.DeletedAt(childComplexity), true - - case "StandardHistory.deletedBy": - if e.complexity.StandardHistory.DeletedBy == nil { - break - } - - return e.complexity.StandardHistory.DeletedBy(childComplexity), true - - case "StandardHistory.description": - if e.complexity.StandardHistory.Description == nil { - break - } - - return e.complexity.StandardHistory.Description(childComplexity), true - - case "StandardHistory.details": - if e.complexity.StandardHistory.Details == nil { - break - } - - return e.complexity.StandardHistory.Details(childComplexity), true - - case "StandardHistory.family": - if e.complexity.StandardHistory.Family == nil { - break - } - - return e.complexity.StandardHistory.Family(childComplexity), true - - case "StandardHistory.historyTime": - if e.complexity.StandardHistory.HistoryTime == nil { - break - } - - return e.complexity.StandardHistory.HistoryTime(childComplexity), true - - case "StandardHistory.id": - if e.complexity.StandardHistory.ID == nil { - break - } - - return e.complexity.StandardHistory.ID(childComplexity), true - - case "StandardHistory.name": - if e.complexity.StandardHistory.Name == nil { - break - } - - return e.complexity.StandardHistory.Name(childComplexity), true - - case "StandardHistory.operation": - if e.complexity.StandardHistory.Operation == nil { - break - } - - return e.complexity.StandardHistory.Operation(childComplexity), true - - case "StandardHistory.purposeAndScope": - if e.complexity.StandardHistory.PurposeAndScope == nil { - break - } - - return e.complexity.StandardHistory.PurposeAndScope(childComplexity), true - - case "StandardHistory.ref": - if e.complexity.StandardHistory.Ref == nil { - break - } - - return e.complexity.StandardHistory.Ref(childComplexity), true - - case "StandardHistory.satisfies": - if e.complexity.StandardHistory.Satisfies == nil { - break - } - - return e.complexity.StandardHistory.Satisfies(childComplexity), true - - case "StandardHistory.standardType": - if e.complexity.StandardHistory.StandardType == nil { - break - } - - return e.complexity.StandardHistory.StandardType(childComplexity), true - - case "StandardHistory.status": - if e.complexity.StandardHistory.Status == nil { - break - } - - return e.complexity.StandardHistory.Status(childComplexity), true - - case "StandardHistory.tags": - if e.complexity.StandardHistory.Tags == nil { - break - } - - return e.complexity.StandardHistory.Tags(childComplexity), true - - case "StandardHistory.updatedAt": - if e.complexity.StandardHistory.UpdatedAt == nil { - break - } - - return e.complexity.StandardHistory.UpdatedAt(childComplexity), true - - case "StandardHistory.updatedBy": - if e.complexity.StandardHistory.UpdatedBy == nil { - break - } - - return e.complexity.StandardHistory.UpdatedBy(childComplexity), true - - case "StandardHistory.version": - if e.complexity.StandardHistory.Version == nil { - break - } - - return e.complexity.StandardHistory.Version(childComplexity), true - - case "StandardHistoryConnection.edges": - if e.complexity.StandardHistoryConnection.Edges == nil { - break - } - - return e.complexity.StandardHistoryConnection.Edges(childComplexity), true - - case "StandardHistoryConnection.pageInfo": - if e.complexity.StandardHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.StandardHistoryConnection.PageInfo(childComplexity), true - - case "StandardHistoryConnection.totalCount": - if e.complexity.StandardHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.StandardHistoryConnection.TotalCount(childComplexity), true - - case "StandardHistoryEdge.cursor": - if e.complexity.StandardHistoryEdge.Cursor == nil { - break - } - - return e.complexity.StandardHistoryEdge.Cursor(childComplexity), true - - case "StandardHistoryEdge.node": - if e.complexity.StandardHistoryEdge.Node == nil { - break - } - - return e.complexity.StandardHistoryEdge.Node(childComplexity), true - - case "StandardSearchResult.standards": - if e.complexity.StandardSearchResult.Standards == nil { - break - } - - return e.complexity.StandardSearchResult.Standards(childComplexity), true - - case "StandardUpdatePayload.standard": - if e.complexity.StandardUpdatePayload.Standard == nil { - break - } - - return e.complexity.StandardUpdatePayload.Standard(childComplexity), true - - case "Subcontrol.class": - if e.complexity.Subcontrol.Class == nil { - break - } - - return e.complexity.Subcontrol.Class(childComplexity), true - - case "Subcontrol.controls": - if e.complexity.Subcontrol.Controls == nil { - break - } - - return e.complexity.Subcontrol.Controls(childComplexity), true - - case "Subcontrol.createdAt": - if e.complexity.Subcontrol.CreatedAt == nil { - break - } - - return e.complexity.Subcontrol.CreatedAt(childComplexity), true - - case "Subcontrol.createdBy": - if e.complexity.Subcontrol.CreatedBy == nil { - break - } - - return e.complexity.Subcontrol.CreatedBy(childComplexity), true - - case "Subcontrol.deletedAt": - if e.complexity.Subcontrol.DeletedAt == nil { - break - } - - return e.complexity.Subcontrol.DeletedAt(childComplexity), true - - case "Subcontrol.deletedBy": - if e.complexity.Subcontrol.DeletedBy == nil { - break - } - - return e.complexity.Subcontrol.DeletedBy(childComplexity), true - - case "Subcontrol.description": - if e.complexity.Subcontrol.Description == nil { - break - } - - return e.complexity.Subcontrol.Description(childComplexity), true - - case "Subcontrol.details": - if e.complexity.Subcontrol.Details == nil { - break - } - - return e.complexity.Subcontrol.Details(childComplexity), true - - case "Subcontrol.family": - if e.complexity.Subcontrol.Family == nil { - break - } - - return e.complexity.Subcontrol.Family(childComplexity), true - - case "Subcontrol.id": - if e.complexity.Subcontrol.ID == nil { - break - } - - return e.complexity.Subcontrol.ID(childComplexity), true - - case "Subcontrol.implementationDate": - if e.complexity.Subcontrol.ImplementationDate == nil { - break - } - - return e.complexity.Subcontrol.ImplementationDate(childComplexity), true - - case "Subcontrol.implementationEvidence": - if e.complexity.Subcontrol.ImplementationEvidence == nil { - break - } - - return e.complexity.Subcontrol.ImplementationEvidence(childComplexity), true - - case "Subcontrol.implementationStatus": - if e.complexity.Subcontrol.ImplementationStatus == nil { - break - } - - return e.complexity.Subcontrol.ImplementationStatus(childComplexity), true - - case "Subcontrol.implementationVerification": - if e.complexity.Subcontrol.ImplementationVerification == nil { - break - } - - return e.complexity.Subcontrol.ImplementationVerification(childComplexity), true - - case "Subcontrol.implementationVerificationDate": - if e.complexity.Subcontrol.ImplementationVerificationDate == nil { - break - } - - return e.complexity.Subcontrol.ImplementationVerificationDate(childComplexity), true - - case "Subcontrol.mappedFrameworks": - if e.complexity.Subcontrol.MappedFrameworks == nil { - break - } - - return e.complexity.Subcontrol.MappedFrameworks(childComplexity), true - - case "Subcontrol.name": - if e.complexity.Subcontrol.Name == nil { - break - } - - return e.complexity.Subcontrol.Name(childComplexity), true - - case "Subcontrol.notes": - if e.complexity.Subcontrol.Notes == nil { - break - } - - return e.complexity.Subcontrol.Notes(childComplexity), true - - case "Subcontrol.owner": - if e.complexity.Subcontrol.Owner == nil { - break - } - - return e.complexity.Subcontrol.Owner(childComplexity), true - - case "Subcontrol.ownerID": - if e.complexity.Subcontrol.OwnerID == nil { - break - } - - return e.complexity.Subcontrol.OwnerID(childComplexity), true - - case "Subcontrol.programs": - if e.complexity.Subcontrol.Programs == nil { - break - } - - return e.complexity.Subcontrol.Programs(childComplexity), true - - case "Subcontrol.source": - if e.complexity.Subcontrol.Source == nil { - break - } - - return e.complexity.Subcontrol.Source(childComplexity), true - - case "Subcontrol.status": - if e.complexity.Subcontrol.Status == nil { - break - } - - return e.complexity.Subcontrol.Status(childComplexity), true - - case "Subcontrol.subcontrolNumber": - if e.complexity.Subcontrol.SubcontrolNumber == nil { - break - } - - return e.complexity.Subcontrol.SubcontrolNumber(childComplexity), true - - case "Subcontrol.subcontrolType": - if e.complexity.Subcontrol.SubcontrolType == nil { - break - } - - return e.complexity.Subcontrol.SubcontrolType(childComplexity), true - - case "Subcontrol.tags": - if e.complexity.Subcontrol.Tags == nil { - break - } - - return e.complexity.Subcontrol.Tags(childComplexity), true - - case "Subcontrol.tasks": - if e.complexity.Subcontrol.Tasks == nil { - break - } - - return e.complexity.Subcontrol.Tasks(childComplexity), true - - case "Subcontrol.updatedAt": - if e.complexity.Subcontrol.UpdatedAt == nil { - break - } - - return e.complexity.Subcontrol.UpdatedAt(childComplexity), true - - case "Subcontrol.updatedBy": - if e.complexity.Subcontrol.UpdatedBy == nil { - break - } - - return e.complexity.Subcontrol.UpdatedBy(childComplexity), true - - case "Subcontrol.user": - if e.complexity.Subcontrol.User == nil { - break - } - - return e.complexity.Subcontrol.User(childComplexity), true - - case "Subcontrol.version": - if e.complexity.Subcontrol.Version == nil { - break - } - - return e.complexity.Subcontrol.Version(childComplexity), true - - case "SubcontrolBulkCreatePayload.subcontrols": - if e.complexity.SubcontrolBulkCreatePayload.Subcontrols == nil { - break - } - - return e.complexity.SubcontrolBulkCreatePayload.Subcontrols(childComplexity), true - - case "SubcontrolConnection.edges": - if e.complexity.SubcontrolConnection.Edges == nil { - break - } - - return e.complexity.SubcontrolConnection.Edges(childComplexity), true - - case "SubcontrolConnection.pageInfo": - if e.complexity.SubcontrolConnection.PageInfo == nil { - break - } - - return e.complexity.SubcontrolConnection.PageInfo(childComplexity), true - - case "SubcontrolConnection.totalCount": - if e.complexity.SubcontrolConnection.TotalCount == nil { - break - } - - return e.complexity.SubcontrolConnection.TotalCount(childComplexity), true - - case "SubcontrolCreatePayload.subcontrol": - if e.complexity.SubcontrolCreatePayload.Subcontrol == nil { - break - } - - return e.complexity.SubcontrolCreatePayload.Subcontrol(childComplexity), true - - case "SubcontrolDeletePayload.deletedID": - if e.complexity.SubcontrolDeletePayload.DeletedID == nil { - break - } - - return e.complexity.SubcontrolDeletePayload.DeletedID(childComplexity), true - - case "SubcontrolEdge.cursor": - if e.complexity.SubcontrolEdge.Cursor == nil { - break - } - - return e.complexity.SubcontrolEdge.Cursor(childComplexity), true - - case "SubcontrolEdge.node": - if e.complexity.SubcontrolEdge.Node == nil { - break - } - - return e.complexity.SubcontrolEdge.Node(childComplexity), true - - case "SubcontrolHistory.class": - if e.complexity.SubcontrolHistory.Class == nil { - break - } - - return e.complexity.SubcontrolHistory.Class(childComplexity), true - - case "SubcontrolHistory.createdAt": - if e.complexity.SubcontrolHistory.CreatedAt == nil { - break - } - - return e.complexity.SubcontrolHistory.CreatedAt(childComplexity), true - - case "SubcontrolHistory.createdBy": - if e.complexity.SubcontrolHistory.CreatedBy == nil { - break - } - - return e.complexity.SubcontrolHistory.CreatedBy(childComplexity), true - - case "SubcontrolHistory.deletedAt": - if e.complexity.SubcontrolHistory.DeletedAt == nil { - break - } - - return e.complexity.SubcontrolHistory.DeletedAt(childComplexity), true - - case "SubcontrolHistory.deletedBy": - if e.complexity.SubcontrolHistory.DeletedBy == nil { - break - } - - return e.complexity.SubcontrolHistory.DeletedBy(childComplexity), true - - case "SubcontrolHistory.description": - if e.complexity.SubcontrolHistory.Description == nil { - break - } - - return e.complexity.SubcontrolHistory.Description(childComplexity), true - - case "SubcontrolHistory.details": - if e.complexity.SubcontrolHistory.Details == nil { - break - } - - return e.complexity.SubcontrolHistory.Details(childComplexity), true - - case "SubcontrolHistory.family": - if e.complexity.SubcontrolHistory.Family == nil { - break - } - - return e.complexity.SubcontrolHistory.Family(childComplexity), true - - case "SubcontrolHistory.historyTime": - if e.complexity.SubcontrolHistory.HistoryTime == nil { - break - } - - return e.complexity.SubcontrolHistory.HistoryTime(childComplexity), true - - case "SubcontrolHistory.id": - if e.complexity.SubcontrolHistory.ID == nil { - break - } - - return e.complexity.SubcontrolHistory.ID(childComplexity), true - - case "SubcontrolHistory.implementationDate": - if e.complexity.SubcontrolHistory.ImplementationDate == nil { - break - } - - return e.complexity.SubcontrolHistory.ImplementationDate(childComplexity), true - - case "SubcontrolHistory.implementationEvidence": - if e.complexity.SubcontrolHistory.ImplementationEvidence == nil { - break - } - - return e.complexity.SubcontrolHistory.ImplementationEvidence(childComplexity), true - - case "SubcontrolHistory.implementationStatus": - if e.complexity.SubcontrolHistory.ImplementationStatus == nil { - break - } - - return e.complexity.SubcontrolHistory.ImplementationStatus(childComplexity), true - - case "SubcontrolHistory.implementationVerification": - if e.complexity.SubcontrolHistory.ImplementationVerification == nil { - break - } - - return e.complexity.SubcontrolHistory.ImplementationVerification(childComplexity), true - - case "SubcontrolHistory.implementationVerificationDate": - if e.complexity.SubcontrolHistory.ImplementationVerificationDate == nil { - break - } - - return e.complexity.SubcontrolHistory.ImplementationVerificationDate(childComplexity), true - - case "SubcontrolHistory.mappedFrameworks": - if e.complexity.SubcontrolHistory.MappedFrameworks == nil { - break - } - - return e.complexity.SubcontrolHistory.MappedFrameworks(childComplexity), true - - case "SubcontrolHistory.name": - if e.complexity.SubcontrolHistory.Name == nil { - break - } - - return e.complexity.SubcontrolHistory.Name(childComplexity), true - - case "SubcontrolHistory.operation": - if e.complexity.SubcontrolHistory.Operation == nil { - break - } - - return e.complexity.SubcontrolHistory.Operation(childComplexity), true - - case "SubcontrolHistory.ownerID": - if e.complexity.SubcontrolHistory.OwnerID == nil { - break - } - - return e.complexity.SubcontrolHistory.OwnerID(childComplexity), true - - case "SubcontrolHistory.ref": - if e.complexity.SubcontrolHistory.Ref == nil { - break - } - - return e.complexity.SubcontrolHistory.Ref(childComplexity), true - - case "SubcontrolHistory.source": - if e.complexity.SubcontrolHistory.Source == nil { - break - } - - return e.complexity.SubcontrolHistory.Source(childComplexity), true - - case "SubcontrolHistory.status": - if e.complexity.SubcontrolHistory.Status == nil { - break - } - - return e.complexity.SubcontrolHistory.Status(childComplexity), true - - case "SubcontrolHistory.subcontrolNumber": - if e.complexity.SubcontrolHistory.SubcontrolNumber == nil { - break - } - - return e.complexity.SubcontrolHistory.SubcontrolNumber(childComplexity), true - - case "SubcontrolHistory.subcontrolType": - if e.complexity.SubcontrolHistory.SubcontrolType == nil { - break - } - - return e.complexity.SubcontrolHistory.SubcontrolType(childComplexity), true - - case "SubcontrolHistory.tags": - if e.complexity.SubcontrolHistory.Tags == nil { - break - } - - return e.complexity.SubcontrolHistory.Tags(childComplexity), true - - case "SubcontrolHistory.updatedAt": - if e.complexity.SubcontrolHistory.UpdatedAt == nil { - break - } - - return e.complexity.SubcontrolHistory.UpdatedAt(childComplexity), true - - case "SubcontrolHistory.updatedBy": - if e.complexity.SubcontrolHistory.UpdatedBy == nil { - break - } - - return e.complexity.SubcontrolHistory.UpdatedBy(childComplexity), true - - case "SubcontrolHistory.version": - if e.complexity.SubcontrolHistory.Version == nil { - break - } - - return e.complexity.SubcontrolHistory.Version(childComplexity), true - - case "SubcontrolHistoryConnection.edges": - if e.complexity.SubcontrolHistoryConnection.Edges == nil { - break - } - - return e.complexity.SubcontrolHistoryConnection.Edges(childComplexity), true - - case "SubcontrolHistoryConnection.pageInfo": - if e.complexity.SubcontrolHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.SubcontrolHistoryConnection.PageInfo(childComplexity), true - - case "SubcontrolHistoryConnection.totalCount": - if e.complexity.SubcontrolHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.SubcontrolHistoryConnection.TotalCount(childComplexity), true - - case "SubcontrolHistoryEdge.cursor": - if e.complexity.SubcontrolHistoryEdge.Cursor == nil { - break - } - - return e.complexity.SubcontrolHistoryEdge.Cursor(childComplexity), true - - case "SubcontrolHistoryEdge.node": - if e.complexity.SubcontrolHistoryEdge.Node == nil { - break - } - - return e.complexity.SubcontrolHistoryEdge.Node(childComplexity), true - - case "SubcontrolSearchResult.subcontrols": - if e.complexity.SubcontrolSearchResult.Subcontrols == nil { - break - } - - return e.complexity.SubcontrolSearchResult.Subcontrols(childComplexity), true - - case "SubcontrolUpdatePayload.subcontrol": - if e.complexity.SubcontrolUpdatePayload.Subcontrol == nil { - break - } - - return e.complexity.SubcontrolUpdatePayload.Subcontrol(childComplexity), true - - case "Subscriber.active": - if e.complexity.Subscriber.Active == nil { - break - } - - return e.complexity.Subscriber.Active(childComplexity), true - - case "Subscriber.createdAt": - if e.complexity.Subscriber.CreatedAt == nil { - break - } - - return e.complexity.Subscriber.CreatedAt(childComplexity), true - - case "Subscriber.createdBy": - if e.complexity.Subscriber.CreatedBy == nil { - break - } - - return e.complexity.Subscriber.CreatedBy(childComplexity), true - - case "Subscriber.deletedAt": - if e.complexity.Subscriber.DeletedAt == nil { - break - } - - return e.complexity.Subscriber.DeletedAt(childComplexity), true - - case "Subscriber.deletedBy": - if e.complexity.Subscriber.DeletedBy == nil { - break - } - - return e.complexity.Subscriber.DeletedBy(childComplexity), true - - case "Subscriber.email": - if e.complexity.Subscriber.Email == nil { - break - } - - return e.complexity.Subscriber.Email(childComplexity), true - - case "Subscriber.events": - if e.complexity.Subscriber.Events == nil { - break - } - - return e.complexity.Subscriber.Events(childComplexity), true - - case "Subscriber.id": - if e.complexity.Subscriber.ID == nil { - break - } - - return e.complexity.Subscriber.ID(childComplexity), true - - case "Subscriber.owner": - if e.complexity.Subscriber.Owner == nil { - break - } - - return e.complexity.Subscriber.Owner(childComplexity), true - - case "Subscriber.ownerID": - if e.complexity.Subscriber.OwnerID == nil { - break - } - - return e.complexity.Subscriber.OwnerID(childComplexity), true - - case "Subscriber.phoneNumber": - if e.complexity.Subscriber.PhoneNumber == nil { - break - } - - return e.complexity.Subscriber.PhoneNumber(childComplexity), true - - case "Subscriber.tags": - if e.complexity.Subscriber.Tags == nil { - break - } - - return e.complexity.Subscriber.Tags(childComplexity), true - - case "Subscriber.updatedAt": - if e.complexity.Subscriber.UpdatedAt == nil { - break - } - - return e.complexity.Subscriber.UpdatedAt(childComplexity), true - - case "Subscriber.updatedBy": - if e.complexity.Subscriber.UpdatedBy == nil { - break - } - - return e.complexity.Subscriber.UpdatedBy(childComplexity), true - - case "Subscriber.verifiedEmail": - if e.complexity.Subscriber.VerifiedEmail == nil { - break - } - - return e.complexity.Subscriber.VerifiedEmail(childComplexity), true - - case "Subscriber.verifiedPhone": - if e.complexity.Subscriber.VerifiedPhone == nil { - break - } - - return e.complexity.Subscriber.VerifiedPhone(childComplexity), true - - case "SubscriberBulkCreatePayload.subscribers": - if e.complexity.SubscriberBulkCreatePayload.Subscribers == nil { - break - } - - return e.complexity.SubscriberBulkCreatePayload.Subscribers(childComplexity), true - - case "SubscriberConnection.edges": - if e.complexity.SubscriberConnection.Edges == nil { - break - } - - return e.complexity.SubscriberConnection.Edges(childComplexity), true - - case "SubscriberConnection.pageInfo": - if e.complexity.SubscriberConnection.PageInfo == nil { - break - } - - return e.complexity.SubscriberConnection.PageInfo(childComplexity), true - - case "SubscriberConnection.totalCount": - if e.complexity.SubscriberConnection.TotalCount == nil { - break - } - - return e.complexity.SubscriberConnection.TotalCount(childComplexity), true - - case "SubscriberCreatePayload.subscriber": - if e.complexity.SubscriberCreatePayload.Subscriber == nil { - break - } - - return e.complexity.SubscriberCreatePayload.Subscriber(childComplexity), true - - case "SubscriberDeletePayload.email": - if e.complexity.SubscriberDeletePayload.Email == nil { - break - } - - return e.complexity.SubscriberDeletePayload.Email(childComplexity), true - - case "SubscriberEdge.cursor": - if e.complexity.SubscriberEdge.Cursor == nil { - break - } - - return e.complexity.SubscriberEdge.Cursor(childComplexity), true - - case "SubscriberEdge.node": - if e.complexity.SubscriberEdge.Node == nil { - break - } - - return e.complexity.SubscriberEdge.Node(childComplexity), true - - case "SubscriberSearchResult.subscribers": - if e.complexity.SubscriberSearchResult.Subscribers == nil { - break - } - - return e.complexity.SubscriberSearchResult.Subscribers(childComplexity), true - - case "SubscriberUpdatePayload.subscriber": - if e.complexity.SubscriberUpdatePayload.Subscriber == nil { - break - } - - return e.complexity.SubscriberUpdatePayload.Subscriber(childComplexity), true - - case "TFASetting.createdAt": - if e.complexity.TFASetting.CreatedAt == nil { - break - } - - return e.complexity.TFASetting.CreatedAt(childComplexity), true - - case "TFASetting.createdBy": - if e.complexity.TFASetting.CreatedBy == nil { - break - } - - return e.complexity.TFASetting.CreatedBy(childComplexity), true - - case "TFASetting.deletedAt": - if e.complexity.TFASetting.DeletedAt == nil { - break - } - - return e.complexity.TFASetting.DeletedAt(childComplexity), true - - case "TFASetting.deletedBy": - if e.complexity.TFASetting.DeletedBy == nil { - break - } - - return e.complexity.TFASetting.DeletedBy(childComplexity), true - - case "TFASetting.id": - if e.complexity.TFASetting.ID == nil { - break - } - - return e.complexity.TFASetting.ID(childComplexity), true - - case "TFASetting.owner": - if e.complexity.TFASetting.Owner == nil { - break - } - - return e.complexity.TFASetting.Owner(childComplexity), true - - case "TFASetting.recoveryCodes": - if e.complexity.TFASetting.RecoveryCodes == nil { - break - } - - return e.complexity.TFASetting.RecoveryCodes(childComplexity), true - - case "TFASetting.tags": - if e.complexity.TFASetting.Tags == nil { - break - } - - return e.complexity.TFASetting.Tags(childComplexity), true - - case "TFASetting.tfaSecret": - if e.complexity.TFASetting.TfaSecret == nil { - break - } - - return e.complexity.TFASetting.TfaSecret(childComplexity), true - - case "TFASetting.totpAllowed": - if e.complexity.TFASetting.TotpAllowed == nil { - break - } - - return e.complexity.TFASetting.TotpAllowed(childComplexity), true - - case "TFASetting.updatedAt": - if e.complexity.TFASetting.UpdatedAt == nil { - break - } - - return e.complexity.TFASetting.UpdatedAt(childComplexity), true - - case "TFASetting.updatedBy": - if e.complexity.TFASetting.UpdatedBy == nil { - break - } - - return e.complexity.TFASetting.UpdatedBy(childComplexity), true - - case "TFASetting.verified": - if e.complexity.TFASetting.Verified == nil { - break - } - - return e.complexity.TFASetting.Verified(childComplexity), true - - case "TFASettingConnection.edges": - if e.complexity.TFASettingConnection.Edges == nil { - break - } - - return e.complexity.TFASettingConnection.Edges(childComplexity), true - - case "TFASettingConnection.pageInfo": - if e.complexity.TFASettingConnection.PageInfo == nil { - break - } - - return e.complexity.TFASettingConnection.PageInfo(childComplexity), true - - case "TFASettingConnection.totalCount": - if e.complexity.TFASettingConnection.TotalCount == nil { - break - } - - return e.complexity.TFASettingConnection.TotalCount(childComplexity), true - - case "TFASettingCreatePayload.tfaSetting": - if e.complexity.TFASettingCreatePayload.TfaSetting == nil { - break - } - - return e.complexity.TFASettingCreatePayload.TfaSetting(childComplexity), true - - case "TFASettingEdge.cursor": - if e.complexity.TFASettingEdge.Cursor == nil { - break - } - - return e.complexity.TFASettingEdge.Cursor(childComplexity), true - - case "TFASettingEdge.node": - if e.complexity.TFASettingEdge.Node == nil { - break - } - - return e.complexity.TFASettingEdge.Node(childComplexity), true - - case "TFASettingSearchResult.tFASettings": - if e.complexity.TFASettingSearchResult.TFASettings == nil { - break - } - - return e.complexity.TFASettingSearchResult.TFASettings(childComplexity), true - - case "TFASettingUpdatePayload.tfaSetting": - if e.complexity.TFASettingUpdatePayload.TfaSetting == nil { - break - } - - return e.complexity.TFASettingUpdatePayload.TfaSetting(childComplexity), true - - case "Task.assignee": - if e.complexity.Task.Assignee == nil { - break - } - - return e.complexity.Task.Assignee(childComplexity), true - - case "Task.assigner": - if e.complexity.Task.Assigner == nil { - break - } - - return e.complexity.Task.Assigner(childComplexity), true - - case "Task.completed": - if e.complexity.Task.Completed == nil { - break - } - - return e.complexity.Task.Completed(childComplexity), true - - case "Task.control": - if e.complexity.Task.Control == nil { - break - } - - return e.complexity.Task.Control(childComplexity), true - - case "Task.controlObjective": - if e.complexity.Task.ControlObjective == nil { - break - } - - return e.complexity.Task.ControlObjective(childComplexity), true - - case "Task.createdAt": - if e.complexity.Task.CreatedAt == nil { - break - } - - return e.complexity.Task.CreatedAt(childComplexity), true - - case "Task.createdBy": - if e.complexity.Task.CreatedBy == nil { - break - } - - return e.complexity.Task.CreatedBy(childComplexity), true - - case "Task.deletedAt": - if e.complexity.Task.DeletedAt == nil { - break - } - - return e.complexity.Task.DeletedAt(childComplexity), true - - case "Task.deletedBy": - if e.complexity.Task.DeletedBy == nil { - break - } - - return e.complexity.Task.DeletedBy(childComplexity), true - - case "Task.description": - if e.complexity.Task.Description == nil { - break - } - - return e.complexity.Task.Description(childComplexity), true - - case "Task.details": - if e.complexity.Task.Details == nil { - break - } - - return e.complexity.Task.Details(childComplexity), true - - case "Task.due": - if e.complexity.Task.Due == nil { - break - } - - return e.complexity.Task.Due(childComplexity), true - - case "Task.group": - if e.complexity.Task.Group == nil { - break - } - - return e.complexity.Task.Group(childComplexity), true - - case "Task.id": - if e.complexity.Task.ID == nil { - break - } - - return e.complexity.Task.ID(childComplexity), true - - case "Task.internalPolicy": - if e.complexity.Task.InternalPolicy == nil { - break - } - - return e.complexity.Task.InternalPolicy(childComplexity), true - - case "Task.organization": - if e.complexity.Task.Organization == nil { - break - } - - return e.complexity.Task.Organization(childComplexity), true - - case "Task.procedure": - if e.complexity.Task.Procedure == nil { - break - } - - return e.complexity.Task.Procedure(childComplexity), true - - case "Task.program": - if e.complexity.Task.Program == nil { - break - } - - return e.complexity.Task.Program(childComplexity), true - - case "Task.status": - if e.complexity.Task.Status == nil { - break - } - - return e.complexity.Task.Status(childComplexity), true - - case "Task.subcontrol": - if e.complexity.Task.Subcontrol == nil { - break - } - - return e.complexity.Task.Subcontrol(childComplexity), true - - case "Task.tags": - if e.complexity.Task.Tags == nil { - break - } - - return e.complexity.Task.Tags(childComplexity), true - - case "Task.title": - if e.complexity.Task.Title == nil { - break - } - - return e.complexity.Task.Title(childComplexity), true - - case "Task.updatedAt": - if e.complexity.Task.UpdatedAt == nil { - break - } - - return e.complexity.Task.UpdatedAt(childComplexity), true - - case "Task.updatedBy": - if e.complexity.Task.UpdatedBy == nil { - break - } - - return e.complexity.Task.UpdatedBy(childComplexity), true - - case "TaskBulkCreatePayload.tasks": - if e.complexity.TaskBulkCreatePayload.Tasks == nil { - break - } - - return e.complexity.TaskBulkCreatePayload.Tasks(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 "TaskCreatePayload.task": - if e.complexity.TaskCreatePayload.Task == nil { - break - } - - return e.complexity.TaskCreatePayload.Task(childComplexity), true - - case "TaskDeletePayload.deletedID": - if e.complexity.TaskDeletePayload.DeletedID == nil { - break - } - - return e.complexity.TaskDeletePayload.DeletedID(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 "TaskHistory.completed": - if e.complexity.TaskHistory.Completed == nil { - break - } - - return e.complexity.TaskHistory.Completed(childComplexity), true - - case "TaskHistory.createdAt": - if e.complexity.TaskHistory.CreatedAt == nil { - break - } - - return e.complexity.TaskHistory.CreatedAt(childComplexity), true - - case "TaskHistory.createdBy": - if e.complexity.TaskHistory.CreatedBy == nil { - break - } - - return e.complexity.TaskHistory.CreatedBy(childComplexity), true - - case "TaskHistory.deletedAt": - if e.complexity.TaskHistory.DeletedAt == nil { - break - } - - return e.complexity.TaskHistory.DeletedAt(childComplexity), true - - case "TaskHistory.deletedBy": - if e.complexity.TaskHistory.DeletedBy == nil { - break - } - - return e.complexity.TaskHistory.DeletedBy(childComplexity), true - - case "TaskHistory.description": - if e.complexity.TaskHistory.Description == nil { - break - } - - return e.complexity.TaskHistory.Description(childComplexity), true - - case "TaskHistory.details": - if e.complexity.TaskHistory.Details == nil { - break - } - - return e.complexity.TaskHistory.Details(childComplexity), true - - case "TaskHistory.due": - if e.complexity.TaskHistory.Due == nil { - break - } - - return e.complexity.TaskHistory.Due(childComplexity), true - - case "TaskHistory.historyTime": - if e.complexity.TaskHistory.HistoryTime == nil { - break - } - - return e.complexity.TaskHistory.HistoryTime(childComplexity), true - - case "TaskHistory.id": - if e.complexity.TaskHistory.ID == nil { - break - } - - return e.complexity.TaskHistory.ID(childComplexity), true - - case "TaskHistory.operation": - if e.complexity.TaskHistory.Operation == nil { - break - } - - return e.complexity.TaskHistory.Operation(childComplexity), true - - case "TaskHistory.ref": - if e.complexity.TaskHistory.Ref == nil { - break - } - - return e.complexity.TaskHistory.Ref(childComplexity), true - - case "TaskHistory.status": - if e.complexity.TaskHistory.Status == nil { - break - } - - return e.complexity.TaskHistory.Status(childComplexity), true - - case "TaskHistory.tags": - if e.complexity.TaskHistory.Tags == nil { - break - } - - return e.complexity.TaskHistory.Tags(childComplexity), true - - case "TaskHistory.title": - if e.complexity.TaskHistory.Title == nil { - break - } - - return e.complexity.TaskHistory.Title(childComplexity), true - - case "TaskHistory.updatedAt": - if e.complexity.TaskHistory.UpdatedAt == nil { - break - } - - return e.complexity.TaskHistory.UpdatedAt(childComplexity), true - - case "TaskHistory.updatedBy": - if e.complexity.TaskHistory.UpdatedBy == nil { - break - } - - return e.complexity.TaskHistory.UpdatedBy(childComplexity), true - - case "TaskHistoryConnection.edges": - if e.complexity.TaskHistoryConnection.Edges == nil { - break - } - - return e.complexity.TaskHistoryConnection.Edges(childComplexity), true - - case "TaskHistoryConnection.pageInfo": - if e.complexity.TaskHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.TaskHistoryConnection.PageInfo(childComplexity), true - - case "TaskHistoryConnection.totalCount": - if e.complexity.TaskHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.TaskHistoryConnection.TotalCount(childComplexity), true - - case "TaskHistoryEdge.cursor": - if e.complexity.TaskHistoryEdge.Cursor == nil { - break - } - - return e.complexity.TaskHistoryEdge.Cursor(childComplexity), true - - case "TaskHistoryEdge.node": - if e.complexity.TaskHistoryEdge.Node == nil { - break - } - - return e.complexity.TaskHistoryEdge.Node(childComplexity), true - - case "TaskSearchResult.tasks": - if e.complexity.TaskSearchResult.Tasks == nil { - break - } - - return e.complexity.TaskSearchResult.Tasks(childComplexity), true - - case "TaskUpdatePayload.task": - if e.complexity.TaskUpdatePayload.Task == nil { - break - } - - return e.complexity.TaskUpdatePayload.Task(childComplexity), true - - case "Template.createdAt": - if e.complexity.Template.CreatedAt == nil { - break - } - - return e.complexity.Template.CreatedAt(childComplexity), true - - case "Template.createdBy": - if e.complexity.Template.CreatedBy == nil { - break - } - - return e.complexity.Template.CreatedBy(childComplexity), true - - case "Template.deletedAt": - if e.complexity.Template.DeletedAt == nil { - break - } - - return e.complexity.Template.DeletedAt(childComplexity), true - - case "Template.deletedBy": - if e.complexity.Template.DeletedBy == nil { - break - } - - return e.complexity.Template.DeletedBy(childComplexity), true - - case "Template.description": - if e.complexity.Template.Description == nil { - break - } - - return e.complexity.Template.Description(childComplexity), true - - case "Template.documents": - if e.complexity.Template.Documents == nil { - break - } - - return e.complexity.Template.Documents(childComplexity), true - - case "Template.files": - if e.complexity.Template.Files == nil { - break - } - - return e.complexity.Template.Files(childComplexity), true - - case "Template.id": - if e.complexity.Template.ID == nil { - break - } - - return e.complexity.Template.ID(childComplexity), true - - case "Template.jsonconfig": - if e.complexity.Template.Jsonconfig == nil { - break - } - - return e.complexity.Template.Jsonconfig(childComplexity), true - - case "Template.name": - if e.complexity.Template.Name == nil { - break - } - - return e.complexity.Template.Name(childComplexity), true - - case "Template.owner": - if e.complexity.Template.Owner == nil { - break - } - - return e.complexity.Template.Owner(childComplexity), true - - case "Template.ownerID": - if e.complexity.Template.OwnerID == nil { - break - } - - return e.complexity.Template.OwnerID(childComplexity), true - - case "Template.tags": - if e.complexity.Template.Tags == nil { - break - } - - return e.complexity.Template.Tags(childComplexity), true - - case "Template.templateType": - if e.complexity.Template.TemplateType == nil { - break - } - - return e.complexity.Template.TemplateType(childComplexity), true - - case "Template.uischema": - if e.complexity.Template.Uischema == nil { - break - } - - return e.complexity.Template.Uischema(childComplexity), true - - case "Template.updatedAt": - if e.complexity.Template.UpdatedAt == nil { - break - } - - return e.complexity.Template.UpdatedAt(childComplexity), true - - case "Template.updatedBy": - if e.complexity.Template.UpdatedBy == nil { - break - } - - return e.complexity.Template.UpdatedBy(childComplexity), true - - case "TemplateBulkCreatePayload.templates": - if e.complexity.TemplateBulkCreatePayload.Templates == nil { - break - } - - return e.complexity.TemplateBulkCreatePayload.Templates(childComplexity), true - - case "TemplateConnection.edges": - if e.complexity.TemplateConnection.Edges == nil { - break - } - - return e.complexity.TemplateConnection.Edges(childComplexity), true - - case "TemplateConnection.pageInfo": - if e.complexity.TemplateConnection.PageInfo == nil { - break - } - - return e.complexity.TemplateConnection.PageInfo(childComplexity), true - - case "TemplateConnection.totalCount": - if e.complexity.TemplateConnection.TotalCount == nil { - break - } - - return e.complexity.TemplateConnection.TotalCount(childComplexity), true - - case "TemplateCreatePayload.template": - if e.complexity.TemplateCreatePayload.Template == nil { - break - } - - return e.complexity.TemplateCreatePayload.Template(childComplexity), true - - case "TemplateDeletePayload.deletedID": - if e.complexity.TemplateDeletePayload.DeletedID == nil { - break - } - - return e.complexity.TemplateDeletePayload.DeletedID(childComplexity), true - - case "TemplateEdge.cursor": - if e.complexity.TemplateEdge.Cursor == nil { - break - } - - return e.complexity.TemplateEdge.Cursor(childComplexity), true - - case "TemplateEdge.node": - if e.complexity.TemplateEdge.Node == nil { - break - } - - return e.complexity.TemplateEdge.Node(childComplexity), true - - case "TemplateHistory.createdAt": - if e.complexity.TemplateHistory.CreatedAt == nil { - break - } - - return e.complexity.TemplateHistory.CreatedAt(childComplexity), true - - case "TemplateHistory.createdBy": - if e.complexity.TemplateHistory.CreatedBy == nil { - break - } - - return e.complexity.TemplateHistory.CreatedBy(childComplexity), true - - case "TemplateHistory.deletedAt": - if e.complexity.TemplateHistory.DeletedAt == nil { - break - } - - return e.complexity.TemplateHistory.DeletedAt(childComplexity), true - - case "TemplateHistory.deletedBy": - if e.complexity.TemplateHistory.DeletedBy == nil { - break - } - - return e.complexity.TemplateHistory.DeletedBy(childComplexity), true - - case "TemplateHistory.description": - if e.complexity.TemplateHistory.Description == nil { - break - } - - return e.complexity.TemplateHistory.Description(childComplexity), true - - case "TemplateHistory.historyTime": - if e.complexity.TemplateHistory.HistoryTime == nil { - break - } - - return e.complexity.TemplateHistory.HistoryTime(childComplexity), true - - case "TemplateHistory.id": - if e.complexity.TemplateHistory.ID == nil { - break - } - - return e.complexity.TemplateHistory.ID(childComplexity), true - - case "TemplateHistory.jsonconfig": - if e.complexity.TemplateHistory.Jsonconfig == nil { - break - } - - return e.complexity.TemplateHistory.Jsonconfig(childComplexity), true - - case "TemplateHistory.name": - if e.complexity.TemplateHistory.Name == nil { - break - } - - return e.complexity.TemplateHistory.Name(childComplexity), true - - case "TemplateHistory.operation": - if e.complexity.TemplateHistory.Operation == nil { - break - } - - return e.complexity.TemplateHistory.Operation(childComplexity), true - - case "TemplateHistory.ownerID": - if e.complexity.TemplateHistory.OwnerID == nil { - break - } - - return e.complexity.TemplateHistory.OwnerID(childComplexity), true - - case "TemplateHistory.ref": - if e.complexity.TemplateHistory.Ref == nil { - break - } - - return e.complexity.TemplateHistory.Ref(childComplexity), true - - case "TemplateHistory.tags": - if e.complexity.TemplateHistory.Tags == nil { - break - } - - return e.complexity.TemplateHistory.Tags(childComplexity), true - - case "TemplateHistory.templateType": - if e.complexity.TemplateHistory.TemplateType == nil { - break - } - - return e.complexity.TemplateHistory.TemplateType(childComplexity), true - - case "TemplateHistory.uischema": - if e.complexity.TemplateHistory.Uischema == nil { - break - } - - return e.complexity.TemplateHistory.Uischema(childComplexity), true - - case "TemplateHistory.updatedAt": - if e.complexity.TemplateHistory.UpdatedAt == nil { - break - } - - return e.complexity.TemplateHistory.UpdatedAt(childComplexity), true - - case "TemplateHistory.updatedBy": - if e.complexity.TemplateHistory.UpdatedBy == nil { - break - } - - return e.complexity.TemplateHistory.UpdatedBy(childComplexity), true - - case "TemplateHistoryConnection.edges": - if e.complexity.TemplateHistoryConnection.Edges == nil { - break - } - - return e.complexity.TemplateHistoryConnection.Edges(childComplexity), true - - case "TemplateHistoryConnection.pageInfo": - if e.complexity.TemplateHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.TemplateHistoryConnection.PageInfo(childComplexity), true - - case "TemplateHistoryConnection.totalCount": - if e.complexity.TemplateHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.TemplateHistoryConnection.TotalCount(childComplexity), true - - case "TemplateHistoryEdge.cursor": - if e.complexity.TemplateHistoryEdge.Cursor == nil { - break - } - - return e.complexity.TemplateHistoryEdge.Cursor(childComplexity), true - - case "TemplateHistoryEdge.node": - if e.complexity.TemplateHistoryEdge.Node == nil { - break - } - - return e.complexity.TemplateHistoryEdge.Node(childComplexity), true - - case "TemplateSearchResult.templates": - if e.complexity.TemplateSearchResult.Templates == nil { - break - } - - return e.complexity.TemplateSearchResult.Templates(childComplexity), true - - case "TemplateUpdatePayload.template": - if e.complexity.TemplateUpdatePayload.Template == nil { - break - } - - return e.complexity.TemplateUpdatePayload.Template(childComplexity), true - - case "User.actionPlans": - if e.complexity.User.ActionPlans == nil { - break - } - - return e.complexity.User.ActionPlans(childComplexity), true - - case "User.assigneeTasks": - if e.complexity.User.AssigneeTasks == nil { - break - } - - return e.complexity.User.AssigneeTasks(childComplexity), true - - case "User.assignerTasks": - if e.complexity.User.AssignerTasks == nil { - break - } - - return e.complexity.User.AssignerTasks(childComplexity), true - - case "User.authProvider": - if e.complexity.User.AuthProvider == nil { - break - } - - return e.complexity.User.AuthProvider(childComplexity), true - - case "User.avatarLocalFile": - if e.complexity.User.AvatarLocalFile == nil { - break - } - - return e.complexity.User.AvatarLocalFile(childComplexity), true - - case "User.avatarLocalFileID": - if e.complexity.User.AvatarLocalFileID == nil { - break - } - - return e.complexity.User.AvatarLocalFileID(childComplexity), true - - case "User.avatarRemoteURL": - if e.complexity.User.AvatarRemoteURL == nil { - break - } - - return e.complexity.User.AvatarRemoteURL(childComplexity), true - - case "User.avatarUpdatedAt": - if e.complexity.User.AvatarUpdatedAt == nil { - break - } - - return e.complexity.User.AvatarUpdatedAt(childComplexity), true - - case "User.createdAt": - if e.complexity.User.CreatedAt == nil { - break - } - - return e.complexity.User.CreatedAt(childComplexity), true - - case "User.createdBy": - if e.complexity.User.CreatedBy == nil { - break - } - - return e.complexity.User.CreatedBy(childComplexity), true - - case "User.deletedAt": - if e.complexity.User.DeletedAt == nil { - break - } - - return e.complexity.User.DeletedAt(childComplexity), true - - case "User.deletedBy": - if e.complexity.User.DeletedBy == nil { - break - } - - return e.complexity.User.DeletedBy(childComplexity), true - - case "User.displayName": - if e.complexity.User.DisplayName == nil { - break - } - - return e.complexity.User.DisplayName(childComplexity), true - - case "User.email": - if e.complexity.User.Email == nil { - break - } - - return e.complexity.User.Email(childComplexity), true - - case "User.events": - if e.complexity.User.Events == nil { - break - } - - return e.complexity.User.Events(childComplexity), true - - case "User.file": - if e.complexity.User.File == nil { - break - } - - return e.complexity.User.File(childComplexity), true - - case "User.files": - if e.complexity.User.Files == nil { - break - } - - return e.complexity.User.Files(childComplexity), true - - case "User.firstName": - if e.complexity.User.FirstName == nil { - break - } - - return e.complexity.User.FirstName(childComplexity), true - - case "User.groupMemberships": - if e.complexity.User.GroupMemberships == nil { - break - } - - return e.complexity.User.GroupMemberships(childComplexity), true - - case "User.groups": - if e.complexity.User.Groups == nil { - break - } - - return e.complexity.User.Groups(childComplexity), true - - case "User.id": - if e.complexity.User.ID == nil { - break - } - - return e.complexity.User.ID(childComplexity), true - - case "User.lastName": - if e.complexity.User.LastName == nil { - break - } - - return e.complexity.User.LastName(childComplexity), true - - case "User.lastSeen": - if e.complexity.User.LastSeen == nil { - break - } - - return e.complexity.User.LastSeen(childComplexity), true - - case "User.orgMemberships": - if e.complexity.User.OrgMemberships == nil { - break - } - - return e.complexity.User.OrgMemberships(childComplexity), true - - case "User.organizations": - if e.complexity.User.Organizations == nil { - break - } - - return e.complexity.User.Organizations(childComplexity), true - - case "User.personalAccessTokens": - if e.complexity.User.PersonalAccessTokens == nil { - break - } - - return e.complexity.User.PersonalAccessTokens(childComplexity), true - - case "User.programMemberships": - if e.complexity.User.ProgramMemberships == nil { - break - } - - return e.complexity.User.ProgramMemberships(childComplexity), true - - case "User.programs": - if e.complexity.User.Programs == nil { - break - } - - return e.complexity.User.Programs(childComplexity), true - - case "User.role": - if e.complexity.User.Role == nil { - break - } - - return e.complexity.User.Role(childComplexity), true - - case "User.setting": - if e.complexity.User.Setting == nil { - break - } - - return e.complexity.User.Setting(childComplexity), true - - case "User.sub": - if e.complexity.User.Sub == nil { - break - } - - return e.complexity.User.Sub(childComplexity), true - - case "User.subcontrols": - if e.complexity.User.Subcontrols == nil { - break - } - - return e.complexity.User.Subcontrols(childComplexity), true - - case "User.tags": - if e.complexity.User.Tags == nil { - break - } - - return e.complexity.User.Tags(childComplexity), true - - case "User.tfaSettings": - if e.complexity.User.TfaSettings == nil { - break - } - - return e.complexity.User.TfaSettings(childComplexity), true - - case "User.updatedAt": - if e.complexity.User.UpdatedAt == nil { - break - } - - return e.complexity.User.UpdatedAt(childComplexity), true - - case "User.updatedBy": - if e.complexity.User.UpdatedBy == nil { - break - } - - return e.complexity.User.UpdatedBy(childComplexity), true - - case "UserBulkCreatePayload.users": - if e.complexity.UserBulkCreatePayload.Users == nil { - break - } - - return e.complexity.UserBulkCreatePayload.Users(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 "UserConnection.totalCount": - if e.complexity.UserConnection.TotalCount == nil { - break - } - - return e.complexity.UserConnection.TotalCount(childComplexity), true - - case "UserCreatePayload.user": - if e.complexity.UserCreatePayload.User == nil { - break - } - - return e.complexity.UserCreatePayload.User(childComplexity), true - - case "UserDeletePayload.deletedID": - if e.complexity.UserDeletePayload.DeletedID == nil { - break - } - - return e.complexity.UserDeletePayload.DeletedID(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 "UserHistory.authProvider": - if e.complexity.UserHistory.AuthProvider == nil { - break - } - - return e.complexity.UserHistory.AuthProvider(childComplexity), true - - case "UserHistory.avatarLocalFile": - if e.complexity.UserHistory.AvatarLocalFile == nil { - break - } - - return e.complexity.UserHistory.AvatarLocalFile(childComplexity), true - - case "UserHistory.avatarLocalFileID": - if e.complexity.UserHistory.AvatarLocalFileID == nil { - break - } - - return e.complexity.UserHistory.AvatarLocalFileID(childComplexity), true - - case "UserHistory.avatarRemoteURL": - if e.complexity.UserHistory.AvatarRemoteURL == nil { - break - } - - return e.complexity.UserHistory.AvatarRemoteURL(childComplexity), true - - case "UserHistory.avatarUpdatedAt": - if e.complexity.UserHistory.AvatarUpdatedAt == nil { - break - } - - return e.complexity.UserHistory.AvatarUpdatedAt(childComplexity), true - - case "UserHistory.createdAt": - if e.complexity.UserHistory.CreatedAt == nil { - break - } - - return e.complexity.UserHistory.CreatedAt(childComplexity), true - - case "UserHistory.createdBy": - if e.complexity.UserHistory.CreatedBy == nil { - break - } - - return e.complexity.UserHistory.CreatedBy(childComplexity), true - - case "UserHistory.deletedAt": - if e.complexity.UserHistory.DeletedAt == nil { - break - } - - return e.complexity.UserHistory.DeletedAt(childComplexity), true - - case "UserHistory.deletedBy": - if e.complexity.UserHistory.DeletedBy == nil { - break - } - - return e.complexity.UserHistory.DeletedBy(childComplexity), true - - case "UserHistory.displayName": - if e.complexity.UserHistory.DisplayName == nil { - break - } - - return e.complexity.UserHistory.DisplayName(childComplexity), true - - case "UserHistory.email": - if e.complexity.UserHistory.Email == nil { - break - } - - return e.complexity.UserHistory.Email(childComplexity), true - - case "UserHistory.firstName": - if e.complexity.UserHistory.FirstName == nil { - break - } - - return e.complexity.UserHistory.FirstName(childComplexity), true - - case "UserHistory.historyTime": - if e.complexity.UserHistory.HistoryTime == nil { - break - } - - return e.complexity.UserHistory.HistoryTime(childComplexity), true - - case "UserHistory.id": - if e.complexity.UserHistory.ID == nil { - break - } - - return e.complexity.UserHistory.ID(childComplexity), true - - case "UserHistory.lastName": - if e.complexity.UserHistory.LastName == nil { - break - } - - return e.complexity.UserHistory.LastName(childComplexity), true - - case "UserHistory.lastSeen": - if e.complexity.UserHistory.LastSeen == nil { - break - } - - return e.complexity.UserHistory.LastSeen(childComplexity), true - - case "UserHistory.operation": - if e.complexity.UserHistory.Operation == nil { - break - } - - return e.complexity.UserHistory.Operation(childComplexity), true - - case "UserHistory.ref": - if e.complexity.UserHistory.Ref == nil { - break - } - - return e.complexity.UserHistory.Ref(childComplexity), true - - case "UserHistory.role": - if e.complexity.UserHistory.Role == nil { - break - } - - return e.complexity.UserHistory.Role(childComplexity), true - - case "UserHistory.sub": - if e.complexity.UserHistory.Sub == nil { - break - } - - return e.complexity.UserHistory.Sub(childComplexity), true - - case "UserHistory.tags": - if e.complexity.UserHistory.Tags == nil { - break - } - - return e.complexity.UserHistory.Tags(childComplexity), true - - case "UserHistory.updatedAt": - if e.complexity.UserHistory.UpdatedAt == nil { - break - } - - return e.complexity.UserHistory.UpdatedAt(childComplexity), true - - case "UserHistory.updatedBy": - if e.complexity.UserHistory.UpdatedBy == nil { - break - } - - return e.complexity.UserHistory.UpdatedBy(childComplexity), true - - case "UserHistoryConnection.edges": - if e.complexity.UserHistoryConnection.Edges == nil { - break - } - - return e.complexity.UserHistoryConnection.Edges(childComplexity), true - - case "UserHistoryConnection.pageInfo": - if e.complexity.UserHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.UserHistoryConnection.PageInfo(childComplexity), true - - case "UserHistoryConnection.totalCount": - if e.complexity.UserHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.UserHistoryConnection.TotalCount(childComplexity), true - - case "UserHistoryEdge.cursor": - if e.complexity.UserHistoryEdge.Cursor == nil { - break - } - - return e.complexity.UserHistoryEdge.Cursor(childComplexity), true - - case "UserHistoryEdge.node": - if e.complexity.UserHistoryEdge.Node == nil { - break - } - - return e.complexity.UserHistoryEdge.Node(childComplexity), true - - case "UserSearchResult.users": - if e.complexity.UserSearchResult.Users == nil { - break - } - - return e.complexity.UserSearchResult.Users(childComplexity), true - - case "UserSetting.createdAt": - if e.complexity.UserSetting.CreatedAt == nil { - break - } - - return e.complexity.UserSetting.CreatedAt(childComplexity), true - - case "UserSetting.createdBy": - if e.complexity.UserSetting.CreatedBy == nil { - break - } - - return e.complexity.UserSetting.CreatedBy(childComplexity), true - - case "UserSetting.defaultOrg": - if e.complexity.UserSetting.DefaultOrg == nil { - break - } - - return e.complexity.UserSetting.DefaultOrg(childComplexity), true - - case "UserSetting.deletedAt": - if e.complexity.UserSetting.DeletedAt == nil { - break - } - - return e.complexity.UserSetting.DeletedAt(childComplexity), true - - case "UserSetting.deletedBy": - if e.complexity.UserSetting.DeletedBy == nil { - break - } - - return e.complexity.UserSetting.DeletedBy(childComplexity), true - - case "UserSetting.emailConfirmed": - if e.complexity.UserSetting.EmailConfirmed == nil { - break - } - - return e.complexity.UserSetting.EmailConfirmed(childComplexity), true - - case "UserSetting.files": - if e.complexity.UserSetting.Files == nil { - break - } - - return e.complexity.UserSetting.Files(childComplexity), true - - case "UserSetting.id": - if e.complexity.UserSetting.ID == nil { - break - } - - return e.complexity.UserSetting.ID(childComplexity), true - - case "UserSetting.isTfaEnabled": - if e.complexity.UserSetting.IsTfaEnabled == nil { - break - } - - return e.complexity.UserSetting.IsTfaEnabled(childComplexity), true - - case "UserSetting.isWebauthnAllowed": - if e.complexity.UserSetting.IsWebauthnAllowed == nil { - break - } - - return e.complexity.UserSetting.IsWebauthnAllowed(childComplexity), true - - case "UserSetting.locked": - if e.complexity.UserSetting.Locked == nil { - break - } - - return e.complexity.UserSetting.Locked(childComplexity), true - - case "UserSetting.silencedAt": - if e.complexity.UserSetting.SilencedAt == nil { - break - } - - return e.complexity.UserSetting.SilencedAt(childComplexity), true - - case "UserSetting.status": - if e.complexity.UserSetting.Status == nil { - break - } - - return e.complexity.UserSetting.Status(childComplexity), true - - case "UserSetting.suspendedAt": - if e.complexity.UserSetting.SuspendedAt == nil { - break - } - - return e.complexity.UserSetting.SuspendedAt(childComplexity), true - - case "UserSetting.tags": - if e.complexity.UserSetting.Tags == nil { - break - } - - return e.complexity.UserSetting.Tags(childComplexity), true - - case "UserSetting.updatedAt": - if e.complexity.UserSetting.UpdatedAt == nil { - break - } - - return e.complexity.UserSetting.UpdatedAt(childComplexity), true - - case "UserSetting.updatedBy": - if e.complexity.UserSetting.UpdatedBy == nil { - break - } - - return e.complexity.UserSetting.UpdatedBy(childComplexity), true - - case "UserSetting.user": - if e.complexity.UserSetting.User == nil { - break - } - - return e.complexity.UserSetting.User(childComplexity), true - - case "UserSetting.userID": - if e.complexity.UserSetting.UserID == nil { - break - } - - return e.complexity.UserSetting.UserID(childComplexity), true - - case "UserSettingBulkCreatePayload.userSettings": - if e.complexity.UserSettingBulkCreatePayload.UserSettings == nil { - break - } - - return e.complexity.UserSettingBulkCreatePayload.UserSettings(childComplexity), true - - case "UserSettingConnection.edges": - if e.complexity.UserSettingConnection.Edges == nil { - break - } - - return e.complexity.UserSettingConnection.Edges(childComplexity), true - - case "UserSettingConnection.pageInfo": - if e.complexity.UserSettingConnection.PageInfo == nil { - break - } - - return e.complexity.UserSettingConnection.PageInfo(childComplexity), true - - case "UserSettingConnection.totalCount": - if e.complexity.UserSettingConnection.TotalCount == nil { - break - } - - return e.complexity.UserSettingConnection.TotalCount(childComplexity), true - - case "UserSettingCreatePayload.userSetting": - if e.complexity.UserSettingCreatePayload.UserSetting == nil { - break - } - - return e.complexity.UserSettingCreatePayload.UserSetting(childComplexity), true - - case "UserSettingEdge.cursor": - if e.complexity.UserSettingEdge.Cursor == nil { - break - } - - return e.complexity.UserSettingEdge.Cursor(childComplexity), true - - case "UserSettingEdge.node": - if e.complexity.UserSettingEdge.Node == nil { - break - } - - return e.complexity.UserSettingEdge.Node(childComplexity), true - - case "UserSettingHistory.createdAt": - if e.complexity.UserSettingHistory.CreatedAt == nil { - break - } - - return e.complexity.UserSettingHistory.CreatedAt(childComplexity), true - - case "UserSettingHistory.createdBy": - if e.complexity.UserSettingHistory.CreatedBy == nil { - break - } - - return e.complexity.UserSettingHistory.CreatedBy(childComplexity), true - - case "UserSettingHistory.deletedAt": - if e.complexity.UserSettingHistory.DeletedAt == nil { - break - } - - return e.complexity.UserSettingHistory.DeletedAt(childComplexity), true - - case "UserSettingHistory.deletedBy": - if e.complexity.UserSettingHistory.DeletedBy == nil { - break - } - - return e.complexity.UserSettingHistory.DeletedBy(childComplexity), true - - case "UserSettingHistory.emailConfirmed": - if e.complexity.UserSettingHistory.EmailConfirmed == nil { - break - } - - return e.complexity.UserSettingHistory.EmailConfirmed(childComplexity), true - - case "UserSettingHistory.historyTime": - if e.complexity.UserSettingHistory.HistoryTime == nil { - break - } - - return e.complexity.UserSettingHistory.HistoryTime(childComplexity), true - - case "UserSettingHistory.id": - if e.complexity.UserSettingHistory.ID == nil { - break - } - - return e.complexity.UserSettingHistory.ID(childComplexity), true - - case "UserSettingHistory.isTfaEnabled": - if e.complexity.UserSettingHistory.IsTfaEnabled == nil { - break - } - - return e.complexity.UserSettingHistory.IsTfaEnabled(childComplexity), true - - case "UserSettingHistory.isWebauthnAllowed": - if e.complexity.UserSettingHistory.IsWebauthnAllowed == nil { - break - } - - return e.complexity.UserSettingHistory.IsWebauthnAllowed(childComplexity), true - - case "UserSettingHistory.locked": - if e.complexity.UserSettingHistory.Locked == nil { - break - } - - return e.complexity.UserSettingHistory.Locked(childComplexity), true - - case "UserSettingHistory.operation": - if e.complexity.UserSettingHistory.Operation == nil { - break - } - - return e.complexity.UserSettingHistory.Operation(childComplexity), true - - case "UserSettingHistory.ref": - if e.complexity.UserSettingHistory.Ref == nil { - break - } - - return e.complexity.UserSettingHistory.Ref(childComplexity), true - - case "UserSettingHistory.silencedAt": - if e.complexity.UserSettingHistory.SilencedAt == nil { - break - } - - return e.complexity.UserSettingHistory.SilencedAt(childComplexity), true - - case "UserSettingHistory.status": - if e.complexity.UserSettingHistory.Status == nil { - break - } - - return e.complexity.UserSettingHistory.Status(childComplexity), true - - case "UserSettingHistory.suspendedAt": - if e.complexity.UserSettingHistory.SuspendedAt == nil { - break - } - - return e.complexity.UserSettingHistory.SuspendedAt(childComplexity), true - - case "UserSettingHistory.tags": - if e.complexity.UserSettingHistory.Tags == nil { - break - } - - return e.complexity.UserSettingHistory.Tags(childComplexity), true - - case "UserSettingHistory.updatedAt": - if e.complexity.UserSettingHistory.UpdatedAt == nil { - break - } - - return e.complexity.UserSettingHistory.UpdatedAt(childComplexity), true - - case "UserSettingHistory.updatedBy": - if e.complexity.UserSettingHistory.UpdatedBy == nil { - break - } - - return e.complexity.UserSettingHistory.UpdatedBy(childComplexity), true - - case "UserSettingHistory.userID": - if e.complexity.UserSettingHistory.UserID == nil { - break - } - - return e.complexity.UserSettingHistory.UserID(childComplexity), true - - case "UserSettingHistoryConnection.edges": - if e.complexity.UserSettingHistoryConnection.Edges == nil { - break - } - - return e.complexity.UserSettingHistoryConnection.Edges(childComplexity), true - - case "UserSettingHistoryConnection.pageInfo": - if e.complexity.UserSettingHistoryConnection.PageInfo == nil { - break - } - - return e.complexity.UserSettingHistoryConnection.PageInfo(childComplexity), true - - case "UserSettingHistoryConnection.totalCount": - if e.complexity.UserSettingHistoryConnection.TotalCount == nil { - break - } - - return e.complexity.UserSettingHistoryConnection.TotalCount(childComplexity), true - - case "UserSettingHistoryEdge.cursor": - if e.complexity.UserSettingHistoryEdge.Cursor == nil { - break - } - - return e.complexity.UserSettingHistoryEdge.Cursor(childComplexity), true - - case "UserSettingHistoryEdge.node": - if e.complexity.UserSettingHistoryEdge.Node == nil { - break - } - - return e.complexity.UserSettingHistoryEdge.Node(childComplexity), true - - case "UserSettingSearchResult.userSettings": - if e.complexity.UserSettingSearchResult.UserSettings == nil { - break - } - - return e.complexity.UserSettingSearchResult.UserSettings(childComplexity), true - - case "UserSettingUpdatePayload.userSetting": - if e.complexity.UserSettingUpdatePayload.UserSetting == nil { - break - } - - return e.complexity.UserSettingUpdatePayload.UserSetting(childComplexity), true - - case "UserUpdatePayload.user": - if e.complexity.UserUpdatePayload.User == nil { - break - } - - return e.complexity.UserUpdatePayload.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.unmarshalInputAPITokenWhereInput, - ec.unmarshalInputActionPlanHistoryWhereInput, - ec.unmarshalInputActionPlanWhereInput, - ec.unmarshalInputAuditLogWhereInput, - ec.unmarshalInputContactHistoryWhereInput, - ec.unmarshalInputContactWhereInput, - ec.unmarshalInputControlHistoryWhereInput, - ec.unmarshalInputControlObjectiveHistoryWhereInput, - ec.unmarshalInputControlObjectiveWhereInput, - ec.unmarshalInputControlWhereInput, - ec.unmarshalInputCreateAPITokenInput, - ec.unmarshalInputCreateActionPlanInput, - ec.unmarshalInputCreateContactInput, - ec.unmarshalInputCreateControlInput, - ec.unmarshalInputCreateControlObjectiveInput, - ec.unmarshalInputCreateControlWithSubcontrolsInput, - ec.unmarshalInputCreateDocumentDataInput, - ec.unmarshalInputCreateEntityInput, - ec.unmarshalInputCreateEntityTypeInput, - ec.unmarshalInputCreateEventInput, - ec.unmarshalInputCreateFileInput, - ec.unmarshalInputCreateFullProgramInput, - ec.unmarshalInputCreateGroupInput, - ec.unmarshalInputCreateGroupMembershipInput, - ec.unmarshalInputCreateGroupSettingInput, - ec.unmarshalInputCreateHushInput, - ec.unmarshalInputCreateIntegrationInput, - ec.unmarshalInputCreateInternalPolicyInput, - ec.unmarshalInputCreateInviteInput, - ec.unmarshalInputCreateMemberWithProgramInput, - ec.unmarshalInputCreateNarrativeInput, - ec.unmarshalInputCreateNoteInput, - ec.unmarshalInputCreateOrgMembershipInput, - ec.unmarshalInputCreateOrgSubscriptionInput, - ec.unmarshalInputCreateOrganizationInput, - ec.unmarshalInputCreateOrganizationSettingInput, - ec.unmarshalInputCreatePersonalAccessTokenInput, - ec.unmarshalInputCreateProcedureInput, - ec.unmarshalInputCreateProgramInput, - ec.unmarshalInputCreateProgramMembershipInput, - ec.unmarshalInputCreateProgramWithMembersInput, - ec.unmarshalInputCreateRiskInput, - ec.unmarshalInputCreateStandardInput, - ec.unmarshalInputCreateSubcontrolInput, - ec.unmarshalInputCreateSubscriberInput, - ec.unmarshalInputCreateTFASettingInput, - ec.unmarshalInputCreateTaskInput, - ec.unmarshalInputCreateTemplateInput, - ec.unmarshalInputCreateUserInput, - ec.unmarshalInputCreateUserSettingInput, - ec.unmarshalInputDocumentDataHistoryWhereInput, - ec.unmarshalInputDocumentDataWhereInput, - ec.unmarshalInputEntityHistoryOrder, - ec.unmarshalInputEntityHistoryWhereInput, - ec.unmarshalInputEntityOrder, - ec.unmarshalInputEntityTypeHistoryOrder, - ec.unmarshalInputEntityTypeHistoryWhereInput, - ec.unmarshalInputEntityTypeOrder, - ec.unmarshalInputEntityTypeWhereInput, - ec.unmarshalInputEntityWhereInput, - ec.unmarshalInputEventHistoryWhereInput, - ec.unmarshalInputEventWhereInput, - ec.unmarshalInputFileHistoryWhereInput, - ec.unmarshalInputFileWhereInput, - ec.unmarshalInputGroupHistoryOrder, - ec.unmarshalInputGroupHistoryWhereInput, - ec.unmarshalInputGroupMembershipHistoryWhereInput, - ec.unmarshalInputGroupMembershipWhereInput, - ec.unmarshalInputGroupOrder, - ec.unmarshalInputGroupSettingHistoryWhereInput, - ec.unmarshalInputGroupSettingWhereInput, - ec.unmarshalInputGroupWhereInput, - ec.unmarshalInputHushHistoryOrder, - ec.unmarshalInputHushHistoryWhereInput, - ec.unmarshalInputHushOrder, - ec.unmarshalInputHushWhereInput, - ec.unmarshalInputIntegrationHistoryOrder, - ec.unmarshalInputIntegrationHistoryWhereInput, - ec.unmarshalInputIntegrationOrder, - ec.unmarshalInputIntegrationWhereInput, - ec.unmarshalInputInternalPolicyHistoryWhereInput, - ec.unmarshalInputInternalPolicyWhereInput, - ec.unmarshalInputInviteWhereInput, - ec.unmarshalInputNarrativeHistoryWhereInput, - ec.unmarshalInputNarrativeWhereInput, - ec.unmarshalInputNoteHistoryWhereInput, - ec.unmarshalInputNoteWhereInput, - ec.unmarshalInputOrgMembershipHistoryWhereInput, - ec.unmarshalInputOrgMembershipWhereInput, - ec.unmarshalInputOrgSubscriptionHistoryWhereInput, - ec.unmarshalInputOrgSubscriptionWhereInput, - ec.unmarshalInputOrganizationHistoryOrder, - ec.unmarshalInputOrganizationHistoryWhereInput, - ec.unmarshalInputOrganizationOrder, - ec.unmarshalInputOrganizationSettingHistoryWhereInput, - ec.unmarshalInputOrganizationSettingWhereInput, - ec.unmarshalInputOrganizationWhereInput, - ec.unmarshalInputPersonalAccessTokenWhereInput, - ec.unmarshalInputProcedureHistoryWhereInput, - ec.unmarshalInputProcedureWhereInput, - ec.unmarshalInputProgramHistoryWhereInput, - ec.unmarshalInputProgramMembershipHistoryWhereInput, - ec.unmarshalInputProgramMembershipWhereInput, - ec.unmarshalInputProgramWhereInput, - ec.unmarshalInputRiskHistoryWhereInput, - ec.unmarshalInputRiskWhereInput, - ec.unmarshalInputStandardHistoryWhereInput, - ec.unmarshalInputStandardWhereInput, - ec.unmarshalInputSubcontrolHistoryWhereInput, - ec.unmarshalInputSubcontrolWhereInput, - ec.unmarshalInputSubscriberWhereInput, - ec.unmarshalInputTFASettingWhereInput, - ec.unmarshalInputTaskHistoryWhereInput, - ec.unmarshalInputTaskWhereInput, - ec.unmarshalInputTemplateHistoryOrder, - ec.unmarshalInputTemplateHistoryWhereInput, - ec.unmarshalInputTemplateOrder, - ec.unmarshalInputTemplateWhereInput, - ec.unmarshalInputUpdateAPITokenInput, - ec.unmarshalInputUpdateActionPlanInput, - ec.unmarshalInputUpdateContactInput, - ec.unmarshalInputUpdateControlInput, - ec.unmarshalInputUpdateControlObjectiveInput, - ec.unmarshalInputUpdateDocumentDataInput, - ec.unmarshalInputUpdateEntityInput, - ec.unmarshalInputUpdateEntityTypeInput, - ec.unmarshalInputUpdateEventInput, - ec.unmarshalInputUpdateFileInput, - ec.unmarshalInputUpdateGroupInput, - ec.unmarshalInputUpdateGroupMembershipInput, - ec.unmarshalInputUpdateGroupSettingInput, - ec.unmarshalInputUpdateHushInput, - ec.unmarshalInputUpdateIntegrationInput, - ec.unmarshalInputUpdateInternalPolicyInput, - ec.unmarshalInputUpdateInviteInput, - ec.unmarshalInputUpdateNarrativeInput, - ec.unmarshalInputUpdateNoteInput, - ec.unmarshalInputUpdateOrgMembershipInput, - ec.unmarshalInputUpdateOrgSubscriptionInput, - ec.unmarshalInputUpdateOrganizationInput, - ec.unmarshalInputUpdateOrganizationSettingInput, - ec.unmarshalInputUpdatePersonalAccessTokenInput, - ec.unmarshalInputUpdateProcedureInput, - ec.unmarshalInputUpdateProgramInput, - ec.unmarshalInputUpdateProgramMembershipInput, - ec.unmarshalInputUpdateRiskInput, - ec.unmarshalInputUpdateStandardInput, - ec.unmarshalInputUpdateSubcontrolInput, - ec.unmarshalInputUpdateSubscriberInput, - ec.unmarshalInputUpdateTFASettingInput, - ec.unmarshalInputUpdateTaskInput, - ec.unmarshalInputUpdateTemplateInput, - ec.unmarshalInputUpdateUserInput, - ec.unmarshalInputUpdateUserSettingInput, - ec.unmarshalInputUserHistoryOrder, - ec.unmarshalInputUserHistoryWhereInput, - ec.unmarshalInputUserOrder, - ec.unmarshalInputUserSettingHistoryWhereInput, - ec.unmarshalInputUserSettingWhereInput, - ec.unmarshalInputUserWhereInput, - ) - 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/actionplan.graphql", Input: `extend type Query { - """ - Look up actionPlan by ID - """ - actionPlan( - """ - ID of the actionPlan - """ - id: ID! - ): ActionPlan! -} - -extend type Mutation{ - """ - Create a new actionPlan - """ - createActionPlan( - """ - values of the actionPlan - """ - input: CreateActionPlanInput! - ): ActionPlanCreatePayload! - """ - Create multiple new actionPlans - """ - createBulkActionPlan( - """ - values of the actionPlan - """ - input: [CreateActionPlanInput!] - ): ActionPlanBulkCreatePayload! - """ - Create multiple new actionPlans via file upload - """ - createBulkCSVActionPlan( - """ - csv file containing values of the actionPlan - """ - input: Upload! - ): ActionPlanBulkCreatePayload! - """ - Update an existing actionPlan - """ - updateActionPlan( - """ - ID of the actionPlan - """ - id: ID! - """ - New values for the actionPlan - """ - input: UpdateActionPlanInput! - ): ActionPlanUpdatePayload! - """ - Delete an existing actionPlan - """ - deleteActionPlan( - """ - ID of the actionPlan - """ - id: ID! - ): ActionPlanDeletePayload! -} - -""" -Return response for createActionPlan mutation -""" -type ActionPlanCreatePayload { - """ - Created actionPlan - """ - actionPlan: ActionPlan! -} - -""" -Return response for updateActionPlan mutation -""" -type ActionPlanUpdatePayload { - """ - Updated actionPlan - """ - actionPlan: ActionPlan! -} - -""" -Return response for deleteActionPlan mutation -""" -type ActionPlanDeletePayload { - """ - Deleted actionPlan ID - """ - deletedID: ID! -} - -""" -Return response for createBulkActionPlan mutation -""" -type ActionPlanBulkCreatePayload { - """ - Created actionPlans - """ - actionPlans: [ActionPlan!] -}`, BuiltIn: false}, - {Name: "../../schema/adminsearch.graphql", Input: `extend type Query{ - """ - Search across APIToken objects - """ - adminAPITokenSearch( - """ - Search query - """ - query: String! - ): APITokenSearchResult - """ - Search across ActionPlan objects - """ - adminActionPlanSearch( - """ - Search query - """ - query: String! - ): ActionPlanSearchResult - """ - Search across Contact objects - """ - adminContactSearch( - """ - Search query - """ - query: String! - ): ContactSearchResult - """ - Search across Control objects - """ - adminControlSearch( - """ - Search query - """ - query: String! - ): ControlSearchResult - """ - Search across ControlObjective objects - """ - adminControlObjectiveSearch( - """ - Search query - """ - query: String! - ): ControlObjectiveSearchResult - """ - Search across DocumentData objects - """ - adminDocumentDataSearch( - """ - Search query - """ - query: String! - ): DocumentDataSearchResult - """ - Search across Entity objects - """ - adminEntitySearch( - """ - Search query - """ - query: String! - ): EntitySearchResult - """ - Search across EntityType objects - """ - adminEntityTypeSearch( - """ - Search query - """ - query: String! - ): EntityTypeSearchResult - """ - Search across Event objects - """ - adminEventSearch( - """ - Search query - """ - query: String! - ): EventSearchResult - """ - Search across File objects - """ - adminFileSearch( - """ - Search query - """ - query: String! - ): FileSearchResult - """ - Search across Group objects - """ - adminGroupSearch( - """ - Search query - """ - query: String! - ): GroupSearchResult - """ - Search across GroupSetting objects - """ - adminGroupSettingSearch( - """ - Search query - """ - query: String! - ): GroupSettingSearchResult - """ - Search across Integration objects - """ - adminIntegrationSearch( - """ - Search query - """ - query: String! - ): IntegrationSearchResult - """ - Search across InternalPolicy objects - """ - adminInternalPolicySearch( - """ - Search query - """ - query: String! - ): InternalPolicySearchResult - """ - Search across Narrative objects - """ - adminNarrativeSearch( - """ - Search query - """ - query: String! - ): NarrativeSearchResult - """ - Search across OrgSubscription objects - """ - adminOrgSubscriptionSearch( - """ - Search query - """ - query: String! - ): OrgSubscriptionSearchResult - """ - Search across Organization objects - """ - adminOrganizationSearch( - """ - Search query - """ - query: String! - ): OrganizationSearchResult - """ - Search across OrganizationSetting objects - """ - adminOrganizationSettingSearch( - """ - Search query - """ - query: String! - ): OrganizationSettingSearchResult - """ - Search across PersonalAccessToken objects - """ - adminPersonalAccessTokenSearch( - """ - Search query - """ - query: String! - ): PersonalAccessTokenSearchResult - """ - Search across Procedure objects - """ - adminProcedureSearch( - """ - Search query - """ - query: String! - ): ProcedureSearchResult - """ - Search across Program objects - """ - adminProgramSearch( - """ - Search query - """ - query: String! - ): ProgramSearchResult - """ - Search across Risk objects - """ - adminRiskSearch( - """ - Search query - """ - query: String! - ): RiskSearchResult - """ - Search across Standard objects - """ - adminStandardSearch( - """ - Search query - """ - query: String! - ): StandardSearchResult - """ - Search across Subcontrol objects - """ - adminSubcontrolSearch( - """ - Search query - """ - query: String! - ): SubcontrolSearchResult - """ - Search across Subscriber objects - """ - adminSubscriberSearch( - """ - Search query - """ - query: String! - ): SubscriberSearchResult - """ - Search across TFASetting objects - """ - adminTFASettingSearch( - """ - Search query - """ - query: String! - ): TFASettingSearchResult - """ - Search across Task objects - """ - adminTaskSearch( - """ - Search query - """ - query: String! - ): TaskSearchResult - """ - Search across Template objects - """ - adminTemplateSearch( - """ - Search query - """ - query: String! - ): TemplateSearchResult - """ - Search across User objects - """ - adminUserSearch( - """ - Search query - """ - query: String! - ): UserSearchResult - """ - Search across UserSetting objects - """ - adminUserSettingSearch( - """ - Search query - """ - query: String! - ): UserSettingSearchResult -}`, BuiltIn: false}, - {Name: "../../schema/apitoken.graphql", Input: `extend type Query { - """ - Look up apiToken by ID - """ - apiToken( - """ - ID of the apiToken - """ - id: ID! - ): APIToken! -} - -extend type Mutation{ - """ - Create a new apiToken - """ - createAPIToken( - """ - values of the apiToken - """ - input: CreateAPITokenInput! - ): APITokenCreatePayload! - """ - Create multiple new apiTokens - """ - createBulkAPIToken( - """ - values of the apiToken - """ - input: [CreateAPITokenInput!] - ): APITokenBulkCreatePayload! - """ - Create multiple new apiTokens via file upload - """ - createBulkCSVAPIToken( - """ - csv file containing values of the apiToken - """ - input: Upload! - ): APITokenBulkCreatePayload! - """ - Update an existing apiToken - """ - updateAPIToken( - """ - ID of the apiToken - """ - id: ID! - """ - New values for the apiToken - """ - input: UpdateAPITokenInput! - ): APITokenUpdatePayload! - """ - Delete an existing apiToken - """ - deleteAPIToken( - """ - ID of the apiToken - """ - id: ID! - ): APITokenDeletePayload! -} - -""" -Return response for createAPIToken mutation -""" -type APITokenCreatePayload { - """ - Created apiToken - """ - apiToken: APIToken! -} - -""" -Return response for updateAPIToken mutation -""" -type APITokenUpdatePayload { - """ - Updated apiToken - """ - apiToken: APIToken! -} - -""" -Return response for deleteAPIToken mutation -""" -type APITokenDeletePayload { - """ - Deleted apiToken ID - """ - deletedID: ID! -} - -""" -Return response for createBulkAPIToken mutation -""" -type APITokenBulkCreatePayload { - """ - Created apiTokens - """ - apiTokens: [APIToken!] -}`, BuiltIn: false}, - {Name: "../../schema/audit.graphql", Input: `extend type Query { - auditLogs( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for AuditLogs returned from the connection. - """ - where: AuditLogWhereInput - ): AuditLogConnection! -} - -""" -A connection to a list of items. -""" -type AuditLogConnection { - """ - A list of edges. - """ - edges: [AuditLogEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} - -""" -An edge in a connection. -""" -type AuditLogEdge { - """ - The item at the end of the edge. - """ - node: AuditLog - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} - -type AuditLog implements Node { - table: String - time: Time - id: ID! - operation: String - changes: [String!] - updatedBy: ID -} - -extend input AuditLogWhereInput { - refID: ID - updatedBy: ID - operation: String - table: ID - before: Time - after: Time -}`, BuiltIn: false}, - {Name: "../../schema/contact.graphql", Input: `extend type Query { - """ - Look up contact by ID - """ - contact( - """ - ID of the contact - """ - id: ID! - ): Contact! -} - -extend type Mutation{ - """ - Create a new contact - """ - createContact( - """ - values of the contact - """ - input: CreateContactInput! - ): ContactCreatePayload! - """ - Create multiple new contacts - """ - createBulkContact( - """ - values of the contact - """ - input: [CreateContactInput!] - ): ContactBulkCreatePayload! - """ - Create multiple new contacts via file upload - """ - createBulkCSVContact( - """ - csv file containing values of the contact - """ - input: Upload! - ): ContactBulkCreatePayload! - """ - Update an existing contact - """ - updateContact( - """ - ID of the contact - """ - id: ID! - """ - New values for the contact - """ - input: UpdateContactInput! - ): ContactUpdatePayload! - """ - Delete an existing contact - """ - deleteContact( - """ - ID of the contact - """ - id: ID! - ): ContactDeletePayload! -} - -""" -Return response for createContact mutation -""" -type ContactCreatePayload { - """ - Created contact - """ - contact: Contact! -} - -""" -Return response for updateContact mutation -""" -type ContactUpdatePayload { - """ - Updated contact - """ - contact: Contact! -} - -""" -Return response for deleteContact mutation -""" -type ContactDeletePayload { - """ - Deleted contact ID - """ - deletedID: ID! -} - -""" -Return response for createBulkContact mutation -""" -type ContactBulkCreatePayload { - """ - Created contacts - """ - contacts: [Contact!] -}`, BuiltIn: false}, - {Name: "../../schema/control.graphql", Input: `extend type Query { - """ - Look up control by ID - """ - control( - """ - ID of the control - """ - id: ID! - ): Control! -} - -extend type Mutation{ - """ - Create a new control - """ - createControl( - """ - values of the control - """ - input: CreateControlInput! - ): ControlCreatePayload! - """ - Create multiple new controls - """ - createBulkControl( - """ - values of the control - """ - input: [CreateControlInput!] - ): ControlBulkCreatePayload! - """ - Create multiple new controls via file upload - """ - createBulkCSVControl( - """ - csv file containing values of the control - """ - input: Upload! - ): ControlBulkCreatePayload! - """ - Update an existing control - """ - updateControl( - """ - ID of the control - """ - id: ID! - """ - New values for the control - """ - input: UpdateControlInput! - ): ControlUpdatePayload! - """ - Delete an existing control - """ - deleteControl( - """ - ID of the control - """ - id: ID! - ): ControlDeletePayload! -} - -""" -Return response for createControl mutation -""" -type ControlCreatePayload { - """ - Created control - """ - control: Control! -} - -""" -Return response for updateControl mutation -""" -type ControlUpdatePayload { - """ - Updated control - """ - control: Control! -} - -""" -Return response for deleteControl mutation -""" -type ControlDeletePayload { - """ - Deleted control ID - """ - deletedID: ID! -} - -""" -Return response for createBulkControl mutation -""" -type ControlBulkCreatePayload { - """ - Created controls - """ - controls: [Control!] -}`, BuiltIn: false}, - {Name: "../../schema/controlobjective.graphql", Input: `extend type Query { - """ - Look up controlObjective by ID - """ - controlObjective( - """ - ID of the controlObjective - """ - id: ID! - ): ControlObjective! -} - -extend type Mutation{ - """ - Create a new controlObjective - """ - createControlObjective( - """ - values of the controlObjective - """ - input: CreateControlObjectiveInput! - ): ControlObjectiveCreatePayload! - """ - Create multiple new controlObjectives - """ - createBulkControlObjective( - """ - values of the controlObjective - """ - input: [CreateControlObjectiveInput!] - ): ControlObjectiveBulkCreatePayload! - """ - Create multiple new controlObjectives via file upload - """ - createBulkCSVControlObjective( - """ - csv file containing values of the controlObjective - """ - input: Upload! - ): ControlObjectiveBulkCreatePayload! - """ - Update an existing controlObjective - """ - updateControlObjective( - """ - ID of the controlObjective - """ - id: ID! - """ - New values for the controlObjective - """ - input: UpdateControlObjectiveInput! - ): ControlObjectiveUpdatePayload! - """ - Delete an existing controlObjective - """ - deleteControlObjective( - """ - ID of the controlObjective - """ - id: ID! - ): ControlObjectiveDeletePayload! -} - -""" -Return response for createControlObjective mutation -""" -type ControlObjectiveCreatePayload { - """ - Created controlObjective - """ - controlObjective: ControlObjective! -} - -""" -Return response for updateControlObjective mutation -""" -type ControlObjectiveUpdatePayload { - """ - Updated controlObjective - """ - controlObjective: ControlObjective! -} - -""" -Return response for deleteControlObjective mutation -""" -type ControlObjectiveDeletePayload { - """ - Deleted controlObjective ID - """ - deletedID: ID! -} - -""" -Return response for createBulkControlObjective mutation -""" -type ControlObjectiveBulkCreatePayload { - """ - Created controlObjectives - """ - controlObjectives: [ControlObjective!] -}`, BuiltIn: false}, - {Name: "../../schema/documentdata.graphql", Input: `extend type Query { - """ - Look up documentData by ID - """ - documentData( - """ - ID of the documentData - """ - id: ID! - ): DocumentData! -} - -extend type Mutation{ - """ - Create a new documentData - """ - createDocumentData( - """ - values of the documentData - """ - input: CreateDocumentDataInput! - ): DocumentDataCreatePayload! - """ - Create multiple new documentData - """ - createBulkDocumentData( - """ - values of the documentData - """ - input: [CreateDocumentDataInput!] - ): DocumentDataBulkCreatePayload! - """ - Create multiple new documentData via file upload - """ - createBulkCSVDocumentData( - """ - csv file containing values of the documentData - """ - input: Upload! - ): DocumentDataBulkCreatePayload! - """ - Update an existing documentData - """ - updateDocumentData( - """ - ID of the documentData - """ - id: ID! - """ - New values for the documentData - """ - input: UpdateDocumentDataInput! - ): DocumentDataUpdatePayload! - """ - Delete an existing documentData - """ - deleteDocumentData( - """ - ID of the documentData - """ - id: ID! - ): DocumentDataDeletePayload! -} - -""" -Return response for createDocumentData mutation -""" -type DocumentDataCreatePayload { - """ - Created documentData - """ - documentData: DocumentData! -} - -""" -Return response for updateDocumentData mutation -""" -type DocumentDataUpdatePayload { - """ - Updated documentData - """ - documentData: DocumentData! -} - -""" -Return response for deleteDocumentData mutation -""" -type DocumentDataDeletePayload { - """ - Deleted documentData ID - """ - deletedID: ID! -} - -""" -Return response for createBulkDocumentData mutation -""" -type DocumentDataBulkCreatePayload { - """ - Created documentData - """ - documentData: [DocumentData!] -}`, BuiltIn: false}, - {Name: "../../schema/ent.graphql", Input: `directive @goField(forceResolver: Boolean, name: String, omittable: Boolean) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION -directive @goModel(model: String, models: [String!], forceGenerate: Boolean) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION -type APIToken implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name associated with the token - """ - name: String! - token: String! - """ - when the token expires - """ - expiresAt: Time - """ - a description of the token's purpose - """ - description: String - scopes: [String!] - lastUsedAt: Time - owner: Organization -} -""" -A connection to a list of items. -""" -type APITokenConnection { - """ - A list of edges. - """ - edges: [APITokenEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type APITokenEdge { - """ - The item at the end of the edge. - """ - node: APIToken - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -APITokenWhereInput is used for filtering APIToken objects. -Input was generated by ent. -""" -input APITokenWhereInput { - not: APITokenWhereInput - and: [APITokenWhereInput!] - or: [APITokenWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - expires_at field predicates - """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean - """ - last_used_at field predicates - """ - lastUsedAt: Time - lastUsedAtNEQ: Time - lastUsedAtIn: [Time!] - lastUsedAtNotIn: [Time!] - lastUsedAtGT: Time - lastUsedAtGTE: Time - lastUsedAtLT: Time - lastUsedAtLTE: Time - lastUsedAtIsNil: Boolean - lastUsedAtNotNil: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] -} -type ActionPlan implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the action plan - """ - name: String! - """ - description of the action plan - """ - description: String - """ - status of the action plan - """ - status: String - """ - due date of the action plan - """ - dueDate: Time - """ - priority of the action plan - """ - priority: String - """ - source of the action plan - """ - source: String - """ - json data including details of the action plan - """ - details: Map - standard: [Standard!] - risk: [Risk!] - control: [Control!] - user: [User!] - program: [Program!] -} -""" -A connection to a list of items. -""" -type ActionPlanConnection { - """ - A list of edges. - """ - edges: [ActionPlanEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ActionPlanEdge { - """ - The item at the end of the edge. - """ - node: ActionPlan - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type ActionPlanHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: ActionPlanHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the action plan - """ - name: String! - """ - description of the action plan - """ - description: String - """ - status of the action plan - """ - status: String - """ - due date of the action plan - """ - dueDate: Time - """ - priority of the action plan - """ - priority: String - """ - source of the action plan - """ - source: String - """ - json data including details of the action plan - """ - details: Map -} -""" -A connection to a list of items. -""" -type ActionPlanHistoryConnection { - """ - A list of edges. - """ - edges: [ActionPlanHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ActionPlanHistoryEdge { - """ - The item at the end of the edge. - """ - node: ActionPlanHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -ActionPlanHistoryOpType is enum for the field operation -""" -enum ActionPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -ActionPlanHistoryWhereInput is used for filtering ActionPlanHistory objects. -Input was generated by ent. -""" -input ActionPlanHistoryWhereInput { - not: ActionPlanHistoryWhereInput - and: [ActionPlanHistoryWhereInput!] - or: [ActionPlanHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: ActionPlanHistoryOpType - operationNEQ: ActionPlanHistoryOpType - operationIn: [ActionPlanHistoryOpType!] - operationNotIn: [ActionPlanHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - due_date field predicates - """ - dueDate: Time - dueDateNEQ: Time - dueDateIn: [Time!] - dueDateNotIn: [Time!] - dueDateGT: Time - dueDateGTE: Time - dueDateLT: Time - dueDateLTE: Time - dueDateIsNil: Boolean - dueDateNotNil: Boolean - """ - priority field predicates - """ - priority: String - priorityNEQ: String - priorityIn: [String!] - priorityNotIn: [String!] - priorityGT: String - priorityGTE: String - priorityLT: String - priorityLTE: String - priorityContains: String - priorityHasPrefix: String - priorityHasSuffix: String - priorityIsNil: Boolean - priorityNotNil: Boolean - priorityEqualFold: String - priorityContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String -} -""" -ActionPlanWhereInput is used for filtering ActionPlan objects. -Input was generated by ent. -""" -input ActionPlanWhereInput { - not: ActionPlanWhereInput - and: [ActionPlanWhereInput!] - or: [ActionPlanWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - due_date field predicates - """ - dueDate: Time - dueDateNEQ: Time - dueDateIn: [Time!] - dueDateNotIn: [Time!] - dueDateGT: Time - dueDateGTE: Time - dueDateLT: Time - dueDateLTE: Time - dueDateIsNil: Boolean - dueDateNotNil: Boolean - """ - priority field predicates - """ - priority: String - priorityNEQ: String - priorityIn: [String!] - priorityNotIn: [String!] - priorityGT: String - priorityGTE: String - priorityLT: String - priorityLTE: String - priorityContains: String - priorityHasPrefix: String - priorityHasSuffix: String - priorityIsNil: Boolean - priorityNotNil: Boolean - priorityEqualFold: String - priorityContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String - """ - standard edge predicates - """ - hasStandard: Boolean - hasStandardWith: [StandardWhereInput!] - """ - risk edge predicates - """ - hasRisk: Boolean - hasRiskWith: [RiskWhereInput!] - """ - control edge predicates - """ - hasControl: Boolean - hasControlWith: [ControlWhereInput!] - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - program edge predicates - """ - hasProgram: Boolean - hasProgramWith: [ProgramWhereInput!] -} -type Contact implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the full name of the contact - """ - fullName: String! - """ - the title of the contact - """ - title: String - """ - the company of the contact - """ - company: String - """ - the email of the contact - """ - email: String - """ - the phone number of the contact - """ - phoneNumber: String - """ - the address of the contact - """ - address: String - """ - status of the contact - """ - status: ContactUserStatus! - owner: Organization - entities: [Entity!] - files: [File!] -} -""" -A connection to a list of items. -""" -type ContactConnection { - """ - A list of edges. - """ - edges: [ContactEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ContactEdge { - """ - The item at the end of the edge. - """ - node: Contact - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type ContactHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: ContactHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the full name of the contact - """ - fullName: String! - """ - the title of the contact - """ - title: String - """ - the company of the contact - """ - company: String - """ - the email of the contact - """ - email: String - """ - the phone number of the contact - """ - phoneNumber: String - """ - the address of the contact - """ - address: String - """ - status of the contact - """ - status: ContactHistoryUserStatus! -} -""" -A connection to a list of items. -""" -type ContactHistoryConnection { - """ - A list of edges. - """ - edges: [ContactHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ContactHistoryEdge { - """ - The item at the end of the edge. - """ - node: ContactHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -ContactHistoryOpType is enum for the field operation -""" -enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -ContactHistoryUserStatus is enum for the field status -""" -enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -ContactHistoryWhereInput is used for filtering ContactHistory objects. -Input was generated by ent. -""" -input ContactHistoryWhereInput { - not: ContactHistoryWhereInput - and: [ContactHistoryWhereInput!] - or: [ContactHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: ContactHistoryOpType - operationNEQ: ContactHistoryOpType - operationIn: [ContactHistoryOpType!] - operationNotIn: [ContactHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - full_name field predicates - """ - fullName: String - fullNameNEQ: String - fullNameIn: [String!] - fullNameNotIn: [String!] - fullNameGT: String - fullNameGTE: String - fullNameLT: String - fullNameLTE: String - fullNameContains: String - fullNameHasPrefix: String - fullNameHasSuffix: String - fullNameEqualFold: String - fullNameContainsFold: String - """ - title field predicates - """ - title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleIsNil: Boolean - titleNotNil: Boolean - titleEqualFold: String - titleContainsFold: String - """ - company field predicates - """ - company: String - companyNEQ: String - companyIn: [String!] - companyNotIn: [String!] - companyGT: String - companyGTE: String - companyLT: String - companyLTE: String - companyContains: String - companyHasPrefix: String - companyHasSuffix: String - companyIsNil: Boolean - companyNotNil: Boolean - companyEqualFold: String - companyContainsFold: String - """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailIsNil: Boolean - emailNotNil: Boolean - emailEqualFold: String - emailContainsFold: String - """ - phone_number field predicates - """ - phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String - """ - address field predicates - """ - address: String - addressNEQ: String - addressIn: [String!] - addressNotIn: [String!] - addressGT: String - addressGTE: String - addressLT: String - addressLTE: String - addressContains: String - addressHasPrefix: String - addressHasSuffix: String - addressIsNil: Boolean - addressNotNil: Boolean - addressEqualFold: String - addressContainsFold: String - """ - status field predicates - """ - status: ContactHistoryUserStatus - statusNEQ: ContactHistoryUserStatus - statusIn: [ContactHistoryUserStatus!] - statusNotIn: [ContactHistoryUserStatus!] -} -""" -ContactUserStatus is enum for the field status -""" -enum ContactUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -ContactWhereInput is used for filtering Contact objects. -Input was generated by ent. -""" -input ContactWhereInput { - not: ContactWhereInput - and: [ContactWhereInput!] - or: [ContactWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - full_name field predicates - """ - fullName: String - fullNameNEQ: String - fullNameIn: [String!] - fullNameNotIn: [String!] - fullNameGT: String - fullNameGTE: String - fullNameLT: String - fullNameLTE: String - fullNameContains: String - fullNameHasPrefix: String - fullNameHasSuffix: String - fullNameEqualFold: String - fullNameContainsFold: String - """ - title field predicates - """ - title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleIsNil: Boolean - titleNotNil: Boolean - titleEqualFold: String - titleContainsFold: String - """ - company field predicates - """ - company: String - companyNEQ: String - companyIn: [String!] - companyNotIn: [String!] - companyGT: String - companyGTE: String - companyLT: String - companyLTE: String - companyContains: String - companyHasPrefix: String - companyHasSuffix: String - companyIsNil: Boolean - companyNotNil: Boolean - companyEqualFold: String - companyContainsFold: String - """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailIsNil: Boolean - emailNotNil: Boolean - emailEqualFold: String - emailContainsFold: String - """ - phone_number field predicates - """ - phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String - """ - address field predicates - """ - address: String - addressNEQ: String - addressIn: [String!] - addressNotIn: [String!] - addressGT: String - addressGTE: String - addressLT: String - addressLTE: String - addressContains: String - addressHasPrefix: String - addressHasSuffix: String - addressIsNil: Boolean - addressNotNil: Boolean - addressEqualFold: String - addressContainsFold: String - """ - status field predicates - """ - status: ContactUserStatus - statusNEQ: ContactUserStatus - statusIn: [ContactUserStatus!] - statusNotIn: [ContactUserStatus!] - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - entities edge predicates - """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -type Control implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: ID! - """ - the name of the control - """ - name: String! - """ - description of the control - """ - description: String - """ - status of the control - """ - status: String - """ - type of the control - """ - controlType: String - """ - version of the control - """ - version: String - """ - control number or identifier - """ - controlNumber: String - """ - family associated with the control - """ - family: String - """ - class associated with the control - """ - class: String - """ - source of the control, e.g. framework, template, custom, etc. - """ - source: String - """ - which control objectives are satisfied by the control - """ - satisfies: String - """ - mapped frameworks - """ - mappedFrameworks: String - """ - json data including details of the control - """ - details: Map - owner: Organization! - """ - groups that are blocked from viewing or editing the risk - """ - blockedGroups: [Group!] - """ - provides edit access to the risk to members of the group - """ - editors: [Group!] - """ - provides view access to the risk to members of the group - """ - viewers: [Group!] - procedures: [Procedure!] - subcontrols: [Subcontrol!] - controlObjectives: [ControlObjective!] - standard: [Standard!] - narratives: [Narrative!] - risks: [Risk!] - actionPlans: [ActionPlan!] - tasks: [Task!] - programs: [Program!] -} -""" -A connection to a list of items. -""" -type ControlConnection { - """ - A list of edges. - """ - edges: [ControlEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ControlEdge { - """ - The item at the end of the edge. - """ - node: Control - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type ControlHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: ControlHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: String! - """ - the name of the control - """ - name: String! - """ - description of the control - """ - description: String - """ - status of the control - """ - status: String - """ - type of the control - """ - controlType: String - """ - version of the control - """ - version: String - """ - control number or identifier - """ - controlNumber: String - """ - family associated with the control - """ - family: String - """ - class associated with the control - """ - class: String - """ - source of the control, e.g. framework, template, custom, etc. - """ - source: String - """ - which control objectives are satisfied by the control - """ - satisfies: String - """ - mapped frameworks - """ - mappedFrameworks: String - """ - json data including details of the control - """ - details: Map -} -""" -A connection to a list of items. -""" -type ControlHistoryConnection { - """ - A list of edges. - """ - edges: [ControlHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ControlHistoryEdge { - """ - The item at the end of the edge. - """ - node: ControlHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -ControlHistoryOpType is enum for the field operation -""" -enum ControlHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -ControlHistoryWhereInput is used for filtering ControlHistory objects. -Input was generated by ent. -""" -input ControlHistoryWhereInput { - not: ControlHistoryWhereInput - and: [ControlHistoryWhereInput!] - or: [ControlHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: ControlHistoryOpType - operationNEQ: ControlHistoryOpType - operationIn: [ControlHistoryOpType!] - operationNotIn: [ControlHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - control_type field predicates - """ - controlType: String - controlTypeNEQ: String - controlTypeIn: [String!] - controlTypeNotIn: [String!] - controlTypeGT: String - controlTypeGTE: String - controlTypeLT: String - controlTypeLTE: String - controlTypeContains: String - controlTypeHasPrefix: String - controlTypeHasSuffix: String - controlTypeIsNil: Boolean - controlTypeNotNil: Boolean - controlTypeEqualFold: String - controlTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - control_number field predicates - """ - controlNumber: String - controlNumberNEQ: String - controlNumberIn: [String!] - controlNumberNotIn: [String!] - controlNumberGT: String - controlNumberGTE: String - controlNumberLT: String - controlNumberLTE: String - controlNumberContains: String - controlNumberHasPrefix: String - controlNumberHasSuffix: String - controlNumberIsNil: Boolean - controlNumberNotNil: Boolean - controlNumberEqualFold: String - controlNumberContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - class field predicates - """ - class: String - classNEQ: String - classIn: [String!] - classNotIn: [String!] - classGT: String - classGTE: String - classLT: String - classLTE: String - classContains: String - classHasPrefix: String - classHasSuffix: String - classIsNil: Boolean - classNotNil: Boolean - classEqualFold: String - classContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String - """ - mapped_frameworks field predicates - """ - mappedFrameworks: String - mappedFrameworksNEQ: String - mappedFrameworksIn: [String!] - mappedFrameworksNotIn: [String!] - mappedFrameworksGT: String - mappedFrameworksGTE: String - mappedFrameworksLT: String - mappedFrameworksLTE: String - mappedFrameworksContains: String - mappedFrameworksHasPrefix: String - mappedFrameworksHasSuffix: String - mappedFrameworksIsNil: Boolean - mappedFrameworksNotNil: Boolean - mappedFrameworksEqualFold: String - mappedFrameworksContainsFold: String -} -type ControlObjective implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: ID! - """ - the name of the control objective - """ - name: String! - """ - description of the control objective - """ - description: String - """ - status of the control objective - """ - status: String - """ - type of the control objective - """ - controlObjectiveType: String - """ - version of the control objective - """ - version: String - """ - number of the control objective - """ - controlNumber: String - """ - family of the control objective - """ - family: String - """ - class associated with the control objective - """ - class: String - """ - source of the control objective, e.g. framework, template, user-defined, etc. - """ - source: String - """ - mapped frameworks - """ - mappedFrameworks: String - """ - json data including details of the control objective - """ - details: Map - owner: Organization! - """ - groups that are blocked from viewing or editing the risk - """ - blockedGroups: [Group!] - """ - provides edit access to the risk to members of the group - """ - editors: [Group!] - """ - provides view access to the risk to members of the group - """ - viewers: [Group!] - internalPolicies: [InternalPolicy!] - controls: [Control!] - procedures: [Procedure!] - risks: [Risk!] - subcontrols: [Subcontrol!] - standard: [Standard!] - narratives: [Narrative!] - tasks: [Task!] - programs: [Program!] -} -""" -A connection to a list of items. -""" -type ControlObjectiveConnection { - """ - A list of edges. - """ - edges: [ControlObjectiveEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ControlObjectiveEdge { - """ - The item at the end of the edge. - """ - node: ControlObjective - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type ControlObjectiveHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: ControlObjectiveHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: String! - """ - the name of the control objective - """ - name: String! - """ - description of the control objective - """ - description: String - """ - status of the control objective - """ - status: String - """ - type of the control objective - """ - controlObjectiveType: String - """ - version of the control objective - """ - version: String - """ - number of the control objective - """ - controlNumber: String - """ - family of the control objective - """ - family: String - """ - class associated with the control objective - """ - class: String - """ - source of the control objective, e.g. framework, template, user-defined, etc. - """ - source: String - """ - mapped frameworks - """ - mappedFrameworks: String - """ - json data including details of the control objective - """ - details: Map -} -""" -A connection to a list of items. -""" -type ControlObjectiveHistoryConnection { - """ - A list of edges. - """ - edges: [ControlObjectiveHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ControlObjectiveHistoryEdge { - """ - The item at the end of the edge. - """ - node: ControlObjectiveHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -ControlObjectiveHistoryOpType is enum for the field operation -""" -enum ControlObjectiveHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -ControlObjectiveHistoryWhereInput is used for filtering ControlObjectiveHistory objects. -Input was generated by ent. -""" -input ControlObjectiveHistoryWhereInput { - not: ControlObjectiveHistoryWhereInput - and: [ControlObjectiveHistoryWhereInput!] - or: [ControlObjectiveHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: ControlObjectiveHistoryOpType - operationNEQ: ControlObjectiveHistoryOpType - operationIn: [ControlObjectiveHistoryOpType!] - operationNotIn: [ControlObjectiveHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - control_objective_type field predicates - """ - controlObjectiveType: String - controlObjectiveTypeNEQ: String - controlObjectiveTypeIn: [String!] - controlObjectiveTypeNotIn: [String!] - controlObjectiveTypeGT: String - controlObjectiveTypeGTE: String - controlObjectiveTypeLT: String - controlObjectiveTypeLTE: String - controlObjectiveTypeContains: String - controlObjectiveTypeHasPrefix: String - controlObjectiveTypeHasSuffix: String - controlObjectiveTypeIsNil: Boolean - controlObjectiveTypeNotNil: Boolean - controlObjectiveTypeEqualFold: String - controlObjectiveTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - control_number field predicates - """ - controlNumber: String - controlNumberNEQ: String - controlNumberIn: [String!] - controlNumberNotIn: [String!] - controlNumberGT: String - controlNumberGTE: String - controlNumberLT: String - controlNumberLTE: String - controlNumberContains: String - controlNumberHasPrefix: String - controlNumberHasSuffix: String - controlNumberIsNil: Boolean - controlNumberNotNil: Boolean - controlNumberEqualFold: String - controlNumberContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - class field predicates - """ - class: String - classNEQ: String - classIn: [String!] - classNotIn: [String!] - classGT: String - classGTE: String - classLT: String - classLTE: String - classContains: String - classHasPrefix: String - classHasSuffix: String - classIsNil: Boolean - classNotNil: Boolean - classEqualFold: String - classContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String - """ - mapped_frameworks field predicates - """ - mappedFrameworks: String - mappedFrameworksNEQ: String - mappedFrameworksIn: [String!] - mappedFrameworksNotIn: [String!] - mappedFrameworksGT: String - mappedFrameworksGTE: String - mappedFrameworksLT: String - mappedFrameworksLTE: String - mappedFrameworksContains: String - mappedFrameworksHasPrefix: String - mappedFrameworksHasSuffix: String - mappedFrameworksIsNil: Boolean - mappedFrameworksNotNil: Boolean - mappedFrameworksEqualFold: String - mappedFrameworksContainsFold: String -} -""" -ControlObjectiveWhereInput is used for filtering ControlObjective objects. -Input was generated by ent. -""" -input ControlObjectiveWhereInput { - not: ControlObjectiveWhereInput - and: [ControlObjectiveWhereInput!] - or: [ControlObjectiveWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - control_objective_type field predicates - """ - controlObjectiveType: String - controlObjectiveTypeNEQ: String - controlObjectiveTypeIn: [String!] - controlObjectiveTypeNotIn: [String!] - controlObjectiveTypeGT: String - controlObjectiveTypeGTE: String - controlObjectiveTypeLT: String - controlObjectiveTypeLTE: String - controlObjectiveTypeContains: String - controlObjectiveTypeHasPrefix: String - controlObjectiveTypeHasSuffix: String - controlObjectiveTypeIsNil: Boolean - controlObjectiveTypeNotNil: Boolean - controlObjectiveTypeEqualFold: String - controlObjectiveTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - control_number field predicates - """ - controlNumber: String - controlNumberNEQ: String - controlNumberIn: [String!] - controlNumberNotIn: [String!] - controlNumberGT: String - controlNumberGTE: String - controlNumberLT: String - controlNumberLTE: String - controlNumberContains: String - controlNumberHasPrefix: String - controlNumberHasSuffix: String - controlNumberIsNil: Boolean - controlNumberNotNil: Boolean - controlNumberEqualFold: String - controlNumberContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - class field predicates - """ - class: String - classNEQ: String - classIn: [String!] - classNotIn: [String!] - classGT: String - classGTE: String - classLT: String - classLTE: String - classContains: String - classHasPrefix: String - classHasSuffix: String - classIsNil: Boolean - classNotNil: Boolean - classEqualFold: String - classContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String - """ - mapped_frameworks field predicates - """ - mappedFrameworks: String - mappedFrameworksNEQ: String - mappedFrameworksIn: [String!] - mappedFrameworksNotIn: [String!] - mappedFrameworksGT: String - mappedFrameworksGTE: String - mappedFrameworksLT: String - mappedFrameworksLTE: String - mappedFrameworksContains: String - mappedFrameworksHasPrefix: String - mappedFrameworksHasSuffix: String - mappedFrameworksIsNil: Boolean - mappedFrameworksNotNil: Boolean - mappedFrameworksEqualFold: String - mappedFrameworksContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - blocked_groups edge predicates - """ - hasBlockedGroups: Boolean - hasBlockedGroupsWith: [GroupWhereInput!] - """ - editors edge predicates - """ - hasEditors: Boolean - hasEditorsWith: [GroupWhereInput!] - """ - viewers edge predicates - """ - hasViewers: Boolean - hasViewersWith: [GroupWhereInput!] - """ - internal_policies edge predicates - """ - hasInternalPolicies: Boolean - hasInternalPoliciesWith: [InternalPolicyWhereInput!] - """ - controls edge predicates - """ - hasControls: Boolean - hasControlsWith: [ControlWhereInput!] - """ - procedures edge predicates - """ - hasProcedures: Boolean - hasProceduresWith: [ProcedureWhereInput!] - """ - risks edge predicates - """ - hasRisks: Boolean - hasRisksWith: [RiskWhereInput!] - """ - subcontrols edge predicates - """ - hasSubcontrols: Boolean - hasSubcontrolsWith: [SubcontrolWhereInput!] - """ - standard edge predicates - """ - hasStandard: Boolean - hasStandardWith: [StandardWhereInput!] - """ - narratives edge predicates - """ - hasNarratives: Boolean - hasNarrativesWith: [NarrativeWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -""" -ControlWhereInput is used for filtering Control objects. -Input was generated by ent. -""" -input ControlWhereInput { - not: ControlWhereInput - and: [ControlWhereInput!] - or: [ControlWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - control_type field predicates - """ - controlType: String - controlTypeNEQ: String - controlTypeIn: [String!] - controlTypeNotIn: [String!] - controlTypeGT: String - controlTypeGTE: String - controlTypeLT: String - controlTypeLTE: String - controlTypeContains: String - controlTypeHasPrefix: String - controlTypeHasSuffix: String - controlTypeIsNil: Boolean - controlTypeNotNil: Boolean - controlTypeEqualFold: String - controlTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - control_number field predicates - """ - controlNumber: String - controlNumberNEQ: String - controlNumberIn: [String!] - controlNumberNotIn: [String!] - controlNumberGT: String - controlNumberGTE: String - controlNumberLT: String - controlNumberLTE: String - controlNumberContains: String - controlNumberHasPrefix: String - controlNumberHasSuffix: String - controlNumberIsNil: Boolean - controlNumberNotNil: Boolean - controlNumberEqualFold: String - controlNumberContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - class field predicates - """ - class: String - classNEQ: String - classIn: [String!] - classNotIn: [String!] - classGT: String - classGTE: String - classLT: String - classLTE: String - classContains: String - classHasPrefix: String - classHasSuffix: String - classIsNil: Boolean - classNotNil: Boolean - classEqualFold: String - classContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String - """ - mapped_frameworks field predicates - """ - mappedFrameworks: String - mappedFrameworksNEQ: String - mappedFrameworksIn: [String!] - mappedFrameworksNotIn: [String!] - mappedFrameworksGT: String - mappedFrameworksGTE: String - mappedFrameworksLT: String - mappedFrameworksLTE: String - mappedFrameworksContains: String - mappedFrameworksHasPrefix: String - mappedFrameworksHasSuffix: String - mappedFrameworksIsNil: Boolean - mappedFrameworksNotNil: Boolean - mappedFrameworksEqualFold: String - mappedFrameworksContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - blocked_groups edge predicates - """ - hasBlockedGroups: Boolean - hasBlockedGroupsWith: [GroupWhereInput!] - """ - editors edge predicates - """ - hasEditors: Boolean - hasEditorsWith: [GroupWhereInput!] - """ - viewers edge predicates - """ - hasViewers: Boolean - hasViewersWith: [GroupWhereInput!] - """ - procedures edge predicates - """ - hasProcedures: Boolean - hasProceduresWith: [ProcedureWhereInput!] - """ - subcontrols edge predicates - """ - hasSubcontrols: Boolean - hasSubcontrolsWith: [SubcontrolWhereInput!] - """ - control_objectives edge predicates - """ - hasControlObjectives: Boolean - hasControlObjectivesWith: [ControlObjectiveWhereInput!] - """ - standard edge predicates - """ - hasStandard: Boolean - hasStandardWith: [StandardWhereInput!] - """ - narratives edge predicates - """ - hasNarratives: Boolean - hasNarrativesWith: [NarrativeWhereInput!] - """ - risks edge predicates - """ - hasRisks: Boolean - hasRisksWith: [RiskWhereInput!] - """ - action_plans edge predicates - """ - hasActionPlans: Boolean - hasActionPlansWith: [ActionPlanWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -""" -CreateAPITokenInput is used for create APIToken object. -Input was generated by ent. -""" -input CreateAPITokenInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name associated with the token - """ - name: String! - """ - when the token expires - """ - expiresAt: Time - """ - a description of the token's purpose - """ - description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID -} -""" -CreateActionPlanInput is used for create ActionPlan object. -Input was generated by ent. -""" -input CreateActionPlanInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the action plan - """ - name: String! - """ - description of the action plan - """ - description: String - """ - status of the action plan - """ - status: String - """ - due date of the action plan - """ - dueDate: Time - """ - priority of the action plan - """ - priority: String - """ - source of the action plan - """ - source: String - """ - json data including details of the action plan - """ - details: Map - standardIDs: [ID!] - riskIDs: [ID!] - controlIDs: [ID!] - userIDs: [ID!] - programIDs: [ID!] -} -""" -CreateContactInput is used for create Contact object. -Input was generated by ent. -""" -input CreateContactInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the full name of the contact - """ - fullName: String! - """ - the title of the contact - """ - title: String - """ - the company of the contact - """ - company: String - """ - the email of the contact - """ - email: String - """ - the phone number of the contact - """ - phoneNumber: String - """ - the address of the contact - """ - address: String - """ - status of the contact - """ - status: ContactUserStatus - ownerID: ID - entityIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateControlInput is used for create Control object. -Input was generated by ent. -""" -input CreateControlInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the control - """ - name: String! - """ - description of the control - """ - description: String - """ - status of the control - """ - status: String - """ - type of the control - """ - controlType: String - """ - version of the control - """ - version: String - """ - control number or identifier - """ - controlNumber: String - """ - family associated with the control - """ - family: String - """ - class associated with the control - """ - class: String - """ - source of the control, e.g. framework, template, custom, etc. - """ - source: String - """ - which control objectives are satisfied by the control - """ - satisfies: String - """ - mapped frameworks - """ - mappedFrameworks: String - """ - json data including details of the control - """ - details: Map - ownerID: ID! - blockedGroupIDs: [ID!] - editorIDs: [ID!] - viewerIDs: [ID!] - procedureIDs: [ID!] - subcontrolIDs: [ID!] - controlObjectiveIDs: [ID!] - standardIDs: [ID!] - narrativeIDs: [ID!] - riskIDs: [ID!] - actionPlanIDs: [ID!] - taskIDs: [ID!] - programIDs: [ID!] -} -""" -CreateControlObjectiveInput is used for create ControlObjective object. -Input was generated by ent. -""" -input CreateControlObjectiveInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the control objective - """ - name: String! - """ - description of the control objective - """ - description: String - """ - status of the control objective - """ - status: String - """ - type of the control objective - """ - controlObjectiveType: String - """ - version of the control objective - """ - version: String - """ - number of the control objective - """ - controlNumber: String - """ - family of the control objective - """ - family: String - """ - class associated with the control objective - """ - class: String - """ - source of the control objective, e.g. framework, template, user-defined, etc. - """ - source: String - """ - mapped frameworks - """ - mappedFrameworks: String - """ - json data including details of the control objective - """ - details: Map - ownerID: ID! - blockedGroupIDs: [ID!] - editorIDs: [ID!] - viewerIDs: [ID!] - internalPolicyIDs: [ID!] - controlIDs: [ID!] - procedureIDs: [ID!] - riskIDs: [ID!] - subcontrolIDs: [ID!] - standardIDs: [ID!] - narrativeIDs: [ID!] - taskIDs: [ID!] - programIDs: [ID!] -} -""" -CreateDocumentDataInput is used for create DocumentData object. -Input was generated by ent. -""" -input CreateDocumentDataInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the json data of the document - """ - data: JSON! - ownerID: ID - templateID: ID! - entityIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateEntityInput is used for create Entity object. -Input was generated by ent. -""" -input CreateEntityInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the entity - """ - name: String - """ - The entity's displayed 'friendly' name - """ - displayName: String - """ - An optional description of the entity - """ - description: String - """ - domains associated with the entity - """ - domains: [String!] - """ - status of the entity - """ - status: String - ownerID: ID - contactIDs: [ID!] - documentIDs: [ID!] - noteIDs: [ID!] - fileIDs: [ID!] - entityTypeID: ID -} -""" -CreateEntityTypeInput is used for create EntityType object. -Input was generated by ent. -""" -input CreateEntityTypeInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the entity - """ - name: String! - ownerID: ID - entityIDs: [ID!] -} -""" -CreateEventInput is used for create Event object. -Input was generated by ent. -""" -input CreateEventInput { - """ - tags associated with the object - """ - tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - userIDs: [ID!] - groupIDs: [ID!] - integrationIDs: [ID!] - organizationIDs: [ID!] - inviteIDs: [ID!] - personalAccessTokenIDs: [ID!] - hushIDs: [ID!] - subscriberIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateFileInput is used for create File object. -Input was generated by ent. -""" -input CreateFileInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system - """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - """ - storageVolume: String - """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - """ - storagePath: String - userIDs: [ID!] - organizationIDs: [ID!] - groupIDs: [ID!] - contactIDs: [ID!] - entityIDs: [ID!] - userSettingIDs: [ID!] - organizationSettingIDs: [ID!] - templateIDs: [ID!] - documentDatumIDs: [ID!] - eventIDs: [ID!] - programIDs: [ID!] -} -""" -CreateGroupInput is used for create Group object. -Input was generated by ent. -""" -input CreateGroupInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the group - must be unique within the organization - """ - name: String! - """ - the groups description - """ - description: String - """ - the URL to an auto generated gravatar image for the group - """ - gravatarLogoURL: String - """ - the URL to an image uploaded by the customer for the groups avatar image - """ - logoURL: String - """ - The group's displayed 'friendly' name - """ - displayName: String - ownerID: ID - controlCreatorIDs: [ID!] - controlObjectiveCreatorIDs: [ID!] - groupCreatorIDs: [ID!] - internalPolicyCreatorIDs: [ID!] - narrativeCreatorIDs: [ID!] - procedureCreatorIDs: [ID!] - programCreatorIDs: [ID!] - riskCreatorIDs: [ID!] - templateCreatorIDs: [ID!] - procedureEditorIDs: [ID!] - procedureBlockedGroupIDs: [ID!] - internalPolicyEditorIDs: [ID!] - internalPolicyBlockedGroupIDs: [ID!] - programEditorIDs: [ID!] - programBlockedGroupIDs: [ID!] - programViewerIDs: [ID!] - riskEditorIDs: [ID!] - riskBlockedGroupIDs: [ID!] - riskViewerIDs: [ID!] - controlObjectiveEditorIDs: [ID!] - controlObjectiveBlockedGroupIDs: [ID!] - controlObjectiveViewerIDs: [ID!] - controlEditorIDs: [ID!] - controlBlockedGroupIDs: [ID!] - controlViewerIDs: [ID!] - narrativeEditorIDs: [ID!] - narrativeBlockedGroupIDs: [ID!] - narrativeViewerIDs: [ID!] - settingID: ID! - userIDs: [ID!] - eventIDs: [ID!] - integrationIDs: [ID!] - fileIDs: [ID!] - taskIDs: [ID!] -} -""" -CreateGroupMembershipInput is used for create GroupMembership object. -Input was generated by ent. -""" -input CreateGroupMembershipInput { - role: GroupMembershipRole - groupID: ID! - userID: ID! - eventIDs: [ID!] -} -""" -CreateGroupSettingInput is used for create GroupSetting object. -Input was generated by ent. -""" -input CreateGroupSettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingVisibility - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingJoinPolicy - """ - whether to sync group members to slack groups - """ - syncToSlack: Boolean - """ - whether to sync group members to github groups - """ - syncToGithub: Boolean - groupID: ID -} -""" -CreateHushInput is used for create Hush object. -Input was generated by ent. -""" -input CreateHushInput { - """ - the logical name of the corresponding hush secret or it's general grouping - """ - name: String! - """ - a description of the hush value or purpose, such as github PAT - """ - description: String - """ - the kind of secret, such as sshkey, certificate, api token, etc. - """ - kind: String - """ - the generic name of a secret associated with the organization - """ - secretName: String - """ - the secret value - """ - secretValue: String - integrationIDs: [ID!] - organizationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateIntegrationInput is used for create Integration object. -Input was generated by ent. -""" -input CreateIntegrationInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the integration - must be unique within the organization - """ - name: String! - """ - a description of the integration - """ - description: String - kind: String - ownerID: ID - secretIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateInternalPolicyInput is used for create InternalPolicy object. -Input was generated by ent. -""" -input CreateInternalPolicyInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the policy - """ - name: String! - """ - description of the policy - """ - description: String - """ - status of the policy - """ - status: String - """ - type of the policy - """ - policyType: String - """ - version of the policy - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the policy - """ - background: String - """ - json data for the policy document - """ - details: Map - ownerID: ID - blockedGroupIDs: [ID!] - editorIDs: [ID!] - controlObjectiveIDs: [ID!] - controlIDs: [ID!] - procedureIDs: [ID!] - narrativeIDs: [ID!] - taskIDs: [ID!] - programIDs: [ID!] -} -""" -CreateInviteInput is used for create Invite object. -Input was generated by ent. -""" -input CreateInviteInput { - """ - the expiration date of the invitation token which defaults to 14 days in the future from creation - """ - expires: Time - """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization - """ - recipient: String! - """ - the status of the invitation - """ - status: InviteInviteStatus - role: InviteRole - """ - the number of attempts made to perform email send of the invitation, maximum of 5 - """ - sendAttempts: Int - """ - the user who initiated the invitation - """ - requestorID: String - ownerID: ID - eventIDs: [ID!] -} -""" -CreateNarrativeInput is used for create Narrative object. -Input was generated by ent. -""" -input CreateNarrativeInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the narrative - """ - name: String! - """ - the description of the narrative - """ - description: String - """ - which controls are satisfied by the narrative - """ - satisfies: String - """ - json data for the narrative document - """ - details: Map - ownerID: ID! - blockedGroupIDs: [ID!] - editorIDs: [ID!] - viewerIDs: [ID!] - internalPolicyIDs: [ID!] - controlIDs: [ID!] - procedureIDs: [ID!] - controlObjectiveIDs: [ID!] - programIDs: [ID!] -} -""" -CreateNoteInput is used for create Note object. -Input was generated by ent. -""" -input CreateNoteInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the text of the note - """ - text: String! - ownerID: ID - entityID: ID - subcontrolIDs: [ID!] - programIDs: [ID!] -} -""" -CreateOrgMembershipInput is used for create OrgMembership object. -Input was generated by ent. -""" -input CreateOrgMembershipInput { - role: OrgMembershipRole - organizationID: ID! - userID: ID! - eventIDs: [ID!] -} -""" -CreateOrgSubscriptionInput is used for create OrgSubscription object. -Input was generated by ent. -""" -input CreateOrgSubscriptionInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the stripe subscription id - """ - stripeSubscriptionID: String - """ - the common name of the product tier the subscription is associated with, e.g. starter tier - """ - productTier: String - """ - the product id that represents the tier in stripe - """ - stripeProductTierID: String - """ - the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status - """ - stripeSubscriptionStatus: String - """ - indicates if the subscription is active - """ - active: Boolean - """ - the customer ID the subscription is associated to - """ - stripeCustomerID: String - """ - the time the subscription is set to expire; only populated if subscription is cancelled - """ - expiresAt: Time - """ - the features associated with the subscription - """ - features: [String!] - ownerID: ID -} -""" -CreateOrganizationInput is used for create Organization object. -Input was generated by ent. -""" -input CreateOrganizationInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the organization - """ - name: String! - """ - The organization's displayed 'friendly' name - """ - displayName: String - """ - An optional description of the organization - """ - description: String - """ - orgs directly associated with a user - """ - personalOrg: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean - controlCreatorIDs: [ID!] - controlObjectiveCreatorIDs: [ID!] - groupCreatorIDs: [ID!] - internalPolicyCreatorIDs: [ID!] - narrativeCreatorIDs: [ID!] - procedureCreatorIDs: [ID!] - programCreatorIDs: [ID!] - riskCreatorIDs: [ID!] - templateCreatorIDs: [ID!] - parentID: ID - groupIDs: [ID!] - templateIDs: [ID!] - integrationIDs: [ID!] - settingID: ID - documentDatumIDs: [ID!] - orgSubscriptionIDs: [ID!] - personalAccessTokenIDs: [ID!] - apiTokenIDs: [ID!] - userIDs: [ID!] - inviteIDs: [ID!] - subscriberIDs: [ID!] - eventIDs: [ID!] - secretIDs: [ID!] - fileIDs: [ID!] - entityIDs: [ID!] - entityTypeIDs: [ID!] - contactIDs: [ID!] - noteIDs: [ID!] - taskIDs: [ID!] - programIDs: [ID!] - procedureIDs: [ID!] - internalPolicyIDs: [ID!] - riskIDs: [ID!] - controlObjectiveIDs: [ID!] - narrativeIDs: [ID!] - controlIDs: [ID!] - subcontrolIDs: [ID!] -} -""" -CreateOrganizationSettingInput is used for create OrganizationSetting object. -Input was generated by ent. -""" -input CreateOrganizationSettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing - """ - billingPhone: String - """ - Address to send billing information to - """ - billingAddress: String - """ - Usually government-issued tax ID or business ID such as ABN in Australia - """ - taxIdentifier: String - """ - geographical location of the organization - """ - geoLocation: OrganizationSettingRegion - """ - the ID of the stripe customer associated with the organization - """ - stripeID: String - organizationID: ID - fileIDs: [ID!] -} -""" -CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. -Input was generated by ent. -""" -input CreatePersonalAccessTokenInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name associated with the token - """ - name: String! - """ - when the token expires - """ - expiresAt: Time - """ - a description of the token's purpose - """ - description: String - scopes: [String!] - lastUsedAt: Time - ownerID: ID! - organizationIDs: [ID!] - eventIDs: [ID!] -} -""" -CreateProcedureInput is used for create Procedure object. -Input was generated by ent. -""" -input CreateProcedureInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the procedure - """ - name: String! - """ - description of the procedure - """ - description: String - """ - status of the procedure - """ - status: String - """ - type of the procedure - """ - procedureType: String - """ - version of the procedure - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the procedure - """ - background: String - """ - which controls are satisfied by the procedure - """ - satisfies: String - """ - json data for the procedure document - """ - details: Map - ownerID: ID - blockedGroupIDs: [ID!] - editorIDs: [ID!] - controlIDs: [ID!] - internalPolicyIDs: [ID!] - narrativeIDs: [ID!] - riskIDs: [ID!] - taskIDs: [ID!] - programIDs: [ID!] -} -""" -CreateProgramInput is used for create Program object. -Input was generated by ent. -""" -input CreateProgramInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the program - """ - name: String! - """ - the description of the program - """ - description: String - """ - the status of the program - """ - status: ProgramProgramStatus - """ - the start date of the period - """ - startDate: Time - """ - the end date of the period - """ - endDate: Time - """ - is the program ready for the auditor - """ - auditorReady: Boolean - """ - can the auditor write comments - """ - auditorWriteComments: Boolean - """ - can the auditor read comments - """ - auditorReadComments: Boolean - ownerID: ID - blockedGroupIDs: [ID!] - editorIDs: [ID!] - viewerIDs: [ID!] - controlIDs: [ID!] - subcontrolIDs: [ID!] - controlObjectiveIDs: [ID!] - internalPolicyIDs: [ID!] - procedureIDs: [ID!] - riskIDs: [ID!] - taskIDs: [ID!] - noteIDs: [ID!] - fileIDs: [ID!] - narrativeIDs: [ID!] - actionPlanIDs: [ID!] - standardIDs: [ID!] - userIDs: [ID!] -} -""" -CreateProgramMembershipInput is used for create ProgramMembership object. -Input was generated by ent. -""" -input CreateProgramMembershipInput { - role: ProgramMembershipRole - programID: ID! - userID: ID! -} -""" -CreateRiskInput is used for create Risk object. -Input was generated by ent. -""" -input CreateRiskInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the risk - """ - name: String! - """ - description of the risk - """ - description: String - """ - status of the risk - mitigated or not, inflight, etc. - """ - status: String - """ - type of the risk, e.g. strategic, operational, financial, external, etc. - """ - riskType: String - """ - business costs associated with the risk - """ - businessCosts: String - """ - impact of the risk - high, medium, low - """ - impact: RiskRiskImpact - """ - likelihood of the risk occurring; unlikely, likely, highly likely - """ - likelihood: RiskRiskLikelihood - """ - mitigation for the risk - """ - mitigation: String - """ - which controls are satisfied by the risk - """ - satisfies: String - """ - json data for the risk document - """ - details: Map - ownerID: ID! - blockedGroupIDs: [ID!] - editorIDs: [ID!] - viewerIDs: [ID!] - controlIDs: [ID!] - procedureIDs: [ID!] - actionPlanIDs: [ID!] - programIDs: [ID!] -} -""" -CreateStandardInput is used for create Standard object. -Input was generated by ent. -""" -input CreateStandardInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. - """ - name: String! - """ - description of the standard - """ - description: String - """ - family of the standard, e.g. 800-53, 800-171, 27001, etc. - """ - family: String - """ - status of the standard - active, deprecated, etc. - """ - status: String - """ - type of the standard - security, privacy, etc. - """ - standardType: String - """ - version of the standard - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the standard - """ - background: String - """ - which controls are satisfied by the standard - """ - satisfies: String - """ - json data with details of the standard - """ - details: Map - controlObjectiveIDs: [ID!] - controlIDs: [ID!] - procedureIDs: [ID!] - actionPlanIDs: [ID!] - programIDs: [ID!] -} -""" -CreateSubcontrolInput is used for create Subcontrol object. -Input was generated by ent. -""" -input CreateSubcontrolInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the subcontrol - """ - name: String! - """ - description of the subcontrol - """ - description: String - """ - status of the subcontrol - """ - status: String - """ - type of the subcontrol - """ - subcontrolType: String - """ - version of the control - """ - version: String - """ - number of the subcontrol - """ - subcontrolNumber: String - """ - subcontrol family - """ - family: String - """ - subcontrol class - """ - class: String - """ - source of the control, e.g. framework, template, user-defined, etc. - """ - source: String - """ - mapped frameworks that the subcontrol is part of - """ - mappedFrameworks: String - """ - implementation evidence of the subcontrol - """ - implementationEvidence: String - """ - implementation status - """ - implementationStatus: String - """ - date the subcontrol was implemented - """ - implementationDate: Time - """ - implementation verification - """ - implementationVerification: String - """ - date the subcontrol implementation was verified - """ - implementationVerificationDate: Time - """ - json data details of the subcontrol - """ - details: Map - ownerID: ID! - controlIDs: [ID!]! - userIDs: [ID!] - taskIDs: [ID!] - notesID: ID - programIDs: [ID!] -} -""" -CreateSubscriberInput is used for create Subscriber object. -Input was generated by ent. -""" -input CreateSubscriberInput { - """ - tags associated with the object - """ - tags: [String!] - """ - email address of the subscriber - """ - email: String! - """ - phone number of the subscriber - """ - phoneNumber: String - ownerID: ID - eventIDs: [ID!] -} -""" -CreateTFASettingInput is used for create TFASetting object. -Input was generated by ent. -""" -input CreateTFASettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app - """ - totpAllowed: Boolean - ownerID: ID -} -""" -CreateTaskInput is used for create Task object. -Input was generated by ent. -""" -input CreateTaskInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the title of the task - """ - title: String! - """ - the description of the task - """ - description: String - """ - the details of the task - """ - details: Map - """ - the status of the task - """ - status: TaskTaskStatus - """ - the due date of the task - """ - due: Time - """ - the completion date of the task - """ - completed: Time - assignerID: ID! - assigneeID: ID - organizationIDs: [ID!] - groupIDs: [ID!] - internalPolicyIDs: [ID!] - procedureIDs: [ID!] - controlIDs: [ID!] - controlObjectiveIDs: [ID!] - subcontrolIDs: [ID!] - programIDs: [ID!] -} -""" -CreateTemplateInput is used for create Template object. -Input was generated by ent. -""" -input CreateTemplateInput { - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the template - """ - name: String! - """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateDocumentType - """ - the description of the template - """ - description: String - """ - the jsonschema object of the template - """ - jsonconfig: JSON! - """ - the uischema for the template to render in the UI - """ - uischema: JSON - ownerID: ID - documentIDs: [ID!] - fileIDs: [ID!] -} -""" -CreateUserInput is used for create User object. -Input was generated by ent. -""" -input CreateUserInput { - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name - """ - displayName: String! - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - The user's local avatar file - """ - avatarLocalFile: String - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - """ - the time the user was last seen - """ - lastSeen: Time - """ - user password hash - """ - password: String - """ - the Subject of the user JWT - """ - sub: String - """ - auth provider used to register the account - """ - authProvider: UserAuthProvider - """ - the user's role - """ - role: UserRole - personalAccessTokenIDs: [ID!] - tfaSettingIDs: [ID!] - settingID: ID! - emailVerificationTokenIDs: [ID!] - passwordResetTokenIDs: [ID!] - groupIDs: [ID!] - organizationIDs: [ID!] - webauthnIDs: [ID!] - fileIDs: [ID!] - fileID: ID - eventIDs: [ID!] - actionPlanIDs: [ID!] - subcontrolIDs: [ID!] - assignerTaskIDs: [ID!] - assigneeTaskIDs: [ID!] - programIDs: [ID!] -} -""" -CreateUserSettingInput is used for create UserSetting object. -Input was generated by ent. -""" -input CreateUserSettingInput { - """ - tags associated with the object - """ - tags: [String!] - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - """ - The time the user was suspended - """ - suspendedAt: Time - """ - status of the user account - """ - status: UserSettingUserStatus - """ - whether the user has confirmed their email address - """ - emailConfirmed: Boolean - """ - specifies a user may complete authentication by verifying a WebAuthn capable device - """ - isWebauthnAllowed: Boolean - """ - whether the user has two factor authentication enabled - """ - isTfaEnabled: Boolean - userID: ID - defaultOrgID: ID - fileIDs: [ID!] -} -""" -Define a Relay Cursor type: -https://relay.dev/graphql/connections.htm#sec-Cursor -""" -scalar Cursor -type DocumentData implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the template id of the document - """ - templateID: ID! - """ - the json data of the document - """ - data: JSON! - owner: Organization - template: Template! - entity: [Entity!] - files: [File!] -} -""" -A connection to a list of items. -""" -type DocumentDataConnection { - """ - A list of edges. - """ - edges: [DocumentDataEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type DocumentDataEdge { - """ - The item at the end of the edge. - """ - node: DocumentData - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type DocumentDataHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: DocumentDataHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the template id of the document - """ - templateID: String! - """ - the json data of the document - """ - data: JSON! -} -""" -A connection to a list of items. -""" -type DocumentDataHistoryConnection { - """ - A list of edges. - """ - edges: [DocumentDataHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type DocumentDataHistoryEdge { - """ - The item at the end of the edge. - """ - node: DocumentDataHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -DocumentDataHistoryOpType is enum for the field operation -""" -enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. -Input was generated by ent. -""" -input DocumentDataHistoryWhereInput { - not: DocumentDataHistoryWhereInput - and: [DocumentDataHistoryWhereInput!] - or: [DocumentDataHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: DocumentDataHistoryOpType - operationNEQ: DocumentDataHistoryOpType - operationIn: [DocumentDataHistoryOpType!] - operationNotIn: [DocumentDataHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - template_id field predicates - """ - templateID: String - templateIDNEQ: String - templateIDIn: [String!] - templateIDNotIn: [String!] - templateIDGT: String - templateIDGTE: String - templateIDLT: String - templateIDLTE: String - templateIDContains: String - templateIDHasPrefix: String - templateIDHasSuffix: String - templateIDEqualFold: String - templateIDContainsFold: String -} -""" -DocumentDataWhereInput is used for filtering DocumentData objects. -Input was generated by ent. -""" -input DocumentDataWhereInput { - not: DocumentDataWhereInput - and: [DocumentDataWhereInput!] - or: [DocumentDataWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - template_id field predicates - """ - templateID: ID - templateIDNEQ: ID - templateIDIn: [ID!] - templateIDNotIn: [ID!] - templateIDGT: ID - templateIDGTE: ID - templateIDLT: ID - templateIDLTE: ID - templateIDContains: ID - templateIDHasPrefix: ID - templateIDHasSuffix: ID - templateIDEqualFold: ID - templateIDContainsFold: ID - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - template edge predicates - """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] - """ - entity edge predicates - """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -type Entity implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the entity - """ - name: String - """ - The entity's displayed 'friendly' name - """ - displayName: String - """ - An optional description of the entity - """ - description: String - """ - domains associated with the entity - """ - domains: [String!] - """ - The type of the entity - """ - entityTypeID: ID - """ - status of the entity - """ - status: String - owner: Organization - contacts: [Contact!] - documents: [DocumentData!] - notes: [Note!] - files: [File!] - entityType: EntityType -} -""" -A connection to a list of items. -""" -type EntityConnection { - """ - A list of edges. - """ - edges: [EntityEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntityEdge { - """ - The item at the end of the edge. - """ - node: Entity - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type EntityHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntityHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the entity - """ - name: String - """ - The entity's displayed 'friendly' name - """ - displayName: String - """ - An optional description of the entity - """ - description: String - """ - domains associated with the entity - """ - domains: [String!] - """ - The type of the entity - """ - entityTypeID: String - """ - status of the entity - """ - status: String -} -""" -A connection to a list of items. -""" -type EntityHistoryConnection { - """ - A list of edges. - """ - edges: [EntityHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntityHistoryEdge { - """ - The item at the end of the edge. - """ - node: EntityHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -EntityHistoryOpType is enum for the field operation -""" -enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for EntityHistory connections -""" -input EntityHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order EntityHistories. - """ - field: EntityHistoryOrderField! -} -""" -Properties by which EntityHistory connections can be ordered. -""" -enum EntityHistoryOrderField { - name - display_name -} -""" -EntityHistoryWhereInput is used for filtering EntityHistory objects. -Input was generated by ent. -""" -input EntityHistoryWhereInput { - not: EntityHistoryWhereInput - and: [EntityHistoryWhereInput!] - or: [EntityHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: EntityHistoryOpType - operationNEQ: EntityHistoryOpType - operationIn: [EntityHistoryOpType!] - operationNotIn: [EntityHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String - """ - entity_type_id field predicates - """ - entityTypeID: String - entityTypeIDNEQ: String - entityTypeIDIn: [String!] - entityTypeIDNotIn: [String!] - entityTypeIDGT: String - entityTypeIDGTE: String - entityTypeIDLT: String - entityTypeIDLTE: String - entityTypeIDContains: String - entityTypeIDHasPrefix: String - entityTypeIDHasSuffix: String - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: String - entityTypeIDContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String -} -""" -Ordering options for Entity connections -""" -input EntityOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Entities. - """ - field: EntityOrderField! -} -""" -Properties by which Entity connections can be ordered. -""" -enum EntityOrderField { - name - display_name -} -type EntityType implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the entity - """ - name: String! - owner: Organization - entities: [Entity!] -} -""" -A connection to a list of items. -""" -type EntityTypeConnection { - """ - A list of edges. - """ - edges: [EntityTypeEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntityTypeEdge { - """ - The item at the end of the edge. - """ - node: EntityType - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type EntityTypeHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EntityTypeHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the entity - """ - name: String! -} -""" -A connection to a list of items. -""" -type EntityTypeHistoryConnection { - """ - A list of edges. - """ - edges: [EntityTypeHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EntityTypeHistoryEdge { - """ - The item at the end of the edge. - """ - node: EntityTypeHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -EntityTypeHistoryOpType is enum for the field operation -""" -enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for EntityTypeHistory connections -""" -input EntityTypeHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order EntityTypeHistories. - """ - field: EntityTypeHistoryOrderField! -} -""" -Properties by which EntityTypeHistory connections can be ordered. -""" -enum EntityTypeHistoryOrderField { - name -} -""" -EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. -Input was generated by ent. -""" -input EntityTypeHistoryWhereInput { - not: EntityTypeHistoryWhereInput - and: [EntityTypeHistoryWhereInput!] - or: [EntityTypeHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: EntityTypeHistoryOpType - operationNEQ: EntityTypeHistoryOpType - operationIn: [EntityTypeHistoryOpType!] - operationNotIn: [EntityTypeHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String -} -""" -Ordering options for EntityType connections -""" -input EntityTypeOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order EntityTypes. - """ - field: EntityTypeOrderField! -} -""" -Properties by which EntityType connections can be ordered. -""" -enum EntityTypeOrderField { - name -} -""" -EntityTypeWhereInput is used for filtering EntityType objects. -Input was generated by ent. -""" -input EntityTypeWhereInput { - not: EntityTypeWhereInput - and: [EntityTypeWhereInput!] - or: [EntityTypeWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - entities edge predicates - """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] -} -""" -EntityWhereInput is used for filtering Entity objects. -Input was generated by ent. -""" -input EntityWhereInput { - not: EntityWhereInput - and: [EntityWhereInput!] - or: [EntityWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameIsNil: Boolean - nameNotNil: Boolean - nameEqualFold: String - nameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameIsNil: Boolean - displayNameNotNil: Boolean - displayNameEqualFold: String - displayNameContainsFold: String - """ - entity_type_id field predicates - """ - entityTypeID: ID - entityTypeIDNEQ: ID - entityTypeIDIn: [ID!] - entityTypeIDNotIn: [ID!] - entityTypeIDGT: ID - entityTypeIDGTE: ID - entityTypeIDLT: ID - entityTypeIDLTE: ID - entityTypeIDContains: ID - entityTypeIDHasPrefix: ID - entityTypeIDHasSuffix: ID - entityTypeIDIsNil: Boolean - entityTypeIDNotNil: Boolean - entityTypeIDEqualFold: ID - entityTypeIDContainsFold: ID - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - contacts edge predicates - """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] - """ - documents edge predicates - """ - hasDocuments: Boolean - hasDocumentsWith: [DocumentDataWhereInput!] - """ - notes edge predicates - """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] - """ - entity_type edge predicates - """ - hasEntityType: Boolean - hasEntityTypeWith: [EntityTypeWhereInput!] -} -type Event implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map - user: [User!] - group: [Group!] - integration: [Integration!] - organization: [Organization!] - invite: [Invite!] - personalAccessToken: [PersonalAccessToken!] - hush: [Hush!] - orgmembership: [OrgMembership!] - groupmembership: [GroupMembership!] - subscriber: [Subscriber!] - file: [File!] -} -""" -A connection to a list of items. -""" -type EventConnection { - """ - A list of edges. - """ - edges: [EventEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EventEdge { - """ - The item at the end of the edge. - """ - node: Event - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type EventHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: EventHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - eventID: String - correlationID: String - eventType: String! - metadata: Map -} -""" -A connection to a list of items. -""" -type EventHistoryConnection { - """ - A list of edges. - """ - edges: [EventHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type EventHistoryEdge { - """ - The item at the end of the edge. - """ - node: EventHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -EventHistoryOpType is enum for the field operation -""" -enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -EventHistoryWhereInput is used for filtering EventHistory objects. -Input was generated by ent. -""" -input EventHistoryWhereInput { - not: EventHistoryWhereInput - and: [EventHistoryWhereInput!] - or: [EventHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: EventHistoryOpType - operationNEQ: EventHistoryOpType - operationIn: [EventHistoryOpType!] - operationNotIn: [EventHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - event_id field predicates - """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String - """ - correlation_id field predicates - """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String - """ - event_type field predicates - """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String -} -""" -EventWhereInput is used for filtering Event objects. -Input was generated by ent. -""" -input EventWhereInput { - not: EventWhereInput - and: [EventWhereInput!] - or: [EventWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - event_id field predicates - """ - eventID: String - eventIDNEQ: String - eventIDIn: [String!] - eventIDNotIn: [String!] - eventIDGT: String - eventIDGTE: String - eventIDLT: String - eventIDLTE: String - eventIDContains: String - eventIDHasPrefix: String - eventIDHasSuffix: String - eventIDIsNil: Boolean - eventIDNotNil: Boolean - eventIDEqualFold: String - eventIDContainsFold: String - """ - correlation_id field predicates - """ - correlationID: String - correlationIDNEQ: String - correlationIDIn: [String!] - correlationIDNotIn: [String!] - correlationIDGT: String - correlationIDGTE: String - correlationIDLT: String - correlationIDLTE: String - correlationIDContains: String - correlationIDHasPrefix: String - correlationIDHasSuffix: String - correlationIDIsNil: Boolean - correlationIDNotNil: Boolean - correlationIDEqualFold: String - correlationIDContainsFold: String - """ - event_type field predicates - """ - eventType: String - eventTypeNEQ: String - eventTypeIn: [String!] - eventTypeNotIn: [String!] - eventTypeGT: String - eventTypeGTE: String - eventTypeLT: String - eventTypeLTE: String - eventTypeContains: String - eventTypeHasPrefix: String - eventTypeHasSuffix: String - eventTypeEqualFold: String - eventTypeContainsFold: String - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] - """ - integration edge predicates - """ - hasIntegration: Boolean - hasIntegrationWith: [IntegrationWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - invite edge predicates - """ - hasInvite: Boolean - hasInviteWith: [InviteWhereInput!] - """ - personal_access_token edge predicates - """ - hasPersonalAccessToken: Boolean - hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] - """ - hush edge predicates - """ - hasHush: Boolean - hasHushWith: [HushWhereInput!] - """ - orgmembership edge predicates - """ - hasOrgmembership: Boolean - hasOrgmembershipWith: [OrgMembershipWhereInput!] - """ - groupmembership edge predicates - """ - hasGroupmembership: Boolean - hasGroupmembershipWith: [GroupMembershipWhereInput!] - """ - subscriber edge predicates - """ - hasSubscriber: Boolean - hasSubscriberWith: [SubscriberWhereInput!] - """ - file edge predicates - """ - hasFile: Boolean - hasFileWith: [FileWhereInput!] -} -type File implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system - """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - """ - storageVolume: String - """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - """ - storagePath: String - user: [User!] - organization: [Organization!] - group: [Group!] - contact: [Contact!] - entity: [Entity!] - userSetting: [UserSetting!] - organizationSetting: [OrganizationSetting!] - template: [Template!] - documentData: [DocumentData!] - events: [Event!] - program: [Program!] -} -""" -A connection to a list of items. -""" -type FileConnection { - """ - A list of edges. - """ - edges: [FileEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type FileEdge { - """ - The item at the end of the edge. - """ - node: File - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type FileHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: FileHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String! - """ - the extension of the file provided - """ - providedFileExtension: String! - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - persistedFileSize: Int - """ - the mime type detected by the system - """ - detectedMimeType: String - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String! - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - """ - the full URI of the file - """ - uri: String - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - """ - storageVolume: String - """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - """ - storagePath: String -} -""" -A connection to a list of items. -""" -type FileHistoryConnection { - """ - A list of edges. - """ - edges: [FileHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type FileHistoryEdge { - """ - The item at the end of the edge. - """ - node: FileHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -FileHistoryOpType is enum for the field operation -""" -enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -FileHistoryWhereInput is used for filtering FileHistory objects. -Input was generated by ent. -""" -input FileHistoryWhereInput { - not: FileHistoryWhereInput - and: [FileHistoryWhereInput!] - or: [FileHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: FileHistoryOpType - operationNEQ: FileHistoryOpType - operationIn: [FileHistoryOpType!] - operationNotIn: [FileHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - provided_file_name field predicates - """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String - """ - provided_file_extension field predicates - """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String - """ - provided_file_size field predicates - """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean - """ - persisted_file_size field predicates - """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean - """ - detected_mime_type field predicates - """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String - """ - md5_hash field predicates - """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String - """ - detected_content_type field predicates - """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String - """ - store_key field predicates - """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String - """ - category_type field predicates - """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String - """ - uri field predicates - """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String - """ - storage_scheme field predicates - """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String - """ - storage_volume field predicates - """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String - """ - storage_path field predicates - """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String -} -""" -FileWhereInput is used for filtering File objects. -Input was generated by ent. -""" -input FileWhereInput { - not: FileWhereInput - and: [FileWhereInput!] - or: [FileWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - provided_file_name field predicates - """ - providedFileName: String - providedFileNameNEQ: String - providedFileNameIn: [String!] - providedFileNameNotIn: [String!] - providedFileNameGT: String - providedFileNameGTE: String - providedFileNameLT: String - providedFileNameLTE: String - providedFileNameContains: String - providedFileNameHasPrefix: String - providedFileNameHasSuffix: String - providedFileNameEqualFold: String - providedFileNameContainsFold: String - """ - provided_file_extension field predicates - """ - providedFileExtension: String - providedFileExtensionNEQ: String - providedFileExtensionIn: [String!] - providedFileExtensionNotIn: [String!] - providedFileExtensionGT: String - providedFileExtensionGTE: String - providedFileExtensionLT: String - providedFileExtensionLTE: String - providedFileExtensionContains: String - providedFileExtensionHasPrefix: String - providedFileExtensionHasSuffix: String - providedFileExtensionEqualFold: String - providedFileExtensionContainsFold: String - """ - provided_file_size field predicates - """ - providedFileSize: Int - providedFileSizeNEQ: Int - providedFileSizeIn: [Int!] - providedFileSizeNotIn: [Int!] - providedFileSizeGT: Int - providedFileSizeGTE: Int - providedFileSizeLT: Int - providedFileSizeLTE: Int - providedFileSizeIsNil: Boolean - providedFileSizeNotNil: Boolean - """ - persisted_file_size field predicates - """ - persistedFileSize: Int - persistedFileSizeNEQ: Int - persistedFileSizeIn: [Int!] - persistedFileSizeNotIn: [Int!] - persistedFileSizeGT: Int - persistedFileSizeGTE: Int - persistedFileSizeLT: Int - persistedFileSizeLTE: Int - persistedFileSizeIsNil: Boolean - persistedFileSizeNotNil: Boolean - """ - detected_mime_type field predicates - """ - detectedMimeType: String - detectedMimeTypeNEQ: String - detectedMimeTypeIn: [String!] - detectedMimeTypeNotIn: [String!] - detectedMimeTypeGT: String - detectedMimeTypeGTE: String - detectedMimeTypeLT: String - detectedMimeTypeLTE: String - detectedMimeTypeContains: String - detectedMimeTypeHasPrefix: String - detectedMimeTypeHasSuffix: String - detectedMimeTypeIsNil: Boolean - detectedMimeTypeNotNil: Boolean - detectedMimeTypeEqualFold: String - detectedMimeTypeContainsFold: String - """ - md5_hash field predicates - """ - md5Hash: String - md5HashNEQ: String - md5HashIn: [String!] - md5HashNotIn: [String!] - md5HashGT: String - md5HashGTE: String - md5HashLT: String - md5HashLTE: String - md5HashContains: String - md5HashHasPrefix: String - md5HashHasSuffix: String - md5HashIsNil: Boolean - md5HashNotNil: Boolean - md5HashEqualFold: String - md5HashContainsFold: String - """ - detected_content_type field predicates - """ - detectedContentType: String - detectedContentTypeNEQ: String - detectedContentTypeIn: [String!] - detectedContentTypeNotIn: [String!] - detectedContentTypeGT: String - detectedContentTypeGTE: String - detectedContentTypeLT: String - detectedContentTypeLTE: String - detectedContentTypeContains: String - detectedContentTypeHasPrefix: String - detectedContentTypeHasSuffix: String - detectedContentTypeEqualFold: String - detectedContentTypeContainsFold: String - """ - store_key field predicates - """ - storeKey: String - storeKeyNEQ: String - storeKeyIn: [String!] - storeKeyNotIn: [String!] - storeKeyGT: String - storeKeyGTE: String - storeKeyLT: String - storeKeyLTE: String - storeKeyContains: String - storeKeyHasPrefix: String - storeKeyHasSuffix: String - storeKeyIsNil: Boolean - storeKeyNotNil: Boolean - storeKeyEqualFold: String - storeKeyContainsFold: String - """ - category_type field predicates - """ - categoryType: String - categoryTypeNEQ: String - categoryTypeIn: [String!] - categoryTypeNotIn: [String!] - categoryTypeGT: String - categoryTypeGTE: String - categoryTypeLT: String - categoryTypeLTE: String - categoryTypeContains: String - categoryTypeHasPrefix: String - categoryTypeHasSuffix: String - categoryTypeIsNil: Boolean - categoryTypeNotNil: Boolean - categoryTypeEqualFold: String - categoryTypeContainsFold: String - """ - uri field predicates - """ - uri: String - uriNEQ: String - uriIn: [String!] - uriNotIn: [String!] - uriGT: String - uriGTE: String - uriLT: String - uriLTE: String - uriContains: String - uriHasPrefix: String - uriHasSuffix: String - uriIsNil: Boolean - uriNotNil: Boolean - uriEqualFold: String - uriContainsFold: String - """ - storage_scheme field predicates - """ - storageScheme: String - storageSchemeNEQ: String - storageSchemeIn: [String!] - storageSchemeNotIn: [String!] - storageSchemeGT: String - storageSchemeGTE: String - storageSchemeLT: String - storageSchemeLTE: String - storageSchemeContains: String - storageSchemeHasPrefix: String - storageSchemeHasSuffix: String - storageSchemeIsNil: Boolean - storageSchemeNotNil: Boolean - storageSchemeEqualFold: String - storageSchemeContainsFold: String - """ - storage_volume field predicates - """ - storageVolume: String - storageVolumeNEQ: String - storageVolumeIn: [String!] - storageVolumeNotIn: [String!] - storageVolumeGT: String - storageVolumeGTE: String - storageVolumeLT: String - storageVolumeLTE: String - storageVolumeContains: String - storageVolumeHasPrefix: String - storageVolumeHasSuffix: String - storageVolumeIsNil: Boolean - storageVolumeNotNil: Boolean - storageVolumeEqualFold: String - storageVolumeContainsFold: String - """ - storage_path field predicates - """ - storagePath: String - storagePathNEQ: String - storagePathIn: [String!] - storagePathNotIn: [String!] - storagePathGT: String - storagePathGTE: String - storagePathLT: String - storagePathLTE: String - storagePathContains: String - storagePathHasPrefix: String - storagePathHasSuffix: String - storagePathIsNil: Boolean - storagePathNotNil: Boolean - storagePathEqualFold: String - storagePathContainsFold: String - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] - """ - contact edge predicates - """ - hasContact: Boolean - hasContactWith: [ContactWhereInput!] - """ - entity edge predicates - """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] - """ - user_setting edge predicates - """ - hasUserSetting: Boolean - hasUserSettingWith: [UserSettingWhereInput!] - """ - organization_setting edge predicates - """ - hasOrganizationSetting: Boolean - hasOrganizationSettingWith: [OrganizationSettingWhereInput!] - """ - template edge predicates - """ - hasTemplate: Boolean - hasTemplateWith: [TemplateWhereInput!] - """ - document_data edge predicates - """ - hasDocumentData: Boolean - hasDocumentDataWith: [DocumentDataWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - program edge predicates - """ - hasProgram: Boolean - hasProgramWith: [ProgramWhereInput!] -} -type Group implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the group - must be unique within the organization - """ - name: String! - """ - the groups description - """ - description: String - """ - the URL to an auto generated gravatar image for the group - """ - gravatarLogoURL: String - """ - the URL to an image uploaded by the customer for the groups avatar image - """ - logoURL: String - """ - The group's displayed 'friendly' name - """ - displayName: String! - owner: Organization - controlCreators: [Organization!] - controlObjectiveCreators: [Organization!] - groupCreators: [Organization!] - internalPolicyCreators: [Organization!] - narrativeCreators: [Organization!] - procedureCreators: [Organization!] - programCreators: [Organization!] - riskCreators: [Organization!] - templateCreators: [Organization!] - procedureEditors: [Procedure!] - procedureBlockedGroups: [Procedure!] - internalPolicyEditors: [InternalPolicy!] - internalPolicyBlockedGroups: [InternalPolicy!] - programEditors: [Program!] - programBlockedGroups: [Program!] - programViewers: [Program!] - riskEditors: [Risk!] - riskBlockedGroups: [Risk!] - riskViewers: [Risk!] - controlObjectiveEditors: [ControlObjective!] - controlObjectiveBlockedGroups: [ControlObjective!] - controlObjectiveViewers: [ControlObjective!] - controlEditors: [Control!] - controlBlockedGroups: [Control!] - controlViewers: [Control!] - narrativeEditors: [Narrative!] - narrativeBlockedGroups: [Narrative!] - narrativeViewers: [Narrative!] - setting: GroupSetting! - users: [User!] - events: [Event!] - integrations: [Integration!] - files: [File!] - tasks: [Task!] - members: [GroupMembership!] -} -""" -A connection to a list of items. -""" -type GroupConnection { - """ - A list of edges. - """ - edges: [GroupEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupEdge { - """ - The item at the end of the edge. - """ - node: Group - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type GroupHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: GroupHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the group - must be unique within the organization - """ - name: String! - """ - the groups description - """ - description: String - """ - the URL to an auto generated gravatar image for the group - """ - gravatarLogoURL: String - """ - the URL to an image uploaded by the customer for the groups avatar image - """ - logoURL: String - """ - The group's displayed 'friendly' name - """ - displayName: String! -} -""" -A connection to a list of items. -""" -type GroupHistoryConnection { - """ - A list of edges. - """ - edges: [GroupHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupHistoryEdge { - """ - The item at the end of the edge. - """ - node: GroupHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -GroupHistoryOpType is enum for the field operation -""" -enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for GroupHistory connections -""" -input GroupHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order GroupHistories. - """ - field: GroupHistoryOrderField! -} -""" -Properties by which GroupHistory connections can be ordered. -""" -enum GroupHistoryOrderField { - name - display_name -} -""" -GroupHistoryWhereInput is used for filtering GroupHistory objects. -Input was generated by ent. -""" -input GroupHistoryWhereInput { - not: GroupHistoryWhereInput - and: [GroupHistoryWhereInput!] - or: [GroupHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: GroupHistoryOpType - operationNEQ: GroupHistoryOpType - operationIn: [GroupHistoryOpType!] - operationNotIn: [GroupHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String -} -type GroupMembership implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: GroupMembershipRole! - groupID: ID! - userID: ID! - group: Group! - user: User! - events: [Event!] -} -""" -A connection to a list of items. -""" -type GroupMembershipConnection { - """ - A list of edges. - """ - edges: [GroupMembershipEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupMembershipEdge { - """ - The item at the end of the edge. - """ - node: GroupMembership - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type GroupMembershipHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: GroupMembershipHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: GroupMembershipHistoryRole! - groupID: String! - userID: String! -} -""" -A connection to a list of items. -""" -type GroupMembershipHistoryConnection { - """ - A list of edges. - """ - edges: [GroupMembershipHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupMembershipHistoryEdge { - """ - The item at the end of the edge. - """ - node: GroupMembershipHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -GroupMembershipHistoryOpType is enum for the field operation -""" -enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -GroupMembershipHistoryRole is enum for the field role -""" -enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER -} -""" -GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. -Input was generated by ent. -""" -input GroupMembershipHistoryWhereInput { - not: GroupMembershipHistoryWhereInput - and: [GroupMembershipHistoryWhereInput!] - or: [GroupMembershipHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: GroupMembershipHistoryOpType - operationNEQ: GroupMembershipHistoryOpType - operationIn: [GroupMembershipHistoryOpType!] - operationNotIn: [GroupMembershipHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - role field predicates - """ - role: GroupMembershipHistoryRole - roleNEQ: GroupMembershipHistoryRole - roleIn: [GroupMembershipHistoryRole!] - roleNotIn: [GroupMembershipHistoryRole!] - """ - group_id field predicates - """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDEqualFold: String - groupIDContainsFold: String - """ - user_id field predicates - """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String -} -""" -GroupMembershipRole is enum for the field role -""" -enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER -} -""" -GroupMembershipWhereInput is used for filtering GroupMembership objects. -Input was generated by ent. -""" -input GroupMembershipWhereInput { - not: GroupMembershipWhereInput - and: [GroupMembershipWhereInput!] - or: [GroupMembershipWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - role field predicates - """ - role: GroupMembershipRole - roleNEQ: GroupMembershipRole - roleIn: [GroupMembershipRole!] - roleNotIn: [GroupMembershipRole!] -} -""" -Ordering options for Group connections -""" -input GroupOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Groups. - """ - field: GroupOrderField! -} -""" -Properties by which Group connections can be ordered. -""" -enum GroupOrderField { - name - display_name -} -type GroupSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingVisibility! - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingJoinPolicy! - """ - whether to sync group members to slack groups - """ - syncToSlack: Boolean - """ - whether to sync group members to github groups - """ - syncToGithub: Boolean - """ - the group id associated with the settings - """ - groupID: ID - group: Group -} -""" -A connection to a list of items. -""" -type GroupSettingConnection { - """ - A list of edges. - """ - edges: [GroupSettingEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupSettingEdge { - """ - The item at the end of the edge. - """ - node: GroupSetting - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type GroupSettingHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: GroupSettingHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingHistoryVisibility! - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingHistoryJoinPolicy! - """ - whether to sync group members to slack groups - """ - syncToSlack: Boolean - """ - whether to sync group members to github groups - """ - syncToGithub: Boolean - """ - the group id associated with the settings - """ - groupID: String -} -""" -A connection to a list of items. -""" -type GroupSettingHistoryConnection { - """ - A list of edges. - """ - edges: [GroupSettingHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type GroupSettingHistoryEdge { - """ - The item at the end of the edge. - """ - node: GroupSettingHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -GroupSettingHistoryJoinPolicy is enum for the field join_policy -""" -enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION -} -""" -GroupSettingHistoryOpType is enum for the field operation -""" -enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -GroupSettingHistoryVisibility is enum for the field visibility -""" -enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE -} -""" -GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. -Input was generated by ent. -""" -input GroupSettingHistoryWhereInput { - not: GroupSettingHistoryWhereInput - and: [GroupSettingHistoryWhereInput!] - or: [GroupSettingHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: GroupSettingHistoryOpType - operationNEQ: GroupSettingHistoryOpType - operationIn: [GroupSettingHistoryOpType!] - operationNotIn: [GroupSettingHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - visibility field predicates - """ - visibility: GroupSettingHistoryVisibility - visibilityNEQ: GroupSettingHistoryVisibility - visibilityIn: [GroupSettingHistoryVisibility!] - visibilityNotIn: [GroupSettingHistoryVisibility!] - """ - join_policy field predicates - """ - joinPolicy: GroupSettingHistoryJoinPolicy - joinPolicyNEQ: GroupSettingHistoryJoinPolicy - joinPolicyIn: [GroupSettingHistoryJoinPolicy!] - joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] - """ - sync_to_slack field predicates - """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean - """ - sync_to_github field predicates - """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean - """ - group_id field predicates - """ - groupID: String - groupIDNEQ: String - groupIDIn: [String!] - groupIDNotIn: [String!] - groupIDGT: String - groupIDGTE: String - groupIDLT: String - groupIDLTE: String - groupIDContains: String - groupIDHasPrefix: String - groupIDHasSuffix: String - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: String - groupIDContainsFold: String -} -""" -GroupSettingJoinPolicy is enum for the field join_policy -""" -enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { - OPEN - INVITE_ONLY - APPLICATION_ONLY - INVITE_OR_APPLICATION -} -""" -GroupSettingVisibility is enum for the field visibility -""" -enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { - PUBLIC - PRIVATE -} -""" -GroupSettingWhereInput is used for filtering GroupSetting objects. -Input was generated by ent. -""" -input GroupSettingWhereInput { - not: GroupSettingWhereInput - and: [GroupSettingWhereInput!] - or: [GroupSettingWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - visibility field predicates - """ - visibility: GroupSettingVisibility - visibilityNEQ: GroupSettingVisibility - visibilityIn: [GroupSettingVisibility!] - visibilityNotIn: [GroupSettingVisibility!] - """ - join_policy field predicates - """ - joinPolicy: GroupSettingJoinPolicy - joinPolicyNEQ: GroupSettingJoinPolicy - joinPolicyIn: [GroupSettingJoinPolicy!] - joinPolicyNotIn: [GroupSettingJoinPolicy!] - """ - sync_to_slack field predicates - """ - syncToSlack: Boolean - syncToSlackNEQ: Boolean - syncToSlackIsNil: Boolean - syncToSlackNotNil: Boolean - """ - sync_to_github field predicates - """ - syncToGithub: Boolean - syncToGithubNEQ: Boolean - syncToGithubIsNil: Boolean - syncToGithubNotNil: Boolean - """ - group_id field predicates - """ - groupID: ID - groupIDNEQ: ID - groupIDIn: [ID!] - groupIDNotIn: [ID!] - groupIDGT: ID - groupIDGTE: ID - groupIDLT: ID - groupIDLTE: ID - groupIDContains: ID - groupIDHasPrefix: ID - groupIDHasSuffix: ID - groupIDIsNil: Boolean - groupIDNotNil: Boolean - groupIDEqualFold: ID - groupIDContainsFold: ID - """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] -} -""" -GroupWhereInput is used for filtering Group objects. -Input was generated by ent. -""" -input GroupWhereInput { - not: GroupWhereInput - and: [GroupWhereInput!] - or: [GroupWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - control_creators edge predicates - """ - hasControlCreators: Boolean - hasControlCreatorsWith: [OrganizationWhereInput!] - """ - control_objective_creators edge predicates - """ - hasControlObjectiveCreators: Boolean - hasControlObjectiveCreatorsWith: [OrganizationWhereInput!] - """ - group_creators edge predicates - """ - hasGroupCreators: Boolean - hasGroupCreatorsWith: [OrganizationWhereInput!] - """ - internal_policy_creators edge predicates - """ - hasInternalPolicyCreators: Boolean - hasInternalPolicyCreatorsWith: [OrganizationWhereInput!] - """ - narrative_creators edge predicates - """ - hasNarrativeCreators: Boolean - hasNarrativeCreatorsWith: [OrganizationWhereInput!] - """ - procedure_creators edge predicates - """ - hasProcedureCreators: Boolean - hasProcedureCreatorsWith: [OrganizationWhereInput!] - """ - program_creators edge predicates - """ - hasProgramCreators: Boolean - hasProgramCreatorsWith: [OrganizationWhereInput!] - """ - risk_creators edge predicates - """ - hasRiskCreators: Boolean - hasRiskCreatorsWith: [OrganizationWhereInput!] - """ - template_creators edge predicates - """ - hasTemplateCreators: Boolean - hasTemplateCreatorsWith: [OrganizationWhereInput!] - """ - procedure_editors edge predicates - """ - hasProcedureEditors: Boolean - hasProcedureEditorsWith: [ProcedureWhereInput!] - """ - procedure_blocked_groups edge predicates - """ - hasProcedureBlockedGroups: Boolean - hasProcedureBlockedGroupsWith: [ProcedureWhereInput!] - """ - internal_policy_editors edge predicates - """ - hasInternalPolicyEditors: Boolean - hasInternalPolicyEditorsWith: [InternalPolicyWhereInput!] - """ - internal_policy_blocked_groups edge predicates - """ - hasInternalPolicyBlockedGroups: Boolean - hasInternalPolicyBlockedGroupsWith: [InternalPolicyWhereInput!] - """ - program_editors edge predicates - """ - hasProgramEditors: Boolean - hasProgramEditorsWith: [ProgramWhereInput!] - """ - program_blocked_groups edge predicates - """ - hasProgramBlockedGroups: Boolean - hasProgramBlockedGroupsWith: [ProgramWhereInput!] - """ - program_viewers edge predicates - """ - hasProgramViewers: Boolean - hasProgramViewersWith: [ProgramWhereInput!] - """ - risk_editors edge predicates - """ - hasRiskEditors: Boolean - hasRiskEditorsWith: [RiskWhereInput!] - """ - risk_blocked_groups edge predicates - """ - hasRiskBlockedGroups: Boolean - hasRiskBlockedGroupsWith: [RiskWhereInput!] - """ - risk_viewers edge predicates - """ - hasRiskViewers: Boolean - hasRiskViewersWith: [RiskWhereInput!] - """ - control_objective_editors edge predicates - """ - hasControlObjectiveEditors: Boolean - hasControlObjectiveEditorsWith: [ControlObjectiveWhereInput!] - """ - control_objective_blocked_groups edge predicates - """ - hasControlObjectiveBlockedGroups: Boolean - hasControlObjectiveBlockedGroupsWith: [ControlObjectiveWhereInput!] - """ - control_objective_viewers edge predicates - """ - hasControlObjectiveViewers: Boolean - hasControlObjectiveViewersWith: [ControlObjectiveWhereInput!] - """ - control_editors edge predicates - """ - hasControlEditors: Boolean - hasControlEditorsWith: [ControlWhereInput!] - """ - control_blocked_groups edge predicates - """ - hasControlBlockedGroups: Boolean - hasControlBlockedGroupsWith: [ControlWhereInput!] - """ - control_viewers edge predicates - """ - hasControlViewers: Boolean - hasControlViewersWith: [ControlWhereInput!] - """ - narrative_editors edge predicates - """ - hasNarrativeEditors: Boolean - hasNarrativeEditorsWith: [NarrativeWhereInput!] - """ - narrative_blocked_groups edge predicates - """ - hasNarrativeBlockedGroups: Boolean - hasNarrativeBlockedGroupsWith: [NarrativeWhereInput!] - """ - narrative_viewers edge predicates - """ - hasNarrativeViewers: Boolean - hasNarrativeViewersWith: [NarrativeWhereInput!] - """ - setting edge predicates - """ - hasSetting: Boolean - hasSettingWith: [GroupSettingWhereInput!] - """ - users edge predicates - """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - integrations edge predicates - """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - members edge predicates - """ - hasMembers: Boolean - hasMembersWith: [GroupMembershipWhereInput!] -} -type Hush implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - the logical name of the corresponding hush secret or it's general grouping - """ - name: String! - """ - a description of the hush value or purpose, such as github PAT - """ - description: String - """ - the kind of secret, such as sshkey, certificate, api token, etc. - """ - kind: String - """ - the generic name of a secret associated with the organization - """ - secretName: String - """ - the integration associated with the secret - """ - integrations: [Integration!] - organization: [Organization!] - events: [Event!] -} -""" -A connection to a list of items. -""" -type HushConnection { - """ - A list of edges. - """ - edges: [HushEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type HushEdge { - """ - The item at the end of the edge. - """ - node: Hush - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type HushHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: HushHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - the logical name of the corresponding hush secret or it's general grouping - """ - name: String! - """ - a description of the hush value or purpose, such as github PAT - """ - description: String - """ - the kind of secret, such as sshkey, certificate, api token, etc. - """ - kind: String - """ - the generic name of a secret associated with the organization - """ - secretName: String -} -""" -A connection to a list of items. -""" -type HushHistoryConnection { - """ - A list of edges. - """ - edges: [HushHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type HushHistoryEdge { - """ - The item at the end of the edge. - """ - node: HushHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -HushHistoryOpType is enum for the field operation -""" -enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for HushHistory connections -""" -input HushHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order HushHistories. - """ - field: HushHistoryOrderField! -} -""" -Properties by which HushHistory connections can be ordered. -""" -enum HushHistoryOrderField { - name - kind -} -""" -HushHistoryWhereInput is used for filtering HushHistory objects. -Input was generated by ent. -""" -input HushHistoryWhereInput { - not: HushHistoryWhereInput - and: [HushHistoryWhereInput!] - or: [HushHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: HushHistoryOpType - operationNEQ: HushHistoryOpType - operationIn: [HushHistoryOpType!] - operationNotIn: [HushHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - kind field predicates - """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String - """ - secret_name field predicates - """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String -} -""" -Ordering options for Hush connections -""" -input HushOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Hushes. - """ - field: HushOrderField! -} -""" -Properties by which Hush connections can be ordered. -""" -enum HushOrderField { - name - kind -} -""" -HushWhereInput is used for filtering Hush objects. -Input was generated by ent. -""" -input HushWhereInput { - not: HushWhereInput - and: [HushWhereInput!] - or: [HushWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - kind field predicates - """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String - """ - secret_name field predicates - """ - secretName: String - secretNameNEQ: String - secretNameIn: [String!] - secretNameNotIn: [String!] - secretNameGT: String - secretNameGTE: String - secretNameLT: String - secretNameLTE: String - secretNameContains: String - secretNameHasPrefix: String - secretNameHasSuffix: String - secretNameIsNil: Boolean - secretNameNotNil: Boolean - secretNameEqualFold: String - secretNameContainsFold: String - """ - integrations edge predicates - """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -type Integration implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the integration - must be unique within the organization - """ - name: String! - """ - a description of the integration - """ - description: String - kind: String - owner: Organization - """ - the secrets associated with the integration - """ - secrets: [Hush!] - events: [Event!] -} -""" -A connection to a list of items. -""" -type IntegrationConnection { - """ - A list of edges. - """ - edges: [IntegrationEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type IntegrationEdge { - """ - The item at the end of the edge. - """ - node: Integration - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type IntegrationHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: IntegrationHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the integration - must be unique within the organization - """ - name: String! - """ - a description of the integration - """ - description: String - kind: String -} -""" -A connection to a list of items. -""" -type IntegrationHistoryConnection { - """ - A list of edges. - """ - edges: [IntegrationHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type IntegrationHistoryEdge { - """ - The item at the end of the edge. - """ - node: IntegrationHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -IntegrationHistoryOpType is enum for the field operation -""" -enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for IntegrationHistory connections -""" -input IntegrationHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order IntegrationHistories. - """ - field: IntegrationHistoryOrderField! -} -""" -Properties by which IntegrationHistory connections can be ordered. -""" -enum IntegrationHistoryOrderField { - name - kind -} -""" -IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. -Input was generated by ent. -""" -input IntegrationHistoryWhereInput { - not: IntegrationHistoryWhereInput - and: [IntegrationHistoryWhereInput!] - or: [IntegrationHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: IntegrationHistoryOpType - operationNEQ: IntegrationHistoryOpType - operationIn: [IntegrationHistoryOpType!] - operationNotIn: [IntegrationHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - kind field predicates - """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String -} -""" -Ordering options for Integration connections -""" -input IntegrationOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Integrations. - """ - field: IntegrationOrderField! -} -""" -Properties by which Integration connections can be ordered. -""" -enum IntegrationOrderField { - name - kind -} -""" -IntegrationWhereInput is used for filtering Integration objects. -Input was generated by ent. -""" -input IntegrationWhereInput { - not: IntegrationWhereInput - and: [IntegrationWhereInput!] - or: [IntegrationWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - kind field predicates - """ - kind: String - kindNEQ: String - kindIn: [String!] - kindNotIn: [String!] - kindGT: String - kindGTE: String - kindLT: String - kindLTE: String - kindContains: String - kindHasPrefix: String - kindHasSuffix: String - kindIsNil: Boolean - kindNotNil: Boolean - kindEqualFold: String - kindContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - secrets edge predicates - """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -type InternalPolicy implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the policy - """ - name: String! - """ - description of the policy - """ - description: String - """ - status of the policy - """ - status: String - """ - type of the policy - """ - policyType: String - """ - version of the policy - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the policy - """ - background: String - """ - json data for the policy document - """ - details: Map - owner: Organization - """ - groups that are blocked from viewing or editing the risk - """ - blockedGroups: [Group!] - """ - provides edit access to the risk to members of the group - """ - editors: [Group!] - controlObjectives: [ControlObjective!] - controls: [Control!] - procedures: [Procedure!] - narratives: [Narrative!] - tasks: [Task!] - programs: [Program!] -} -""" -A connection to a list of items. -""" -type InternalPolicyConnection { - """ - A list of edges. - """ - edges: [InternalPolicyEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type InternalPolicyEdge { - """ - The item at the end of the edge. - """ - node: InternalPolicy - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type InternalPolicyHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: InternalPolicyHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the policy - """ - name: String! - """ - description of the policy - """ - description: String - """ - status of the policy - """ - status: String - """ - type of the policy - """ - policyType: String - """ - version of the policy - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the policy - """ - background: String - """ - json data for the policy document - """ - details: Map -} -""" -A connection to a list of items. -""" -type InternalPolicyHistoryConnection { - """ - A list of edges. - """ - edges: [InternalPolicyHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type InternalPolicyHistoryEdge { - """ - The item at the end of the edge. - """ - node: InternalPolicyHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -InternalPolicyHistoryOpType is enum for the field operation -""" -enum InternalPolicyHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -InternalPolicyHistoryWhereInput is used for filtering InternalPolicyHistory objects. -Input was generated by ent. -""" -input InternalPolicyHistoryWhereInput { - not: InternalPolicyHistoryWhereInput - and: [InternalPolicyHistoryWhereInput!] - or: [InternalPolicyHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: InternalPolicyHistoryOpType - operationNEQ: InternalPolicyHistoryOpType - operationIn: [InternalPolicyHistoryOpType!] - operationNotIn: [InternalPolicyHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - policy_type field predicates - """ - policyType: String - policyTypeNEQ: String - policyTypeIn: [String!] - policyTypeNotIn: [String!] - policyTypeGT: String - policyTypeGTE: String - policyTypeLT: String - policyTypeLTE: String - policyTypeContains: String - policyTypeHasPrefix: String - policyTypeHasSuffix: String - policyTypeIsNil: Boolean - policyTypeNotNil: Boolean - policyTypeEqualFold: String - policyTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - purpose_and_scope field predicates - """ - purposeAndScope: String - purposeAndScopeNEQ: String - purposeAndScopeIn: [String!] - purposeAndScopeNotIn: [String!] - purposeAndScopeGT: String - purposeAndScopeGTE: String - purposeAndScopeLT: String - purposeAndScopeLTE: String - purposeAndScopeContains: String - purposeAndScopeHasPrefix: String - purposeAndScopeHasSuffix: String - purposeAndScopeIsNil: Boolean - purposeAndScopeNotNil: Boolean - purposeAndScopeEqualFold: String - purposeAndScopeContainsFold: String - """ - background field predicates - """ - background: String - backgroundNEQ: String - backgroundIn: [String!] - backgroundNotIn: [String!] - backgroundGT: String - backgroundGTE: String - backgroundLT: String - backgroundLTE: String - backgroundContains: String - backgroundHasPrefix: String - backgroundHasSuffix: String - backgroundIsNil: Boolean - backgroundNotNil: Boolean - backgroundEqualFold: String - backgroundContainsFold: String -} -""" -InternalPolicyWhereInput is used for filtering InternalPolicy objects. -Input was generated by ent. -""" -input InternalPolicyWhereInput { - not: InternalPolicyWhereInput - and: [InternalPolicyWhereInput!] - or: [InternalPolicyWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - policy_type field predicates - """ - policyType: String - policyTypeNEQ: String - policyTypeIn: [String!] - policyTypeNotIn: [String!] - policyTypeGT: String - policyTypeGTE: String - policyTypeLT: String - policyTypeLTE: String - policyTypeContains: String - policyTypeHasPrefix: String - policyTypeHasSuffix: String - policyTypeIsNil: Boolean - policyTypeNotNil: Boolean - policyTypeEqualFold: String - policyTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - purpose_and_scope field predicates - """ - purposeAndScope: String - purposeAndScopeNEQ: String - purposeAndScopeIn: [String!] - purposeAndScopeNotIn: [String!] - purposeAndScopeGT: String - purposeAndScopeGTE: String - purposeAndScopeLT: String - purposeAndScopeLTE: String - purposeAndScopeContains: String - purposeAndScopeHasPrefix: String - purposeAndScopeHasSuffix: String - purposeAndScopeIsNil: Boolean - purposeAndScopeNotNil: Boolean - purposeAndScopeEqualFold: String - purposeAndScopeContainsFold: String - """ - background field predicates - """ - background: String - backgroundNEQ: String - backgroundIn: [String!] - backgroundNotIn: [String!] - backgroundGT: String - backgroundGTE: String - backgroundLT: String - backgroundLTE: String - backgroundContains: String - backgroundHasPrefix: String - backgroundHasSuffix: String - backgroundIsNil: Boolean - backgroundNotNil: Boolean - backgroundEqualFold: String - backgroundContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - blocked_groups edge predicates - """ - hasBlockedGroups: Boolean - hasBlockedGroupsWith: [GroupWhereInput!] - """ - editors edge predicates - """ - hasEditors: Boolean - hasEditorsWith: [GroupWhereInput!] - """ - control_objectives edge predicates - """ - hasControlObjectives: Boolean - hasControlObjectivesWith: [ControlObjectiveWhereInput!] - """ - controls edge predicates - """ - hasControls: Boolean - hasControlsWith: [ControlWhereInput!] - """ - procedures edge predicates - """ - hasProcedures: Boolean - hasProceduresWith: [ProcedureWhereInput!] - """ - narratives edge predicates - """ - hasNarratives: Boolean - hasNarrativesWith: [NarrativeWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -type Invite implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the expiration date of the invitation token which defaults to 14 days in the future from creation - """ - expires: Time - """ - the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization - """ - recipient: String! - """ - the status of the invitation - """ - status: InviteInviteStatus! - role: InviteRole! - """ - the number of attempts made to perform email send of the invitation, maximum of 5 - """ - sendAttempts: Int! - """ - the user who initiated the invitation - """ - requestorID: String - owner: Organization - events: [Event!] -} -""" -A connection to a list of items. -""" -type InviteConnection { - """ - A list of edges. - """ - edges: [InviteEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type InviteEdge { - """ - The item at the end of the edge. - """ - node: Invite - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -InviteInviteStatus is enum for the field status -""" -enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { - INVITATION_SENT - APPROVAL_REQUIRED - INVITATION_ACCEPTED - INVITATION_EXPIRED -} -""" -InviteRole is enum for the field role -""" -enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER -} -""" -InviteWhereInput is used for filtering Invite objects. -Input was generated by ent. -""" -input InviteWhereInput { - not: InviteWhereInput - and: [InviteWhereInput!] - or: [InviteWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - expires field predicates - """ - expires: Time - expiresNEQ: Time - expiresIn: [Time!] - expiresNotIn: [Time!] - expiresGT: Time - expiresGTE: Time - expiresLT: Time - expiresLTE: Time - expiresIsNil: Boolean - expiresNotNil: Boolean - """ - recipient field predicates - """ - recipient: String - recipientNEQ: String - recipientIn: [String!] - recipientNotIn: [String!] - recipientGT: String - recipientGTE: String - recipientLT: String - recipientLTE: String - recipientContains: String - recipientHasPrefix: String - recipientHasSuffix: String - recipientEqualFold: String - recipientContainsFold: String - """ - status field predicates - """ - status: InviteInviteStatus - statusNEQ: InviteInviteStatus - statusIn: [InviteInviteStatus!] - statusNotIn: [InviteInviteStatus!] - """ - role field predicates - """ - role: InviteRole - roleNEQ: InviteRole - roleIn: [InviteRole!] - roleNotIn: [InviteRole!] - """ - send_attempts field predicates - """ - sendAttempts: Int - sendAttemptsNEQ: Int - sendAttemptsIn: [Int!] - sendAttemptsNotIn: [Int!] - sendAttemptsGT: Int - sendAttemptsGTE: Int - sendAttemptsLT: Int - sendAttemptsLTE: Int - """ - requestor_id field predicates - """ - requestorID: String - requestorIDNEQ: String - requestorIDIn: [String!] - requestorIDNotIn: [String!] - requestorIDGT: String - requestorIDGTE: String - requestorIDLT: String - requestorIDLTE: String - requestorIDContains: String - requestorIDHasPrefix: String - requestorIDHasSuffix: String - requestorIDIsNil: Boolean - requestorIDNotNil: Boolean - requestorIDEqualFold: String - requestorIDContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -""" -A valid JSON string. -""" -scalar JSON -""" -The builtin Map type -""" -scalar Map -type Narrative implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: ID! - """ - the name of the narrative - """ - name: String! - """ - the description of the narrative - """ - description: String - """ - which controls are satisfied by the narrative - """ - satisfies: String - """ - json data for the narrative document - """ - details: Map - owner: Organization! - """ - groups that are blocked from viewing or editing the risk - """ - blockedGroups: [Group!] - """ - provides edit access to the risk to members of the group - """ - editors: [Group!] - """ - provides view access to the risk to members of the group - """ - viewers: [Group!] - internalPolicy: [InternalPolicy!] - control: [Control!] - procedure: [Procedure!] - controlObjective: [ControlObjective!] - programs: [Program!] -} -""" -A connection to a list of items. -""" -type NarrativeConnection { - """ - A list of edges. - """ - edges: [NarrativeEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type NarrativeEdge { - """ - The item at the end of the edge. - """ - node: Narrative - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type NarrativeHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: NarrativeHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: String! - """ - the name of the narrative - """ - name: String! - """ - the description of the narrative - """ - description: String - """ - which controls are satisfied by the narrative - """ - satisfies: String - """ - json data for the narrative document - """ - details: Map -} -""" -A connection to a list of items. -""" -type NarrativeHistoryConnection { - """ - A list of edges. - """ - edges: [NarrativeHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type NarrativeHistoryEdge { - """ - The item at the end of the edge. - """ - node: NarrativeHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -NarrativeHistoryOpType is enum for the field operation -""" -enum NarrativeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -NarrativeHistoryWhereInput is used for filtering NarrativeHistory objects. -Input was generated by ent. -""" -input NarrativeHistoryWhereInput { - not: NarrativeHistoryWhereInput - and: [NarrativeHistoryWhereInput!] - or: [NarrativeHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: NarrativeHistoryOpType - operationNEQ: NarrativeHistoryOpType - operationIn: [NarrativeHistoryOpType!] - operationNotIn: [NarrativeHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String -} -""" -NarrativeWhereInput is used for filtering Narrative objects. -Input was generated by ent. -""" -input NarrativeWhereInput { - not: NarrativeWhereInput - and: [NarrativeWhereInput!] - or: [NarrativeWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - blocked_groups edge predicates - """ - hasBlockedGroups: Boolean - hasBlockedGroupsWith: [GroupWhereInput!] - """ - editors edge predicates - """ - hasEditors: Boolean - hasEditorsWith: [GroupWhereInput!] - """ - viewers edge predicates - """ - hasViewers: Boolean - hasViewersWith: [GroupWhereInput!] - """ - internal_policy edge predicates - """ - hasInternalPolicy: Boolean - hasInternalPolicyWith: [InternalPolicyWhereInput!] - """ - control edge predicates - """ - hasControl: Boolean - hasControlWith: [ControlWhereInput!] - """ - procedure edge predicates - """ - hasProcedure: Boolean - hasProcedureWith: [ProcedureWhereInput!] - """ - control_objective edge predicates - """ - hasControlObjective: Boolean - hasControlObjectiveWith: [ControlObjectiveWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -""" -An object with an ID. -Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) -""" -interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { - """ - The id of the object. - """ - id: ID! -} -type Note implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the text of the note - """ - text: String! - owner: Organization - entity: Entity - subcontrols: [Subcontrol!] - program: [Program!] -} -""" -A connection to a list of items. -""" -type NoteConnection { - """ - A list of edges. - """ - edges: [NoteEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type NoteEdge { - """ - The item at the end of the edge. - """ - node: Note - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type NoteHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: NoteHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the text of the note - """ - text: String! -} -""" -A connection to a list of items. -""" -type NoteHistoryConnection { - """ - A list of edges. - """ - edges: [NoteHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type NoteHistoryEdge { - """ - The item at the end of the edge. - """ - node: NoteHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -NoteHistoryOpType is enum for the field operation -""" -enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -NoteHistoryWhereInput is used for filtering NoteHistory objects. -Input was generated by ent. -""" -input NoteHistoryWhereInput { - not: NoteHistoryWhereInput - and: [NoteHistoryWhereInput!] - or: [NoteHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: NoteHistoryOpType - operationNEQ: NoteHistoryOpType - operationIn: [NoteHistoryOpType!] - operationNotIn: [NoteHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - text field predicates - """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String -} -""" -NoteWhereInput is used for filtering Note objects. -Input was generated by ent. -""" -input NoteWhereInput { - not: NoteWhereInput - and: [NoteWhereInput!] - or: [NoteWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - text field predicates - """ - text: String - textNEQ: String - textIn: [String!] - textNotIn: [String!] - textGT: String - textGTE: String - textLT: String - textLTE: String - textContains: String - textHasPrefix: String - textHasSuffix: String - textEqualFold: String - textContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - entity edge predicates - """ - hasEntity: Boolean - hasEntityWith: [EntityWhereInput!] - """ - subcontrols edge predicates - """ - hasSubcontrols: Boolean - hasSubcontrolsWith: [SubcontrolWhereInput!] - """ - program edge predicates - """ - hasProgram: Boolean - hasProgramWith: [ProgramWhereInput!] -} -""" -Possible directions in which to order a list of items when provided an ` + "`" + `orderBy` + "`" + ` argument. -""" -enum OrderDirection { - """ - Specifies an ascending order for a given ` + "`" + `orderBy` + "`" + ` argument. - """ - ASC - """ - Specifies a descending order for a given ` + "`" + `orderBy` + "`" + ` argument. - """ - DESC -} -type OrgMembership implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: OrgMembershipRole! - organizationID: ID! - userID: ID! - organization: Organization! - user: User! - events: [Event!] -} -""" -A connection to a list of items. -""" -type OrgMembershipConnection { - """ - A list of edges. - """ - edges: [OrgMembershipEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrgMembershipEdge { - """ - The item at the end of the edge. - """ - node: OrgMembership - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type OrgMembershipHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrgMembershipHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: OrgMembershipHistoryRole! - organizationID: String! - userID: String! -} -""" -A connection to a list of items. -""" -type OrgMembershipHistoryConnection { - """ - A list of edges. - """ - edges: [OrgMembershipHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrgMembershipHistoryEdge { - """ - The item at the end of the edge. - """ - node: OrgMembershipHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -OrgMembershipHistoryOpType is enum for the field operation -""" -enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -OrgMembershipHistoryRole is enum for the field role -""" -enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - OWNER -} -""" -OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. -Input was generated by ent. -""" -input OrgMembershipHistoryWhereInput { - not: OrgMembershipHistoryWhereInput - and: [OrgMembershipHistoryWhereInput!] - or: [OrgMembershipHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: OrgMembershipHistoryOpType - operationNEQ: OrgMembershipHistoryOpType - operationIn: [OrgMembershipHistoryOpType!] - operationNotIn: [OrgMembershipHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - role field predicates - """ - role: OrgMembershipHistoryRole - roleNEQ: OrgMembershipHistoryRole - roleIn: [OrgMembershipHistoryRole!] - roleNotIn: [OrgMembershipHistoryRole!] - """ - organization_id field predicates - """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDEqualFold: String - organizationIDContainsFold: String - """ - user_id field predicates - """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String -} -""" -OrgMembershipRole is enum for the field role -""" -enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - OWNER -} -""" -OrgMembershipWhereInput is used for filtering OrgMembership objects. -Input was generated by ent. -""" -input OrgMembershipWhereInput { - not: OrgMembershipWhereInput - and: [OrgMembershipWhereInput!] - or: [OrgMembershipWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - role field predicates - """ - role: OrgMembershipRole - roleNEQ: OrgMembershipRole - roleIn: [OrgMembershipRole!] - roleNotIn: [OrgMembershipRole!] -} -type OrgSubscription implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - the stripe subscription id - """ - stripeSubscriptionID: String - """ - the common name of the product tier the subscription is associated with, e.g. starter tier - """ - productTier: String - """ - the product id that represents the tier in stripe - """ - stripeProductTierID: String - """ - the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status - """ - stripeSubscriptionStatus: String - """ - indicates if the subscription is active - """ - active: Boolean! - """ - the customer ID the subscription is associated to - """ - stripeCustomerID: String - """ - the time the subscription is set to expire; only populated if subscription is cancelled - """ - expiresAt: Time - """ - the features associated with the subscription - """ - features: [String!] - owner: Organization -} -""" -A connection to a list of items. -""" -type OrgSubscriptionConnection { - """ - A list of edges. - """ - edges: [OrgSubscriptionEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrgSubscriptionEdge { - """ - The item at the end of the edge. - """ - node: OrgSubscription - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type OrgSubscriptionHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrgSubscriptionHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: String - """ - the stripe subscription id - """ - stripeSubscriptionID: String - """ - the common name of the product tier the subscription is associated with, e.g. starter tier - """ - productTier: String - """ - the product id that represents the tier in stripe - """ - stripeProductTierID: String - """ - the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status - """ - stripeSubscriptionStatus: String - """ - indicates if the subscription is active - """ - active: Boolean! - """ - the customer ID the subscription is associated to - """ - stripeCustomerID: String - """ - the time the subscription is set to expire; only populated if subscription is cancelled - """ - expiresAt: Time - """ - the features associated with the subscription - """ - features: [String!] -} -""" -A connection to a list of items. -""" -type OrgSubscriptionHistoryConnection { - """ - A list of edges. - """ - edges: [OrgSubscriptionHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrgSubscriptionHistoryEdge { - """ - The item at the end of the edge. - """ - node: OrgSubscriptionHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -OrgSubscriptionHistoryOpType is enum for the field operation -""" -enum OrgSubscriptionHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -OrgSubscriptionHistoryWhereInput is used for filtering OrgSubscriptionHistory objects. -Input was generated by ent. -""" -input OrgSubscriptionHistoryWhereInput { - not: OrgSubscriptionHistoryWhereInput - and: [OrgSubscriptionHistoryWhereInput!] - or: [OrgSubscriptionHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: OrgSubscriptionHistoryOpType - operationNEQ: OrgSubscriptionHistoryOpType - operationIn: [OrgSubscriptionHistoryOpType!] - operationNotIn: [OrgSubscriptionHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - stripe_subscription_id field predicates - """ - stripeSubscriptionID: String - stripeSubscriptionIDNEQ: String - stripeSubscriptionIDIn: [String!] - stripeSubscriptionIDNotIn: [String!] - stripeSubscriptionIDGT: String - stripeSubscriptionIDGTE: String - stripeSubscriptionIDLT: String - stripeSubscriptionIDLTE: String - stripeSubscriptionIDContains: String - stripeSubscriptionIDHasPrefix: String - stripeSubscriptionIDHasSuffix: String - stripeSubscriptionIDIsNil: Boolean - stripeSubscriptionIDNotNil: Boolean - stripeSubscriptionIDEqualFold: String - stripeSubscriptionIDContainsFold: String - """ - product_tier field predicates - """ - productTier: String - productTierNEQ: String - productTierIn: [String!] - productTierNotIn: [String!] - productTierGT: String - productTierGTE: String - productTierLT: String - productTierLTE: String - productTierContains: String - productTierHasPrefix: String - productTierHasSuffix: String - productTierIsNil: Boolean - productTierNotNil: Boolean - productTierEqualFold: String - productTierContainsFold: String - """ - stripe_product_tier_id field predicates - """ - stripeProductTierID: String - stripeProductTierIDNEQ: String - stripeProductTierIDIn: [String!] - stripeProductTierIDNotIn: [String!] - stripeProductTierIDGT: String - stripeProductTierIDGTE: String - stripeProductTierIDLT: String - stripeProductTierIDLTE: String - stripeProductTierIDContains: String - stripeProductTierIDHasPrefix: String - stripeProductTierIDHasSuffix: String - stripeProductTierIDIsNil: Boolean - stripeProductTierIDNotNil: Boolean - stripeProductTierIDEqualFold: String - stripeProductTierIDContainsFold: String - """ - stripe_subscription_status field predicates - """ - stripeSubscriptionStatus: String - stripeSubscriptionStatusNEQ: String - stripeSubscriptionStatusIn: [String!] - stripeSubscriptionStatusNotIn: [String!] - stripeSubscriptionStatusGT: String - stripeSubscriptionStatusGTE: String - stripeSubscriptionStatusLT: String - stripeSubscriptionStatusLTE: String - stripeSubscriptionStatusContains: String - stripeSubscriptionStatusHasPrefix: String - stripeSubscriptionStatusHasSuffix: String - stripeSubscriptionStatusIsNil: Boolean - stripeSubscriptionStatusNotNil: Boolean - stripeSubscriptionStatusEqualFold: String - stripeSubscriptionStatusContainsFold: String - """ - active field predicates - """ - active: Boolean - activeNEQ: Boolean - """ - stripe_customer_id field predicates - """ - stripeCustomerID: String - stripeCustomerIDNEQ: String - stripeCustomerIDIn: [String!] - stripeCustomerIDNotIn: [String!] - stripeCustomerIDGT: String - stripeCustomerIDGTE: String - stripeCustomerIDLT: String - stripeCustomerIDLTE: String - stripeCustomerIDContains: String - stripeCustomerIDHasPrefix: String - stripeCustomerIDHasSuffix: String - stripeCustomerIDIsNil: Boolean - stripeCustomerIDNotNil: Boolean - stripeCustomerIDEqualFold: String - stripeCustomerIDContainsFold: String - """ - expires_at field predicates - """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean -} -""" -OrgSubscriptionWhereInput is used for filtering OrgSubscription objects. -Input was generated by ent. -""" -input OrgSubscriptionWhereInput { - not: OrgSubscriptionWhereInput - and: [OrgSubscriptionWhereInput!] - or: [OrgSubscriptionWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - stripe_subscription_id field predicates - """ - stripeSubscriptionID: String - stripeSubscriptionIDNEQ: String - stripeSubscriptionIDIn: [String!] - stripeSubscriptionIDNotIn: [String!] - stripeSubscriptionIDGT: String - stripeSubscriptionIDGTE: String - stripeSubscriptionIDLT: String - stripeSubscriptionIDLTE: String - stripeSubscriptionIDContains: String - stripeSubscriptionIDHasPrefix: String - stripeSubscriptionIDHasSuffix: String - stripeSubscriptionIDIsNil: Boolean - stripeSubscriptionIDNotNil: Boolean - stripeSubscriptionIDEqualFold: String - stripeSubscriptionIDContainsFold: String - """ - product_tier field predicates - """ - productTier: String - productTierNEQ: String - productTierIn: [String!] - productTierNotIn: [String!] - productTierGT: String - productTierGTE: String - productTierLT: String - productTierLTE: String - productTierContains: String - productTierHasPrefix: String - productTierHasSuffix: String - productTierIsNil: Boolean - productTierNotNil: Boolean - productTierEqualFold: String - productTierContainsFold: String - """ - stripe_product_tier_id field predicates - """ - stripeProductTierID: String - stripeProductTierIDNEQ: String - stripeProductTierIDIn: [String!] - stripeProductTierIDNotIn: [String!] - stripeProductTierIDGT: String - stripeProductTierIDGTE: String - stripeProductTierIDLT: String - stripeProductTierIDLTE: String - stripeProductTierIDContains: String - stripeProductTierIDHasPrefix: String - stripeProductTierIDHasSuffix: String - stripeProductTierIDIsNil: Boolean - stripeProductTierIDNotNil: Boolean - stripeProductTierIDEqualFold: String - stripeProductTierIDContainsFold: String - """ - stripe_subscription_status field predicates - """ - stripeSubscriptionStatus: String - stripeSubscriptionStatusNEQ: String - stripeSubscriptionStatusIn: [String!] - stripeSubscriptionStatusNotIn: [String!] - stripeSubscriptionStatusGT: String - stripeSubscriptionStatusGTE: String - stripeSubscriptionStatusLT: String - stripeSubscriptionStatusLTE: String - stripeSubscriptionStatusContains: String - stripeSubscriptionStatusHasPrefix: String - stripeSubscriptionStatusHasSuffix: String - stripeSubscriptionStatusIsNil: Boolean - stripeSubscriptionStatusNotNil: Boolean - stripeSubscriptionStatusEqualFold: String - stripeSubscriptionStatusContainsFold: String - """ - active field predicates - """ - active: Boolean - activeNEQ: Boolean - """ - stripe_customer_id field predicates - """ - stripeCustomerID: String - stripeCustomerIDNEQ: String - stripeCustomerIDIn: [String!] - stripeCustomerIDNotIn: [String!] - stripeCustomerIDGT: String - stripeCustomerIDGTE: String - stripeCustomerIDLT: String - stripeCustomerIDLTE: String - stripeCustomerIDContains: String - stripeCustomerIDHasPrefix: String - stripeCustomerIDHasSuffix: String - stripeCustomerIDIsNil: Boolean - stripeCustomerIDNotNil: Boolean - stripeCustomerIDEqualFold: String - stripeCustomerIDContainsFold: String - """ - expires_at field predicates - """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] -} -type Organization implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the name of the organization - """ - name: String! - """ - The organization's displayed 'friendly' name - """ - displayName: String! - """ - An optional description of the organization - """ - description: String - """ - orgs directly associated with a user - """ - personalOrg: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean! - """ - groups that are allowed to create controls - """ - controlCreators: [Group!] - """ - groups that are allowed to create control_objectives - """ - controlObjectiveCreators: [Group!] - """ - groups that are allowed to create groups - """ - groupCreators: [Group!] - """ - groups that are allowed to create internal_policys - """ - internalPolicyCreators: [Group!] - """ - groups that are allowed to create narratives - """ - narrativeCreators: [Group!] - """ - groups that are allowed to create procedures - """ - procedureCreators: [Group!] - """ - groups that are allowed to create programs - """ - programCreators: [Group!] - """ - groups that are allowed to create risks - """ - riskCreators: [Group!] - """ - groups that are allowed to create templates - """ - templateCreators: [Group!] - parent: Organization - children( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Organizations returned from the connection. - """ - orderBy: OrganizationOrder - - """ - Filtering options for Organizations returned from the connection. - """ - where: OrganizationWhereInput - ): OrganizationConnection! - groups: [Group!] - templates: [Template!] - integrations: [Integration!] - setting: OrganizationSetting - documentData: [DocumentData!] - orgSubscriptions: [OrgSubscription!] - personalAccessTokens: [PersonalAccessToken!] - apiTokens: [APIToken!] - users: [User!] - invites: [Invite!] - subscribers: [Subscriber!] - events: [Event!] - secrets: [Hush!] - files: [File!] - entities: [Entity!] - entityTypes: [EntityType!] - contacts: [Contact!] - notes: [Note!] - tasks: [Task!] - programs: [Program!] - procedures: [Procedure!] - internalPolicies: [InternalPolicy!] - risks: [Risk!] - controlObjectives: [ControlObjective!] - narratives: [Narrative!] - controls: [Control!] - subcontrols: [Subcontrol!] - members: [OrgMembership!] -} -""" -A connection to a list of items. -""" -type OrganizationConnection { - """ - A list of edges. - """ - edges: [OrganizationEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationEdge { - """ - The item at the end of the edge. - """ - node: Organization - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type OrganizationHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrganizationHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the name of the organization - """ - name: String! - """ - The organization's displayed 'friendly' name - """ - displayName: String! - """ - An optional description of the organization - """ - description: String - """ - orgs directly associated with a user - """ - personalOrg: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - Whether the organization has a dedicated database - """ - dedicatedDb: Boolean! -} -""" -A connection to a list of items. -""" -type OrganizationHistoryConnection { - """ - A list of edges. - """ - edges: [OrganizationHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationHistoryEdge { - """ - The item at the end of the edge. - """ - node: OrganizationHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -OrganizationHistoryOpType is enum for the field operation -""" -enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for OrganizationHistory connections -""" -input OrganizationHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order OrganizationHistories. - """ - field: OrganizationHistoryOrderField! -} -""" -Properties by which OrganizationHistory connections can be ordered. -""" -enum OrganizationHistoryOrderField { - name - display_name -} -""" -OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. -Input was generated by ent. -""" -input OrganizationHistoryWhereInput { - not: OrganizationHistoryWhereInput - and: [OrganizationHistoryWhereInput!] - or: [OrganizationHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: OrganizationHistoryOpType - operationNEQ: OrganizationHistoryOpType - operationIn: [OrganizationHistoryOpType!] - operationNotIn: [OrganizationHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - parent_organization_id field predicates - """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID - """ - personal_org field predicates - """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean - """ - avatar_remote_url field predicates - """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String -} -""" -Ordering options for Organization connections -""" -input OrganizationOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Organizations. - """ - field: OrganizationOrderField! -} -""" -Properties by which Organization connections can be ordered. -""" -enum OrganizationOrderField { - name - display_name -} -type OrganizationSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing - """ - billingPhone: String - """ - Address to send billing information to - """ - billingAddress: String - """ - Usually government-issued tax ID or business ID such as ABN in Australia - """ - taxIdentifier: String - """ - geographical location of the organization - """ - geoLocation: OrganizationSettingRegion - """ - the ID of the organization the settings belong to - """ - organizationID: ID - """ - the ID of the stripe customer associated with the organization - """ - stripeID: String - organization: Organization - files: [File!] -} -""" -A connection to a list of items. -""" -type OrganizationSettingConnection { - """ - A list of edges. - """ - edges: [OrganizationSettingEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationSettingEdge { - """ - The item at the end of the edge. - """ - node: OrganizationSetting - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type OrganizationSettingHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: OrganizationSettingHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - domains associated with the organization - """ - domains: [String!] - """ - Name of the person to contact for billing - """ - billingContact: String - """ - Email address of the person to contact for billing - """ - billingEmail: String - """ - Phone number to contact for billing - """ - billingPhone: String - """ - Address to send billing information to - """ - billingAddress: String - """ - Usually government-issued tax ID or business ID such as ABN in Australia - """ - taxIdentifier: String - """ - geographical location of the organization - """ - geoLocation: OrganizationSettingHistoryRegion - """ - the ID of the organization the settings belong to - """ - organizationID: String - """ - the ID of the stripe customer associated with the organization - """ - stripeID: String -} -""" -A connection to a list of items. -""" -type OrganizationSettingHistoryConnection { - """ - A list of edges. - """ - edges: [OrganizationSettingHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type OrganizationSettingHistoryEdge { - """ - The item at the end of the edge. - """ - node: OrganizationSettingHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -OrganizationSettingHistoryOpType is enum for the field operation -""" -enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -OrganizationSettingHistoryRegion is enum for the field geo_location -""" -enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC -} -""" -OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. -Input was generated by ent. -""" -input OrganizationSettingHistoryWhereInput { - not: OrganizationSettingHistoryWhereInput - and: [OrganizationSettingHistoryWhereInput!] - or: [OrganizationSettingHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: OrganizationSettingHistoryOpType - operationNEQ: OrganizationSettingHistoryOpType - operationIn: [OrganizationSettingHistoryOpType!] - operationNotIn: [OrganizationSettingHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - billing_contact field predicates - """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String - """ - billing_email field predicates - """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String - """ - billing_phone field predicates - """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String - """ - billing_address field predicates - """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String - """ - tax_identifier field predicates - """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String - """ - geo_location field predicates - """ - geoLocation: OrganizationSettingHistoryRegion - geoLocationNEQ: OrganizationSettingHistoryRegion - geoLocationIn: [OrganizationSettingHistoryRegion!] - geoLocationNotIn: [OrganizationSettingHistoryRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean - """ - organization_id field predicates - """ - organizationID: String - organizationIDNEQ: String - organizationIDIn: [String!] - organizationIDNotIn: [String!] - organizationIDGT: String - organizationIDGTE: String - organizationIDLT: String - organizationIDLTE: String - organizationIDContains: String - organizationIDHasPrefix: String - organizationIDHasSuffix: String - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: String - organizationIDContainsFold: String - """ - stripe_id field predicates - """ - stripeID: String - stripeIDNEQ: String - stripeIDIn: [String!] - stripeIDNotIn: [String!] - stripeIDGT: String - stripeIDGTE: String - stripeIDLT: String - stripeIDLTE: String - stripeIDContains: String - stripeIDHasPrefix: String - stripeIDHasSuffix: String - stripeIDIsNil: Boolean - stripeIDNotNil: Boolean - stripeIDEqualFold: String - stripeIDContainsFold: String -} -""" -OrganizationSettingRegion is enum for the field geo_location -""" -enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { - AMER - EMEA - APAC -} -""" -OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. -Input was generated by ent. -""" -input OrganizationSettingWhereInput { - not: OrganizationSettingWhereInput - and: [OrganizationSettingWhereInput!] - or: [OrganizationSettingWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - billing_contact field predicates - """ - billingContact: String - billingContactNEQ: String - billingContactIn: [String!] - billingContactNotIn: [String!] - billingContactGT: String - billingContactGTE: String - billingContactLT: String - billingContactLTE: String - billingContactContains: String - billingContactHasPrefix: String - billingContactHasSuffix: String - billingContactIsNil: Boolean - billingContactNotNil: Boolean - billingContactEqualFold: String - billingContactContainsFold: String - """ - billing_email field predicates - """ - billingEmail: String - billingEmailNEQ: String - billingEmailIn: [String!] - billingEmailNotIn: [String!] - billingEmailGT: String - billingEmailGTE: String - billingEmailLT: String - billingEmailLTE: String - billingEmailContains: String - billingEmailHasPrefix: String - billingEmailHasSuffix: String - billingEmailIsNil: Boolean - billingEmailNotNil: Boolean - billingEmailEqualFold: String - billingEmailContainsFold: String - """ - billing_phone field predicates - """ - billingPhone: String - billingPhoneNEQ: String - billingPhoneIn: [String!] - billingPhoneNotIn: [String!] - billingPhoneGT: String - billingPhoneGTE: String - billingPhoneLT: String - billingPhoneLTE: String - billingPhoneContains: String - billingPhoneHasPrefix: String - billingPhoneHasSuffix: String - billingPhoneIsNil: Boolean - billingPhoneNotNil: Boolean - billingPhoneEqualFold: String - billingPhoneContainsFold: String - """ - billing_address field predicates - """ - billingAddress: String - billingAddressNEQ: String - billingAddressIn: [String!] - billingAddressNotIn: [String!] - billingAddressGT: String - billingAddressGTE: String - billingAddressLT: String - billingAddressLTE: String - billingAddressContains: String - billingAddressHasPrefix: String - billingAddressHasSuffix: String - billingAddressIsNil: Boolean - billingAddressNotNil: Boolean - billingAddressEqualFold: String - billingAddressContainsFold: String - """ - tax_identifier field predicates - """ - taxIdentifier: String - taxIdentifierNEQ: String - taxIdentifierIn: [String!] - taxIdentifierNotIn: [String!] - taxIdentifierGT: String - taxIdentifierGTE: String - taxIdentifierLT: String - taxIdentifierLTE: String - taxIdentifierContains: String - taxIdentifierHasPrefix: String - taxIdentifierHasSuffix: String - taxIdentifierIsNil: Boolean - taxIdentifierNotNil: Boolean - taxIdentifierEqualFold: String - taxIdentifierContainsFold: String - """ - geo_location field predicates - """ - geoLocation: OrganizationSettingRegion - geoLocationNEQ: OrganizationSettingRegion - geoLocationIn: [OrganizationSettingRegion!] - geoLocationNotIn: [OrganizationSettingRegion!] - geoLocationIsNil: Boolean - geoLocationNotNil: Boolean - """ - organization_id field predicates - """ - organizationID: ID - organizationIDNEQ: ID - organizationIDIn: [ID!] - organizationIDNotIn: [ID!] - organizationIDGT: ID - organizationIDGTE: ID - organizationIDLT: ID - organizationIDLTE: ID - organizationIDContains: ID - organizationIDHasPrefix: ID - organizationIDHasSuffix: ID - organizationIDIsNil: Boolean - organizationIDNotNil: Boolean - organizationIDEqualFold: ID - organizationIDContainsFold: ID - """ - stripe_id field predicates - """ - stripeID: String - stripeIDNEQ: String - stripeIDIn: [String!] - stripeIDNotIn: [String!] - stripeIDGT: String - stripeIDGTE: String - stripeIDLT: String - stripeIDLTE: String - stripeIDContains: String - stripeIDHasPrefix: String - stripeIDHasSuffix: String - stripeIDIsNil: Boolean - stripeIDNotNil: Boolean - stripeIDEqualFold: String - stripeIDContainsFold: String - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -""" -OrganizationWhereInput is used for filtering Organization objects. -Input was generated by ent. -""" -input OrganizationWhereInput { - not: OrganizationWhereInput - and: [OrganizationWhereInput!] - or: [OrganizationWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - parent_organization_id field predicates - """ - parentOrganizationID: ID - parentOrganizationIDNEQ: ID - parentOrganizationIDIn: [ID!] - parentOrganizationIDNotIn: [ID!] - parentOrganizationIDGT: ID - parentOrganizationIDGTE: ID - parentOrganizationIDLT: ID - parentOrganizationIDLTE: ID - parentOrganizationIDContains: ID - parentOrganizationIDHasPrefix: ID - parentOrganizationIDHasSuffix: ID - parentOrganizationIDIsNil: Boolean - parentOrganizationIDNotNil: Boolean - parentOrganizationIDEqualFold: ID - parentOrganizationIDContainsFold: ID - """ - personal_org field predicates - """ - personalOrg: Boolean - personalOrgNEQ: Boolean - personalOrgIsNil: Boolean - personalOrgNotNil: Boolean - """ - avatar_remote_url field predicates - """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String - """ - control_creators edge predicates - """ - hasControlCreators: Boolean - hasControlCreatorsWith: [GroupWhereInput!] - """ - control_objective_creators edge predicates - """ - hasControlObjectiveCreators: Boolean - hasControlObjectiveCreatorsWith: [GroupWhereInput!] - """ - group_creators edge predicates - """ - hasGroupCreators: Boolean - hasGroupCreatorsWith: [GroupWhereInput!] - """ - internal_policy_creators edge predicates - """ - hasInternalPolicyCreators: Boolean - hasInternalPolicyCreatorsWith: [GroupWhereInput!] - """ - narrative_creators edge predicates - """ - hasNarrativeCreators: Boolean - hasNarrativeCreatorsWith: [GroupWhereInput!] - """ - procedure_creators edge predicates - """ - hasProcedureCreators: Boolean - hasProcedureCreatorsWith: [GroupWhereInput!] - """ - program_creators edge predicates - """ - hasProgramCreators: Boolean - hasProgramCreatorsWith: [GroupWhereInput!] - """ - risk_creators edge predicates - """ - hasRiskCreators: Boolean - hasRiskCreatorsWith: [GroupWhereInput!] - """ - template_creators edge predicates - """ - hasTemplateCreators: Boolean - hasTemplateCreatorsWith: [GroupWhereInput!] - """ - parent edge predicates - """ - hasParent: Boolean - hasParentWith: [OrganizationWhereInput!] - """ - children edge predicates - """ - hasChildren: Boolean - hasChildrenWith: [OrganizationWhereInput!] - """ - groups edge predicates - """ - hasGroups: Boolean - hasGroupsWith: [GroupWhereInput!] - """ - templates edge predicates - """ - hasTemplates: Boolean - hasTemplatesWith: [TemplateWhereInput!] - """ - integrations edge predicates - """ - hasIntegrations: Boolean - hasIntegrationsWith: [IntegrationWhereInput!] - """ - setting edge predicates - """ - hasSetting: Boolean - hasSettingWith: [OrganizationSettingWhereInput!] - """ - document_data edge predicates - """ - hasDocumentData: Boolean - hasDocumentDataWith: [DocumentDataWhereInput!] - """ - org_subscriptions edge predicates - """ - hasOrgSubscriptions: Boolean - hasOrgSubscriptionsWith: [OrgSubscriptionWhereInput!] - """ - personal_access_tokens edge predicates - """ - hasPersonalAccessTokens: Boolean - hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] - """ - api_tokens edge predicates - """ - hasAPITokens: Boolean - hasAPITokensWith: [APITokenWhereInput!] - """ - users edge predicates - """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] - """ - invites edge predicates - """ - hasInvites: Boolean - hasInvitesWith: [InviteWhereInput!] - """ - subscribers edge predicates - """ - hasSubscribers: Boolean - hasSubscribersWith: [SubscriberWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - secrets edge predicates - """ - hasSecrets: Boolean - hasSecretsWith: [HushWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] - """ - entities edge predicates - """ - hasEntities: Boolean - hasEntitiesWith: [EntityWhereInput!] - """ - entity_types edge predicates - """ - hasEntityTypes: Boolean - hasEntityTypesWith: [EntityTypeWhereInput!] - """ - contacts edge predicates - """ - hasContacts: Boolean - hasContactsWith: [ContactWhereInput!] - """ - notes edge predicates - """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] - """ - procedures edge predicates - """ - hasProcedures: Boolean - hasProceduresWith: [ProcedureWhereInput!] - """ - internal_policies edge predicates - """ - hasInternalPolicies: Boolean - hasInternalPoliciesWith: [InternalPolicyWhereInput!] - """ - risks edge predicates - """ - hasRisks: Boolean - hasRisksWith: [RiskWhereInput!] - """ - control_objectives edge predicates - """ - hasControlObjectives: Boolean - hasControlObjectivesWith: [ControlObjectiveWhereInput!] - """ - narratives edge predicates - """ - hasNarratives: Boolean - hasNarrativesWith: [NarrativeWhereInput!] - """ - controls edge predicates - """ - hasControls: Boolean - hasControlsWith: [ControlWhereInput!] - """ - subcontrols edge predicates - """ - hasSubcontrols: Boolean - hasSubcontrolsWith: [SubcontrolWhereInput!] - """ - members edge predicates - """ - hasMembers: Boolean - hasMembersWith: [OrgMembershipWhereInput!] -} -""" -Information about pagination in a connection. -https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo -""" -type PageInfo { - """ - When paginating forwards, are there more items? - """ - hasNextPage: Boolean! - """ - When paginating backwards, are there more items? - """ - hasPreviousPage: Boolean! - """ - When paginating backwards, the cursor to continue. - """ - startCursor: Cursor - """ - When paginating forwards, the cursor to continue. - """ - endCursor: Cursor -} -type PersonalAccessToken implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name associated with the token - """ - name: String! - token: String! - """ - when the token expires - """ - expiresAt: Time - """ - a description of the token's purpose - """ - description: String - scopes: [String!] - lastUsedAt: Time - owner: User! - """ - the organization(s) the token is associated with - """ - organizations: [Organization!] - events: [Event!] -} -""" -A connection to a list of items. -""" -type PersonalAccessTokenConnection { - """ - A list of edges. - """ - edges: [PersonalAccessTokenEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type PersonalAccessTokenEdge { - """ - The item at the end of the edge. - """ - node: PersonalAccessToken - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. -Input was generated by ent. -""" -input PersonalAccessTokenWhereInput { - not: PersonalAccessTokenWhereInput - and: [PersonalAccessTokenWhereInput!] - or: [PersonalAccessTokenWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - expires_at field predicates - """ - expiresAt: Time - expiresAtNEQ: Time - expiresAtIn: [Time!] - expiresAtNotIn: [Time!] - expiresAtGT: Time - expiresAtGTE: Time - expiresAtLT: Time - expiresAtLTE: Time - expiresAtIsNil: Boolean - expiresAtNotNil: Boolean - """ - last_used_at field predicates - """ - lastUsedAt: Time - lastUsedAtNEQ: Time - lastUsedAtIn: [Time!] - lastUsedAtNotIn: [Time!] - lastUsedAtGT: Time - lastUsedAtGTE: Time - lastUsedAtLT: Time - lastUsedAtLTE: Time - lastUsedAtIsNil: Boolean - lastUsedAtNotNil: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [UserWhereInput!] - """ - organizations edge predicates - """ - hasOrganizations: Boolean - hasOrganizationsWith: [OrganizationWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -type Procedure implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the procedure - """ - name: String! - """ - description of the procedure - """ - description: String - """ - status of the procedure - """ - status: String - """ - type of the procedure - """ - procedureType: String - """ - version of the procedure - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the procedure - """ - background: String - """ - which controls are satisfied by the procedure - """ - satisfies: String - """ - json data for the procedure document - """ - details: Map - owner: Organization - """ - groups that are blocked from viewing or editing the risk - """ - blockedGroups: [Group!] - """ - provides edit access to the risk to members of the group - """ - editors: [Group!] - controls: [Control!] - internalPolicies: [InternalPolicy!] - narratives: [Narrative!] - risks: [Risk!] - tasks: [Task!] - programs: [Program!] -} -""" -A connection to a list of items. -""" -type ProcedureConnection { - """ - A list of edges. - """ - edges: [ProcedureEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ProcedureEdge { - """ - The item at the end of the edge. - """ - node: Procedure - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type ProcedureHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: ProcedureHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the procedure - """ - name: String! - """ - description of the procedure - """ - description: String - """ - status of the procedure - """ - status: String - """ - type of the procedure - """ - procedureType: String - """ - version of the procedure - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the procedure - """ - background: String - """ - which controls are satisfied by the procedure - """ - satisfies: String - """ - json data for the procedure document - """ - details: Map -} -""" -A connection to a list of items. -""" -type ProcedureHistoryConnection { - """ - A list of edges. - """ - edges: [ProcedureHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ProcedureHistoryEdge { - """ - The item at the end of the edge. - """ - node: ProcedureHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -ProcedureHistoryOpType is enum for the field operation -""" -enum ProcedureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -ProcedureHistoryWhereInput is used for filtering ProcedureHistory objects. -Input was generated by ent. -""" -input ProcedureHistoryWhereInput { - not: ProcedureHistoryWhereInput - and: [ProcedureHistoryWhereInput!] - or: [ProcedureHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: ProcedureHistoryOpType - operationNEQ: ProcedureHistoryOpType - operationIn: [ProcedureHistoryOpType!] - operationNotIn: [ProcedureHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - procedure_type field predicates - """ - procedureType: String - procedureTypeNEQ: String - procedureTypeIn: [String!] - procedureTypeNotIn: [String!] - procedureTypeGT: String - procedureTypeGTE: String - procedureTypeLT: String - procedureTypeLTE: String - procedureTypeContains: String - procedureTypeHasPrefix: String - procedureTypeHasSuffix: String - procedureTypeIsNil: Boolean - procedureTypeNotNil: Boolean - procedureTypeEqualFold: String - procedureTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - purpose_and_scope field predicates - """ - purposeAndScope: String - purposeAndScopeNEQ: String - purposeAndScopeIn: [String!] - purposeAndScopeNotIn: [String!] - purposeAndScopeGT: String - purposeAndScopeGTE: String - purposeAndScopeLT: String - purposeAndScopeLTE: String - purposeAndScopeContains: String - purposeAndScopeHasPrefix: String - purposeAndScopeHasSuffix: String - purposeAndScopeIsNil: Boolean - purposeAndScopeNotNil: Boolean - purposeAndScopeEqualFold: String - purposeAndScopeContainsFold: String - """ - background field predicates - """ - background: String - backgroundNEQ: String - backgroundIn: [String!] - backgroundNotIn: [String!] - backgroundGT: String - backgroundGTE: String - backgroundLT: String - backgroundLTE: String - backgroundContains: String - backgroundHasPrefix: String - backgroundHasSuffix: String - backgroundIsNil: Boolean - backgroundNotNil: Boolean - backgroundEqualFold: String - backgroundContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String -} -""" -ProcedureWhereInput is used for filtering Procedure objects. -Input was generated by ent. -""" -input ProcedureWhereInput { - not: ProcedureWhereInput - and: [ProcedureWhereInput!] - or: [ProcedureWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - procedure_type field predicates - """ - procedureType: String - procedureTypeNEQ: String - procedureTypeIn: [String!] - procedureTypeNotIn: [String!] - procedureTypeGT: String - procedureTypeGTE: String - procedureTypeLT: String - procedureTypeLTE: String - procedureTypeContains: String - procedureTypeHasPrefix: String - procedureTypeHasSuffix: String - procedureTypeIsNil: Boolean - procedureTypeNotNil: Boolean - procedureTypeEqualFold: String - procedureTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - purpose_and_scope field predicates - """ - purposeAndScope: String - purposeAndScopeNEQ: String - purposeAndScopeIn: [String!] - purposeAndScopeNotIn: [String!] - purposeAndScopeGT: String - purposeAndScopeGTE: String - purposeAndScopeLT: String - purposeAndScopeLTE: String - purposeAndScopeContains: String - purposeAndScopeHasPrefix: String - purposeAndScopeHasSuffix: String - purposeAndScopeIsNil: Boolean - purposeAndScopeNotNil: Boolean - purposeAndScopeEqualFold: String - purposeAndScopeContainsFold: String - """ - background field predicates - """ - background: String - backgroundNEQ: String - backgroundIn: [String!] - backgroundNotIn: [String!] - backgroundGT: String - backgroundGTE: String - backgroundLT: String - backgroundLTE: String - backgroundContains: String - backgroundHasPrefix: String - backgroundHasSuffix: String - backgroundIsNil: Boolean - backgroundNotNil: Boolean - backgroundEqualFold: String - backgroundContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - blocked_groups edge predicates - """ - hasBlockedGroups: Boolean - hasBlockedGroupsWith: [GroupWhereInput!] - """ - editors edge predicates - """ - hasEditors: Boolean - hasEditorsWith: [GroupWhereInput!] - """ - controls edge predicates - """ - hasControls: Boolean - hasControlsWith: [ControlWhereInput!] - """ - internal_policies edge predicates - """ - hasInternalPolicies: Boolean - hasInternalPoliciesWith: [InternalPolicyWhereInput!] - """ - narratives edge predicates - """ - hasNarratives: Boolean - hasNarrativesWith: [NarrativeWhereInput!] - """ - risks edge predicates - """ - hasRisks: Boolean - hasRisksWith: [RiskWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -type Program implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the program - """ - name: String! - """ - the description of the program - """ - description: String - """ - the status of the program - """ - status: ProgramProgramStatus! - """ - the start date of the period - """ - startDate: Time - """ - the end date of the period - """ - endDate: Time - """ - is the program ready for the auditor - """ - auditorReady: Boolean! - """ - can the auditor write comments - """ - auditorWriteComments: Boolean! - """ - can the auditor read comments - """ - auditorReadComments: Boolean! - owner: Organization - """ - groups that are blocked from viewing or editing the risk - """ - blockedGroups: [Group!] - """ - provides edit access to the risk to members of the group - """ - editors: [Group!] - """ - provides view access to the risk to members of the group - """ - viewers: [Group!] - controls: [Control!] - subcontrols: [Subcontrol!] - controlObjectives: [ControlObjective!] - internalPolicies: [InternalPolicy!] - procedures: [Procedure!] - risks: [Risk!] - tasks: [Task!] - notes: [Note!] - files: [File!] - narratives: [Narrative!] - actionPlans: [ActionPlan!] - """ - the framework(s) that the program is based on - """ - standards: [Standard!] - users: [User!] - members: [ProgramMembership!] -} -""" -A connection to a list of items. -""" -type ProgramConnection { - """ - A list of edges. - """ - edges: [ProgramEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ProgramEdge { - """ - The item at the end of the edge. - """ - node: Program - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type ProgramHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: ProgramHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the program - """ - name: String! - """ - the description of the program - """ - description: String - """ - the status of the program - """ - status: ProgramHistoryProgramStatus! - """ - the start date of the period - """ - startDate: Time - """ - the end date of the period - """ - endDate: Time - """ - is the program ready for the auditor - """ - auditorReady: Boolean! - """ - can the auditor write comments - """ - auditorWriteComments: Boolean! - """ - can the auditor read comments - """ - auditorReadComments: Boolean! -} -""" -A connection to a list of items. -""" -type ProgramHistoryConnection { - """ - A list of edges. - """ - edges: [ProgramHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ProgramHistoryEdge { - """ - The item at the end of the edge. - """ - node: ProgramHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -ProgramHistoryOpType is enum for the field operation -""" -enum ProgramHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -ProgramHistoryProgramStatus is enum for the field status -""" -enum ProgramHistoryProgramStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.ProgramStatus") { - NOT_STARTED - IN_PROGRESS - READY_FOR_AUDITOR - COMPLETED - ACTION_REQUIRED -} -""" -ProgramHistoryWhereInput is used for filtering ProgramHistory objects. -Input was generated by ent. -""" -input ProgramHistoryWhereInput { - not: ProgramHistoryWhereInput - and: [ProgramHistoryWhereInput!] - or: [ProgramHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: ProgramHistoryOpType - operationNEQ: ProgramHistoryOpType - operationIn: [ProgramHistoryOpType!] - operationNotIn: [ProgramHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: ProgramHistoryProgramStatus - statusNEQ: ProgramHistoryProgramStatus - statusIn: [ProgramHistoryProgramStatus!] - statusNotIn: [ProgramHistoryProgramStatus!] - """ - start_date field predicates - """ - startDate: Time - startDateNEQ: Time - startDateIn: [Time!] - startDateNotIn: [Time!] - startDateGT: Time - startDateGTE: Time - startDateLT: Time - startDateLTE: Time - startDateIsNil: Boolean - startDateNotNil: Boolean - """ - end_date field predicates - """ - endDate: Time - endDateNEQ: Time - endDateIn: [Time!] - endDateNotIn: [Time!] - endDateGT: Time - endDateGTE: Time - endDateLT: Time - endDateLTE: Time - endDateIsNil: Boolean - endDateNotNil: Boolean - """ - auditor_ready field predicates - """ - auditorReady: Boolean - auditorReadyNEQ: Boolean - """ - auditor_write_comments field predicates - """ - auditorWriteComments: Boolean - auditorWriteCommentsNEQ: Boolean - """ - auditor_read_comments field predicates - """ - auditorReadComments: Boolean - auditorReadCommentsNEQ: Boolean -} -type ProgramMembership implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: ProgramMembershipRole! - programID: ID! - userID: ID! - program: Program! - user: User! -} -""" -A connection to a list of items. -""" -type ProgramMembershipConnection { - """ - A list of edges. - """ - edges: [ProgramMembershipEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ProgramMembershipEdge { - """ - The item at the end of the edge. - """ - node: ProgramMembership - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type ProgramMembershipHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: ProgramMembershipHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - role: ProgramMembershipHistoryRole! - programID: String! - userID: String! -} -""" -A connection to a list of items. -""" -type ProgramMembershipHistoryConnection { - """ - A list of edges. - """ - edges: [ProgramMembershipHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type ProgramMembershipHistoryEdge { - """ - The item at the end of the edge. - """ - node: ProgramMembershipHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -ProgramMembershipHistoryOpType is enum for the field operation -""" -enum ProgramMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -ProgramMembershipHistoryRole is enum for the field role -""" -enum ProgramMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER -} -""" -ProgramMembershipHistoryWhereInput is used for filtering ProgramMembershipHistory objects. -Input was generated by ent. -""" -input ProgramMembershipHistoryWhereInput { - not: ProgramMembershipHistoryWhereInput - and: [ProgramMembershipHistoryWhereInput!] - or: [ProgramMembershipHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: ProgramMembershipHistoryOpType - operationNEQ: ProgramMembershipHistoryOpType - operationIn: [ProgramMembershipHistoryOpType!] - operationNotIn: [ProgramMembershipHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - role field predicates - """ - role: ProgramMembershipHistoryRole - roleNEQ: ProgramMembershipHistoryRole - roleIn: [ProgramMembershipHistoryRole!] - roleNotIn: [ProgramMembershipHistoryRole!] - """ - program_id field predicates - """ - programID: String - programIDNEQ: String - programIDIn: [String!] - programIDNotIn: [String!] - programIDGT: String - programIDGTE: String - programIDLT: String - programIDLTE: String - programIDContains: String - programIDHasPrefix: String - programIDHasSuffix: String - programIDEqualFold: String - programIDContainsFold: String - """ - user_id field predicates - """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDEqualFold: String - userIDContainsFold: String -} -""" -ProgramMembershipRole is enum for the field role -""" -enum ProgramMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER -} -""" -ProgramMembershipWhereInput is used for filtering ProgramMembership objects. -Input was generated by ent. -""" -input ProgramMembershipWhereInput { - not: ProgramMembershipWhereInput - and: [ProgramMembershipWhereInput!] - or: [ProgramMembershipWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - role field predicates - """ - role: ProgramMembershipRole - roleNEQ: ProgramMembershipRole - roleIn: [ProgramMembershipRole!] - roleNotIn: [ProgramMembershipRole!] -} -""" -ProgramProgramStatus is enum for the field status -""" -enum ProgramProgramStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.ProgramStatus") { - NOT_STARTED - IN_PROGRESS - READY_FOR_AUDITOR - COMPLETED - ACTION_REQUIRED -} -""" -ProgramWhereInput is used for filtering Program objects. -Input was generated by ent. -""" -input ProgramWhereInput { - not: ProgramWhereInput - and: [ProgramWhereInput!] - or: [ProgramWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: ProgramProgramStatus - statusNEQ: ProgramProgramStatus - statusIn: [ProgramProgramStatus!] - statusNotIn: [ProgramProgramStatus!] - """ - start_date field predicates - """ - startDate: Time - startDateNEQ: Time - startDateIn: [Time!] - startDateNotIn: [Time!] - startDateGT: Time - startDateGTE: Time - startDateLT: Time - startDateLTE: Time - startDateIsNil: Boolean - startDateNotNil: Boolean - """ - end_date field predicates - """ - endDate: Time - endDateNEQ: Time - endDateIn: [Time!] - endDateNotIn: [Time!] - endDateGT: Time - endDateGTE: Time - endDateLT: Time - endDateLTE: Time - endDateIsNil: Boolean - endDateNotNil: Boolean - """ - auditor_ready field predicates - """ - auditorReady: Boolean - auditorReadyNEQ: Boolean - """ - auditor_write_comments field predicates - """ - auditorWriteComments: Boolean - auditorWriteCommentsNEQ: Boolean - """ - auditor_read_comments field predicates - """ - auditorReadComments: Boolean - auditorReadCommentsNEQ: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - blocked_groups edge predicates - """ - hasBlockedGroups: Boolean - hasBlockedGroupsWith: [GroupWhereInput!] - """ - editors edge predicates - """ - hasEditors: Boolean - hasEditorsWith: [GroupWhereInput!] - """ - viewers edge predicates - """ - hasViewers: Boolean - hasViewersWith: [GroupWhereInput!] - """ - controls edge predicates - """ - hasControls: Boolean - hasControlsWith: [ControlWhereInput!] - """ - subcontrols edge predicates - """ - hasSubcontrols: Boolean - hasSubcontrolsWith: [SubcontrolWhereInput!] - """ - control_objectives edge predicates - """ - hasControlObjectives: Boolean - hasControlObjectivesWith: [ControlObjectiveWhereInput!] - """ - internal_policies edge predicates - """ - hasInternalPolicies: Boolean - hasInternalPoliciesWith: [InternalPolicyWhereInput!] - """ - procedures edge predicates - """ - hasProcedures: Boolean - hasProceduresWith: [ProcedureWhereInput!] - """ - risks edge predicates - """ - hasRisks: Boolean - hasRisksWith: [RiskWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - notes edge predicates - """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] - """ - narratives edge predicates - """ - hasNarratives: Boolean - hasNarrativesWith: [NarrativeWhereInput!] - """ - action_plans edge predicates - """ - hasActionPlans: Boolean - hasActionPlansWith: [ActionPlanWhereInput!] - """ - standards edge predicates - """ - hasStandards: Boolean - hasStandardsWith: [StandardWhereInput!] - """ - users edge predicates - """ - hasUsers: Boolean - hasUsersWith: [UserWhereInput!] - """ - members edge predicates - """ - hasMembers: Boolean - hasMembersWith: [ProgramMembershipWhereInput!] -} -type Query { - """ - Fetches an object given its ID. - """ - node( - """ - ID of the object. - """ - id: ID! - ): Node - """ - Lookup nodes by a list of IDs. - """ - nodes( - """ - The list of node IDs. - """ - ids: [ID!]! - ): [Node]! - apiTokens( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for APITokens returned from the connection. - """ - where: APITokenWhereInput - ): APITokenConnection! - actionPlans( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ActionPlans returned from the connection. - """ - where: ActionPlanWhereInput - ): ActionPlanConnection! - actionPlanHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ActionPlanHistories returned from the connection. - """ - where: ActionPlanHistoryWhereInput - ): ActionPlanHistoryConnection! - contacts( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Contacts returned from the connection. - """ - where: ContactWhereInput - ): ContactConnection! - contactHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ContactHistories returned from the connection. - """ - where: ContactHistoryWhereInput - ): ContactHistoryConnection! - controls( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Controls returned from the connection. - """ - where: ControlWhereInput - ): ControlConnection! - controlHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ControlHistories returned from the connection. - """ - where: ControlHistoryWhereInput - ): ControlHistoryConnection! - controlObjectives( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ControlObjectives returned from the connection. - """ - where: ControlObjectiveWhereInput - ): ControlObjectiveConnection! - controlObjectiveHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ControlObjectiveHistories returned from the connection. - """ - where: ControlObjectiveHistoryWhereInput - ): ControlObjectiveHistoryConnection! - documentDataSlice( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for DocumentDataSlice returned from the connection. - """ - where: DocumentDataWhereInput - ): DocumentDataConnection! - documentDataHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for DocumentDataHistories returned from the connection. - """ - where: DocumentDataHistoryWhereInput - ): DocumentDataHistoryConnection! - entities( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Entities returned from the connection. - """ - orderBy: EntityOrder - - """ - Filtering options for Entities returned from the connection. - """ - where: EntityWhereInput - ): EntityConnection! - entityHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for EntityHistories returned from the connection. - """ - orderBy: EntityHistoryOrder - - """ - Filtering options for EntityHistories returned from the connection. - """ - where: EntityHistoryWhereInput - ): EntityHistoryConnection! - entityTypes( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for EntityTypes returned from the connection. - """ - orderBy: EntityTypeOrder - - """ - Filtering options for EntityTypes returned from the connection. - """ - where: EntityTypeWhereInput - ): EntityTypeConnection! - entityTypeHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for EntityTypeHistories returned from the connection. - """ - orderBy: EntityTypeHistoryOrder - - """ - Filtering options for EntityTypeHistories returned from the connection. - """ - where: EntityTypeHistoryWhereInput - ): EntityTypeHistoryConnection! - events( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Events returned from the connection. - """ - where: EventWhereInput - ): EventConnection! - eventHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for EventHistories returned from the connection. - """ - where: EventHistoryWhereInput - ): EventHistoryConnection! - files( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Files returned from the connection. - """ - where: FileWhereInput - ): FileConnection! - fileHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for FileHistories returned from the connection. - """ - where: FileHistoryWhereInput - ): FileHistoryConnection! - groups( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Groups returned from the connection. - """ - orderBy: GroupOrder - - """ - Filtering options for Groups returned from the connection. - """ - where: GroupWhereInput - ): GroupConnection! - groupHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for GroupHistories returned from the connection. - """ - orderBy: GroupHistoryOrder - - """ - Filtering options for GroupHistories returned from the connection. - """ - where: GroupHistoryWhereInput - ): GroupHistoryConnection! - groupMemberships( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupMemberships returned from the connection. - """ - where: GroupMembershipWhereInput - ): GroupMembershipConnection! - groupMembershipHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupMembershipHistories returned from the connection. - """ - where: GroupMembershipHistoryWhereInput - ): GroupMembershipHistoryConnection! - groupSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupSettings returned from the connection. - """ - where: GroupSettingWhereInput - ): GroupSettingConnection! - groupSettingHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for GroupSettingHistories returned from the connection. - """ - where: GroupSettingHistoryWhereInput - ): GroupSettingHistoryConnection! - hushes( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Hushes returned from the connection. - """ - orderBy: HushOrder - - """ - Filtering options for Hushes returned from the connection. - """ - where: HushWhereInput - ): HushConnection! - hushHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for HushHistories returned from the connection. - """ - orderBy: HushHistoryOrder - - """ - Filtering options for HushHistories returned from the connection. - """ - where: HushHistoryWhereInput - ): HushHistoryConnection! - integrations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Integrations returned from the connection. - """ - orderBy: IntegrationOrder - - """ - Filtering options for Integrations returned from the connection. - """ - where: IntegrationWhereInput - ): IntegrationConnection! - integrationHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for IntegrationHistories returned from the connection. - """ - orderBy: IntegrationHistoryOrder - - """ - Filtering options for IntegrationHistories returned from the connection. - """ - where: IntegrationHistoryWhereInput - ): IntegrationHistoryConnection! - internalPolicies( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for InternalPolicies returned from the connection. - """ - where: InternalPolicyWhereInput - ): InternalPolicyConnection! - internalPolicyHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for InternalPolicyHistories returned from the connection. - """ - where: InternalPolicyHistoryWhereInput - ): InternalPolicyHistoryConnection! - invites( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Invites returned from the connection. - """ - where: InviteWhereInput - ): InviteConnection! - narratives( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Narratives returned from the connection. - """ - where: NarrativeWhereInput - ): NarrativeConnection! - narrativeHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for NarrativeHistories returned from the connection. - """ - where: NarrativeHistoryWhereInput - ): NarrativeHistoryConnection! - notes( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Notes returned from the connection. - """ - where: NoteWhereInput - ): NoteConnection! - noteHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for NoteHistories returned from the connection. - """ - where: NoteHistoryWhereInput - ): NoteHistoryConnection! - orgMemberships( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrgMemberships returned from the connection. - """ - where: OrgMembershipWhereInput - ): OrgMembershipConnection! - orgMembershipHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrgMembershipHistories returned from the connection. - """ - where: OrgMembershipHistoryWhereInput - ): OrgMembershipHistoryConnection! - orgSubscriptions( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrgSubscriptions returned from the connection. - """ - where: OrgSubscriptionWhereInput - ): OrgSubscriptionConnection! - orgSubscriptionHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrgSubscriptionHistories returned from the connection. - """ - where: OrgSubscriptionHistoryWhereInput - ): OrgSubscriptionHistoryConnection! - organizations( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Organizations returned from the connection. - """ - orderBy: OrganizationOrder - - """ - Filtering options for Organizations returned from the connection. - """ - where: OrganizationWhereInput - ): OrganizationConnection! - organizationHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for OrganizationHistories returned from the connection. - """ - orderBy: OrganizationHistoryOrder - - """ - Filtering options for OrganizationHistories returned from the connection. - """ - where: OrganizationHistoryWhereInput - ): OrganizationHistoryConnection! - organizationSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrganizationSettings returned from the connection. - """ - where: OrganizationSettingWhereInput - ): OrganizationSettingConnection! - organizationSettingHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for OrganizationSettingHistories returned from the connection. - """ - where: OrganizationSettingHistoryWhereInput - ): OrganizationSettingHistoryConnection! - personalAccessTokens( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for PersonalAccessTokens returned from the connection. - """ - where: PersonalAccessTokenWhereInput - ): PersonalAccessTokenConnection! - procedures( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Procedures returned from the connection. - """ - where: ProcedureWhereInput - ): ProcedureConnection! - procedureHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ProcedureHistories returned from the connection. - """ - where: ProcedureHistoryWhereInput - ): ProcedureHistoryConnection! - programs( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Programs returned from the connection. - """ - where: ProgramWhereInput - ): ProgramConnection! - programHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ProgramHistories returned from the connection. - """ - where: ProgramHistoryWhereInput - ): ProgramHistoryConnection! - programMemberships( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ProgramMemberships returned from the connection. - """ - where: ProgramMembershipWhereInput - ): ProgramMembershipConnection! - programMembershipHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for ProgramMembershipHistories returned from the connection. - """ - where: ProgramMembershipHistoryWhereInput - ): ProgramMembershipHistoryConnection! - risks( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Risks returned from the connection. - """ - where: RiskWhereInput - ): RiskConnection! - riskHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for RiskHistories returned from the connection. - """ - where: RiskHistoryWhereInput - ): RiskHistoryConnection! - standards( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Standards returned from the connection. - """ - where: StandardWhereInput - ): StandardConnection! - standardHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for StandardHistories returned from the connection. - """ - where: StandardHistoryWhereInput - ): StandardHistoryConnection! - subcontrols( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Subcontrols returned from the connection. - """ - where: SubcontrolWhereInput - ): SubcontrolConnection! - subcontrolHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for SubcontrolHistories returned from the connection. - """ - where: SubcontrolHistoryWhereInput - ): SubcontrolHistoryConnection! - subscribers( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Subscribers returned from the connection. - """ - where: SubscriberWhereInput - ): SubscriberConnection! - tfaSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for TFASettings returned from the connection. - """ - where: TFASettingWhereInput - ): TFASettingConnection! - tasks( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for Tasks returned from the connection. - """ - where: TaskWhereInput - ): TaskConnection! - taskHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for TaskHistories returned from the connection. - """ - where: TaskHistoryWhereInput - ): TaskHistoryConnection! - templates( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Templates returned from the connection. - """ - orderBy: TemplateOrder - - """ - Filtering options for Templates returned from the connection. - """ - where: TemplateWhereInput - ): TemplateConnection! - templateHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for TemplateHistories returned from the connection. - """ - orderBy: TemplateHistoryOrder - - """ - Filtering options for TemplateHistories returned from the connection. - """ - where: TemplateHistoryWhereInput - ): TemplateHistoryConnection! - users( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for Users returned from the connection. - """ - orderBy: UserOrder - - """ - Filtering options for Users returned from the connection. - """ - where: UserWhereInput - ): UserConnection! - userHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Ordering options for UserHistories returned from the connection. - """ - orderBy: UserHistoryOrder - - """ - Filtering options for UserHistories returned from the connection. - """ - where: UserHistoryWhereInput - ): UserHistoryConnection! - userSettings( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for UserSettings returned from the connection. - """ - where: UserSettingWhereInput - ): UserSettingConnection! - userSettingHistories( - """ - Returns the elements in the list that come after the specified cursor. - """ - after: Cursor - - """ - Returns the first _n_ elements from the list. - """ - first: Int - - """ - Returns the elements in the list that come before the specified cursor. - """ - before: Cursor - - """ - Returns the last _n_ elements from the list. - """ - last: Int - - """ - Filtering options for UserSettingHistories returned from the connection. - """ - where: UserSettingHistoryWhereInput - ): UserSettingHistoryConnection! -} -type Risk implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: ID! - """ - the name of the risk - """ - name: String! - """ - description of the risk - """ - description: String - """ - status of the risk - mitigated or not, inflight, etc. - """ - status: String - """ - type of the risk, e.g. strategic, operational, financial, external, etc. - """ - riskType: String - """ - business costs associated with the risk - """ - businessCosts: String - """ - impact of the risk - high, medium, low - """ - impact: RiskRiskImpact - """ - likelihood of the risk occurring; unlikely, likely, highly likely - """ - likelihood: RiskRiskLikelihood - """ - mitigation for the risk - """ - mitigation: String - """ - which controls are satisfied by the risk - """ - satisfies: String - """ - json data for the risk document - """ - details: Map - owner: Organization! - """ - groups that are blocked from viewing or editing the risk - """ - blockedGroups: [Group!] - """ - provides edit access to the risk to members of the group - """ - editors: [Group!] - """ - provides view access to the risk to members of the group - """ - viewers: [Group!] - control: [Control!] - procedure: [Procedure!] - actionPlans: [ActionPlan!] - programs: [Program!] -} -""" -A connection to a list of items. -""" -type RiskConnection { - """ - A list of edges. - """ - edges: [RiskEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type RiskEdge { - """ - The item at the end of the edge. - """ - node: Risk - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type RiskHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: RiskHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: String! - """ - the name of the risk - """ - name: String! - """ - description of the risk - """ - description: String - """ - status of the risk - mitigated or not, inflight, etc. - """ - status: String - """ - type of the risk, e.g. strategic, operational, financial, external, etc. - """ - riskType: String - """ - business costs associated with the risk - """ - businessCosts: String - """ - impact of the risk - high, medium, low - """ - impact: RiskHistoryRiskImpact - """ - likelihood of the risk occurring; unlikely, likely, highly likely - """ - likelihood: RiskHistoryRiskLikelihood - """ - mitigation for the risk - """ - mitigation: String - """ - which controls are satisfied by the risk - """ - satisfies: String - """ - json data for the risk document - """ - details: Map -} -""" -A connection to a list of items. -""" -type RiskHistoryConnection { - """ - A list of edges. - """ - edges: [RiskHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type RiskHistoryEdge { - """ - The item at the end of the edge. - """ - node: RiskHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -RiskHistoryOpType is enum for the field operation -""" -enum RiskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -RiskHistoryRiskImpact is enum for the field impact -""" -enum RiskHistoryRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { - LOW - MODERATE - HIGH -} -""" -RiskHistoryRiskLikelihood is enum for the field likelihood -""" -enum RiskHistoryRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { - UNLIKELY - LIKELY - HIGHLY_LIKELY -} -""" -RiskHistoryWhereInput is used for filtering RiskHistory objects. -Input was generated by ent. -""" -input RiskHistoryWhereInput { - not: RiskHistoryWhereInput - and: [RiskHistoryWhereInput!] - or: [RiskHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: RiskHistoryOpType - operationNEQ: RiskHistoryOpType - operationIn: [RiskHistoryOpType!] - operationNotIn: [RiskHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - risk_type field predicates - """ - riskType: String - riskTypeNEQ: String - riskTypeIn: [String!] - riskTypeNotIn: [String!] - riskTypeGT: String - riskTypeGTE: String - riskTypeLT: String - riskTypeLTE: String - riskTypeContains: String - riskTypeHasPrefix: String - riskTypeHasSuffix: String - riskTypeIsNil: Boolean - riskTypeNotNil: Boolean - riskTypeEqualFold: String - riskTypeContainsFold: String - """ - business_costs field predicates - """ - businessCosts: String - businessCostsNEQ: String - businessCostsIn: [String!] - businessCostsNotIn: [String!] - businessCostsGT: String - businessCostsGTE: String - businessCostsLT: String - businessCostsLTE: String - businessCostsContains: String - businessCostsHasPrefix: String - businessCostsHasSuffix: String - businessCostsIsNil: Boolean - businessCostsNotNil: Boolean - businessCostsEqualFold: String - businessCostsContainsFold: String - """ - impact field predicates - """ - impact: RiskHistoryRiskImpact - impactNEQ: RiskHistoryRiskImpact - impactIn: [RiskHistoryRiskImpact!] - impactNotIn: [RiskHistoryRiskImpact!] - impactIsNil: Boolean - impactNotNil: Boolean - """ - likelihood field predicates - """ - likelihood: RiskHistoryRiskLikelihood - likelihoodNEQ: RiskHistoryRiskLikelihood - likelihoodIn: [RiskHistoryRiskLikelihood!] - likelihoodNotIn: [RiskHistoryRiskLikelihood!] - likelihoodIsNil: Boolean - likelihoodNotNil: Boolean - """ - mitigation field predicates - """ - mitigation: String - mitigationNEQ: String - mitigationIn: [String!] - mitigationNotIn: [String!] - mitigationGT: String - mitigationGTE: String - mitigationLT: String - mitigationLTE: String - mitigationContains: String - mitigationHasPrefix: String - mitigationHasSuffix: String - mitigationIsNil: Boolean - mitigationNotNil: Boolean - mitigationEqualFold: String - mitigationContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String -} -""" -RiskRiskImpact is enum for the field impact -""" -enum RiskRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { - LOW - MODERATE - HIGH -} -""" -RiskRiskLikelihood is enum for the field likelihood -""" -enum RiskRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { - UNLIKELY - LIKELY - HIGHLY_LIKELY -} -""" -RiskWhereInput is used for filtering Risk objects. -Input was generated by ent. -""" -input RiskWhereInput { - not: RiskWhereInput - and: [RiskWhereInput!] - or: [RiskWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - risk_type field predicates - """ - riskType: String - riskTypeNEQ: String - riskTypeIn: [String!] - riskTypeNotIn: [String!] - riskTypeGT: String - riskTypeGTE: String - riskTypeLT: String - riskTypeLTE: String - riskTypeContains: String - riskTypeHasPrefix: String - riskTypeHasSuffix: String - riskTypeIsNil: Boolean - riskTypeNotNil: Boolean - riskTypeEqualFold: String - riskTypeContainsFold: String - """ - business_costs field predicates - """ - businessCosts: String - businessCostsNEQ: String - businessCostsIn: [String!] - businessCostsNotIn: [String!] - businessCostsGT: String - businessCostsGTE: String - businessCostsLT: String - businessCostsLTE: String - businessCostsContains: String - businessCostsHasPrefix: String - businessCostsHasSuffix: String - businessCostsIsNil: Boolean - businessCostsNotNil: Boolean - businessCostsEqualFold: String - businessCostsContainsFold: String - """ - impact field predicates - """ - impact: RiskRiskImpact - impactNEQ: RiskRiskImpact - impactIn: [RiskRiskImpact!] - impactNotIn: [RiskRiskImpact!] - impactIsNil: Boolean - impactNotNil: Boolean - """ - likelihood field predicates - """ - likelihood: RiskRiskLikelihood - likelihoodNEQ: RiskRiskLikelihood - likelihoodIn: [RiskRiskLikelihood!] - likelihoodNotIn: [RiskRiskLikelihood!] - likelihoodIsNil: Boolean - likelihoodNotNil: Boolean - """ - mitigation field predicates - """ - mitigation: String - mitigationNEQ: String - mitigationIn: [String!] - mitigationNotIn: [String!] - mitigationGT: String - mitigationGTE: String - mitigationLT: String - mitigationLTE: String - mitigationContains: String - mitigationHasPrefix: String - mitigationHasSuffix: String - mitigationIsNil: Boolean - mitigationNotNil: Boolean - mitigationEqualFold: String - mitigationContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - blocked_groups edge predicates - """ - hasBlockedGroups: Boolean - hasBlockedGroupsWith: [GroupWhereInput!] - """ - editors edge predicates - """ - hasEditors: Boolean - hasEditorsWith: [GroupWhereInput!] - """ - viewers edge predicates - """ - hasViewers: Boolean - hasViewersWith: [GroupWhereInput!] - """ - control edge predicates - """ - hasControl: Boolean - hasControlWith: [ControlWhereInput!] - """ - procedure edge predicates - """ - hasProcedure: Boolean - hasProcedureWith: [ProcedureWhereInput!] - """ - action_plans edge predicates - """ - hasActionPlans: Boolean - hasActionPlansWith: [ActionPlanWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -type Standard implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. - """ - name: String! - """ - description of the standard - """ - description: String - """ - family of the standard, e.g. 800-53, 800-171, 27001, etc. - """ - family: String - """ - status of the standard - active, deprecated, etc. - """ - status: String - """ - type of the standard - security, privacy, etc. - """ - standardType: String - """ - version of the standard - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the standard - """ - background: String - """ - which controls are satisfied by the standard - """ - satisfies: String - """ - json data with details of the standard - """ - details: Map - controlObjectives: [ControlObjective!] - controls: [Control!] - procedures: [Procedure!] - actionPlans: [ActionPlan!] - programs: [Program!] -} -""" -A connection to a list of items. -""" -type StandardConnection { - """ - A list of edges. - """ - edges: [StandardEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type StandardEdge { - """ - The item at the end of the edge. - """ - node: Standard - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type StandardHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: StandardHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. - """ - name: String! - """ - description of the standard - """ - description: String - """ - family of the standard, e.g. 800-53, 800-171, 27001, etc. - """ - family: String - """ - status of the standard - active, deprecated, etc. - """ - status: String - """ - type of the standard - security, privacy, etc. - """ - standardType: String - """ - version of the standard - """ - version: String - """ - purpose and scope - """ - purposeAndScope: String - """ - background of the standard - """ - background: String - """ - which controls are satisfied by the standard - """ - satisfies: String - """ - json data with details of the standard - """ - details: Map -} -""" -A connection to a list of items. -""" -type StandardHistoryConnection { - """ - A list of edges. - """ - edges: [StandardHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type StandardHistoryEdge { - """ - The item at the end of the edge. - """ - node: StandardHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -StandardHistoryOpType is enum for the field operation -""" -enum StandardHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -StandardHistoryWhereInput is used for filtering StandardHistory objects. -Input was generated by ent. -""" -input StandardHistoryWhereInput { - not: StandardHistoryWhereInput - and: [StandardHistoryWhereInput!] - or: [StandardHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: StandardHistoryOpType - operationNEQ: StandardHistoryOpType - operationIn: [StandardHistoryOpType!] - operationNotIn: [StandardHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - standard_type field predicates - """ - standardType: String - standardTypeNEQ: String - standardTypeIn: [String!] - standardTypeNotIn: [String!] - standardTypeGT: String - standardTypeGTE: String - standardTypeLT: String - standardTypeLTE: String - standardTypeContains: String - standardTypeHasPrefix: String - standardTypeHasSuffix: String - standardTypeIsNil: Boolean - standardTypeNotNil: Boolean - standardTypeEqualFold: String - standardTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - purpose_and_scope field predicates - """ - purposeAndScope: String - purposeAndScopeNEQ: String - purposeAndScopeIn: [String!] - purposeAndScopeNotIn: [String!] - purposeAndScopeGT: String - purposeAndScopeGTE: String - purposeAndScopeLT: String - purposeAndScopeLTE: String - purposeAndScopeContains: String - purposeAndScopeHasPrefix: String - purposeAndScopeHasSuffix: String - purposeAndScopeIsNil: Boolean - purposeAndScopeNotNil: Boolean - purposeAndScopeEqualFold: String - purposeAndScopeContainsFold: String - """ - background field predicates - """ - background: String - backgroundNEQ: String - backgroundIn: [String!] - backgroundNotIn: [String!] - backgroundGT: String - backgroundGTE: String - backgroundLT: String - backgroundLTE: String - backgroundContains: String - backgroundHasPrefix: String - backgroundHasSuffix: String - backgroundIsNil: Boolean - backgroundNotNil: Boolean - backgroundEqualFold: String - backgroundContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String -} -""" -StandardWhereInput is used for filtering Standard objects. -Input was generated by ent. -""" -input StandardWhereInput { - not: StandardWhereInput - and: [StandardWhereInput!] - or: [StandardWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - standard_type field predicates - """ - standardType: String - standardTypeNEQ: String - standardTypeIn: [String!] - standardTypeNotIn: [String!] - standardTypeGT: String - standardTypeGTE: String - standardTypeLT: String - standardTypeLTE: String - standardTypeContains: String - standardTypeHasPrefix: String - standardTypeHasSuffix: String - standardTypeIsNil: Boolean - standardTypeNotNil: Boolean - standardTypeEqualFold: String - standardTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - purpose_and_scope field predicates - """ - purposeAndScope: String - purposeAndScopeNEQ: String - purposeAndScopeIn: [String!] - purposeAndScopeNotIn: [String!] - purposeAndScopeGT: String - purposeAndScopeGTE: String - purposeAndScopeLT: String - purposeAndScopeLTE: String - purposeAndScopeContains: String - purposeAndScopeHasPrefix: String - purposeAndScopeHasSuffix: String - purposeAndScopeIsNil: Boolean - purposeAndScopeNotNil: Boolean - purposeAndScopeEqualFold: String - purposeAndScopeContainsFold: String - """ - background field predicates - """ - background: String - backgroundNEQ: String - backgroundIn: [String!] - backgroundNotIn: [String!] - backgroundGT: String - backgroundGTE: String - backgroundLT: String - backgroundLTE: String - backgroundContains: String - backgroundHasPrefix: String - backgroundHasSuffix: String - backgroundIsNil: Boolean - backgroundNotNil: Boolean - backgroundEqualFold: String - backgroundContainsFold: String - """ - satisfies field predicates - """ - satisfies: String - satisfiesNEQ: String - satisfiesIn: [String!] - satisfiesNotIn: [String!] - satisfiesGT: String - satisfiesGTE: String - satisfiesLT: String - satisfiesLTE: String - satisfiesContains: String - satisfiesHasPrefix: String - satisfiesHasSuffix: String - satisfiesIsNil: Boolean - satisfiesNotNil: Boolean - satisfiesEqualFold: String - satisfiesContainsFold: String - """ - control_objectives edge predicates - """ - hasControlObjectives: Boolean - hasControlObjectivesWith: [ControlObjectiveWhereInput!] - """ - controls edge predicates - """ - hasControls: Boolean - hasControlsWith: [ControlWhereInput!] - """ - procedures edge predicates - """ - hasProcedures: Boolean - hasProceduresWith: [ProcedureWhereInput!] - """ - action_plans edge predicates - """ - hasActionPlans: Boolean - hasActionPlansWith: [ActionPlanWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -type Subcontrol implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: ID! - """ - the name of the subcontrol - """ - name: String! - """ - description of the subcontrol - """ - description: String - """ - status of the subcontrol - """ - status: String - """ - type of the subcontrol - """ - subcontrolType: String - """ - version of the control - """ - version: String - """ - number of the subcontrol - """ - subcontrolNumber: String - """ - subcontrol family - """ - family: String - """ - subcontrol class - """ - class: String - """ - source of the control, e.g. framework, template, user-defined, etc. - """ - source: String - """ - mapped frameworks that the subcontrol is part of - """ - mappedFrameworks: String - """ - implementation evidence of the subcontrol - """ - implementationEvidence: String - """ - implementation status - """ - implementationStatus: String - """ - date the subcontrol was implemented - """ - implementationDate: Time - """ - implementation verification - """ - implementationVerification: String - """ - date the subcontrol implementation was verified - """ - implementationVerificationDate: Time - """ - json data details of the subcontrol - """ - details: Map - owner: Organization! - controls: [Control!]! - user: [User!] - tasks: [Task!] - notes: Note - programs: [Program!] -} -""" -A connection to a list of items. -""" -type SubcontrolConnection { - """ - A list of edges. - """ - edges: [SubcontrolEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type SubcontrolEdge { - """ - The item at the end of the edge. - """ - node: Subcontrol - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type SubcontrolHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: SubcontrolHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the ID of the organization owner of the object - """ - ownerID: String! - """ - the name of the subcontrol - """ - name: String! - """ - description of the subcontrol - """ - description: String - """ - status of the subcontrol - """ - status: String - """ - type of the subcontrol - """ - subcontrolType: String - """ - version of the control - """ - version: String - """ - number of the subcontrol - """ - subcontrolNumber: String - """ - subcontrol family - """ - family: String - """ - subcontrol class - """ - class: String - """ - source of the control, e.g. framework, template, user-defined, etc. - """ - source: String - """ - mapped frameworks that the subcontrol is part of - """ - mappedFrameworks: String - """ - implementation evidence of the subcontrol - """ - implementationEvidence: String - """ - implementation status - """ - implementationStatus: String - """ - date the subcontrol was implemented - """ - implementationDate: Time - """ - implementation verification - """ - implementationVerification: String - """ - date the subcontrol implementation was verified - """ - implementationVerificationDate: Time - """ - json data details of the subcontrol - """ - details: Map -} -""" -A connection to a list of items. -""" -type SubcontrolHistoryConnection { - """ - A list of edges. - """ - edges: [SubcontrolHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type SubcontrolHistoryEdge { - """ - The item at the end of the edge. - """ - node: SubcontrolHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -SubcontrolHistoryOpType is enum for the field operation -""" -enum SubcontrolHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -SubcontrolHistoryWhereInput is used for filtering SubcontrolHistory objects. -Input was generated by ent. -""" -input SubcontrolHistoryWhereInput { - not: SubcontrolHistoryWhereInput - and: [SubcontrolHistoryWhereInput!] - or: [SubcontrolHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: SubcontrolHistoryOpType - operationNEQ: SubcontrolHistoryOpType - operationIn: [SubcontrolHistoryOpType!] - operationNotIn: [SubcontrolHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - subcontrol_type field predicates - """ - subcontrolType: String - subcontrolTypeNEQ: String - subcontrolTypeIn: [String!] - subcontrolTypeNotIn: [String!] - subcontrolTypeGT: String - subcontrolTypeGTE: String - subcontrolTypeLT: String - subcontrolTypeLTE: String - subcontrolTypeContains: String - subcontrolTypeHasPrefix: String - subcontrolTypeHasSuffix: String - subcontrolTypeIsNil: Boolean - subcontrolTypeNotNil: Boolean - subcontrolTypeEqualFold: String - subcontrolTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - subcontrol_number field predicates - """ - subcontrolNumber: String - subcontrolNumberNEQ: String - subcontrolNumberIn: [String!] - subcontrolNumberNotIn: [String!] - subcontrolNumberGT: String - subcontrolNumberGTE: String - subcontrolNumberLT: String - subcontrolNumberLTE: String - subcontrolNumberContains: String - subcontrolNumberHasPrefix: String - subcontrolNumberHasSuffix: String - subcontrolNumberIsNil: Boolean - subcontrolNumberNotNil: Boolean - subcontrolNumberEqualFold: String - subcontrolNumberContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - class field predicates - """ - class: String - classNEQ: String - classIn: [String!] - classNotIn: [String!] - classGT: String - classGTE: String - classLT: String - classLTE: String - classContains: String - classHasPrefix: String - classHasSuffix: String - classIsNil: Boolean - classNotNil: Boolean - classEqualFold: String - classContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String - """ - mapped_frameworks field predicates - """ - mappedFrameworks: String - mappedFrameworksNEQ: String - mappedFrameworksIn: [String!] - mappedFrameworksNotIn: [String!] - mappedFrameworksGT: String - mappedFrameworksGTE: String - mappedFrameworksLT: String - mappedFrameworksLTE: String - mappedFrameworksContains: String - mappedFrameworksHasPrefix: String - mappedFrameworksHasSuffix: String - mappedFrameworksIsNil: Boolean - mappedFrameworksNotNil: Boolean - mappedFrameworksEqualFold: String - mappedFrameworksContainsFold: String - """ - implementation_evidence field predicates - """ - implementationEvidence: String - implementationEvidenceNEQ: String - implementationEvidenceIn: [String!] - implementationEvidenceNotIn: [String!] - implementationEvidenceGT: String - implementationEvidenceGTE: String - implementationEvidenceLT: String - implementationEvidenceLTE: String - implementationEvidenceContains: String - implementationEvidenceHasPrefix: String - implementationEvidenceHasSuffix: String - implementationEvidenceIsNil: Boolean - implementationEvidenceNotNil: Boolean - implementationEvidenceEqualFold: String - implementationEvidenceContainsFold: String - """ - implementation_status field predicates - """ - implementationStatus: String - implementationStatusNEQ: String - implementationStatusIn: [String!] - implementationStatusNotIn: [String!] - implementationStatusGT: String - implementationStatusGTE: String - implementationStatusLT: String - implementationStatusLTE: String - implementationStatusContains: String - implementationStatusHasPrefix: String - implementationStatusHasSuffix: String - implementationStatusIsNil: Boolean - implementationStatusNotNil: Boolean - implementationStatusEqualFold: String - implementationStatusContainsFold: String - """ - implementation_date field predicates - """ - implementationDate: Time - implementationDateNEQ: Time - implementationDateIn: [Time!] - implementationDateNotIn: [Time!] - implementationDateGT: Time - implementationDateGTE: Time - implementationDateLT: Time - implementationDateLTE: Time - implementationDateIsNil: Boolean - implementationDateNotNil: Boolean - """ - implementation_verification field predicates - """ - implementationVerification: String - implementationVerificationNEQ: String - implementationVerificationIn: [String!] - implementationVerificationNotIn: [String!] - implementationVerificationGT: String - implementationVerificationGTE: String - implementationVerificationLT: String - implementationVerificationLTE: String - implementationVerificationContains: String - implementationVerificationHasPrefix: String - implementationVerificationHasSuffix: String - implementationVerificationIsNil: Boolean - implementationVerificationNotNil: Boolean - implementationVerificationEqualFold: String - implementationVerificationContainsFold: String - """ - implementation_verification_date field predicates - """ - implementationVerificationDate: Time - implementationVerificationDateNEQ: Time - implementationVerificationDateIn: [Time!] - implementationVerificationDateNotIn: [Time!] - implementationVerificationDateGT: Time - implementationVerificationDateGTE: Time - implementationVerificationDateLT: Time - implementationVerificationDateLTE: Time - implementationVerificationDateIsNil: Boolean - implementationVerificationDateNotNil: Boolean -} -""" -SubcontrolWhereInput is used for filtering Subcontrol objects. -Input was generated by ent. -""" -input SubcontrolWhereInput { - not: SubcontrolWhereInput - and: [SubcontrolWhereInput!] - or: [SubcontrolWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: String - statusNEQ: String - statusIn: [String!] - statusNotIn: [String!] - statusGT: String - statusGTE: String - statusLT: String - statusLTE: String - statusContains: String - statusHasPrefix: String - statusHasSuffix: String - statusIsNil: Boolean - statusNotNil: Boolean - statusEqualFold: String - statusContainsFold: String - """ - subcontrol_type field predicates - """ - subcontrolType: String - subcontrolTypeNEQ: String - subcontrolTypeIn: [String!] - subcontrolTypeNotIn: [String!] - subcontrolTypeGT: String - subcontrolTypeGTE: String - subcontrolTypeLT: String - subcontrolTypeLTE: String - subcontrolTypeContains: String - subcontrolTypeHasPrefix: String - subcontrolTypeHasSuffix: String - subcontrolTypeIsNil: Boolean - subcontrolTypeNotNil: Boolean - subcontrolTypeEqualFold: String - subcontrolTypeContainsFold: String - """ - version field predicates - """ - version: String - versionNEQ: String - versionIn: [String!] - versionNotIn: [String!] - versionGT: String - versionGTE: String - versionLT: String - versionLTE: String - versionContains: String - versionHasPrefix: String - versionHasSuffix: String - versionIsNil: Boolean - versionNotNil: Boolean - versionEqualFold: String - versionContainsFold: String - """ - subcontrol_number field predicates - """ - subcontrolNumber: String - subcontrolNumberNEQ: String - subcontrolNumberIn: [String!] - subcontrolNumberNotIn: [String!] - subcontrolNumberGT: String - subcontrolNumberGTE: String - subcontrolNumberLT: String - subcontrolNumberLTE: String - subcontrolNumberContains: String - subcontrolNumberHasPrefix: String - subcontrolNumberHasSuffix: String - subcontrolNumberIsNil: Boolean - subcontrolNumberNotNil: Boolean - subcontrolNumberEqualFold: String - subcontrolNumberContainsFold: String - """ - family field predicates - """ - family: String - familyNEQ: String - familyIn: [String!] - familyNotIn: [String!] - familyGT: String - familyGTE: String - familyLT: String - familyLTE: String - familyContains: String - familyHasPrefix: String - familyHasSuffix: String - familyIsNil: Boolean - familyNotNil: Boolean - familyEqualFold: String - familyContainsFold: String - """ - class field predicates - """ - class: String - classNEQ: String - classIn: [String!] - classNotIn: [String!] - classGT: String - classGTE: String - classLT: String - classLTE: String - classContains: String - classHasPrefix: String - classHasSuffix: String - classIsNil: Boolean - classNotNil: Boolean - classEqualFold: String - classContainsFold: String - """ - source field predicates - """ - source: String - sourceNEQ: String - sourceIn: [String!] - sourceNotIn: [String!] - sourceGT: String - sourceGTE: String - sourceLT: String - sourceLTE: String - sourceContains: String - sourceHasPrefix: String - sourceHasSuffix: String - sourceIsNil: Boolean - sourceNotNil: Boolean - sourceEqualFold: String - sourceContainsFold: String - """ - mapped_frameworks field predicates - """ - mappedFrameworks: String - mappedFrameworksNEQ: String - mappedFrameworksIn: [String!] - mappedFrameworksNotIn: [String!] - mappedFrameworksGT: String - mappedFrameworksGTE: String - mappedFrameworksLT: String - mappedFrameworksLTE: String - mappedFrameworksContains: String - mappedFrameworksHasPrefix: String - mappedFrameworksHasSuffix: String - mappedFrameworksIsNil: Boolean - mappedFrameworksNotNil: Boolean - mappedFrameworksEqualFold: String - mappedFrameworksContainsFold: String - """ - implementation_evidence field predicates - """ - implementationEvidence: String - implementationEvidenceNEQ: String - implementationEvidenceIn: [String!] - implementationEvidenceNotIn: [String!] - implementationEvidenceGT: String - implementationEvidenceGTE: String - implementationEvidenceLT: String - implementationEvidenceLTE: String - implementationEvidenceContains: String - implementationEvidenceHasPrefix: String - implementationEvidenceHasSuffix: String - implementationEvidenceIsNil: Boolean - implementationEvidenceNotNil: Boolean - implementationEvidenceEqualFold: String - implementationEvidenceContainsFold: String - """ - implementation_status field predicates - """ - implementationStatus: String - implementationStatusNEQ: String - implementationStatusIn: [String!] - implementationStatusNotIn: [String!] - implementationStatusGT: String - implementationStatusGTE: String - implementationStatusLT: String - implementationStatusLTE: String - implementationStatusContains: String - implementationStatusHasPrefix: String - implementationStatusHasSuffix: String - implementationStatusIsNil: Boolean - implementationStatusNotNil: Boolean - implementationStatusEqualFold: String - implementationStatusContainsFold: String - """ - implementation_date field predicates - """ - implementationDate: Time - implementationDateNEQ: Time - implementationDateIn: [Time!] - implementationDateNotIn: [Time!] - implementationDateGT: Time - implementationDateGTE: Time - implementationDateLT: Time - implementationDateLTE: Time - implementationDateIsNil: Boolean - implementationDateNotNil: Boolean - """ - implementation_verification field predicates - """ - implementationVerification: String - implementationVerificationNEQ: String - implementationVerificationIn: [String!] - implementationVerificationNotIn: [String!] - implementationVerificationGT: String - implementationVerificationGTE: String - implementationVerificationLT: String - implementationVerificationLTE: String - implementationVerificationContains: String - implementationVerificationHasPrefix: String - implementationVerificationHasSuffix: String - implementationVerificationIsNil: Boolean - implementationVerificationNotNil: Boolean - implementationVerificationEqualFold: String - implementationVerificationContainsFold: String - """ - implementation_verification_date field predicates - """ - implementationVerificationDate: Time - implementationVerificationDateNEQ: Time - implementationVerificationDateIn: [Time!] - implementationVerificationDateNotIn: [Time!] - implementationVerificationDateGT: Time - implementationVerificationDateGTE: Time - implementationVerificationDateLT: Time - implementationVerificationDateLTE: Time - implementationVerificationDateIsNil: Boolean - implementationVerificationDateNotNil: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - controls edge predicates - """ - hasControls: Boolean - hasControlsWith: [ControlWhereInput!] - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - tasks edge predicates - """ - hasTasks: Boolean - hasTasksWith: [TaskWhereInput!] - """ - notes edge predicates - """ - hasNotes: Boolean - hasNotesWith: [NoteWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] -} -type Subscriber implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - """ - the organization id that owns the object - """ - ownerID: ID - """ - email address of the subscriber - """ - email: String! - """ - phone number of the subscriber - """ - phoneNumber: String - """ - indicates if the email address has been verified - """ - verifiedEmail: Boolean! - """ - indicates if the phone number has been verified - """ - verifiedPhone: Boolean! - """ - indicates if the subscriber is active or not, active users will have at least one verified contact method - """ - active: Boolean! - owner: Organization - events: [Event!] -} -""" -A connection to a list of items. -""" -type SubscriberConnection { - """ - A list of edges. - """ - edges: [SubscriberEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type SubscriberEdge { - """ - The item at the end of the edge. - """ - node: Subscriber - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -SubscriberWhereInput is used for filtering Subscriber objects. -Input was generated by ent. -""" -input SubscriberWhereInput { - not: SubscriberWhereInput - and: [SubscriberWhereInput!] - or: [SubscriberWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailEqualFold: String - emailContainsFold: String - """ - phone_number field predicates - """ - phoneNumber: String - phoneNumberNEQ: String - phoneNumberIn: [String!] - phoneNumberNotIn: [String!] - phoneNumberGT: String - phoneNumberGTE: String - phoneNumberLT: String - phoneNumberLTE: String - phoneNumberContains: String - phoneNumberHasPrefix: String - phoneNumberHasSuffix: String - phoneNumberIsNil: Boolean - phoneNumberNotNil: Boolean - phoneNumberEqualFold: String - phoneNumberContainsFold: String - """ - verified_email field predicates - """ - verifiedEmail: Boolean - verifiedEmailNEQ: Boolean - """ - verified_phone field predicates - """ - verifiedPhone: Boolean - verifiedPhoneNEQ: Boolean - """ - active field predicates - """ - active: Boolean - activeNEQ: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] -} -type TFASetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - TFA secret for the user - """ - tfaSecret: String - """ - specifies if the TFA device has been verified - """ - verified: Boolean! - """ - recovery codes for 2fa - """ - recoveryCodes: [String!] - """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app - """ - totpAllowed: Boolean - owner: User -} -""" -A connection to a list of items. -""" -type TFASettingConnection { - """ - A list of edges. - """ - edges: [TFASettingEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type TFASettingEdge { - """ - The item at the end of the edge. - """ - node: TFASetting - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -TFASettingWhereInput is used for filtering TFASetting objects. -Input was generated by ent. -""" -input TFASettingWhereInput { - not: TFASettingWhereInput - and: [TFASettingWhereInput!] - or: [TFASettingWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - tfa_secret field predicates - """ - tfaSecret: String - tfaSecretNEQ: String - tfaSecretIn: [String!] - tfaSecretNotIn: [String!] - tfaSecretGT: String - tfaSecretGTE: String - tfaSecretLT: String - tfaSecretLTE: String - tfaSecretContains: String - tfaSecretHasPrefix: String - tfaSecretHasSuffix: String - tfaSecretIsNil: Boolean - tfaSecretNotNil: Boolean - tfaSecretEqualFold: String - tfaSecretContainsFold: String - """ - verified field predicates - """ - verified: Boolean - verifiedNEQ: Boolean - """ - totp_allowed field predicates - """ - totpAllowed: Boolean - totpAllowedNEQ: Boolean - totpAllowedIsNil: Boolean - totpAllowedNotNil: Boolean - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [UserWhereInput!] -} -type Task implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the title of the task - """ - title: String! - """ - the description of the task - """ - description: String - """ - the details of the task - """ - details: Map - """ - the status of the task - """ - status: TaskTaskStatus! - """ - the due date of the task - """ - due: Time - """ - the completion date of the task - """ - completed: Time - assigner: User! - assignee: User - organization: [Organization!] - group: [Group!] - internalPolicy: [InternalPolicy!] - procedure: [Procedure!] - control: [Control!] - controlObjective: [ControlObjective!] - subcontrol: [Subcontrol!] - program: [Program!] -} -""" -A connection to a list of items. -""" -type TaskConnection { - """ - A list of edges. - """ - edges: [TaskEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type TaskEdge { - """ - The item at the end of the edge. - """ - node: Task - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type TaskHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: TaskHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the title of the task - """ - title: String! - """ - the description of the task - """ - description: String - """ - the details of the task - """ - details: Map - """ - the status of the task - """ - status: TaskHistoryTaskStatus! - """ - the due date of the task - """ - due: Time - """ - the completion date of the task - """ - completed: Time -} -""" -A connection to a list of items. -""" -type TaskHistoryConnection { - """ - A list of edges. - """ - edges: [TaskHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type TaskHistoryEdge { - """ - The item at the end of the edge. - """ - node: TaskHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -TaskHistoryOpType is enum for the field operation -""" -enum TaskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -TaskHistoryTaskStatus is enum for the field status -""" -enum TaskHistoryTaskStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.TaskStatus") { - OPEN - IN_PROGRESS - IN_REVIEW - COMPLETED - WONT_DO -} -""" -TaskHistoryWhereInput is used for filtering TaskHistory objects. -Input was generated by ent. -""" -input TaskHistoryWhereInput { - not: TaskHistoryWhereInput - and: [TaskHistoryWhereInput!] - or: [TaskHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: TaskHistoryOpType - operationNEQ: TaskHistoryOpType - operationIn: [TaskHistoryOpType!] - operationNotIn: [TaskHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - title field predicates - """ - title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleEqualFold: String - titleContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: TaskHistoryTaskStatus - statusNEQ: TaskHistoryTaskStatus - statusIn: [TaskHistoryTaskStatus!] - statusNotIn: [TaskHistoryTaskStatus!] - """ - due field predicates - """ - due: Time - dueNEQ: Time - dueIn: [Time!] - dueNotIn: [Time!] - dueGT: Time - dueGTE: Time - dueLT: Time - dueLTE: Time - dueIsNil: Boolean - dueNotNil: Boolean - """ - completed field predicates - """ - completed: Time - completedNEQ: Time - completedIn: [Time!] - completedNotIn: [Time!] - completedGT: Time - completedGTE: Time - completedLT: Time - completedLTE: Time - completedIsNil: Boolean - completedNotNil: Boolean -} -""" -TaskTaskStatus is enum for the field status -""" -enum TaskTaskStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.TaskStatus") { - OPEN - IN_PROGRESS - IN_REVIEW - COMPLETED - WONT_DO -} -""" -TaskWhereInput is used for filtering Task objects. -Input was generated by ent. -""" -input TaskWhereInput { - not: TaskWhereInput - and: [TaskWhereInput!] - or: [TaskWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - title field predicates - """ - title: String - titleNEQ: String - titleIn: [String!] - titleNotIn: [String!] - titleGT: String - titleGTE: String - titleLT: String - titleLTE: String - titleContains: String - titleHasPrefix: String - titleHasSuffix: String - titleEqualFold: String - titleContainsFold: String - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - status field predicates - """ - status: TaskTaskStatus - statusNEQ: TaskTaskStatus - statusIn: [TaskTaskStatus!] - statusNotIn: [TaskTaskStatus!] - """ - due field predicates - """ - due: Time - dueNEQ: Time - dueIn: [Time!] - dueNotIn: [Time!] - dueGT: Time - dueGTE: Time - dueLT: Time - dueLTE: Time - dueIsNil: Boolean - dueNotNil: Boolean - """ - completed field predicates - """ - completed: Time - completedNEQ: Time - completedIn: [Time!] - completedNotIn: [Time!] - completedGT: Time - completedGTE: Time - completedLT: Time - completedLTE: Time - completedIsNil: Boolean - completedNotNil: Boolean - """ - assigner edge predicates - """ - hasAssigner: Boolean - hasAssignerWith: [UserWhereInput!] - """ - assignee edge predicates - """ - hasAssignee: Boolean - hasAssigneeWith: [UserWhereInput!] - """ - organization edge predicates - """ - hasOrganization: Boolean - hasOrganizationWith: [OrganizationWhereInput!] - """ - group edge predicates - """ - hasGroup: Boolean - hasGroupWith: [GroupWhereInput!] - """ - internal_policy edge predicates - """ - hasInternalPolicy: Boolean - hasInternalPolicyWith: [InternalPolicyWhereInput!] - """ - procedure edge predicates - """ - hasProcedure: Boolean - hasProcedureWith: [ProcedureWhereInput!] - """ - control edge predicates - """ - hasControl: Boolean - hasControlWith: [ControlWhereInput!] - """ - control_objective edge predicates - """ - hasControlObjective: Boolean - hasControlObjectiveWith: [ControlObjectiveWhereInput!] - """ - subcontrol edge predicates - """ - hasSubcontrol: Boolean - hasSubcontrolWith: [SubcontrolWhereInput!] - """ - program edge predicates - """ - hasProgram: Boolean - hasProgramWith: [ProgramWhereInput!] -} -type Template implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: ID - """ - the name of the template - """ - name: String! - """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateDocumentType! - """ - the description of the template - """ - description: String - """ - the jsonschema object of the template - """ - jsonconfig: JSON! - """ - the uischema for the template to render in the UI - """ - uischema: JSON - owner: Organization - documents: [DocumentData!] - files: [File!] -} -""" -A connection to a list of items. -""" -type TemplateConnection { - """ - A list of edges. - """ - edges: [TemplateEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -TemplateDocumentType is enum for the field template_type -""" -enum TemplateDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { - ROOTTEMPLATE - DOCUMENT -} -""" -An edge in a connection. -""" -type TemplateEdge { - """ - The item at the end of the edge. - """ - node: Template - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type TemplateHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: TemplateHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - """ - the organization id that owns the object - """ - ownerID: String - """ - the name of the template - """ - name: String! - """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateHistoryDocumentType! - """ - the description of the template - """ - description: String - """ - the jsonschema object of the template - """ - jsonconfig: JSON! - """ - the uischema for the template to render in the UI - """ - uischema: JSON -} -""" -A connection to a list of items. -""" -type TemplateHistoryConnection { - """ - A list of edges. - """ - edges: [TemplateHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -TemplateHistoryDocumentType is enum for the field template_type -""" -enum TemplateHistoryDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { - ROOTTEMPLATE - DOCUMENT -} -""" -An edge in a connection. -""" -type TemplateHistoryEdge { - """ - The item at the end of the edge. - """ - node: TemplateHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -TemplateHistoryOpType is enum for the field operation -""" -enum TemplateHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for TemplateHistory connections -""" -input TemplateHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order TemplateHistories. - """ - field: TemplateHistoryOrderField! -} -""" -Properties by which TemplateHistory connections can be ordered. -""" -enum TemplateHistoryOrderField { - name -} -""" -TemplateHistoryWhereInput is used for filtering TemplateHistory objects. -Input was generated by ent. -""" -input TemplateHistoryWhereInput { - not: TemplateHistoryWhereInput - and: [TemplateHistoryWhereInput!] - or: [TemplateHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: TemplateHistoryOpType - operationNEQ: TemplateHistoryOpType - operationIn: [TemplateHistoryOpType!] - operationNotIn: [TemplateHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: String - ownerIDNEQ: String - ownerIDIn: [String!] - ownerIDNotIn: [String!] - ownerIDGT: String - ownerIDGTE: String - ownerIDLT: String - ownerIDLTE: String - ownerIDContains: String - ownerIDHasPrefix: String - ownerIDHasSuffix: String - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: String - ownerIDContainsFold: String - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - template_type field predicates - """ - templateType: TemplateHistoryDocumentType - templateTypeNEQ: TemplateHistoryDocumentType - templateTypeIn: [TemplateHistoryDocumentType!] - templateTypeNotIn: [TemplateHistoryDocumentType!] - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String -} -""" -Ordering options for Template connections -""" -input TemplateOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Templates. - """ - field: TemplateOrderField! -} -""" -Properties by which Template connections can be ordered. -""" -enum TemplateOrderField { - name -} -""" -TemplateWhereInput is used for filtering Template objects. -Input was generated by ent. -""" -input TemplateWhereInput { - not: TemplateWhereInput - and: [TemplateWhereInput!] - or: [TemplateWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - owner_id field predicates - """ - ownerID: ID - ownerIDNEQ: ID - ownerIDIn: [ID!] - ownerIDNotIn: [ID!] - ownerIDGT: ID - ownerIDGTE: ID - ownerIDLT: ID - ownerIDLTE: ID - ownerIDContains: ID - ownerIDHasPrefix: ID - ownerIDHasSuffix: ID - ownerIDIsNil: Boolean - ownerIDNotNil: Boolean - ownerIDEqualFold: ID - ownerIDContainsFold: ID - """ - name field predicates - """ - name: String - nameNEQ: String - nameIn: [String!] - nameNotIn: [String!] - nameGT: String - nameGTE: String - nameLT: String - nameLTE: String - nameContains: String - nameHasPrefix: String - nameHasSuffix: String - nameEqualFold: String - nameContainsFold: String - """ - template_type field predicates - """ - templateType: TemplateDocumentType - templateTypeNEQ: TemplateDocumentType - templateTypeIn: [TemplateDocumentType!] - templateTypeNotIn: [TemplateDocumentType!] - """ - description field predicates - """ - description: String - descriptionNEQ: String - descriptionIn: [String!] - descriptionNotIn: [String!] - descriptionGT: String - descriptionGTE: String - descriptionLT: String - descriptionLTE: String - descriptionContains: String - descriptionHasPrefix: String - descriptionHasSuffix: String - descriptionIsNil: Boolean - descriptionNotNil: Boolean - descriptionEqualFold: String - descriptionContainsFold: String - """ - owner edge predicates - """ - hasOwner: Boolean - hasOwnerWith: [OrganizationWhereInput!] - """ - documents edge predicates - """ - hasDocuments: Boolean - hasDocumentsWith: [DocumentDataWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -""" -The builtin Time type -""" -scalar Time -""" -UpdateAPITokenInput is used for update APIToken object. -Input was generated by ent. -""" -input UpdateAPITokenInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name associated with the token - """ - name: String - """ - a description of the token's purpose - """ - description: String - clearDescription: Boolean - scopes: [String!] - appendScopes: [String!] - clearScopes: Boolean - lastUsedAt: Time - clearLastUsedAt: Boolean - ownerID: ID - clearOwner: Boolean -} -""" -UpdateActionPlanInput is used for update ActionPlan object. -Input was generated by ent. -""" -input UpdateActionPlanInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the action plan - """ - name: String - """ - description of the action plan - """ - description: String - clearDescription: Boolean - """ - status of the action plan - """ - status: String - clearStatus: Boolean - """ - due date of the action plan - """ - dueDate: Time - clearDueDate: Boolean - """ - priority of the action plan - """ - priority: String - clearPriority: Boolean - """ - source of the action plan - """ - source: String - clearSource: Boolean - """ - json data including details of the action plan - """ - details: Map - clearDetails: Boolean - addStandardIDs: [ID!] - removeStandardIDs: [ID!] - clearStandard: Boolean - addRiskIDs: [ID!] - removeRiskIDs: [ID!] - clearRisk: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControl: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUser: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearProgram: Boolean -} -""" -UpdateContactInput is used for update Contact object. -Input was generated by ent. -""" -input UpdateContactInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the full name of the contact - """ - fullName: String - """ - the title of the contact - """ - title: String - clearTitle: Boolean - """ - the company of the contact - """ - company: String - clearCompany: Boolean - """ - the email of the contact - """ - email: String - clearEmail: Boolean - """ - the phone number of the contact - """ - phoneNumber: String - clearPhoneNumber: Boolean - """ - the address of the contact - """ - address: String - clearAddress: Boolean - """ - status of the contact - """ - status: ContactUserStatus - ownerID: ID - clearOwner: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateControlInput is used for update Control object. -Input was generated by ent. -""" -input UpdateControlInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the control - """ - name: String - """ - description of the control - """ - description: String - clearDescription: Boolean - """ - status of the control - """ - status: String - clearStatus: Boolean - """ - type of the control - """ - controlType: String - clearControlType: Boolean - """ - version of the control - """ - version: String - clearVersion: Boolean - """ - control number or identifier - """ - controlNumber: String - clearControlNumber: Boolean - """ - family associated with the control - """ - family: String - clearFamily: Boolean - """ - class associated with the control - """ - class: String - clearClass: Boolean - """ - source of the control, e.g. framework, template, custom, etc. - """ - source: String - clearSource: Boolean - """ - which control objectives are satisfied by the control - """ - satisfies: String - clearSatisfies: Boolean - """ - mapped frameworks - """ - mappedFrameworks: String - clearMappedFrameworks: Boolean - """ - json data including details of the control - """ - details: Map - clearDetails: Boolean - ownerID: ID - addBlockedGroupIDs: [ID!] - removeBlockedGroupIDs: [ID!] - clearBlockedGroups: Boolean - addEditorIDs: [ID!] - removeEditorIDs: [ID!] - clearEditors: Boolean - addViewerIDs: [ID!] - removeViewerIDs: [ID!] - clearViewers: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedures: Boolean - addSubcontrolIDs: [ID!] - removeSubcontrolIDs: [ID!] - clearSubcontrols: Boolean - addControlObjectiveIDs: [ID!] - removeControlObjectiveIDs: [ID!] - clearControlObjectives: Boolean - addStandardIDs: [ID!] - removeStandardIDs: [ID!] - clearStandard: Boolean - addNarrativeIDs: [ID!] - removeNarrativeIDs: [ID!] - clearNarratives: Boolean - addRiskIDs: [ID!] - removeRiskIDs: [ID!] - clearRisks: Boolean - addActionPlanIDs: [ID!] - removeActionPlanIDs: [ID!] - clearActionPlans: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateControlObjectiveInput is used for update ControlObjective object. -Input was generated by ent. -""" -input UpdateControlObjectiveInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the control objective - """ - name: String - """ - description of the control objective - """ - description: String - clearDescription: Boolean - """ - status of the control objective - """ - status: String - clearStatus: Boolean - """ - type of the control objective - """ - controlObjectiveType: String - clearControlObjectiveType: Boolean - """ - version of the control objective - """ - version: String - clearVersion: Boolean - """ - number of the control objective - """ - controlNumber: String - clearControlNumber: Boolean - """ - family of the control objective - """ - family: String - clearFamily: Boolean - """ - class associated with the control objective - """ - class: String - clearClass: Boolean - """ - source of the control objective, e.g. framework, template, user-defined, etc. - """ - source: String - clearSource: Boolean - """ - mapped frameworks - """ - mappedFrameworks: String - clearMappedFrameworks: Boolean - """ - json data including details of the control objective - """ - details: Map - clearDetails: Boolean - ownerID: ID - addBlockedGroupIDs: [ID!] - removeBlockedGroupIDs: [ID!] - clearBlockedGroups: Boolean - addEditorIDs: [ID!] - removeEditorIDs: [ID!] - clearEditors: Boolean - addViewerIDs: [ID!] - removeViewerIDs: [ID!] - clearViewers: Boolean - addInternalPolicyIDs: [ID!] - removeInternalPolicyIDs: [ID!] - clearInternalPolicies: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControls: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedures: Boolean - addRiskIDs: [ID!] - removeRiskIDs: [ID!] - clearRisks: Boolean - addSubcontrolIDs: [ID!] - removeSubcontrolIDs: [ID!] - clearSubcontrols: Boolean - addStandardIDs: [ID!] - removeStandardIDs: [ID!] - clearStandard: Boolean - addNarrativeIDs: [ID!] - removeNarrativeIDs: [ID!] - clearNarratives: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateDocumentDataInput is used for update DocumentData object. -Input was generated by ent. -""" -input UpdateDocumentDataInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the json data of the document - """ - data: JSON - ownerID: ID - clearOwner: Boolean - templateID: ID - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntity: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateEntityInput is used for update Entity object. -Input was generated by ent. -""" -input UpdateEntityInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the entity - """ - name: String - clearName: Boolean - """ - The entity's displayed 'friendly' name - """ - displayName: String - clearDisplayName: Boolean - """ - An optional description of the entity - """ - description: String - clearDescription: Boolean - """ - domains associated with the entity - """ - domains: [String!] - appendDomains: [String!] - clearDomains: Boolean - """ - status of the entity - """ - status: String - clearStatus: Boolean - ownerID: ID - clearOwner: Boolean - addContactIDs: [ID!] - removeContactIDs: [ID!] - clearContacts: Boolean - addDocumentIDs: [ID!] - removeDocumentIDs: [ID!] - clearDocuments: Boolean - addNoteIDs: [ID!] - removeNoteIDs: [ID!] - clearNotes: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - entityTypeID: ID - clearEntityType: Boolean -} -""" -UpdateEntityTypeInput is used for update EntityType object. -Input was generated by ent. -""" -input UpdateEntityTypeInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the entity - """ - name: String - ownerID: ID - clearOwner: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean -} -""" -UpdateEventInput is used for update Event object. -Input was generated by ent. -""" -input UpdateEventInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - eventID: String - clearEventID: Boolean - correlationID: String - clearCorrelationID: Boolean - eventType: String - metadata: Map - clearMetadata: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUser: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroup: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegration: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganization: Boolean - addInviteIDs: [ID!] - removeInviteIDs: [ID!] - clearInvite: Boolean - addPersonalAccessTokenIDs: [ID!] - removePersonalAccessTokenIDs: [ID!] - clearPersonalAccessToken: Boolean - addHushIDs: [ID!] - removeHushIDs: [ID!] - clearHush: Boolean - addSubscriberIDs: [ID!] - removeSubscriberIDs: [ID!] - clearSubscriber: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFile: Boolean -} -""" -UpdateFileInput is used for update File object. -Input was generated by ent. -""" -input UpdateFileInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the file provided in the payload key without the extension - """ - providedFileName: String - """ - the extension of the file provided - """ - providedFileExtension: String - """ - the computed size of the file in the original http request - """ - providedFileSize: Int - clearProvidedFileSize: Boolean - persistedFileSize: Int - clearPersistedFileSize: Boolean - """ - the mime type detected by the system - """ - detectedMimeType: String - clearDetectedMimeType: Boolean - """ - the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage - """ - md5Hash: String - clearMd5Hash: Boolean - """ - the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types - """ - detectedContentType: String - """ - the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key - """ - storeKey: String - clearStoreKey: Boolean - """ - the category type of the file, if any (e.g. evidence, invoice, etc.) - """ - categoryType: String - clearCategoryType: Boolean - """ - the full URI of the file - """ - uri: String - clearURI: Boolean - """ - the storage scheme of the file, e.g. file://, s3://, etc. - """ - storageScheme: String - clearStorageScheme: Boolean - """ - the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping - """ - storageVolume: String - clearStorageVolume: Boolean - """ - the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty - """ - storagePath: String - clearStoragePath: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUser: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganization: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroup: Boolean - addContactIDs: [ID!] - removeContactIDs: [ID!] - clearContact: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntity: Boolean - addUserSettingIDs: [ID!] - removeUserSettingIDs: [ID!] - clearUserSetting: Boolean - addOrganizationSettingIDs: [ID!] - removeOrganizationSettingIDs: [ID!] - clearOrganizationSetting: Boolean - addTemplateIDs: [ID!] - removeTemplateIDs: [ID!] - clearTemplate: Boolean - addDocumentDatumIDs: [ID!] - removeDocumentDatumIDs: [ID!] - clearDocumentData: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearProgram: Boolean -} -""" -UpdateGroupInput is used for update Group object. -Input was generated by ent. -""" -input UpdateGroupInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the group - must be unique within the organization - """ - name: String - """ - the groups description - """ - description: String - clearDescription: Boolean - """ - the URL to an auto generated gravatar image for the group - """ - gravatarLogoURL: String - clearGravatarLogoURL: Boolean - """ - the URL to an image uploaded by the customer for the groups avatar image - """ - logoURL: String - clearLogoURL: Boolean - """ - The group's displayed 'friendly' name - """ - displayName: String - ownerID: ID - clearOwner: Boolean - addControlCreatorIDs: [ID!] - removeControlCreatorIDs: [ID!] - clearControlCreators: Boolean - addControlObjectiveCreatorIDs: [ID!] - removeControlObjectiveCreatorIDs: [ID!] - clearControlObjectiveCreators: Boolean - addGroupCreatorIDs: [ID!] - removeGroupCreatorIDs: [ID!] - clearGroupCreators: Boolean - addInternalPolicyCreatorIDs: [ID!] - removeInternalPolicyCreatorIDs: [ID!] - clearInternalPolicyCreators: Boolean - addNarrativeCreatorIDs: [ID!] - removeNarrativeCreatorIDs: [ID!] - clearNarrativeCreators: Boolean - addProcedureCreatorIDs: [ID!] - removeProcedureCreatorIDs: [ID!] - clearProcedureCreators: Boolean - addProgramCreatorIDs: [ID!] - removeProgramCreatorIDs: [ID!] - clearProgramCreators: Boolean - addRiskCreatorIDs: [ID!] - removeRiskCreatorIDs: [ID!] - clearRiskCreators: Boolean - addTemplateCreatorIDs: [ID!] - removeTemplateCreatorIDs: [ID!] - clearTemplateCreators: Boolean - addProcedureEditorIDs: [ID!] - removeProcedureEditorIDs: [ID!] - clearProcedureEditors: Boolean - addProcedureBlockedGroupIDs: [ID!] - removeProcedureBlockedGroupIDs: [ID!] - clearProcedureBlockedGroups: Boolean - addInternalPolicyEditorIDs: [ID!] - removeInternalPolicyEditorIDs: [ID!] - clearInternalPolicyEditors: Boolean - addInternalPolicyBlockedGroupIDs: [ID!] - removeInternalPolicyBlockedGroupIDs: [ID!] - clearInternalPolicyBlockedGroups: Boolean - addProgramEditorIDs: [ID!] - removeProgramEditorIDs: [ID!] - clearProgramEditors: Boolean - addProgramBlockedGroupIDs: [ID!] - removeProgramBlockedGroupIDs: [ID!] - clearProgramBlockedGroups: Boolean - addProgramViewerIDs: [ID!] - removeProgramViewerIDs: [ID!] - clearProgramViewers: Boolean - addRiskEditorIDs: [ID!] - removeRiskEditorIDs: [ID!] - clearRiskEditors: Boolean - addRiskBlockedGroupIDs: [ID!] - removeRiskBlockedGroupIDs: [ID!] - clearRiskBlockedGroups: Boolean - addRiskViewerIDs: [ID!] - removeRiskViewerIDs: [ID!] - clearRiskViewers: Boolean - addControlObjectiveEditorIDs: [ID!] - removeControlObjectiveEditorIDs: [ID!] - clearControlObjectiveEditors: Boolean - addControlObjectiveBlockedGroupIDs: [ID!] - removeControlObjectiveBlockedGroupIDs: [ID!] - clearControlObjectiveBlockedGroups: Boolean - addControlObjectiveViewerIDs: [ID!] - removeControlObjectiveViewerIDs: [ID!] - clearControlObjectiveViewers: Boolean - addControlEditorIDs: [ID!] - removeControlEditorIDs: [ID!] - clearControlEditors: Boolean - addControlBlockedGroupIDs: [ID!] - removeControlBlockedGroupIDs: [ID!] - clearControlBlockedGroups: Boolean - addControlViewerIDs: [ID!] - removeControlViewerIDs: [ID!] - clearControlViewers: Boolean - addNarrativeEditorIDs: [ID!] - removeNarrativeEditorIDs: [ID!] - clearNarrativeEditors: Boolean - addNarrativeBlockedGroupIDs: [ID!] - removeNarrativeBlockedGroupIDs: [ID!] - clearNarrativeBlockedGroups: Boolean - addNarrativeViewerIDs: [ID!] - removeNarrativeViewerIDs: [ID!] - clearNarrativeViewers: Boolean - settingID: ID - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUsers: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegrations: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean -} -""" -UpdateGroupMembershipInput is used for update GroupMembership object. -Input was generated by ent. -""" -input UpdateGroupMembershipInput { - role: GroupMembershipRole - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateGroupSettingInput is used for update GroupSetting object. -Input was generated by ent. -""" -input UpdateGroupSettingInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization - """ - visibility: GroupSettingVisibility - """ - the policy governing ability to freely join a group, whether it requires an invitation, application, or either - """ - joinPolicy: GroupSettingJoinPolicy - """ - whether to sync group members to slack groups - """ - syncToSlack: Boolean - clearSyncToSlack: Boolean - """ - whether to sync group members to github groups - """ - syncToGithub: Boolean - clearSyncToGithub: Boolean - groupID: ID - clearGroup: Boolean -} -""" -UpdateHushInput is used for update Hush object. -Input was generated by ent. -""" -input UpdateHushInput { - """ - the logical name of the corresponding hush secret or it's general grouping - """ - name: String - """ - a description of the hush value or purpose, such as github PAT - """ - description: String - clearDescription: Boolean - """ - the kind of secret, such as sshkey, certificate, api token, etc. - """ - kind: String - clearKind: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegrations: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganization: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateIntegrationInput is used for update Integration object. -Input was generated by ent. -""" -input UpdateIntegrationInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the integration - must be unique within the organization - """ - name: String - """ - a description of the integration - """ - description: String - clearDescription: Boolean - kind: String - clearKind: Boolean - ownerID: ID - clearOwner: Boolean - addSecretIDs: [ID!] - removeSecretIDs: [ID!] - clearSecrets: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateInternalPolicyInput is used for update InternalPolicy object. -Input was generated by ent. -""" -input UpdateInternalPolicyInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the policy - """ - name: String - """ - description of the policy - """ - description: String - clearDescription: Boolean - """ - status of the policy - """ - status: String - clearStatus: Boolean - """ - type of the policy - """ - policyType: String - clearPolicyType: Boolean - """ - version of the policy - """ - version: String - clearVersion: Boolean - """ - purpose and scope - """ - purposeAndScope: String - clearPurposeAndScope: Boolean - """ - background of the policy - """ - background: String - clearBackground: Boolean - """ - json data for the policy document - """ - details: Map - clearDetails: Boolean - ownerID: ID - clearOwner: Boolean - addBlockedGroupIDs: [ID!] - removeBlockedGroupIDs: [ID!] - clearBlockedGroups: Boolean - addEditorIDs: [ID!] - removeEditorIDs: [ID!] - clearEditors: Boolean - addControlObjectiveIDs: [ID!] - removeControlObjectiveIDs: [ID!] - clearControlObjectives: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControls: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedures: Boolean - addNarrativeIDs: [ID!] - removeNarrativeIDs: [ID!] - clearNarratives: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateInviteInput is used for update Invite object. -Input was generated by ent. -""" -input UpdateInviteInput { - """ - the expiration date of the invitation token which defaults to 14 days in the future from creation - """ - expires: Time - clearExpires: Boolean - """ - the status of the invitation - """ - status: InviteInviteStatus - role: InviteRole - """ - the number of attempts made to perform email send of the invitation, maximum of 5 - """ - sendAttempts: Int - ownerID: ID - clearOwner: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateNarrativeInput is used for update Narrative object. -Input was generated by ent. -""" -input UpdateNarrativeInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the narrative - """ - name: String - """ - the description of the narrative - """ - description: String - clearDescription: Boolean - """ - which controls are satisfied by the narrative - """ - satisfies: String - clearSatisfies: Boolean - """ - json data for the narrative document - """ - details: Map - clearDetails: Boolean - ownerID: ID - addBlockedGroupIDs: [ID!] - removeBlockedGroupIDs: [ID!] - clearBlockedGroups: Boolean - addEditorIDs: [ID!] - removeEditorIDs: [ID!] - clearEditors: Boolean - addViewerIDs: [ID!] - removeViewerIDs: [ID!] - clearViewers: Boolean - addInternalPolicyIDs: [ID!] - removeInternalPolicyIDs: [ID!] - clearInternalPolicy: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControl: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedure: Boolean - addControlObjectiveIDs: [ID!] - removeControlObjectiveIDs: [ID!] - clearControlObjective: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateNoteInput is used for update Note object. -Input was generated by ent. -""" -input UpdateNoteInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the text of the note - """ - text: String - ownerID: ID - clearOwner: Boolean - entityID: ID - clearEntity: Boolean - addSubcontrolIDs: [ID!] - removeSubcontrolIDs: [ID!] - clearSubcontrols: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearProgram: Boolean -} -""" -UpdateOrgMembershipInput is used for update OrgMembership object. -Input was generated by ent. -""" -input UpdateOrgMembershipInput { - role: OrgMembershipRole - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateOrgSubscriptionInput is used for update OrgSubscription object. -Input was generated by ent. -""" -input UpdateOrgSubscriptionInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the stripe subscription id - """ - stripeSubscriptionID: String - clearStripeSubscriptionID: Boolean - """ - the common name of the product tier the subscription is associated with, e.g. starter tier - """ - productTier: String - clearProductTier: Boolean - """ - the product id that represents the tier in stripe - """ - stripeProductTierID: String - clearStripeProductTierID: Boolean - """ - the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status - """ - stripeSubscriptionStatus: String - clearStripeSubscriptionStatus: Boolean - """ - indicates if the subscription is active - """ - active: Boolean - """ - the customer ID the subscription is associated to - """ - stripeCustomerID: String - clearStripeCustomerID: Boolean - """ - the time the subscription is set to expire; only populated if subscription is cancelled - """ - expiresAt: Time - clearExpiresAt: Boolean - """ - the features associated with the subscription - """ - features: [String!] - appendFeatures: [String!] - clearFeatures: Boolean - ownerID: ID - clearOwner: Boolean -} -""" -UpdateOrganizationInput is used for update Organization object. -Input was generated by ent. -""" -input UpdateOrganizationInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the organization - """ - name: String - """ - The organization's displayed 'friendly' name - """ - displayName: String - """ - An optional description of the organization - """ - description: String - clearDescription: Boolean - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - clearAvatarRemoteURL: Boolean - addControlCreatorIDs: [ID!] - removeControlCreatorIDs: [ID!] - clearControlCreators: Boolean - addControlObjectiveCreatorIDs: [ID!] - removeControlObjectiveCreatorIDs: [ID!] - clearControlObjectiveCreators: Boolean - addGroupCreatorIDs: [ID!] - removeGroupCreatorIDs: [ID!] - clearGroupCreators: Boolean - addInternalPolicyCreatorIDs: [ID!] - removeInternalPolicyCreatorIDs: [ID!] - clearInternalPolicyCreators: Boolean - addNarrativeCreatorIDs: [ID!] - removeNarrativeCreatorIDs: [ID!] - clearNarrativeCreators: Boolean - addProcedureCreatorIDs: [ID!] - removeProcedureCreatorIDs: [ID!] - clearProcedureCreators: Boolean - addProgramCreatorIDs: [ID!] - removeProgramCreatorIDs: [ID!] - clearProgramCreators: Boolean - addRiskCreatorIDs: [ID!] - removeRiskCreatorIDs: [ID!] - clearRiskCreators: Boolean - addTemplateCreatorIDs: [ID!] - removeTemplateCreatorIDs: [ID!] - clearTemplateCreators: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroups: Boolean - addTemplateIDs: [ID!] - removeTemplateIDs: [ID!] - clearTemplates: Boolean - addIntegrationIDs: [ID!] - removeIntegrationIDs: [ID!] - clearIntegrations: Boolean - settingID: ID - clearSetting: Boolean - addDocumentDatumIDs: [ID!] - removeDocumentDatumIDs: [ID!] - clearDocumentData: Boolean - addOrgSubscriptionIDs: [ID!] - removeOrgSubscriptionIDs: [ID!] - clearOrgSubscriptions: Boolean - addPersonalAccessTokenIDs: [ID!] - removePersonalAccessTokenIDs: [ID!] - clearPersonalAccessTokens: Boolean - addAPITokenIDs: [ID!] - removeAPITokenIDs: [ID!] - clearAPITokens: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUsers: Boolean - addInviteIDs: [ID!] - removeInviteIDs: [ID!] - clearInvites: Boolean - addSubscriberIDs: [ID!] - removeSubscriberIDs: [ID!] - clearSubscribers: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addSecretIDs: [ID!] - removeSecretIDs: [ID!] - clearSecrets: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - addEntityIDs: [ID!] - removeEntityIDs: [ID!] - clearEntities: Boolean - addEntityTypeIDs: [ID!] - removeEntityTypeIDs: [ID!] - clearEntityTypes: Boolean - addContactIDs: [ID!] - removeContactIDs: [ID!] - clearContacts: Boolean - addNoteIDs: [ID!] - removeNoteIDs: [ID!] - clearNotes: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedures: Boolean - addInternalPolicyIDs: [ID!] - removeInternalPolicyIDs: [ID!] - clearInternalPolicies: Boolean - addRiskIDs: [ID!] - removeRiskIDs: [ID!] - clearRisks: Boolean - addControlObjectiveIDs: [ID!] - removeControlObjectiveIDs: [ID!] - clearControlObjectives: Boolean - addNarrativeIDs: [ID!] - removeNarrativeIDs: [ID!] - clearNarratives: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControls: Boolean - addSubcontrolIDs: [ID!] - removeSubcontrolIDs: [ID!] - clearSubcontrols: Boolean -} -""" -UpdateOrganizationSettingInput is used for update OrganizationSetting object. -Input was generated by ent. -""" -input UpdateOrganizationSettingInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - domains associated with the organization - """ - domains: [String!] - appendDomains: [String!] - clearDomains: Boolean - """ - Name of the person to contact for billing - """ - billingContact: String - clearBillingContact: Boolean - """ - Email address of the person to contact for billing - """ - billingEmail: String - clearBillingEmail: Boolean - """ - Phone number to contact for billing - """ - billingPhone: String - clearBillingPhone: Boolean - """ - Address to send billing information to - """ - billingAddress: String - clearBillingAddress: Boolean - """ - Usually government-issued tax ID or business ID such as ABN in Australia - """ - taxIdentifier: String - clearTaxIdentifier: Boolean - """ - geographical location of the organization - """ - geoLocation: OrganizationSettingRegion - clearGeoLocation: Boolean - """ - the ID of the stripe customer associated with the organization - """ - stripeID: String - clearStripeID: Boolean - organizationID: ID - clearOrganization: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdatePersonalAccessTokenInput is used for update PersonalAccessToken object. -Input was generated by ent. -""" -input UpdatePersonalAccessTokenInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name associated with the token - """ - name: String - """ - a description of the token's purpose - """ - description: String - clearDescription: Boolean - scopes: [String!] - appendScopes: [String!] - clearScopes: Boolean - lastUsedAt: Time - clearLastUsedAt: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganizations: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateProcedureInput is used for update Procedure object. -Input was generated by ent. -""" -input UpdateProcedureInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the procedure - """ - name: String - """ - description of the procedure - """ - description: String - clearDescription: Boolean - """ - status of the procedure - """ - status: String - clearStatus: Boolean - """ - type of the procedure - """ - procedureType: String - clearProcedureType: Boolean - """ - version of the procedure - """ - version: String - clearVersion: Boolean - """ - purpose and scope - """ - purposeAndScope: String - clearPurposeAndScope: Boolean - """ - background of the procedure - """ - background: String - clearBackground: Boolean - """ - which controls are satisfied by the procedure - """ - satisfies: String - clearSatisfies: Boolean - """ - json data for the procedure document - """ - details: Map - clearDetails: Boolean - ownerID: ID - clearOwner: Boolean - addBlockedGroupIDs: [ID!] - removeBlockedGroupIDs: [ID!] - clearBlockedGroups: Boolean - addEditorIDs: [ID!] - removeEditorIDs: [ID!] - clearEditors: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControls: Boolean - addInternalPolicyIDs: [ID!] - removeInternalPolicyIDs: [ID!] - clearInternalPolicies: Boolean - addNarrativeIDs: [ID!] - removeNarrativeIDs: [ID!] - clearNarratives: Boolean - addRiskIDs: [ID!] - removeRiskIDs: [ID!] - clearRisks: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateProgramInput is used for update Program object. -Input was generated by ent. -""" -input UpdateProgramInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the program - """ - name: String - """ - the description of the program - """ - description: String - clearDescription: Boolean - """ - the status of the program - """ - status: ProgramProgramStatus - """ - the start date of the period - """ - startDate: Time - clearStartDate: Boolean - """ - the end date of the period - """ - endDate: Time - clearEndDate: Boolean - """ - is the program ready for the auditor - """ - auditorReady: Boolean - """ - can the auditor write comments - """ - auditorWriteComments: Boolean - """ - can the auditor read comments - """ - auditorReadComments: Boolean - ownerID: ID - clearOwner: Boolean - addBlockedGroupIDs: [ID!] - removeBlockedGroupIDs: [ID!] - clearBlockedGroups: Boolean - addEditorIDs: [ID!] - removeEditorIDs: [ID!] - clearEditors: Boolean - addViewerIDs: [ID!] - removeViewerIDs: [ID!] - clearViewers: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControls: Boolean - addSubcontrolIDs: [ID!] - removeSubcontrolIDs: [ID!] - clearSubcontrols: Boolean - addControlObjectiveIDs: [ID!] - removeControlObjectiveIDs: [ID!] - clearControlObjectives: Boolean - addInternalPolicyIDs: [ID!] - removeInternalPolicyIDs: [ID!] - clearInternalPolicies: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedures: Boolean - addRiskIDs: [ID!] - removeRiskIDs: [ID!] - clearRisks: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean - addNoteIDs: [ID!] - removeNoteIDs: [ID!] - clearNotes: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - addNarrativeIDs: [ID!] - removeNarrativeIDs: [ID!] - clearNarratives: Boolean - addActionPlanIDs: [ID!] - removeActionPlanIDs: [ID!] - clearActionPlans: Boolean - addStandardIDs: [ID!] - removeStandardIDs: [ID!] - clearStandards: Boolean - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUsers: Boolean -} -""" -UpdateProgramMembershipInput is used for update ProgramMembership object. -Input was generated by ent. -""" -input UpdateProgramMembershipInput { - role: ProgramMembershipRole -} -""" -UpdateRiskInput is used for update Risk object. -Input was generated by ent. -""" -input UpdateRiskInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the risk - """ - name: String - """ - description of the risk - """ - description: String - clearDescription: Boolean - """ - status of the risk - mitigated or not, inflight, etc. - """ - status: String - clearStatus: Boolean - """ - type of the risk, e.g. strategic, operational, financial, external, etc. - """ - riskType: String - clearRiskType: Boolean - """ - business costs associated with the risk - """ - businessCosts: String - clearBusinessCosts: Boolean - """ - impact of the risk - high, medium, low - """ - impact: RiskRiskImpact - clearImpact: Boolean - """ - likelihood of the risk occurring; unlikely, likely, highly likely - """ - likelihood: RiskRiskLikelihood - clearLikelihood: Boolean - """ - mitigation for the risk - """ - mitigation: String - clearMitigation: Boolean - """ - which controls are satisfied by the risk - """ - satisfies: String - clearSatisfies: Boolean - """ - json data for the risk document - """ - details: Map - clearDetails: Boolean - ownerID: ID - addBlockedGroupIDs: [ID!] - removeBlockedGroupIDs: [ID!] - clearBlockedGroups: Boolean - addEditorIDs: [ID!] - removeEditorIDs: [ID!] - clearEditors: Boolean - addViewerIDs: [ID!] - removeViewerIDs: [ID!] - clearViewers: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControl: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedure: Boolean - addActionPlanIDs: [ID!] - removeActionPlanIDs: [ID!] - clearActionPlans: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateStandardInput is used for update Standard object. -Input was generated by ent. -""" -input UpdateStandardInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. - """ - name: String - """ - description of the standard - """ - description: String - clearDescription: Boolean - """ - family of the standard, e.g. 800-53, 800-171, 27001, etc. - """ - family: String - clearFamily: Boolean - """ - status of the standard - active, deprecated, etc. - """ - status: String - clearStatus: Boolean - """ - type of the standard - security, privacy, etc. - """ - standardType: String - clearStandardType: Boolean - """ - version of the standard - """ - version: String - clearVersion: Boolean - """ - purpose and scope - """ - purposeAndScope: String - clearPurposeAndScope: Boolean - """ - background of the standard - """ - background: String - clearBackground: Boolean - """ - which controls are satisfied by the standard - """ - satisfies: String - clearSatisfies: Boolean - """ - json data with details of the standard - """ - details: Map - clearDetails: Boolean - addControlObjectiveIDs: [ID!] - removeControlObjectiveIDs: [ID!] - clearControlObjectives: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControls: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedures: Boolean - addActionPlanIDs: [ID!] - removeActionPlanIDs: [ID!] - clearActionPlans: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateSubcontrolInput is used for update Subcontrol object. -Input was generated by ent. -""" -input UpdateSubcontrolInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the subcontrol - """ - name: String - """ - description of the subcontrol - """ - description: String - clearDescription: Boolean - """ - status of the subcontrol - """ - status: String - clearStatus: Boolean - """ - type of the subcontrol - """ - subcontrolType: String - clearSubcontrolType: Boolean - """ - version of the control - """ - version: String - clearVersion: Boolean - """ - number of the subcontrol - """ - subcontrolNumber: String - clearSubcontrolNumber: Boolean - """ - subcontrol family - """ - family: String - clearFamily: Boolean - """ - subcontrol class - """ - class: String - clearClass: Boolean - """ - source of the control, e.g. framework, template, user-defined, etc. - """ - source: String - clearSource: Boolean - """ - mapped frameworks that the subcontrol is part of - """ - mappedFrameworks: String - clearMappedFrameworks: Boolean - """ - implementation evidence of the subcontrol - """ - implementationEvidence: String - clearImplementationEvidence: Boolean - """ - implementation status - """ - implementationStatus: String - clearImplementationStatus: Boolean - """ - date the subcontrol was implemented - """ - implementationDate: Time - clearImplementationDate: Boolean - """ - implementation verification - """ - implementationVerification: String - clearImplementationVerification: Boolean - """ - date the subcontrol implementation was verified - """ - implementationVerificationDate: Time - clearImplementationVerificationDate: Boolean - """ - json data details of the subcontrol - """ - details: Map - clearDetails: Boolean - ownerID: ID - addControlIDs: [ID!] - removeControlIDs: [ID!] - addUserIDs: [ID!] - removeUserIDs: [ID!] - clearUser: Boolean - addTaskIDs: [ID!] - removeTaskIDs: [ID!] - clearTasks: Boolean - notesID: ID - clearNotes: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateSubscriberInput is used for update Subscriber object. -Input was generated by ent. -""" -input UpdateSubscriberInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - email address of the subscriber - """ - email: String - """ - phone number of the subscriber - """ - phoneNumber: String - clearPhoneNumber: Boolean - ownerID: ID - clearOwner: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean -} -""" -UpdateTFASettingInput is used for update TFASetting object. -Input was generated by ent. -""" -input UpdateTFASettingInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - specifies if the TFA device has been verified - """ - verified: Boolean - """ - specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app - """ - totpAllowed: Boolean - clearTotpAllowed: Boolean -} -""" -UpdateTaskInput is used for update Task object. -Input was generated by ent. -""" -input UpdateTaskInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the title of the task - """ - title: String - """ - the description of the task - """ - description: String - clearDescription: Boolean - """ - the details of the task - """ - details: Map - clearDetails: Boolean - """ - the status of the task - """ - status: TaskTaskStatus - """ - the due date of the task - """ - due: Time - clearDue: Boolean - """ - the completion date of the task - """ - completed: Time - clearCompleted: Boolean - assignerID: ID - assigneeID: ID - clearAssignee: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganization: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroup: Boolean - addInternalPolicyIDs: [ID!] - removeInternalPolicyIDs: [ID!] - clearInternalPolicy: Boolean - addProcedureIDs: [ID!] - removeProcedureIDs: [ID!] - clearProcedure: Boolean - addControlIDs: [ID!] - removeControlIDs: [ID!] - clearControl: Boolean - addControlObjectiveIDs: [ID!] - removeControlObjectiveIDs: [ID!] - clearControlObjective: Boolean - addSubcontrolIDs: [ID!] - removeSubcontrolIDs: [ID!] - clearSubcontrol: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearProgram: Boolean -} -""" -UpdateTemplateInput is used for update Template object. -Input was generated by ent. -""" -input UpdateTemplateInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - the name of the template - """ - name: String - """ - the type of the template, either a provided template or an implementation (document) - """ - templateType: TemplateDocumentType - """ - the description of the template - """ - description: String - clearDescription: Boolean - """ - the jsonschema object of the template - """ - jsonconfig: JSON - """ - the uischema for the template to render in the UI - """ - uischema: JSON - clearUischema: Boolean - ownerID: ID - clearOwner: Boolean - addDocumentIDs: [ID!] - removeDocumentIDs: [ID!] - clearDocuments: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -""" -UpdateUserInput is used for update User object. -Input was generated by ent. -""" -input UpdateUserInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - email: String - firstName: String - clearFirstName: Boolean - lastName: String - clearLastName: Boolean - """ - The user's displayed 'friendly' name - """ - displayName: String - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - clearAvatarRemoteURL: Boolean - """ - The user's local avatar file - """ - avatarLocalFile: String - clearAvatarLocalFile: Boolean - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - clearAvatarUpdatedAt: Boolean - """ - the time the user was last seen - """ - lastSeen: Time - clearLastSeen: Boolean - """ - user password hash - """ - password: String - clearPassword: Boolean - """ - the Subject of the user JWT - """ - sub: String - clearSub: Boolean - """ - auth provider used to register the account - """ - authProvider: UserAuthProvider - """ - the user's role - """ - role: UserRole - clearRole: Boolean - addPersonalAccessTokenIDs: [ID!] - removePersonalAccessTokenIDs: [ID!] - clearPersonalAccessTokens: Boolean - addTfaSettingIDs: [ID!] - removeTfaSettingIDs: [ID!] - clearTfaSettings: Boolean - settingID: ID - addEmailVerificationTokenIDs: [ID!] - removeEmailVerificationTokenIDs: [ID!] - clearEmailVerificationTokens: Boolean - addPasswordResetTokenIDs: [ID!] - removePasswordResetTokenIDs: [ID!] - clearPasswordResetTokens: Boolean - addGroupIDs: [ID!] - removeGroupIDs: [ID!] - clearGroups: Boolean - addOrganizationIDs: [ID!] - removeOrganizationIDs: [ID!] - clearOrganizations: Boolean - addWebauthnIDs: [ID!] - removeWebauthnIDs: [ID!] - clearWebauthn: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean - fileID: ID - clearFile: Boolean - addEventIDs: [ID!] - removeEventIDs: [ID!] - clearEvents: Boolean - addActionPlanIDs: [ID!] - removeActionPlanIDs: [ID!] - clearActionPlans: Boolean - addSubcontrolIDs: [ID!] - removeSubcontrolIDs: [ID!] - clearSubcontrols: Boolean - addAssignerTaskIDs: [ID!] - removeAssignerTaskIDs: [ID!] - clearAssignerTasks: Boolean - addAssigneeTaskIDs: [ID!] - removeAssigneeTaskIDs: [ID!] - clearAssigneeTasks: Boolean - addProgramIDs: [ID!] - removeProgramIDs: [ID!] - clearPrograms: Boolean -} -""" -UpdateUserSettingInput is used for update UserSetting object. -Input was generated by ent. -""" -input UpdateUserSettingInput { - """ - tags associated with the object - """ - tags: [String!] - appendTags: [String!] - clearTags: Boolean - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - clearSilencedAt: Boolean - """ - The time the user was suspended - """ - suspendedAt: Time - clearSuspendedAt: Boolean - """ - status of the user account - """ - status: UserSettingUserStatus - """ - whether the user has confirmed their email address - """ - emailConfirmed: Boolean - """ - specifies a user may complete authentication by verifying a WebAuthn capable device - """ - isWebauthnAllowed: Boolean - clearIsWebauthnAllowed: Boolean - """ - whether the user has two factor authentication enabled - """ - isTfaEnabled: Boolean - clearIsTfaEnabled: Boolean - userID: ID - clearUser: Boolean - defaultOrgID: ID - clearDefaultOrg: Boolean - addFileIDs: [ID!] - removeFileIDs: [ID!] - clearFiles: Boolean -} -type User implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name - """ - displayName: String! - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - The user's local avatar file - """ - avatarLocalFile: String - """ - The user's local avatar file id - """ - avatarLocalFileID: ID - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - """ - the time the user was last seen - """ - lastSeen: Time - """ - the Subject of the user JWT - """ - sub: String - """ - auth provider used to register the account - """ - authProvider: UserAuthProvider! - """ - the user's role - """ - role: UserRole - personalAccessTokens: [PersonalAccessToken!] - tfaSettings: [TFASetting!] - setting: UserSetting! - groups: [Group!] - organizations: [Organization!] - files: [File!] - file: File - events: [Event!] - actionPlans: [ActionPlan!] - subcontrols: [Subcontrol!] - assignerTasks: [Task!] - assigneeTasks: [Task!] - programs: [Program!] - groupMemberships: [GroupMembership!] - orgMemberships: [OrgMembership!] - programMemberships: [ProgramMembership!] -} -""" -UserAuthProvider is enum for the field auth_provider -""" -enum UserAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { - CREDENTIALS - GOOGLE - GITHUB - WEBAUTHN -} -""" -A connection to a list of items. -""" -type UserConnection { - """ - A list of edges. - """ - edges: [UserEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type UserEdge { - """ - The item at the end of the edge. - """ - node: User - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type UserHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: UserHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - deletedAt: Time - deletedBy: String - """ - tags associated with the object - """ - tags: [String!] - email: String! - firstName: String - lastName: String - """ - The user's displayed 'friendly' name - """ - displayName: String! - """ - URL of the user's remote avatar - """ - avatarRemoteURL: String - """ - The user's local avatar file - """ - avatarLocalFile: String - """ - The user's local avatar file id - """ - avatarLocalFileID: String - """ - The time the user's (local) avatar was last updated - """ - avatarUpdatedAt: Time - """ - the time the user was last seen - """ - lastSeen: Time - """ - the Subject of the user JWT - """ - sub: String - """ - auth provider used to register the account - """ - authProvider: UserHistoryAuthProvider! - """ - the user's role - """ - role: UserHistoryRole -} -""" -UserHistoryAuthProvider is enum for the field auth_provider -""" -enum UserHistoryAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { - CREDENTIALS - GOOGLE - GITHUB - WEBAUTHN -} -""" -A connection to a list of items. -""" -type UserHistoryConnection { - """ - A list of edges. - """ - edges: [UserHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type UserHistoryEdge { - """ - The item at the end of the edge. - """ - node: UserHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -UserHistoryOpType is enum for the field operation -""" -enum UserHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -Ordering options for UserHistory connections -""" -input UserHistoryOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order UserHistories. - """ - field: UserHistoryOrderField! -} -""" -Properties by which UserHistory connections can be ordered. -""" -enum UserHistoryOrderField { - first_name - last_name - display_name -} -""" -UserHistoryRole is enum for the field role -""" -enum UserHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER -} -""" -UserHistoryWhereInput is used for filtering UserHistory objects. -Input was generated by ent. -""" -input UserHistoryWhereInput { - not: UserHistoryWhereInput - and: [UserHistoryWhereInput!] - or: [UserHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: UserHistoryOpType - operationNEQ: UserHistoryOpType - operationIn: [UserHistoryOpType!] - operationNotIn: [UserHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailEqualFold: String - emailContainsFold: String - """ - first_name field predicates - """ - firstName: String - firstNameNEQ: String - firstNameIn: [String!] - firstNameNotIn: [String!] - firstNameGT: String - firstNameGTE: String - firstNameLT: String - firstNameLTE: String - firstNameContains: String - firstNameHasPrefix: String - firstNameHasSuffix: String - firstNameIsNil: Boolean - firstNameNotNil: Boolean - firstNameEqualFold: String - firstNameContainsFold: String - """ - last_name field predicates - """ - lastName: String - lastNameNEQ: String - lastNameIn: [String!] - lastNameNotIn: [String!] - lastNameGT: String - lastNameGTE: String - lastNameLT: String - lastNameLTE: String - lastNameContains: String - lastNameHasPrefix: String - lastNameHasSuffix: String - lastNameIsNil: Boolean - lastNameNotNil: Boolean - lastNameEqualFold: String - lastNameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - avatar_remote_url field predicates - """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String - """ - avatar_local_file field predicates - """ - avatarLocalFile: String - avatarLocalFileNEQ: String - avatarLocalFileIn: [String!] - avatarLocalFileNotIn: [String!] - avatarLocalFileGT: String - avatarLocalFileGTE: String - avatarLocalFileLT: String - avatarLocalFileLTE: String - avatarLocalFileContains: String - avatarLocalFileHasPrefix: String - avatarLocalFileHasSuffix: String - avatarLocalFileIsNil: Boolean - avatarLocalFileNotNil: Boolean - avatarLocalFileEqualFold: String - avatarLocalFileContainsFold: String - """ - avatar_local_file_id field predicates - """ - avatarLocalFileID: String - avatarLocalFileIDNEQ: String - avatarLocalFileIDIn: [String!] - avatarLocalFileIDNotIn: [String!] - avatarLocalFileIDGT: String - avatarLocalFileIDGTE: String - avatarLocalFileIDLT: String - avatarLocalFileIDLTE: String - avatarLocalFileIDContains: String - avatarLocalFileIDHasPrefix: String - avatarLocalFileIDHasSuffix: String - avatarLocalFileIDIsNil: Boolean - avatarLocalFileIDNotNil: Boolean - avatarLocalFileIDEqualFold: String - avatarLocalFileIDContainsFold: String - """ - avatar_updated_at field predicates - """ - avatarUpdatedAt: Time - avatarUpdatedAtNEQ: Time - avatarUpdatedAtIn: [Time!] - avatarUpdatedAtNotIn: [Time!] - avatarUpdatedAtGT: Time - avatarUpdatedAtGTE: Time - avatarUpdatedAtLT: Time - avatarUpdatedAtLTE: Time - avatarUpdatedAtIsNil: Boolean - avatarUpdatedAtNotNil: Boolean - """ - last_seen field predicates - """ - lastSeen: Time - lastSeenNEQ: Time - lastSeenIn: [Time!] - lastSeenNotIn: [Time!] - lastSeenGT: Time - lastSeenGTE: Time - lastSeenLT: Time - lastSeenLTE: Time - lastSeenIsNil: Boolean - lastSeenNotNil: Boolean - """ - sub field predicates - """ - sub: String - subNEQ: String - subIn: [String!] - subNotIn: [String!] - subGT: String - subGTE: String - subLT: String - subLTE: String - subContains: String - subHasPrefix: String - subHasSuffix: String - subIsNil: Boolean - subNotNil: Boolean - subEqualFold: String - subContainsFold: String - """ - auth_provider field predicates - """ - authProvider: UserHistoryAuthProvider - authProviderNEQ: UserHistoryAuthProvider - authProviderIn: [UserHistoryAuthProvider!] - authProviderNotIn: [UserHistoryAuthProvider!] - """ - role field predicates - """ - role: UserHistoryRole - roleNEQ: UserHistoryRole - roleIn: [UserHistoryRole!] - roleNotIn: [UserHistoryRole!] - roleIsNil: Boolean - roleNotNil: Boolean -} -""" -Ordering options for User connections -""" -input UserOrder { - """ - The ordering direction. - """ - direction: OrderDirection! = ASC - """ - The field by which to order Users. - """ - field: UserOrderField! -} -""" -Properties by which User connections can be ordered. -""" -enum UserOrderField { - first_name - last_name - display_name -} -""" -UserRole is enum for the field role -""" -enum UserRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { - ADMIN - MEMBER - USER -} -type UserSetting implements Node { - id: ID! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - userID: ID - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean! - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - """ - The time the user was suspended - """ - suspendedAt: Time - """ - status of the user account - """ - status: UserSettingUserStatus! - """ - whether the user has confirmed their email address - """ - emailConfirmed: Boolean! - """ - specifies a user may complete authentication by verifying a WebAuthn capable device - """ - isWebauthnAllowed: Boolean - """ - whether the user has two factor authentication enabled - """ - isTfaEnabled: Boolean - user: User - """ - organization to load on user login - """ - defaultOrg: Organization - files: [File!] -} -""" -A connection to a list of items. -""" -type UserSettingConnection { - """ - A list of edges. - """ - edges: [UserSettingEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type UserSettingEdge { - """ - The item at the end of the edge. - """ - node: UserSetting - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -type UserSettingHistory implements Node { - id: ID! - historyTime: Time! - ref: String - operation: UserSettingHistoryOpType! - createdAt: Time - updatedAt: Time - createdBy: String - updatedBy: String - """ - tags associated with the object - """ - tags: [String!] - deletedAt: Time - deletedBy: String - userID: String - """ - user account is locked if unconfirmed or explicitly locked - """ - locked: Boolean! - """ - The time notifications regarding the user were silenced - """ - silencedAt: Time - """ - The time the user was suspended - """ - suspendedAt: Time - """ - status of the user account - """ - status: UserSettingHistoryUserStatus! - """ - whether the user has confirmed their email address - """ - emailConfirmed: Boolean! - """ - specifies a user may complete authentication by verifying a WebAuthn capable device - """ - isWebauthnAllowed: Boolean - """ - whether the user has two factor authentication enabled - """ - isTfaEnabled: Boolean -} -""" -A connection to a list of items. -""" -type UserSettingHistoryConnection { - """ - A list of edges. - """ - edges: [UserSettingHistoryEdge] - """ - Information to aid in pagination. - """ - pageInfo: PageInfo! - """ - Identifies the total count of items in the connection. - """ - totalCount: Int! -} -""" -An edge in a connection. -""" -type UserSettingHistoryEdge { - """ - The item at the end of the edge. - """ - node: UserSettingHistory - """ - A cursor for use in pagination. - """ - cursor: Cursor! -} -""" -UserSettingHistoryOpType is enum for the field operation -""" -enum UserSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { - INSERT - UPDATE - DELETE -} -""" -UserSettingHistoryUserStatus is enum for the field status -""" -enum UserSettingHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -UserSettingHistoryWhereInput is used for filtering UserSettingHistory objects. -Input was generated by ent. -""" -input UserSettingHistoryWhereInput { - not: UserSettingHistoryWhereInput - and: [UserSettingHistoryWhereInput!] - or: [UserSettingHistoryWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - history_time field predicates - """ - historyTime: Time - historyTimeNEQ: Time - historyTimeIn: [Time!] - historyTimeNotIn: [Time!] - historyTimeGT: Time - historyTimeGTE: Time - historyTimeLT: Time - historyTimeLTE: Time - """ - ref field predicates - """ - ref: String - refNEQ: String - refIn: [String!] - refNotIn: [String!] - refGT: String - refGTE: String - refLT: String - refLTE: String - refContains: String - refHasPrefix: String - refHasSuffix: String - refIsNil: Boolean - refNotNil: Boolean - refEqualFold: String - refContainsFold: String - """ - operation field predicates - """ - operation: UserSettingHistoryOpType - operationNEQ: UserSettingHistoryOpType - operationIn: [UserSettingHistoryOpType!] - operationNotIn: [UserSettingHistoryOpType!] - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - user_id field predicates - """ - userID: String - userIDNEQ: String - userIDIn: [String!] - userIDNotIn: [String!] - userIDGT: String - userIDGTE: String - userIDLT: String - userIDLTE: String - userIDContains: String - userIDHasPrefix: String - userIDHasSuffix: String - userIDIsNil: Boolean - userIDNotNil: Boolean - userIDEqualFold: String - userIDContainsFold: String - """ - locked field predicates - """ - locked: Boolean - lockedNEQ: Boolean - """ - silenced_at field predicates - """ - silencedAt: Time - silencedAtNEQ: Time - silencedAtIn: [Time!] - silencedAtNotIn: [Time!] - silencedAtGT: Time - silencedAtGTE: Time - silencedAtLT: Time - silencedAtLTE: Time - silencedAtIsNil: Boolean - silencedAtNotNil: Boolean - """ - suspended_at field predicates - """ - suspendedAt: Time - suspendedAtNEQ: Time - suspendedAtIn: [Time!] - suspendedAtNotIn: [Time!] - suspendedAtGT: Time - suspendedAtGTE: Time - suspendedAtLT: Time - suspendedAtLTE: Time - suspendedAtIsNil: Boolean - suspendedAtNotNil: Boolean - """ - status field predicates - """ - status: UserSettingHistoryUserStatus - statusNEQ: UserSettingHistoryUserStatus - statusIn: [UserSettingHistoryUserStatus!] - statusNotIn: [UserSettingHistoryUserStatus!] - """ - email_confirmed field predicates - """ - emailConfirmed: Boolean - emailConfirmedNEQ: Boolean - """ - is_webauthn_allowed field predicates - """ - isWebauthnAllowed: Boolean - isWebauthnAllowedNEQ: Boolean - isWebauthnAllowedIsNil: Boolean - isWebauthnAllowedNotNil: Boolean - """ - is_tfa_enabled field predicates - """ - isTfaEnabled: Boolean - isTfaEnabledNEQ: Boolean - isTfaEnabledIsNil: Boolean - isTfaEnabledNotNil: Boolean -} -""" -UserSettingUserStatus is enum for the field status -""" -enum UserSettingUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { - ACTIVE - INACTIVE - DEACTIVATED - SUSPENDED - ONBOARDING -} -""" -UserSettingWhereInput is used for filtering UserSetting objects. -Input was generated by ent. -""" -input UserSettingWhereInput { - not: UserSettingWhereInput - and: [UserSettingWhereInput!] - or: [UserSettingWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - user_id field predicates - """ - userID: ID - userIDNEQ: ID - userIDIn: [ID!] - userIDNotIn: [ID!] - userIDGT: ID - userIDGTE: ID - userIDLT: ID - userIDLTE: ID - userIDContains: ID - userIDHasPrefix: ID - userIDHasSuffix: ID - userIDIsNil: Boolean - userIDNotNil: Boolean - userIDEqualFold: ID - userIDContainsFold: ID - """ - locked field predicates - """ - locked: Boolean - lockedNEQ: Boolean - """ - silenced_at field predicates - """ - silencedAt: Time - silencedAtNEQ: Time - silencedAtIn: [Time!] - silencedAtNotIn: [Time!] - silencedAtGT: Time - silencedAtGTE: Time - silencedAtLT: Time - silencedAtLTE: Time - silencedAtIsNil: Boolean - silencedAtNotNil: Boolean - """ - suspended_at field predicates - """ - suspendedAt: Time - suspendedAtNEQ: Time - suspendedAtIn: [Time!] - suspendedAtNotIn: [Time!] - suspendedAtGT: Time - suspendedAtGTE: Time - suspendedAtLT: Time - suspendedAtLTE: Time - suspendedAtIsNil: Boolean - suspendedAtNotNil: Boolean - """ - status field predicates - """ - status: UserSettingUserStatus - statusNEQ: UserSettingUserStatus - statusIn: [UserSettingUserStatus!] - statusNotIn: [UserSettingUserStatus!] - """ - email_confirmed field predicates - """ - emailConfirmed: Boolean - emailConfirmedNEQ: Boolean - """ - is_webauthn_allowed field predicates - """ - isWebauthnAllowed: Boolean - isWebauthnAllowedNEQ: Boolean - isWebauthnAllowedIsNil: Boolean - isWebauthnAllowedNotNil: Boolean - """ - is_tfa_enabled field predicates - """ - isTfaEnabled: Boolean - isTfaEnabledNEQ: Boolean - isTfaEnabledIsNil: Boolean - isTfaEnabledNotNil: Boolean - """ - user edge predicates - """ - hasUser: Boolean - hasUserWith: [UserWhereInput!] - """ - default_org edge predicates - """ - hasDefaultOrg: Boolean - hasDefaultOrgWith: [OrganizationWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] -} -""" -UserWhereInput is used for filtering User objects. -Input was generated by ent. -""" -input UserWhereInput { - not: UserWhereInput - and: [UserWhereInput!] - or: [UserWhereInput!] - """ - id field predicates - """ - id: ID - idNEQ: ID - idIn: [ID!] - idNotIn: [ID!] - idGT: ID - idGTE: ID - idLT: ID - idLTE: ID - idEqualFold: ID - idContainsFold: ID - """ - created_at field predicates - """ - createdAt: Time - createdAtNEQ: Time - createdAtIn: [Time!] - createdAtNotIn: [Time!] - createdAtGT: Time - createdAtGTE: Time - createdAtLT: Time - createdAtLTE: Time - createdAtIsNil: Boolean - createdAtNotNil: Boolean - """ - updated_at field predicates - """ - updatedAt: Time - updatedAtNEQ: Time - updatedAtIn: [Time!] - updatedAtNotIn: [Time!] - updatedAtGT: Time - updatedAtGTE: Time - updatedAtLT: Time - updatedAtLTE: Time - updatedAtIsNil: Boolean - updatedAtNotNil: Boolean - """ - created_by field predicates - """ - createdBy: String - createdByNEQ: String - createdByIn: [String!] - createdByNotIn: [String!] - createdByGT: String - createdByGTE: String - createdByLT: String - createdByLTE: String - createdByContains: String - createdByHasPrefix: String - createdByHasSuffix: String - createdByIsNil: Boolean - createdByNotNil: Boolean - createdByEqualFold: String - createdByContainsFold: String - """ - updated_by field predicates - """ - updatedBy: String - updatedByNEQ: String - updatedByIn: [String!] - updatedByNotIn: [String!] - updatedByGT: String - updatedByGTE: String - updatedByLT: String - updatedByLTE: String - updatedByContains: String - updatedByHasPrefix: String - updatedByHasSuffix: String - updatedByIsNil: Boolean - updatedByNotNil: Boolean - updatedByEqualFold: String - updatedByContainsFold: String - """ - deleted_at field predicates - """ - deletedAt: Time - deletedAtNEQ: Time - deletedAtIn: [Time!] - deletedAtNotIn: [Time!] - deletedAtGT: Time - deletedAtGTE: Time - deletedAtLT: Time - deletedAtLTE: Time - deletedAtIsNil: Boolean - deletedAtNotNil: Boolean - """ - deleted_by field predicates - """ - deletedBy: String - deletedByNEQ: String - deletedByIn: [String!] - deletedByNotIn: [String!] - deletedByGT: String - deletedByGTE: String - deletedByLT: String - deletedByLTE: String - deletedByContains: String - deletedByHasPrefix: String - deletedByHasSuffix: String - deletedByIsNil: Boolean - deletedByNotNil: Boolean - deletedByEqualFold: String - deletedByContainsFold: String - """ - email field predicates - """ - email: String - emailNEQ: String - emailIn: [String!] - emailNotIn: [String!] - emailGT: String - emailGTE: String - emailLT: String - emailLTE: String - emailContains: String - emailHasPrefix: String - emailHasSuffix: String - emailEqualFold: String - emailContainsFold: String - """ - first_name field predicates - """ - firstName: String - firstNameNEQ: String - firstNameIn: [String!] - firstNameNotIn: [String!] - firstNameGT: String - firstNameGTE: String - firstNameLT: String - firstNameLTE: String - firstNameContains: String - firstNameHasPrefix: String - firstNameHasSuffix: String - firstNameIsNil: Boolean - firstNameNotNil: Boolean - firstNameEqualFold: String - firstNameContainsFold: String - """ - last_name field predicates - """ - lastName: String - lastNameNEQ: String - lastNameIn: [String!] - lastNameNotIn: [String!] - lastNameGT: String - lastNameGTE: String - lastNameLT: String - lastNameLTE: String - lastNameContains: String - lastNameHasPrefix: String - lastNameHasSuffix: String - lastNameIsNil: Boolean - lastNameNotNil: Boolean - lastNameEqualFold: String - lastNameContainsFold: String - """ - display_name field predicates - """ - displayName: String - displayNameNEQ: String - displayNameIn: [String!] - displayNameNotIn: [String!] - displayNameGT: String - displayNameGTE: String - displayNameLT: String - displayNameLTE: String - displayNameContains: String - displayNameHasPrefix: String - displayNameHasSuffix: String - displayNameEqualFold: String - displayNameContainsFold: String - """ - avatar_remote_url field predicates - """ - avatarRemoteURL: String - avatarRemoteURLNEQ: String - avatarRemoteURLIn: [String!] - avatarRemoteURLNotIn: [String!] - avatarRemoteURLGT: String - avatarRemoteURLGTE: String - avatarRemoteURLLT: String - avatarRemoteURLLTE: String - avatarRemoteURLContains: String - avatarRemoteURLHasPrefix: String - avatarRemoteURLHasSuffix: String - avatarRemoteURLIsNil: Boolean - avatarRemoteURLNotNil: Boolean - avatarRemoteURLEqualFold: String - avatarRemoteURLContainsFold: String - """ - avatar_local_file field predicates - """ - avatarLocalFile: String - avatarLocalFileNEQ: String - avatarLocalFileIn: [String!] - avatarLocalFileNotIn: [String!] - avatarLocalFileGT: String - avatarLocalFileGTE: String - avatarLocalFileLT: String - avatarLocalFileLTE: String - avatarLocalFileContains: String - avatarLocalFileHasPrefix: String - avatarLocalFileHasSuffix: String - avatarLocalFileIsNil: Boolean - avatarLocalFileNotNil: Boolean - avatarLocalFileEqualFold: String - avatarLocalFileContainsFold: String - """ - avatar_local_file_id field predicates - """ - avatarLocalFileID: ID - avatarLocalFileIDNEQ: ID - avatarLocalFileIDIn: [ID!] - avatarLocalFileIDNotIn: [ID!] - avatarLocalFileIDGT: ID - avatarLocalFileIDGTE: ID - avatarLocalFileIDLT: ID - avatarLocalFileIDLTE: ID - avatarLocalFileIDContains: ID - avatarLocalFileIDHasPrefix: ID - avatarLocalFileIDHasSuffix: ID - avatarLocalFileIDIsNil: Boolean - avatarLocalFileIDNotNil: Boolean - avatarLocalFileIDEqualFold: ID - avatarLocalFileIDContainsFold: ID - """ - avatar_updated_at field predicates - """ - avatarUpdatedAt: Time - avatarUpdatedAtNEQ: Time - avatarUpdatedAtIn: [Time!] - avatarUpdatedAtNotIn: [Time!] - avatarUpdatedAtGT: Time - avatarUpdatedAtGTE: Time - avatarUpdatedAtLT: Time - avatarUpdatedAtLTE: Time - avatarUpdatedAtIsNil: Boolean - avatarUpdatedAtNotNil: Boolean - """ - last_seen field predicates - """ - lastSeen: Time - lastSeenNEQ: Time - lastSeenIn: [Time!] - lastSeenNotIn: [Time!] - lastSeenGT: Time - lastSeenGTE: Time - lastSeenLT: Time - lastSeenLTE: Time - lastSeenIsNil: Boolean - lastSeenNotNil: Boolean - """ - sub field predicates - """ - sub: String - subNEQ: String - subIn: [String!] - subNotIn: [String!] - subGT: String - subGTE: String - subLT: String - subLTE: String - subContains: String - subHasPrefix: String - subHasSuffix: String - subIsNil: Boolean - subNotNil: Boolean - subEqualFold: String - subContainsFold: String - """ - auth_provider field predicates - """ - authProvider: UserAuthProvider - authProviderNEQ: UserAuthProvider - authProviderIn: [UserAuthProvider!] - authProviderNotIn: [UserAuthProvider!] - """ - role field predicates - """ - role: UserRole - roleNEQ: UserRole - roleIn: [UserRole!] - roleNotIn: [UserRole!] - roleIsNil: Boolean - roleNotNil: Boolean - """ - personal_access_tokens edge predicates - """ - hasPersonalAccessTokens: Boolean - hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] - """ - tfa_settings edge predicates - """ - hasTfaSettings: Boolean - hasTfaSettingsWith: [TFASettingWhereInput!] - """ - setting edge predicates - """ - hasSetting: Boolean - hasSettingWith: [UserSettingWhereInput!] - """ - groups edge predicates - """ - hasGroups: Boolean - hasGroupsWith: [GroupWhereInput!] - """ - organizations edge predicates - """ - hasOrganizations: Boolean - hasOrganizationsWith: [OrganizationWhereInput!] - """ - files edge predicates - """ - hasFiles: Boolean - hasFilesWith: [FileWhereInput!] - """ - file edge predicates - """ - hasFile: Boolean - hasFileWith: [FileWhereInput!] - """ - events edge predicates - """ - hasEvents: Boolean - hasEventsWith: [EventWhereInput!] - """ - action_plans edge predicates - """ - hasActionPlans: Boolean - hasActionPlansWith: [ActionPlanWhereInput!] - """ - subcontrols edge predicates - """ - hasSubcontrols: Boolean - hasSubcontrolsWith: [SubcontrolWhereInput!] - """ - assigner_tasks edge predicates - """ - hasAssignerTasks: Boolean - hasAssignerTasksWith: [TaskWhereInput!] - """ - assignee_tasks edge predicates - """ - hasAssigneeTasks: Boolean - hasAssigneeTasksWith: [TaskWhereInput!] - """ - programs edge predicates - """ - hasPrograms: Boolean - hasProgramsWith: [ProgramWhereInput!] - """ - group_memberships edge predicates - """ - hasGroupMemberships: Boolean - hasGroupMembershipsWith: [GroupMembershipWhereInput!] - """ - org_memberships edge predicates - """ - hasOrgMemberships: Boolean - hasOrgMembershipsWith: [OrgMembershipWhereInput!] - """ - program_memberships edge predicates - """ - hasProgramMemberships: Boolean - hasProgramMembershipsWith: [ProgramMembershipWhereInput!] -} -`, BuiltIn: false}, - {Name: "../../schema/entity.graphql", Input: `extend type Query { - """ - Look up entity by ID - """ - entity( - """ - ID of the entity - """ - id: ID! - ): Entity! -} - -extend type Mutation{ - """ - Create a new entity - """ - createEntity( - """ - values of the entity - """ - input: CreateEntityInput! - ): EntityCreatePayload! - """ - Create multiple new entities - """ - createBulkEntity( - """ - values of the entity - """ - input: [CreateEntityInput!] - ): EntityBulkCreatePayload! - """ - Create multiple new entities via file upload - """ - createBulkCSVEntity( - """ - csv file containing values of the entity - """ - input: Upload! - ): EntityBulkCreatePayload! - """ - Update an existing entity - """ - updateEntity( - """ - ID of the entity - """ - id: ID! - """ - New values for the entity - """ - input: UpdateEntityInput! - ): EntityUpdatePayload! - """ - Delete an existing entity - """ - deleteEntity( - """ - ID of the entity - """ - id: ID! - ): EntityDeletePayload! -} - -""" -Return response for createEntity mutation -""" -type EntityCreatePayload { - """ - Created entity - """ - entity: Entity! -} - -""" -Return response for updateEntity mutation -""" -type EntityUpdatePayload { - """ - Updated entity - """ - entity: Entity! -} - -""" -Return response for deleteEntity mutation -""" -type EntityDeletePayload { - """ - Deleted entity ID - """ - deletedID: ID! -} - -""" -Return response for createBulkEntity mutation -""" -type EntityBulkCreatePayload { - """ - Created entities - """ - entities: [Entity!] -}`, BuiltIn: false}, - {Name: "../../schema/entityextended.graphql", Input: `extend input CreateEntityInput { - note: CreateNoteInput -} - -extend input UpdateEntityInput { - note: CreateNoteInput -} -`, BuiltIn: false}, - {Name: "../../schema/entitytype.graphql", Input: `extend type Query { - """ - Look up entityType by ID - """ - entityType( - """ - ID of the entityType - """ - id: ID! - ): EntityType! -} - -extend type Mutation{ - """ - Create a new entityType - """ - createEntityType( - """ - values of the entityType - """ - input: CreateEntityTypeInput! - ): EntityTypeCreatePayload! - """ - Create multiple new entityTypes - """ - createBulkEntityType( - """ - values of the entityType - """ - input: [CreateEntityTypeInput!] - ): EntityTypeBulkCreatePayload! - """ - Create multiple new entityTypes via file upload - """ - createBulkCSVEntityType( - """ - csv file containing values of the entityType - """ - input: Upload! - ): EntityTypeBulkCreatePayload! - """ - Update an existing entityType - """ - updateEntityType( - """ - ID of the entityType - """ - id: ID! - """ - New values for the entityType - """ - input: UpdateEntityTypeInput! - ): EntityTypeUpdatePayload! - """ - Delete an existing entityType - """ - deleteEntityType( - """ - ID of the entityType - """ - id: ID! - ): EntityTypeDeletePayload! -} - -""" -Return response for createEntityType mutation -""" -type EntityTypeCreatePayload { - """ - Created entityType - """ - entityType: EntityType! -} - -""" -Return response for updateEntityType mutation -""" -type EntityTypeUpdatePayload { - """ - Updated entityType - """ - entityType: EntityType! -} - -""" -Return response for deleteEntityType mutation -""" -type EntityTypeDeletePayload { - """ - Deleted entityType ID - """ - deletedID: ID! -} - -""" -Return response for createBulkEntityType mutation -""" -type EntityTypeBulkCreatePayload { - """ - Created entityTypes - """ - entityTypes: [EntityType!] -}`, BuiltIn: false}, - {Name: "../../schema/event.graphql", Input: `extend type Query { - """ - Look up event by ID - """ - event( - """ - ID of the event - """ - id: ID! - ): Event! -} - -extend type Mutation{ - """ - Create a new event - """ - createEvent( - """ - values of the event - """ - input: CreateEventInput! - ): EventCreatePayload! - """ - Create multiple new events - """ - createBulkEvent( - """ - values of the event - """ - input: [CreateEventInput!] - ): EventBulkCreatePayload! - """ - Create multiple new events via file upload - """ - createBulkCSVEvent( - """ - csv file containing values of the event - """ - input: Upload! - ): EventBulkCreatePayload! - """ - Update an existing event - """ - updateEvent( - """ - ID of the event - """ - id: ID! - """ - New values for the event - """ - input: UpdateEventInput! - ): EventUpdatePayload! - """ - Delete an existing event - """ - deleteEvent( - """ - ID of the event - """ - id: ID! - ): EventDeletePayload! -} - -""" -Return response for createEvent mutation -""" -type EventCreatePayload { - """ - Created event - """ - event: Event! -} - -""" -Return response for updateEvent mutation -""" -type EventUpdatePayload { - """ - Updated event - """ - event: Event! -} - -""" -Return response for deleteEvent mutation -""" -type EventDeletePayload { - """ - Deleted event ID - """ - deletedID: ID! -} - -""" -Return response for createBulkEvent mutation -""" -type EventBulkCreatePayload { - """ - Created events - """ - events: [Event!] -}`, BuiltIn: false}, - {Name: "../../schema/file.graphql", Input: `extend type Query { - """ - Look up file by ID - """ - file( - """ - ID of the file - """ - id: ID! - ): File! -} - -extend type Mutation{ - """ - Delete an existing file - """ - deleteFile( - """ - ID of the file - """ - id: ID! - ): FileDeletePayload! -} - -""" -Return response for deleteFile mutation -""" -type FileDeletePayload { - """ - Deleted file ID - """ - deletedID: ID! -} - -`, BuiltIn: false}, - {Name: "../../schema/group.graphql", Input: `extend type Query { - """ - Look up group by ID - """ - group( - """ - ID of the group - """ - id: ID! - ): Group! -} - -extend type Mutation{ - """ - Create a new group - """ - createGroup( - """ - values of the group - """ - input: CreateGroupInput! - ): GroupCreatePayload! - """ - Create multiple new groups - """ - createBulkGroup( - """ - values of the group - """ - input: [CreateGroupInput!] - ): GroupBulkCreatePayload! - """ - Create multiple new groups via file upload - """ - createBulkCSVGroup( - """ - csv file containing values of the group - """ - input: Upload! - ): GroupBulkCreatePayload! - """ - Update an existing group - """ - updateGroup( - """ - ID of the group - """ - id: ID! - """ - New values for the group - """ - input: UpdateGroupInput! - ): GroupUpdatePayload! - """ - Delete an existing group - """ - deleteGroup( - """ - ID of the group - """ - id: ID! - ): GroupDeletePayload! -} - -""" -Return response for createGroup mutation -""" -type GroupCreatePayload { - """ - Created group - """ - group: Group! -} - -""" -Return response for updateGroup mutation -""" -type GroupUpdatePayload { - """ - Updated group - """ - group: Group! -} - -""" -Return response for deleteGroup mutation -""" -type GroupDeletePayload { - """ - Deleted group ID - """ - deletedID: ID! -} - -""" -Return response for createBulkGroup mutation -""" -type GroupBulkCreatePayload { - """ - Created groups - """ - groups: [Group!] -}`, BuiltIn: false}, - {Name: "../../schema/groupextended.graphql", Input: `extend input CreateGroupInput { - createGroupSettings: CreateGroupSettingInput -} - -extend input UpdateGroupInput { - addGroupMembers: [CreateGroupMembershipInput!] - updateGroupSettings: UpdateGroupSettingInput -} - -extend input GroupMembershipWhereInput { - groupID: String - userID: String -}`, BuiltIn: false}, - {Name: "../../schema/groupmembership.graphql", Input: `extend type Query { - """ - Look up groupMembership by ID - """ - groupMembership( - """ - ID of the groupMembership - """ - id: ID! - ): GroupMembership! -} - -extend type Mutation{ - """ - Create a new groupMembership - """ - createGroupMembership( - """ - values of the groupMembership - """ - input: CreateGroupMembershipInput! - ): GroupMembershipCreatePayload! - """ - Create multiple new groupMemberships - """ - createBulkGroupMembership( - """ - values of the groupMembership - """ - input: [CreateGroupMembershipInput!] - ): GroupMembershipBulkCreatePayload! - """ - Create multiple new groupMemberships via file upload - """ - createBulkCSVGroupMembership( - """ - csv file containing values of the groupMembership - """ - input: Upload! - ): GroupMembershipBulkCreatePayload! - """ - Update an existing groupMembership - """ - updateGroupMembership( - """ - ID of the groupMembership - """ - id: ID! - """ - New values for the groupMembership - """ - input: UpdateGroupMembershipInput! - ): GroupMembershipUpdatePayload! - """ - Delete an existing groupMembership - """ - deleteGroupMembership( - """ - ID of the groupMembership - """ - id: ID! - ): GroupMembershipDeletePayload! -} - -""" -Return response for createGroupMembership mutation -""" -type GroupMembershipCreatePayload { - """ - Created groupMembership - """ - groupMembership: GroupMembership! -} - -""" -Return response for updateGroupMembership mutation -""" -type GroupMembershipUpdatePayload { - """ - Updated groupMembership - """ - groupMembership: GroupMembership! -} - -""" -Return response for deleteGroupMembership mutation -""" -type GroupMembershipDeletePayload { - """ - Deleted groupMembership ID - """ - deletedID: ID! -} - -""" -Return response for createBulkGroupMembership mutation -""" -type GroupMembershipBulkCreatePayload { - """ - Created groupMemberships - """ - groupMemberships: [GroupMembership!] -}`, BuiltIn: false}, - {Name: "../../schema/groupsetting.graphql", Input: `extend type Query { - """ - Look up groupSetting by ID - """ - groupSetting( - """ - ID of the groupSetting - """ - id: ID! - ): GroupSetting! -} - -extend type Mutation{ - """ - Create a new groupSetting - """ - createGroupSetting( - """ - values of the groupSetting - """ - input: CreateGroupSettingInput! - ): GroupSettingCreatePayload! - """ - Create multiple new groupSettings - """ - createBulkGroupSetting( - """ - values of the groupSetting - """ - input: [CreateGroupSettingInput!] - ): GroupSettingBulkCreatePayload! - """ - Create multiple new groupSettings via file upload - """ - createBulkCSVGroupSetting( - """ - csv file containing values of the groupSetting - """ - input: Upload! - ): GroupSettingBulkCreatePayload! - """ - Update an existing groupSetting - """ - updateGroupSetting( - """ - ID of the groupSetting - """ - id: ID! - """ - New values for the groupSetting - """ - input: UpdateGroupSettingInput! - ): GroupSettingUpdatePayload! - """ - Delete an existing groupSetting - """ - deleteGroupSetting( - """ - ID of the groupSetting - """ - id: ID! - ): GroupSettingDeletePayload! -} - -""" -Return response for createGroupSetting mutation -""" -type GroupSettingCreatePayload { - """ - Created groupSetting - """ - groupSetting: GroupSetting! -} - -""" -Return response for updateGroupSetting mutation -""" -type GroupSettingUpdatePayload { - """ - Updated groupSetting - """ - groupSetting: GroupSetting! -} - -""" -Return response for deleteGroupSetting mutation -""" -type GroupSettingDeletePayload { - """ - Deleted groupSetting ID - """ - deletedID: ID! -} - -""" -Return response for createBulkGroupSetting mutation -""" -type GroupSettingBulkCreatePayload { - """ - Created groupSettings - """ - groupSettings: [GroupSetting!] -}`, BuiltIn: false}, - {Name: "../../schema/hush.graphql", Input: `extend type Query { - """ - Look up hush by ID - """ - hush( - """ - ID of the hush - """ - id: ID! - ): Hush! -} - -extend type Mutation{ - """ - Create a new hush - """ - createHush( - """ - values of the hush - """ - input: CreateHushInput! - ): HushCreatePayload! - """ - Create multiple new hushs - """ - createBulkHush( - """ - values of the hush - """ - input: [CreateHushInput!] - ): HushBulkCreatePayload! - """ - Create multiple new hushs via file upload - """ - createBulkCSVHush( - """ - csv file containing values of the hush - """ - input: Upload! - ): HushBulkCreatePayload! - """ - Update an existing hush - """ - updateHush( - """ - ID of the hush - """ - id: ID! - """ - New values for the hush - """ - input: UpdateHushInput! - ): HushUpdatePayload! - """ - Delete an existing hush - """ - deleteHush( - """ - ID of the hush - """ - id: ID! - ): HushDeletePayload! -} - -""" -Return response for createHush mutation -""" -type HushCreatePayload { - """ - Created hush - """ - hush: Hush! -} - -""" -Return response for updateHush mutation -""" -type HushUpdatePayload { - """ - Updated hush - """ - hush: Hush! -} - -""" -Return response for deleteHush mutation -""" -type HushDeletePayload { - """ - Deleted hush ID - """ - deletedID: ID! -} - -""" -Return response for createBulkHush mutation -""" -type HushBulkCreatePayload { - """ - Created hushs - """ - hushes: [Hush!] -}`, BuiltIn: false}, - {Name: "../../schema/integration.graphql", Input: `extend type Query { - """ - Look up integration by ID - """ - integration( - """ - ID of the integration - """ - id: ID! - ): Integration! -} - -extend type Mutation{ - """ - Create a new integration - """ - createIntegration( - """ - values of the integration - """ - input: CreateIntegrationInput! - ): IntegrationCreatePayload! - """ - Create multiple new integrations - """ - createBulkIntegration( - """ - values of the integration - """ - input: [CreateIntegrationInput!] - ): IntegrationBulkCreatePayload! - """ - Create multiple new integrations via file upload - """ - createBulkCSVIntegration( - """ - csv file containing values of the integration - """ - input: Upload! - ): IntegrationBulkCreatePayload! - """ - Update an existing integration - """ - updateIntegration( - """ - ID of the integration - """ - id: ID! - """ - New values for the integration - """ - input: UpdateIntegrationInput! - ): IntegrationUpdatePayload! - """ - Delete an existing integration - """ - deleteIntegration( - """ - ID of the integration - """ - id: ID! - ): IntegrationDeletePayload! -} - -""" -Return response for createIntegration mutation -""" -type IntegrationCreatePayload { - """ - Created integration - """ - integration: Integration! -} - -""" -Return response for updateIntegration mutation -""" -type IntegrationUpdatePayload { - """ - Updated integration - """ - integration: Integration! -} - -""" -Return response for deleteIntegration mutation -""" -type IntegrationDeletePayload { - """ - Deleted integration ID - """ - deletedID: ID! -} - -""" -Return response for createBulkIntegration mutation -""" -type IntegrationBulkCreatePayload { - """ - Created integrations - """ - integrations: [Integration!] -}`, BuiltIn: false}, - {Name: "../../schema/internalpolicy.graphql", Input: `extend type Query { - """ - Look up internalPolicy by ID - """ - internalPolicy( - """ - ID of the internalPolicy - """ - id: ID! - ): InternalPolicy! -} - -extend type Mutation{ - """ - Create a new internalPolicy - """ - createInternalPolicy( - """ - values of the internalPolicy - """ - input: CreateInternalPolicyInput! - ): InternalPolicyCreatePayload! - """ - Create multiple new internalPolicys - """ - createBulkInternalPolicy( - """ - values of the internalPolicy - """ - input: [CreateInternalPolicyInput!] - ): InternalPolicyBulkCreatePayload! - """ - Create multiple new internalPolicys via file upload - """ - createBulkCSVInternalPolicy( - """ - csv file containing values of the internalPolicy - """ - input: Upload! - ): InternalPolicyBulkCreatePayload! - """ - Update an existing internalPolicy - """ - updateInternalPolicy( - """ - ID of the internalPolicy - """ - id: ID! - """ - New values for the internalPolicy - """ - input: UpdateInternalPolicyInput! - ): InternalPolicyUpdatePayload! - """ - Delete an existing internalPolicy - """ - deleteInternalPolicy( - """ - ID of the internalPolicy - """ - id: ID! - ): InternalPolicyDeletePayload! -} - -""" -Return response for createInternalPolicy mutation -""" -type InternalPolicyCreatePayload { - """ - Created internalPolicy - """ - internalPolicy: InternalPolicy! -} - -""" -Return response for updateInternalPolicy mutation -""" -type InternalPolicyUpdatePayload { - """ - Updated internalPolicy - """ - internalPolicy: InternalPolicy! -} - -""" -Return response for deleteInternalPolicy mutation -""" -type InternalPolicyDeletePayload { - """ - Deleted internalPolicy ID - """ - deletedID: ID! -} - -""" -Return response for createBulkInternalPolicy mutation -""" -type InternalPolicyBulkCreatePayload { - """ - Created internalPolicys - """ - internalPolicies: [InternalPolicy!] -}`, BuiltIn: false}, - {Name: "../../schema/invite.graphql", Input: `extend type Query { - """ - Look up invite by ID - """ - invite( - """ - ID of the invite - """ - id: ID! - ): Invite! -} - -extend type Mutation{ - """ - Create a new invite - """ - createInvite( - """ - values of the invite - """ - input: CreateInviteInput! - ): InviteCreatePayload! - """ - Create multiple new invites - """ - createBulkInvite( - """ - values of the invite - """ - input: [CreateInviteInput!] - ): InviteBulkCreatePayload! - """ - Create multiple new invites via file upload - """ - createBulkCSVInvite( - """ - csv file containing values of the invite - """ - input: Upload! - ): InviteBulkCreatePayload! - """ - Update an existing invite - """ - updateInvite( - """ - ID of the invite - """ - id: ID! - """ - New values for the invite - """ - input: UpdateInviteInput! - ): InviteUpdatePayload! - """ - Delete an existing invite - """ - deleteInvite( - """ - ID of the invite - """ - id: ID! - ): InviteDeletePayload! -} - -""" -Return response for createInvite mutation -""" -type InviteCreatePayload { - """ - Created invite - """ - invite: Invite! -} - -""" -Return response for updateInvite mutation -""" -type InviteUpdatePayload { - """ - Updated invite - """ - invite: Invite! -} - -""" -Return response for deleteInvite mutation -""" -type InviteDeletePayload { - """ - Deleted invite ID - """ - deletedID: ID! -} - -""" -Return response for createBulkInvite mutation -""" -type InviteBulkCreatePayload { - """ - Created invites - """ - invites: [Invite!] -}`, BuiltIn: false}, - {Name: "../../schema/narrative.graphql", Input: `extend type Query { - """ - Look up narrative by ID - """ - narrative( - """ - ID of the narrative - """ - id: ID! - ): Narrative! -} - -extend type Mutation{ - """ - Create a new narrative - """ - createNarrative( - """ - values of the narrative - """ - input: CreateNarrativeInput! - ): NarrativeCreatePayload! - """ - Create multiple new narratives - """ - createBulkNarrative( - """ - values of the narrative - """ - input: [CreateNarrativeInput!] - ): NarrativeBulkCreatePayload! - """ - Create multiple new narratives via file upload - """ - createBulkCSVNarrative( - """ - csv file containing values of the narrative - """ - input: Upload! - ): NarrativeBulkCreatePayload! - """ - Update an existing narrative - """ - updateNarrative( - """ - ID of the narrative - """ - id: ID! - """ - New values for the narrative - """ - input: UpdateNarrativeInput! - ): NarrativeUpdatePayload! - """ - Delete an existing narrative - """ - deleteNarrative( - """ - ID of the narrative - """ - id: ID! - ): NarrativeDeletePayload! -} - -""" -Return response for createNarrative mutation -""" -type NarrativeCreatePayload { - """ - Created narrative - """ - narrative: Narrative! -} - -""" -Return response for updateNarrative mutation -""" -type NarrativeUpdatePayload { - """ - Updated narrative - """ - narrative: Narrative! -} - -""" -Return response for deleteNarrative mutation -""" -type NarrativeDeletePayload { - """ - Deleted narrative ID - """ - deletedID: ID! -} - -""" -Return response for createBulkNarrative mutation -""" -type NarrativeBulkCreatePayload { - """ - Created narratives - """ - narratives: [Narrative!] -}`, BuiltIn: false}, - {Name: "../../schema/organization.graphql", Input: `extend type Query { - """ - Look up organization by ID - """ - organization( - """ - ID of the organization - """ - id: ID! - ): Organization! -} - -extend type Mutation{ - """ - Create a new organization - """ - createOrganization( - """ - values of the organization - """ - input: CreateOrganizationInput! - ): OrganizationCreatePayload! - """ - Create multiple new organizations - """ - createBulkOrganization( - """ - values of the organization - """ - input: [CreateOrganizationInput!] - ): OrganizationBulkCreatePayload! - """ - Create multiple new organizations via file upload - """ - createBulkCSVOrganization( - """ - csv file containing values of the organization - """ - input: Upload! - ): OrganizationBulkCreatePayload! - """ - Update an existing organization - """ - updateOrganization( - """ - ID of the organization - """ - id: ID! - """ - New values for the organization - """ - input: UpdateOrganizationInput! - ): OrganizationUpdatePayload! - """ - Delete an existing organization - """ - deleteOrganization( - """ - ID of the organization - """ - id: ID! - ): OrganizationDeletePayload! -} - -""" -Return response for createOrganization mutation -""" -type OrganizationCreatePayload { - """ - Created organization - """ - organization: Organization! -} - -""" -Return response for updateOrganization mutation -""" -type OrganizationUpdatePayload { - """ - Updated organization - """ - organization: Organization! -} - -""" -Return response for deleteOrganization mutation -""" -type OrganizationDeletePayload { - """ - Deleted organization ID - """ - deletedID: ID! -} - -""" -Return response for createBulkOrganization mutation -""" -type OrganizationBulkCreatePayload { - """ - Created organizations - """ - organizations: [Organization!] -}`, BuiltIn: false}, - {Name: "../../schema/organizationsetting.graphql", Input: `extend type Query { - """ - Look up organizationSetting by ID - """ - organizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - ): OrganizationSetting! -} - -extend type Mutation{ - """ - Create a new organizationSetting - """ - createOrganizationSetting( - """ - values of the organizationSetting - """ - input: CreateOrganizationSettingInput! - ): OrganizationSettingCreatePayload! - """ - Create multiple new organizationSettings - """ - createBulkOrganizationSetting( - """ - values of the organizationSetting - """ - input: [CreateOrganizationSettingInput!] - ): OrganizationSettingBulkCreatePayload! - """ - Create multiple new organizationSettings via file upload - """ - createBulkCSVOrganizationSetting( - """ - csv file containing values of the organizationSetting - """ - input: Upload! - ): OrganizationSettingBulkCreatePayload! - """ - Update an existing organizationSetting - """ - updateOrganizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - """ - New values for the organizationSetting - """ - input: UpdateOrganizationSettingInput! - ): OrganizationSettingUpdatePayload! - """ - Delete an existing organizationSetting - """ - deleteOrganizationSetting( - """ - ID of the organizationSetting - """ - id: ID! - ): OrganizationSettingDeletePayload! -} - -""" -Return response for createOrganizationSetting mutation -""" -type OrganizationSettingCreatePayload { - """ - Created organizationSetting - """ - organizationSetting: OrganizationSetting! -} - -""" -Return response for updateOrganizationSetting mutation -""" -type OrganizationSettingUpdatePayload { - """ - Updated organizationSetting - """ - organizationSetting: OrganizationSetting! -} - -""" -Return response for deleteOrganizationSetting mutation -""" -type OrganizationSettingDeletePayload { - """ - Deleted organizationSetting ID - """ - deletedID: ID! -} - -""" -Return response for createBulkOrganizationSetting mutation -""" -type OrganizationSettingBulkCreatePayload { - """ - Created organizationSettings - """ - organizationSettings: [OrganizationSetting!] -}`, BuiltIn: false}, - {Name: "../../schema/orgextended.graphql", Input: `extend input CreateOrganizationInput { - createOrgSettings: CreateOrganizationSettingInput -} - -extend input UpdateOrganizationInput { - addOrgMembers: [CreateOrgMembershipInput!] - updateOrgSettings: UpdateOrganizationSettingInput -} - -extend input OrgMembershipWhereInput { - organizationID: String - userID: String -}`, BuiltIn: false}, - {Name: "../../schema/orgmembership.graphql", Input: `extend type Query { - """ - Look up orgMembership by ID - """ - orgMembership( - """ - ID of the orgMembership - """ - id: ID! - ): OrgMembership! -} - -extend type Mutation{ - """ - Create a new orgMembership - """ - createOrgMembership( - """ - values of the orgMembership - """ - input: CreateOrgMembershipInput! - ): OrgMembershipCreatePayload! - """ - Create multiple new orgMemberships - """ - createBulkOrgMembership( - """ - values of the orgMembership - """ - input: [CreateOrgMembershipInput!] - ): OrgMembershipBulkCreatePayload! - """ - Create multiple new orgMemberships via file upload - """ - createBulkCSVOrgMembership( - """ - csv file containing values of the orgMembership - """ - input: Upload! - ): OrgMembershipBulkCreatePayload! - """ - Update an existing orgMembership - """ - updateOrgMembership( - """ - ID of the orgMembership - """ - id: ID! - """ - New values for the orgMembership - """ - input: UpdateOrgMembershipInput! - ): OrgMembershipUpdatePayload! - """ - Delete an existing orgMembership - """ - deleteOrgMembership( - """ - ID of the orgMembership - """ - id: ID! - ): OrgMembershipDeletePayload! -} - -""" -Return response for createOrgMembership mutation -""" -type OrgMembershipCreatePayload { - """ - Created orgMembership - """ - orgMembership: OrgMembership! -} - -""" -Return response for updateOrgMembership mutation -""" -type OrgMembershipUpdatePayload { - """ - Updated orgMembership - """ - orgMembership: OrgMembership! -} - -""" -Return response for deleteOrgMembership mutation -""" -type OrgMembershipDeletePayload { - """ - Deleted orgMembership ID - """ - deletedID: ID! -} - -""" -Return response for createBulkOrgMembership mutation -""" -type OrgMembershipBulkCreatePayload { - """ - Created orgMemberships - """ - orgMemberships: [OrgMembership!] -}`, BuiltIn: false}, - {Name: "../../schema/orgsubscription.graphql", Input: `extend type Query { - """ - Look up orgSubscription by ID - """ - orgSubscription( - """ - ID of the orgSubscription - """ - id: ID! - ): OrgSubscription! -} - -extend type Mutation{ - """ - Create a new orgSubscription - """ - createOrgSubscription( - """ - values of the orgSubscription - """ - input: CreateOrgSubscriptionInput! - ): OrgSubscriptionCreatePayload! - """ - Create multiple new orgSubscriptions - """ - createBulkOrgSubscription( - """ - values of the orgSubscription - """ - input: [CreateOrgSubscriptionInput!] - ): OrgSubscriptionBulkCreatePayload! - """ - Create multiple new orgSubscriptions via file upload - """ - createBulkCSVOrgSubscription( - """ - csv file containing values of the orgSubscription - """ - input: Upload! - ): OrgSubscriptionBulkCreatePayload! - """ - Update an existing orgSubscription - """ - updateOrgSubscription( - """ - ID of the orgSubscription - """ - id: ID! - """ - New values for the orgSubscription - """ - input: UpdateOrgSubscriptionInput! - ): OrgSubscriptionUpdatePayload! - """ - Delete an existing orgSubscription - """ - deleteOrgSubscription( - """ - ID of the orgSubscription - """ - id: ID! - ): OrgSubscriptionDeletePayload! -} - -""" -Return response for createOrgSubscription mutation -""" -type OrgSubscriptionCreatePayload { - """ - Created orgSubscription - """ - orgSubscription: OrgSubscription! -} - -""" -Return response for updateOrgSubscription mutation -""" -type OrgSubscriptionUpdatePayload { - """ - Updated orgSubscription - """ - orgSubscription: OrgSubscription! -} - -""" -Return response for deleteOrgSubscription mutation -""" -type OrgSubscriptionDeletePayload { - """ - Deleted orgSubscription ID - """ - deletedID: ID! -} - -""" -Return response for createBulkOrgSubscription mutation -""" -type OrgSubscriptionBulkCreatePayload { - """ - Created orgSubscriptions - """ - orgSubscriptions: [OrgSubscription!] -}`, BuiltIn: false}, - {Name: "../../schema/personalaccesstoken.graphql", Input: `extend type Query { - """ - Look up personalAccessToken by ID - """ - personalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - ): PersonalAccessToken! -} - -extend type Mutation{ - """ - Create a new personalAccessToken - """ - createPersonalAccessToken( - """ - values of the personalAccessToken - """ - input: CreatePersonalAccessTokenInput! - ): PersonalAccessTokenCreatePayload! - """ - Create multiple new personalAccessTokens - """ - createBulkPersonalAccessToken( - """ - values of the personalAccessToken - """ - input: [CreatePersonalAccessTokenInput!] - ): PersonalAccessTokenBulkCreatePayload! - """ - Create multiple new personalAccessTokens via file upload - """ - createBulkCSVPersonalAccessToken( - """ - csv file containing values of the personalAccessToken - """ - input: Upload! - ): PersonalAccessTokenBulkCreatePayload! - """ - Update an existing personalAccessToken - """ - updatePersonalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - """ - New values for the personalAccessToken - """ - input: UpdatePersonalAccessTokenInput! - ): PersonalAccessTokenUpdatePayload! - """ - Delete an existing personalAccessToken - """ - deletePersonalAccessToken( - """ - ID of the personalAccessToken - """ - id: ID! - ): PersonalAccessTokenDeletePayload! -} - -""" -Return response for createPersonalAccessToken mutation -""" -type PersonalAccessTokenCreatePayload { - """ - Created personalAccessToken - """ - personalAccessToken: PersonalAccessToken! -} - -""" -Return response for updatePersonalAccessToken mutation -""" -type PersonalAccessTokenUpdatePayload { - """ - Updated personalAccessToken - """ - personalAccessToken: PersonalAccessToken! -} - -""" -Return response for deletePersonalAccessToken mutation -""" -type PersonalAccessTokenDeletePayload { - """ - Deleted personalAccessToken ID - """ - deletedID: ID! -} - -""" -Return response for createBulkPersonalAccessToken mutation -""" -type PersonalAccessTokenBulkCreatePayload { - """ - Created personalAccessTokens - """ - personalAccessTokens: [PersonalAccessToken!] -}`, BuiltIn: false}, - {Name: "../../schema/procedure.graphql", Input: `extend type Query { - """ - Look up procedure by ID - """ - procedure( - """ - ID of the procedure - """ - id: ID! - ): Procedure! -} - -extend type Mutation{ - """ - Create a new procedure - """ - createProcedure( - """ - values of the procedure - """ - input: CreateProcedureInput! - ): ProcedureCreatePayload! - """ - Create multiple new procedures - """ - createBulkProcedure( - """ - values of the procedure - """ - input: [CreateProcedureInput!] - ): ProcedureBulkCreatePayload! - """ - Create multiple new procedures via file upload - """ - createBulkCSVProcedure( - """ - csv file containing values of the procedure - """ - input: Upload! - ): ProcedureBulkCreatePayload! - """ - Update an existing procedure - """ - updateProcedure( - """ - ID of the procedure - """ - id: ID! - """ - New values for the procedure - """ - input: UpdateProcedureInput! - ): ProcedureUpdatePayload! - """ - Delete an existing procedure - """ - deleteProcedure( - """ - ID of the procedure - """ - id: ID! - ): ProcedureDeletePayload! -} - -""" -Return response for createProcedure mutation -""" -type ProcedureCreatePayload { - """ - Created procedure - """ - procedure: Procedure! -} - -""" -Return response for updateProcedure mutation -""" -type ProcedureUpdatePayload { - """ - Updated procedure - """ - procedure: Procedure! -} - -""" -Return response for deleteProcedure mutation -""" -type ProcedureDeletePayload { - """ - Deleted procedure ID - """ - deletedID: ID! -} - -""" -Return response for createBulkProcedure mutation -""" -type ProcedureBulkCreatePayload { - """ - Created procedures - """ - procedures: [Procedure!] -}`, BuiltIn: false}, - {Name: "../../schema/program.graphql", Input: `extend type Query { - """ - Look up program by ID - """ - program( - """ - ID of the program - """ - id: ID! - ): Program! -} - -extend type Mutation{ - """ - Create a new program - """ - createProgram( - """ - values of the program - """ - input: CreateProgramInput! - ): ProgramCreatePayload! - """ - Create multiple new programs - """ - createBulkProgram( - """ - values of the program - """ - input: [CreateProgramInput!] - ): ProgramBulkCreatePayload! - """ - Create multiple new programs via file upload - """ - createBulkCSVProgram( - """ - csv file containing values of the program - """ - input: Upload! - ): ProgramBulkCreatePayload! - """ - Update an existing program - """ - updateProgram( - """ - ID of the program - """ - id: ID! - """ - New values for the program - """ - input: UpdateProgramInput! - ): ProgramUpdatePayload! - """ - Delete an existing program - """ - deleteProgram( - """ - ID of the program - """ - id: ID! - ): ProgramDeletePayload! -} - -""" -Return response for createProgram mutation -""" -type ProgramCreatePayload { - """ - Created program - """ - program: Program! -} - -""" -Return response for updateProgram mutation -""" -type ProgramUpdatePayload { - """ - Updated program - """ - program: Program! -} - -""" -Return response for deleteProgram mutation -""" -type ProgramDeletePayload { - """ - Deleted program ID - """ - deletedID: ID! -} - -""" -Return response for createBulkProgram mutation -""" -type ProgramBulkCreatePayload { - """ - Created programs - """ - programs: [Program!] -}`, BuiltIn: false}, - {Name: "../../schema/programextended.graphql", Input: `extend input UpdateProgramInput { - addProgramMembers: [CreateProgramMembershipInput!] -} - -extend input ProgramMembershipWhereInput { - programID: String - userID: String -} - -input CreateControlWithSubcontrolsInput{ - control: CreateControlInput - subcontrols: [CreateSubcontrolInput!] -} - -input CreateFullProgramInput{ - program: CreateProgramInput! - standard: CreateStandardInput! - controls: [CreateControlWithSubcontrolsInput!] - risks: [CreateRiskInput!] - internalPolicies: [CreateInternalPolicyInput!] - procedures: [CreateProcedureInput!] - members: [CreateMemberWithProgramInput!] -} - -input CreateProgramWithMembersInput{ - program: CreateProgramInput! - members: [CreateMemberWithProgramInput!] -} - -input CreateMemberWithProgramInput { - role: ProgramMembershipRole - userID: ID! -} - -extend type Mutation{ - """ - Create a new program with members - """ - createProgramWithMembers( - """ - values of the program - """ - input: CreateProgramWithMembersInput! - ): ProgramCreatePayload! - """ - Create a new program with options for edges (members, policies, procedures, risks, controls, standard) - """ - createFullProgram( - """ - values of the program - """ - input: CreateFullProgramInput! - ): ProgramCreatePayload! - """ - Create a controls with subcontrols - """ - createControlWithSubcontrols( - """ - values of the program - """ - input: CreateControlWithSubcontrolsInput! - ): ControlCreatePayload! -}`, BuiltIn: false}, - {Name: "../../schema/programmembership.graphql", Input: `extend type Query { - """ - Look up programMembership by ID - """ - programMembership( - """ - ID of the programMembership - """ - id: ID! - ): ProgramMembership! -} - -extend type Mutation{ - """ - Create a new programMembership - """ - createProgramMembership( - """ - values of the programMembership - """ - input: CreateProgramMembershipInput! - ): ProgramMembershipCreatePayload! - """ - Create multiple new programMemberships - """ - createBulkProgramMembership( - """ - values of the programMembership - """ - input: [CreateProgramMembershipInput!] - ): ProgramMembershipBulkCreatePayload! - """ - Create multiple new programMemberships via file upload - """ - createBulkCSVProgramMembership( - """ - csv file containing values of the programMembership - """ - input: Upload! - ): ProgramMembershipBulkCreatePayload! - """ - Update an existing programMembership - """ - updateProgramMembership( - """ - ID of the programMembership - """ - id: ID! - """ - New values for the programMembership - """ - input: UpdateProgramMembershipInput! - ): ProgramMembershipUpdatePayload! - """ - Delete an existing programMembership - """ - deleteProgramMembership( - """ - ID of the programMembership - """ - id: ID! - ): ProgramMembershipDeletePayload! -} - -""" -Return response for createProgramMembership mutation -""" -type ProgramMembershipCreatePayload { - """ - Created programMembership - """ - programMembership: ProgramMembership! -} - -""" -Return response for updateProgramMembership mutation -""" -type ProgramMembershipUpdatePayload { - """ - Updated programMembership - """ - programMembership: ProgramMembership! -} - -""" -Return response for deleteProgramMembership mutation -""" -type ProgramMembershipDeletePayload { - """ - Deleted programMembership ID - """ - deletedID: ID! -} - -""" -Return response for createBulkProgramMembership mutation -""" -type ProgramMembershipBulkCreatePayload { - """ - Created programMemberships - """ - programMemberships: [ProgramMembership!] -}`, BuiltIn: false}, - {Name: "../../schema/risk.graphql", Input: `extend type Query { - """ - Look up risk by ID - """ - risk( - """ - ID of the risk - """ - id: ID! - ): Risk! -} - -extend type Mutation{ - """ - Create a new risk - """ - createRisk( - """ - values of the risk - """ - input: CreateRiskInput! - ): RiskCreatePayload! - """ - Create multiple new risks - """ - createBulkRisk( - """ - values of the risk - """ - input: [CreateRiskInput!] - ): RiskBulkCreatePayload! - """ - Create multiple new risks via file upload - """ - createBulkCSVRisk( - """ - csv file containing values of the risk - """ - input: Upload! - ): RiskBulkCreatePayload! - """ - Update an existing risk - """ - updateRisk( - """ - ID of the risk - """ - id: ID! - """ - New values for the risk - """ - input: UpdateRiskInput! - ): RiskUpdatePayload! - """ - Delete an existing risk - """ - deleteRisk( - """ - ID of the risk - """ - id: ID! - ): RiskDeletePayload! -} - -""" -Return response for createRisk mutation -""" -type RiskCreatePayload { - """ - Created risk - """ - risk: Risk! -} - -""" -Return response for updateRisk mutation -""" -type RiskUpdatePayload { - """ - Updated risk - """ - risk: Risk! -} - -""" -Return response for deleteRisk mutation -""" -type RiskDeletePayload { - """ - Deleted risk ID - """ - deletedID: ID! -} - -""" -Return response for createBulkRisk mutation -""" -type RiskBulkCreatePayload { - """ - Created risks - """ - risks: [Risk!] -}`, BuiltIn: false}, - {Name: "../../schema/scalars.graphql", Input: `scalar Upload`, BuiltIn: false}, - {Name: "../../schema/search.graphql", Input: `extend type Query{ - """ - Search across APIToken objects - """ - apiTokenSearch( - """ - Search query - """ - query: String! - ): APITokenSearchResult - """ - Search across ActionPlan objects - """ - actionPlanSearch( - """ - Search query - """ - query: String! - ): ActionPlanSearchResult - """ - Search across Contact objects - """ - contactSearch( - """ - Search query - """ - query: String! - ): ContactSearchResult - """ - Search across Control objects - """ - controlSearch( - """ - Search query - """ - query: String! - ): ControlSearchResult - """ - Search across ControlObjective objects - """ - controlObjectiveSearch( - """ - Search query - """ - query: String! - ): ControlObjectiveSearchResult - """ - Search across DocumentData objects - """ - documentDataSearch( - """ - Search query - """ - query: String! - ): DocumentDataSearchResult - """ - Search across Entity objects - """ - entitySearch( - """ - Search query - """ - query: String! - ): EntitySearchResult - """ - Search across EntityType objects - """ - entityTypeSearch( - """ - Search query - """ - query: String! - ): EntityTypeSearchResult - """ - Search across Event objects - """ - eventSearch( - """ - Search query - """ - query: String! - ): EventSearchResult - """ - Search across File objects - """ - fileSearch( - """ - Search query - """ - query: String! - ): FileSearchResult - """ - Search across Group objects - """ - groupSearch( - """ - Search query - """ - query: String! - ): GroupSearchResult - """ - Search across GroupSetting objects - """ - groupSettingSearch( - """ - Search query - """ - query: String! - ): GroupSettingSearchResult - """ - Search across Integration objects - """ - integrationSearch( - """ - Search query - """ - query: String! - ): IntegrationSearchResult - """ - Search across InternalPolicy objects - """ - internalPolicySearch( - """ - Search query - """ - query: String! - ): InternalPolicySearchResult - """ - Search across Narrative objects - """ - narrativeSearch( - """ - Search query - """ - query: String! - ): NarrativeSearchResult - """ - Search across OrgSubscription objects - """ - orgSubscriptionSearch( - """ - Search query - """ - query: String! - ): OrgSubscriptionSearchResult - """ - Search across Organization objects - """ - organizationSearch( - """ - Search query - """ - query: String! - ): OrganizationSearchResult - """ - Search across OrganizationSetting objects - """ - organizationSettingSearch( - """ - Search query - """ - query: String! - ): OrganizationSettingSearchResult - """ - Search across PersonalAccessToken objects - """ - personalAccessTokenSearch( - """ - Search query - """ - query: String! - ): PersonalAccessTokenSearchResult - """ - Search across Procedure objects - """ - procedureSearch( - """ - Search query - """ - query: String! - ): ProcedureSearchResult - """ - Search across Program objects - """ - programSearch( - """ - Search query - """ - query: String! - ): ProgramSearchResult - """ - Search across Risk objects - """ - riskSearch( - """ - Search query - """ - query: String! - ): RiskSearchResult - """ - Search across Standard objects - """ - standardSearch( - """ - Search query - """ - query: String! - ): StandardSearchResult - """ - Search across Subcontrol objects - """ - subcontrolSearch( - """ - Search query - """ - query: String! - ): SubcontrolSearchResult - """ - Search across Subscriber objects - """ - subscriberSearch( - """ - Search query - """ - query: String! - ): SubscriberSearchResult - """ - Search across TFASetting objects - """ - tFASettingSearch( - """ - Search query - """ - query: String! - ): TFASettingSearchResult - """ - Search across Task objects - """ - taskSearch( - """ - Search query - """ - query: String! - ): TaskSearchResult - """ - Search across Template objects - """ - templateSearch( - """ - Search query - """ - query: String! - ): TemplateSearchResult - """ - Search across User objects - """ - userSearch( - """ - Search query - """ - query: String! - ): UserSearchResult - """ - Search across UserSetting objects - """ - userSettingSearch( - """ - Search query - """ - query: String! - ): UserSettingSearchResult -} -union SearchResult = - | APITokenSearchResult - | ActionPlanSearchResult - | ContactSearchResult - | ControlSearchResult - | ControlObjectiveSearchResult - | DocumentDataSearchResult - | EntitySearchResult - | EntityTypeSearchResult - | EventSearchResult - | FileSearchResult - | GroupSearchResult - | GroupSettingSearchResult - | IntegrationSearchResult - | InternalPolicySearchResult - | NarrativeSearchResult - | OrgSubscriptionSearchResult - | OrganizationSearchResult - | OrganizationSettingSearchResult - | PersonalAccessTokenSearchResult - | ProcedureSearchResult - | ProgramSearchResult - | RiskSearchResult - | StandardSearchResult - | SubcontrolSearchResult - | SubscriberSearchResult - | TFASettingSearchResult - | TaskSearchResult - | TemplateSearchResult - | UserSearchResult - | UserSettingSearchResult - -type SearchResultConnection { - page: PageInfo! - - nodes: [SearchResult!]! -} - -extend type Query{ - """ - Search across all objects - """ - search( - """ - Search query - """ - query: String! - ): SearchResultConnection - """ - Admin search across all objects - """ - adminSearch( - """ - Search query - """ - query: String! - ): SearchResultConnection -} - -type APITokenSearchResult { - apiTokens: [ APIToken!] -} - -type ActionPlanSearchResult { - actionPlans: [ ActionPlan!] -} - -type ContactSearchResult { - contacts: [ Contact!] -} - -type ControlSearchResult { - controls: [ Control!] -} - -type ControlObjectiveSearchResult { - controlObjectives: [ ControlObjective!] -} - -type DocumentDataSearchResult { - documentData: [ DocumentData!] -} - -type EntitySearchResult { - entities: [ Entity!] -} - -type EntityTypeSearchResult { - entityTypes: [ EntityType!] -} - -type EventSearchResult { - events: [ Event!] -} - -type FileSearchResult { - files: [ File!] -} - -type GroupSearchResult { - groups: [ Group!] -} - -type GroupSettingSearchResult { - groupSettings: [ GroupSetting!] -} - -type IntegrationSearchResult { - integrations: [ Integration!] -} - -type InternalPolicySearchResult { - internalPolicies: [ InternalPolicy!] -} - -type NarrativeSearchResult { - narratives: [ Narrative!] -} - -type OrgSubscriptionSearchResult { - orgSubscriptions: [ OrgSubscription!] -} - -type OrganizationSearchResult { - organizations: [ Organization!] -} - -type OrganizationSettingSearchResult { - organizationSettings: [ OrganizationSetting!] -} - -type PersonalAccessTokenSearchResult { - personalAccessTokens: [ PersonalAccessToken!] -} - -type ProcedureSearchResult { - procedures: [ Procedure!] -} - -type ProgramSearchResult { - programs: [ Program!] -} - -type RiskSearchResult { - risks: [ Risk!] -} - -type StandardSearchResult { - standards: [ Standard!] -} - -type SubcontrolSearchResult { - subcontrols: [ Subcontrol!] -} - -type SubscriberSearchResult { - subscribers: [ Subscriber!] -} - -type TFASettingSearchResult { - tFASettings: [ TFASetting!] -} - -type TaskSearchResult { - tasks: [ Task!] -} - -type TemplateSearchResult { - templates: [ Template!] -} - -type UserSearchResult { - users: [ User!] -} - -type UserSettingSearchResult { - userSettings: [ UserSetting!] -} -`, BuiltIn: false}, - {Name: "../../schema/standard.graphql", Input: `extend type Query { - """ - Look up standard by ID - """ - standard( - """ - ID of the standard - """ - id: ID! - ): Standard! -} - -extend type Mutation{ - """ - Create a new standard - """ - createStandard( - """ - values of the standard - """ - input: CreateStandardInput! - ): StandardCreatePayload! - """ - Create multiple new standards - """ - createBulkStandard( - """ - values of the standard - """ - input: [CreateStandardInput!] - ): StandardBulkCreatePayload! - """ - Create multiple new standards via file upload - """ - createBulkCSVStandard( - """ - csv file containing values of the standard - """ - input: Upload! - ): StandardBulkCreatePayload! - """ - Update an existing standard - """ - updateStandard( - """ - ID of the standard - """ - id: ID! - """ - New values for the standard - """ - input: UpdateStandardInput! - ): StandardUpdatePayload! - """ - Delete an existing standard - """ - deleteStandard( - """ - ID of the standard - """ - id: ID! - ): StandardDeletePayload! -} - -""" -Return response for createStandard mutation -""" -type StandardCreatePayload { - """ - Created standard - """ - standard: Standard! -} - -""" -Return response for updateStandard mutation -""" -type StandardUpdatePayload { - """ - Updated standard - """ - standard: Standard! -} - -""" -Return response for deleteStandard mutation -""" -type StandardDeletePayload { - """ - Deleted standard ID - """ - deletedID: ID! -} - -""" -Return response for createBulkStandard mutation -""" -type StandardBulkCreatePayload { - """ - Created standards - """ - standards: [Standard!] -}`, BuiltIn: false}, - {Name: "../../schema/subcontrol.graphql", Input: `extend type Query { - """ - Look up subcontrol by ID - """ - subcontrol( - """ - ID of the subcontrol - """ - id: ID! - ): Subcontrol! -} - -extend type Mutation{ - """ - Create a new subcontrol - """ - createSubcontrol( - """ - values of the subcontrol - """ - input: CreateSubcontrolInput! - ): SubcontrolCreatePayload! - """ - Create multiple new subcontrols - """ - createBulkSubcontrol( - """ - values of the subcontrol - """ - input: [CreateSubcontrolInput!] - ): SubcontrolBulkCreatePayload! - """ - Create multiple new subcontrols via file upload - """ - createBulkCSVSubcontrol( - """ - csv file containing values of the subcontrol - """ - input: Upload! - ): SubcontrolBulkCreatePayload! - """ - Update an existing subcontrol - """ - updateSubcontrol( - """ - ID of the subcontrol - """ - id: ID! - """ - New values for the subcontrol - """ - input: UpdateSubcontrolInput! - ): SubcontrolUpdatePayload! - """ - Delete an existing subcontrol - """ - deleteSubcontrol( - """ - ID of the subcontrol - """ - id: ID! - ): SubcontrolDeletePayload! -} - -""" -Return response for createSubcontrol mutation -""" -type SubcontrolCreatePayload { - """ - Created subcontrol - """ - subcontrol: Subcontrol! -} - -""" -Return response for updateSubcontrol mutation -""" -type SubcontrolUpdatePayload { - """ - Updated subcontrol - """ - subcontrol: Subcontrol! -} - -""" -Return response for deleteSubcontrol mutation -""" -type SubcontrolDeletePayload { - """ - Deleted subcontrol ID - """ - deletedID: ID! -} - -""" -Return response for createBulkSubcontrol mutation -""" -type SubcontrolBulkCreatePayload { - """ - Created subcontrols - """ - subcontrols: [Subcontrol!] -}`, BuiltIn: false}, - {Name: "../../schema/subscriber.graphql", Input: `extend type Query { - """ - Look up subscriber by Email - """ - subscriber( - """ - Email of the subscriber - """ - email: String! - ): Subscriber! -} - -extend type Mutation{ - """ - Create a new subscriber - """ - createSubscriber( - """ - values of the subscriber - """ - input: CreateSubscriberInput! - ): SubscriberCreatePayload! - """ - Create new subscribers - """ - createBulkSubscriber( - """ - values of the subscriber - """ - input: [CreateSubscriberInput!] - ): SubscriberBulkCreatePayload! - """ - Create new subscribers via CSV file - """ - createBulkCSVSubscriber( - """ - values of the subscriber - """ - input: Upload! - ): SubscriberBulkCreatePayload! - """ - Update an existing subscriber - """ - updateSubscriber( - """ - Email of the subscriber - """ - email: String! - """ - New values for the subscriber - """ - input: UpdateSubscriberInput! - ): SubscriberUpdatePayload! - """ - Delete an existing subscriber by Email - """ - deleteSubscriber( - """ - Email of the subscriber - """ - email: String! - """ - OwnerID of the subscriber - """ - ownerID: ID - ): SubscriberDeletePayload! -} - -""" -Return response for createSubscriber mutation -""" -type SubscriberCreatePayload { - """ - Created subscriber - """ - subscriber: Subscriber! -} - -""" -Return response for updateSubscriber mutation -""" -type SubscriberUpdatePayload { - """ - Updated subscriber - """ - subscriber: Subscriber! -} - -""" -Return response for deleteSubscriber mutation -""" -type SubscriberDeletePayload { - """ - Deleted subscriber email - """ - email: String! -} - -""" -Return response for createBulkSubscriber mutation -""" -type SubscriberBulkCreatePayload { - """ - Created subscribers - """ - subscribers: [Subscriber!] -} - -`, BuiltIn: false}, - {Name: "../../schema/task.graphql", Input: `extend type Query { - """ - Look up task by ID - """ - task( - """ - ID of the task - """ - id: ID! - ): Task! -} - -extend type Mutation{ - """ - Create a new task - """ - createTask( - """ - values of the task - """ - input: CreateTaskInput! - ): TaskCreatePayload! - """ - Create multiple new tasks - """ - createBulkTask( - """ - values of the task - """ - input: [CreateTaskInput!] - ): TaskBulkCreatePayload! - """ - Create multiple new tasks via file upload - """ - createBulkCSVTask( - """ - csv file containing values of the task - """ - input: Upload! - ): TaskBulkCreatePayload! - """ - Update an existing task - """ - updateTask( - """ - ID of the task - """ - id: ID! - """ - New values for the task - """ - input: UpdateTaskInput! - ): TaskUpdatePayload! - """ - Delete an existing task - """ - deleteTask( - """ - ID of the task - """ - id: ID! - ): TaskDeletePayload! -} - -""" -Return response for createTask mutation -""" -type TaskCreatePayload { - """ - Created task - """ - task: Task! -} - -""" -Return response for updateTask mutation -""" -type TaskUpdatePayload { - """ - Updated task - """ - task: Task! -} - -""" -Return response for deleteTask mutation -""" -type TaskDeletePayload { - """ - Deleted task ID - """ - deletedID: ID! -} - -""" -Return response for createBulkTask mutation -""" -type TaskBulkCreatePayload { - """ - Created tasks - """ - tasks: [Task!] -}`, BuiltIn: false}, - {Name: "../../schema/template.graphql", Input: `extend type Query { - """ - Look up template by ID - """ - template( - """ - ID of the template - """ - id: ID! - ): Template! -} - -extend type Mutation{ - """ - Create a new template - """ - createTemplate( - """ - values of the template - """ - input: CreateTemplateInput! - ): TemplateCreatePayload! - """ - Create multiple new templates - """ - createBulkTemplate( - """ - values of the template - """ - input: [CreateTemplateInput!] - ): TemplateBulkCreatePayload! - """ - Create multiple new templates via file upload - """ - createBulkCSVTemplate( - """ - csv file containing values of the template - """ - input: Upload! - ): TemplateBulkCreatePayload! - """ - Update an existing template - """ - updateTemplate( - """ - ID of the template - """ - id: ID! - """ - New values for the template - """ - input: UpdateTemplateInput! - ): TemplateUpdatePayload! - """ - Delete an existing template - """ - deleteTemplate( - """ - ID of the template - """ - id: ID! - ): TemplateDeletePayload! -} - -""" -Return response for createTemplate mutation -""" -type TemplateCreatePayload { - """ - Created template - """ - template: Template! -} - -""" -Return response for updateTemplate mutation -""" -type TemplateUpdatePayload { - """ - Updated template - """ - template: Template! -} - -""" -Return response for deleteTemplate mutation -""" -type TemplateDeletePayload { - """ - Deleted template ID - """ - deletedID: ID! -} - -""" -Return response for createBulkTemplate mutation -""" -type TemplateBulkCreatePayload { - """ - Created templates - """ - templates: [Template!] -}`, BuiltIn: false}, - {Name: "../../schema/tfasetting.graphql", Input: `extend type Query { - """ - Look up tfaSetting for the current user - """ - tfaSetting( - """ - ID of the tfaSetting - """ - id: ID - ): TFASetting! -} - -extend type Mutation{ - """ - Create a new tfaSetting - """ - createTFASetting( - """ - values of the tfaSetting - """ - input: CreateTFASettingInput! - ): TFASettingCreatePayload! - """ - Update an existing tfaSetting - """ - updateTFASetting( - """ - New values for the tfaSetting - """ - input: UpdateTFASettingInput! - ): TFASettingUpdatePayload! -} - -""" -Return response for createTFASetting mutation -""" -type TFASettingCreatePayload { - """ - Created tfaSetting - """ - tfaSetting: TFASetting! -} - -""" -Return response for updateTFASetting mutation -""" -type TFASettingUpdatePayload { - """ - Updated tfaSetting - """ - tfaSetting: TFASetting! -} - -extend input UpdateTFASettingInput { - """ - Whether to regenerate backup codes - """ - regenBackupCodes: Boolean -}`, BuiltIn: false}, - {Name: "../../schema/user.graphql", Input: `extend type Query { - """ - Look up user by ID - """ - user( - """ - ID of the user - """ - id: ID! - ): User! -} - -extend type Mutation{ - """ - Create a new user - """ - createUser( - """ - values of the user - """ - input: CreateUserInput! - avatarFile: Upload - ): UserCreatePayload! - """ - Update an existing user - """ - updateUser( - """ - ID of the user - """ - id: ID! - """ - New values for the user - """ - input: UpdateUserInput! - avatarFile: Upload - ): UserUpdatePayload! - """ - Delete an existing user - """ - deleteUser( - """ - ID of the user - """ - id: ID! - ): UserDeletePayload! -} - -""" -Return response for createUser mutation -""" -type UserCreatePayload { - """ - Created user - """ - user: User! -} - -""" -Return response for updateUser mutation -""" -type UserUpdatePayload { - """ - Updated user - """ - user: User! -} - -""" -Return response for deleteUser mutation -""" -type UserDeletePayload { - """ - Deleted user ID - """ - deletedID: ID! -} - -""" -Return response for createBulkUser mutation -""" -type UserBulkCreatePayload { - """ - Created users - """ - users: [User!] -}`, BuiltIn: false}, - {Name: "../../schema/usersetting.graphql", Input: `extend type Query { - """ - Look up userSetting by ID - """ - userSetting( - """ - ID of the userSetting - """ - id: ID! - ): UserSetting! -} - -extend type Mutation{ - """ - Create a new userSetting - """ - createUserSetting( - """ - values of the userSetting - """ - input: CreateUserSettingInput! - ): UserSettingCreatePayload! - """ - Create multiple new userSettings - """ - createBulkUserSetting( - """ - values of the userSetting - """ - input: [CreateUserSettingInput!] - ): UserSettingBulkCreatePayload! - """ - Create multiple new userSettings via file upload - """ - createBulkCSVUserSetting( - """ - csv file containing values of the userSetting - """ - input: Upload! - ): UserSettingBulkCreatePayload! - """ - Update an existing userSetting - """ - updateUserSetting( - """ - ID of the userSetting - """ - id: ID! - """ - New values for the userSetting - """ - input: UpdateUserSettingInput! - ): UserSettingUpdatePayload! -} - -""" -Return response for createUserSetting mutation -""" -type UserSettingCreatePayload { - """ - Created userSetting - """ - userSetting: UserSetting! -} - -""" -Return response for updateUserSetting mutation -""" -type UserSettingUpdatePayload { - """ - Updated userSetting - """ - userSetting: UserSetting! -} - -""" -Return response for createBulkUserSetting mutation -""" -type UserSettingBulkCreatePayload { - """ - Created userSettings - """ - userSettings: [UserSetting!] -}`, BuiltIn: false}, -} -var parsedSchema = gqlparser.MustLoadSchema(sources...) - -// endregion ************************** generated!.gotpl ************************** - -// region ***************************** args.gotpl ***************************** - -func (ec *executionContext) field_Mutation_createAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createAPIToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateAPITokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateAPITokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInput(ctx, tmp) - } - - var zeroVal generated.CreateAPITokenInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createActionPlan_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createActionPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateActionPlanInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateActionPlanInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInput(ctx, tmp) - } - - var zeroVal generated.CreateActionPlanInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkAPIToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateAPITokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateAPITokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateAPITokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateAPITokenInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateAPITokenInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkActionPlan_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkActionPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateActionPlanInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateActionPlanInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateActionPlanInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateActionPlanInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateActionPlanInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVAPIToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVActionPlan_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVActionPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVContact_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVControlObjective_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVControlObjective_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVControl_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVControl_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVDocumentData_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEntityType_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEntity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVEvent_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVGroupMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVGroupSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVGroup_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVHush_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVIntegration_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVInternalPolicy_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVInternalPolicy_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVInvite_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVNarrative_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVNarrative_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOrgMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOrgSubscription_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOrgSubscription_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOrganizationSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVOrganization_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVOrganization_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVPersonalAccessToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVPersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVProcedure_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVProcedure_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVProgramMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVProgramMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVProgram_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVProgram_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVRisk_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVRisk_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVStandard_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVStandard_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVSubcontrol_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVSubcontrol_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVSubscriber_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVTask_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVTask_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVTemplate_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkCSVUserSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkCSVUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkContact_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateContactInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateContactInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateContactInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateContactInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkControlObjective_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkControlObjective_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateControlObjectiveInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateControlObjectiveInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateControlObjectiveInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateControlObjectiveInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkControl_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkControl_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateControlInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateControlInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateControlInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateControlInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkDocumentData_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateDocumentDataInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateDocumentDataInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateDocumentDataInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateDocumentDataInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEntityType_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEntityTypeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEntityTypeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEntityTypeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateEntityTypeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEntity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEntityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEntityInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEntityInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateEntityInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkEvent_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateEventInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateEventInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateEventInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateEventInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkGroupMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateGroupMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateGroupMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateGroupMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateGroupMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkGroupSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateGroupSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateGroupSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateGroupSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateGroupSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkGroup_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateGroupInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateGroupInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateGroupInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkHush_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateHushInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateHushInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateHushInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateHushInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkIntegration_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateIntegrationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateIntegrationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateIntegrationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateIntegrationInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkInternalPolicy_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkInternalPolicy_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateInternalPolicyInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateInternalPolicyInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateInternalPolicyInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateInternalPolicyInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkInvite_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateInviteInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateInviteInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateInviteInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateInviteInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkNarrative_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkNarrative_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateNarrativeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateNarrativeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateNarrativeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateNarrativeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOrgMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOrgMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOrgMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOrgMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateOrgMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOrgSubscription_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOrgSubscription_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOrgSubscriptionInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOrgSubscriptionInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOrgSubscriptionInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgSubscriptionInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateOrgSubscriptionInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOrganizationSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOrganizationSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOrganizationSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOrganizationSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateOrganizationSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkOrganization_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkOrganization_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateOrganizationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateOrganizationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateOrganizationInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateOrganizationInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkPersonalAccessToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkPersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreatePersonalAccessTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreatePersonalAccessTokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreatePersonalAccessTokenInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreatePersonalAccessTokenInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkProcedure_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkProcedure_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateProcedureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateProcedureInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateProcedureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateProcedureInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkProgramMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkProgramMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateProgramMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateProgramMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateProgramMembershipInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramMembershipInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateProgramMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkProgram_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkProgram_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateProgramInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateProgramInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateProgramInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkRisk_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkRisk_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateRiskInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateRiskInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateRiskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateRiskInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkStandard_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkStandard_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateStandardInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateStandardInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateStandardInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateStandardInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkSubcontrol_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkSubcontrol_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateSubcontrolInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateSubcontrolInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateSubcontrolInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateSubcontrolInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkSubscriber_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateSubscriberInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateSubscriberInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateSubscriberInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateSubscriberInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkTask_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkTask_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateTaskInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateTaskInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateTaskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTaskInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateTaskInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkTemplate_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateTemplateInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateTemplateInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateTemplateInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateTemplateInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createBulkUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createBulkUserSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createBulkUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]*generated.CreateUserSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal []*generated.CreateUserSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalOCreateUserSettingInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInputᚄ(ctx, tmp) - } - - var zeroVal []*generated.CreateUserSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createContact_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateContactInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateContactInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateContactInput(ctx, tmp) - } - - var zeroVal generated.CreateContactInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createControlObjective_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createControlObjective_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateControlObjectiveInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateControlObjectiveInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlObjectiveInput(ctx, tmp) - } - - var zeroVal generated.CreateControlObjectiveInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createControlWithSubcontrols_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createControlWithSubcontrols_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createControlWithSubcontrols_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (CreateControlWithSubcontrolsInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal CreateControlWithSubcontrolsInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateControlWithSubcontrolsInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateControlWithSubcontrolsInput(ctx, tmp) - } - - var zeroVal CreateControlWithSubcontrolsInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (generated.CreateControlInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateControlInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx, tmp) - } - - var zeroVal generated.CreateControlInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createDocumentData_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateDocumentDataInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateDocumentDataInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx, tmp) - } - - var zeroVal generated.CreateDocumentDataInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEntityType_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEntityTypeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEntityTypeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityTypeInput(ctx, tmp) - } - - var zeroVal generated.CreateEntityTypeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEntity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEntityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEntityInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEntityInput(ctx, tmp) - } - - var zeroVal generated.CreateEntityInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createEvent_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateEventInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateEventInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateEventInput(ctx, tmp) - } - - var zeroVal generated.CreateEventInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createFullProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createFullProgram_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createFullProgram_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (CreateFullProgramInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal CreateFullProgramInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateFullProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateFullProgramInput(ctx, tmp) - } - - var zeroVal CreateFullProgramInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createGroupMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateGroupMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateGroupMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupMembershipInput(ctx, tmp) - } - - var zeroVal generated.CreateGroupMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createGroupSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateGroupSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateGroupSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupSettingInput(ctx, tmp) - } - - var zeroVal generated.CreateGroupSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createGroup_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateGroupInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx, tmp) - } - - var zeroVal generated.CreateGroupInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createHush_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateHushInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateHushInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateHushInput(ctx, tmp) - } - - var zeroVal generated.CreateHushInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createIntegration_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateIntegrationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateIntegrationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateIntegrationInput(ctx, tmp) - } - - var zeroVal generated.CreateIntegrationInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createInternalPolicy_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createInternalPolicy_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateInternalPolicyInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateInternalPolicyInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInput(ctx, tmp) - } - - var zeroVal generated.CreateInternalPolicyInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createInvite_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateInviteInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateInviteInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInviteInput(ctx, tmp) - } - - var zeroVal generated.CreateInviteInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createNarrative_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createNarrative_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateNarrativeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateNarrativeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInput(ctx, tmp) - } - - var zeroVal generated.CreateNarrativeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOrgMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOrgMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOrgMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgMembershipInput(ctx, tmp) - } - - var zeroVal generated.CreateOrgMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOrgSubscription_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOrgSubscription_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOrgSubscriptionInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOrgSubscriptionInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOrgSubscriptionInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrgSubscriptionInput(ctx, tmp) - } - - var zeroVal generated.CreateOrgSubscriptionInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createOrganizationSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateOrganizationSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOrganizationSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationSettingInput(ctx, tmp) - } - - var zeroVal generated.CreateOrganizationSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (generated.CreateOrganizationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateOrganizationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateOrganizationInput(ctx, tmp) - } - - var zeroVal generated.CreateOrganizationInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createPersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createPersonalAccessToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createPersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreatePersonalAccessTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreatePersonalAccessTokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreatePersonalAccessTokenInput(ctx, tmp) - } - - var zeroVal generated.CreatePersonalAccessTokenInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createProcedure_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createProcedure_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateProcedureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateProcedureInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInput(ctx, tmp) - } - - var zeroVal generated.CreateProcedureInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createProgramMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createProgramMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateProgramMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateProgramMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateProgramMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramMembershipInput(ctx, tmp) - } - - var zeroVal generated.CreateProgramMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createProgramWithMembers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createProgramWithMembers_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createProgramWithMembers_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (CreateProgramWithMembersInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal CreateProgramWithMembersInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateProgramWithMembersInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateProgramWithMembersInput(ctx, tmp) - } - - var zeroVal CreateProgramWithMembersInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createProgram_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createProgram_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateProgramInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateProgramInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInput(ctx, tmp) - } - - var zeroVal generated.CreateProgramInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (generated.CreateRiskInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateRiskInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInput(ctx, tmp) - } - - var zeroVal generated.CreateRiskInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createStandard_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createStandard_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateStandardInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateStandardInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx, tmp) - } - - var zeroVal generated.CreateStandardInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createSubcontrol_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createSubcontrol_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateSubcontrolInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateSubcontrolInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInput(ctx, tmp) - } - - var zeroVal generated.CreateSubcontrolInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createSubscriber_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateSubscriberInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateSubscriberInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubscriberInput(ctx, tmp) - } - - var zeroVal generated.CreateSubscriberInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createTFASetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createTFASetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateTFASettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateTFASettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTFASettingInput(ctx, tmp) - } - - var zeroVal generated.CreateTFASettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (generated.CreateTaskInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateTaskInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateTaskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTaskInput(ctx, tmp) - } - - var zeroVal generated.CreateTaskInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createTemplate_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateTemplateInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateTemplateInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateTemplateInput(ctx, tmp) - } - - var zeroVal generated.CreateTemplateInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createUserSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_createUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateUserSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateUserSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserSettingInput(ctx, tmp) - } - - var zeroVal generated.CreateUserSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_createUser_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - arg1, err := ec.field_Mutation_createUser_argsAvatarFile(ctx, rawArgs) - if err != nil { - return nil, err - } - args["avatarFile"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_createUser_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.CreateUserInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.CreateUserInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNCreateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateUserInput(ctx, tmp) - } - - var zeroVal generated.CreateUserInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_createUser_argsAvatarFile( - ctx context.Context, - rawArgs map[string]interface{}, -) (*graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["avatarFile"] - if !ok { - var zeroVal *graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) - if tmp, ok := rawArgs["avatarFile"]; ok { - return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal *graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteAPIToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteAPIToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteActionPlan_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteActionPlan_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteContact_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteContact_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteControlObjective_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteControlObjective_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteControl_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteControl_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteDocumentData_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteDocumentData_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEntityType_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEntityType_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEntity_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEntity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteEvent_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteEvent_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteFile_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteFile_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteFile_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteGroupMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteGroupMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteGroupSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteGroupSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteGroup_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteGroup_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteHush_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteHush_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteIntegration_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteIntegration_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteInternalPolicy_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteInternalPolicy_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteInvite_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteInvite_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteNarrative_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteNarrative_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOrgMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOrgMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOrgSubscription_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOrgSubscription_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOrganizationSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOrganizationSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteOrganization_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteOrganization_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deletePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deletePersonalAccessToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deletePersonalAccessToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteProcedure_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteProcedure_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteProgramMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteProgramMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteProgram_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteProgram_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteRisk_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteRisk_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteStandard_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteStandard_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteSubcontrol_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteSubcontrol_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteSubscriber_argsEmail(ctx, rawArgs) - if err != nil { - return nil, err - } - args["email"] = arg0 - arg1, err := ec.field_Mutation_deleteSubscriber_argsOwnerID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["ownerID"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteSubscriber_argsEmail( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["email"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - if tmp, ok := rawArgs["email"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteSubscriber_argsOwnerID( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["ownerID"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - if tmp, ok := rawArgs["ownerID"]; ok { - return ec.unmarshalOID2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteTask_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteTask_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteTemplate_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteTemplate_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_deleteUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_deleteUser_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_deleteUser_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateAPIToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateAPIToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateAPIToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateAPIToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateAPIToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateAPITokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateAPITokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateAPITokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateAPITokenInput(ctx, tmp) - } - - var zeroVal generated.UpdateAPITokenInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateActionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateActionPlan_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateActionPlan_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateActionPlan_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateActionPlan_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateActionPlanInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateActionPlanInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateActionPlanInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateActionPlanInput(ctx, tmp) - } - - var zeroVal generated.UpdateActionPlanInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateContact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateContact_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateContact_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateContact_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateContact_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateContactInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateContactInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateContactInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateContactInput(ctx, tmp) - } - - var zeroVal generated.UpdateContactInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateControlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateControlObjective_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateControlObjective_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateControlObjective_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateControlObjective_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateControlObjectiveInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateControlObjectiveInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateControlObjectiveInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlObjectiveInput(ctx, tmp) - } - - var zeroVal generated.UpdateControlObjectiveInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateControl_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateControl_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateControl_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateControl_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateControl_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateControlInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateControlInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateControlInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateControlInput(ctx, tmp) - } - - var zeroVal generated.UpdateControlInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateDocumentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateDocumentData_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateDocumentData_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateDocumentData_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateDocumentData_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateDocumentDataInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateDocumentDataInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateDocumentDataInput(ctx, tmp) - } - - var zeroVal generated.UpdateDocumentDataInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEntityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEntityType_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEntityType_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEntityType_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEntityType_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEntityTypeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEntityTypeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEntityTypeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityTypeInput(ctx, tmp) - } - - var zeroVal generated.UpdateEntityTypeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEntity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEntity_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEntity_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEntity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEntity_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEntityInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEntityInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEntityInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEntityInput(ctx, tmp) - } - - var zeroVal generated.UpdateEntityInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEvent_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateEvent_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateEvent_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateEvent_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateEvent_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateEventInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateEventInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateEventInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateEventInput(ctx, tmp) - } - - var zeroVal generated.UpdateEventInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateGroupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateGroupMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateGroupMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateGroupMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateGroupMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateGroupMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateGroupMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateGroupMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupMembershipInput(ctx, tmp) - } - - var zeroVal generated.UpdateGroupMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateGroupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateGroupSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateGroupSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateGroupSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateGroupSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateGroupSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateGroupSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateGroupSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupSettingInput(ctx, tmp) - } - - var zeroVal generated.UpdateGroupSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateGroup_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateGroup_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateGroup_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateGroup_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateGroup_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateGroupInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateGroupInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateGroupInput(ctx, tmp) - } - - var zeroVal generated.UpdateGroupInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateHush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateHush_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateHush_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateHush_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateHush_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateHushInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateHushInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateHushInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateHushInput(ctx, tmp) - } - - var zeroVal generated.UpdateHushInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIntegration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateIntegration_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateIntegration_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateIntegration_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateIntegration_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateIntegrationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateIntegrationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateIntegrationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateIntegrationInput(ctx, tmp) - } - - var zeroVal generated.UpdateIntegrationInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateInternalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateInternalPolicy_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateInternalPolicy_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateInternalPolicy_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateInternalPolicy_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateInternalPolicyInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateInternalPolicyInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateInternalPolicyInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInternalPolicyInput(ctx, tmp) - } - - var zeroVal generated.UpdateInternalPolicyInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateInvite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateInvite_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateInvite_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateInvite_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateInvite_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateInviteInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateInviteInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateInviteInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateInviteInput(ctx, tmp) - } - - var zeroVal generated.UpdateInviteInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateNarrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateNarrative_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateNarrative_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateNarrative_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateNarrative_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateNarrativeInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateNarrativeInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateNarrativeInput(ctx, tmp) - } - - var zeroVal generated.UpdateNarrativeInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOrgMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOrgMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOrgMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrgMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOrgMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOrgMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOrgMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgMembershipInput(ctx, tmp) - } - - var zeroVal generated.UpdateOrgMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOrgSubscription_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOrgSubscription_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOrgSubscription_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrgSubscription_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOrgSubscriptionInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOrgSubscriptionInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOrgSubscriptionInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrgSubscriptionInput(ctx, tmp) - } - - var zeroVal generated.UpdateOrgSubscriptionInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrganizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOrganizationSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOrganizationSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrganizationSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOrganizationSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOrganizationSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOrganizationSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationSettingInput(ctx, tmp) - } - - var zeroVal generated.UpdateOrganizationSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrganization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateOrganization_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateOrganization_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateOrganization_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateOrganization_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateOrganizationInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateOrganizationInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateOrganizationInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateOrganizationInput(ctx, tmp) - } - - var zeroVal generated.UpdateOrganizationInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updatePersonalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updatePersonalAccessToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updatePersonalAccessToken_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updatePersonalAccessToken_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdatePersonalAccessTokenInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdatePersonalAccessTokenInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdatePersonalAccessTokenInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdatePersonalAccessTokenInput(ctx, tmp) - } - - var zeroVal generated.UpdatePersonalAccessTokenInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateProcedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateProcedure_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateProcedure_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateProcedure_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateProcedure_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateProcedureInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateProcedureInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateProcedureInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProcedureInput(ctx, tmp) - } - - var zeroVal generated.UpdateProcedureInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateProgramMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateProgramMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateProgramMembership_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateProgramMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateProgramMembership_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateProgramMembershipInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateProgramMembershipInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateProgramMembershipInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProgramMembershipInput(ctx, tmp) - } - - var zeroVal generated.UpdateProgramMembershipInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateProgram_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateProgram_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateProgram_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateProgram_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateProgram_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateProgramInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateProgramInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateProgramInput(ctx, tmp) - } - - var zeroVal generated.UpdateProgramInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateRisk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateRisk_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateRisk_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateRisk_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateRisk_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateRiskInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateRiskInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateRiskInput(ctx, tmp) - } - - var zeroVal generated.UpdateRiskInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateStandard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateStandard_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateStandard_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateStandard_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateStandard_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateStandardInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateStandardInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateStandardInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateStandardInput(ctx, tmp) - } - - var zeroVal generated.UpdateStandardInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateSubcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateSubcontrol_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateSubcontrol_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateSubcontrol_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateSubcontrol_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateSubcontrolInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateSubcontrolInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateSubcontrolInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubcontrolInput(ctx, tmp) - } - - var zeroVal generated.UpdateSubcontrolInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateSubscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateSubscriber_argsEmail(ctx, rawArgs) - if err != nil { - return nil, err - } - args["email"] = arg0 - arg1, err := ec.field_Mutation_updateSubscriber_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateSubscriber_argsEmail( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["email"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - if tmp, ok := rawArgs["email"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateSubscriber_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateSubscriberInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateSubscriberInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateSubscriberInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateSubscriberInput(ctx, tmp) - } - - var zeroVal generated.UpdateSubscriberInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateTFASetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateTFASetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg0 - return args, nil -} -func (ec *executionContext) field_Mutation_updateTFASetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateTFASettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateTFASettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateTFASettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTFASettingInput(ctx, tmp) - } - - var zeroVal generated.UpdateTFASettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateTask_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateTask_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateTask_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateTask_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateTask_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateTaskInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateTaskInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateTaskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTaskInput(ctx, tmp) - } - - var zeroVal generated.UpdateTaskInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateTemplate_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateTemplate_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateTemplate_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateTemplate_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateTemplate_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateTemplateInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateTemplateInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateTemplateInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateTemplateInput(ctx, tmp) - } - - var zeroVal generated.UpdateTemplateInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUserSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateUserSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateUserSetting_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - return args, nil -} -func (ec *executionContext) field_Mutation_updateUserSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUserSetting_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateUserSettingInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateUserSettingInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateUserSettingInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserSettingInput(ctx, tmp) - } - - var zeroVal generated.UpdateUserSettingInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUser_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Mutation_updateUser_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - arg1, err := ec.field_Mutation_updateUser_argsInput(ctx, rawArgs) - if err != nil { - return nil, err - } - args["input"] = arg1 - arg2, err := ec.field_Mutation_updateUser_argsAvatarFile(ctx, rawArgs) - if err != nil { - return nil, err - } - args["avatarFile"] = arg2 - return args, nil -} -func (ec *executionContext) field_Mutation_updateUser_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUser_argsInput( - ctx context.Context, - rawArgs map[string]interface{}, -) (generated.UpdateUserInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["input"] - if !ok { - var zeroVal generated.UpdateUserInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("input")) - if tmp, ok := rawArgs["input"]; ok { - return ec.unmarshalNUpdateUserInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUpdateUserInput(ctx, tmp) - } - - var zeroVal generated.UpdateUserInput - return zeroVal, nil -} - -func (ec *executionContext) field_Mutation_updateUser_argsAvatarFile( - ctx context.Context, - rawArgs map[string]interface{}, -) (*graphql.Upload, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["avatarFile"] - if !ok { - var zeroVal *graphql.Upload - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("avatarFile")) - if tmp, ok := rawArgs["avatarFile"]; ok { - return ec.unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx, tmp) - } - - var zeroVal *graphql.Upload - return zeroVal, nil -} - -func (ec *executionContext) field_Organization_children_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Organization_children_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Organization_children_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Organization_children_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Organization_children_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Organization_children_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Organization_children_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Organization_children_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Organization_children_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_children_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Organization_children_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_children_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.OrganizationOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) - } - - var zeroVal *generated.OrganizationOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Organization_children_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query___type_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["name"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - 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_actionPlanHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_actionPlanHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_actionPlanHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_actionPlanHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_actionPlanHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_actionPlanHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_actionPlanHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_actionPlanHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_actionPlanHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_actionPlanHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_actionPlanHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ActionPlanHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ActionPlanHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.ActionPlanHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_actionPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_actionPlanSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_actionPlanSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_actionPlan_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_actionPlan_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_actionPlan_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_actionPlans_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_actionPlans_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_actionPlans_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_actionPlans_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_actionPlans_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_actionPlans_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_actionPlans_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_actionPlans_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_actionPlans_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_actionPlans_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_actionPlans_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ActionPlanWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ActionPlanWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, tmp) - } - - var zeroVal *generated.ActionPlanWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminAPITokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminAPITokenSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminAPITokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminActionPlanSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminActionPlanSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminActionPlanSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminContactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminContactSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminContactSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminControlObjectiveSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminControlObjectiveSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminControlObjectiveSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminControlSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminControlSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminControlSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminDocumentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminDocumentDataSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminDocumentDataSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminEntitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEntitySearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminEntitySearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminEntityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEntityTypeSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminEntityTypeSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminEventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminEventSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminEventSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminFileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminFileSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminFileSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminGroupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminGroupSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminGroupSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminGroupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminGroupSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminGroupSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminIntegrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminIntegrationSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminIntegrationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminInternalPolicySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminInternalPolicySearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminInternalPolicySearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminNarrativeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminNarrativeSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminNarrativeSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminOrgSubscriptionSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminOrgSubscriptionSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminOrgSubscriptionSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminOrganizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminOrganizationSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminOrganizationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminOrganizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminOrganizationSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminOrganizationSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminPersonalAccessTokenSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminPersonalAccessTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminProcedureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminProcedureSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminProcedureSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminProgramSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminProgramSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminProgramSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminRiskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminRiskSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminRiskSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminStandardSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminStandardSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminStandardSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminSubcontrolSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminSubcontrolSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminSubcontrolSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminSubscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminSubscriberSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminSubscriberSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminTFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminTFASettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminTFASettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminTaskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminTaskSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminTaskSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminTemplateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminTemplateSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminTemplateSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminUserSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminUserSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminUserSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_adminUserSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_adminUserSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_adminUserSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_apiTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_apiTokenSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_apiTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_apiToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_apiToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_apiToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_apiTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_apiTokens_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_apiTokens_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_apiTokens_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_apiTokens_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_apiTokens_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_apiTokens_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_apiTokens_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_apiTokens_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_apiTokens_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_apiTokens_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.APITokenWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.APITokenWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx, tmp) - } - - var zeroVal *generated.APITokenWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_auditLogs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_auditLogs_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_auditLogs_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_auditLogs_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_auditLogs_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_auditLogs_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_auditLogs_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_auditLogs_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_auditLogs_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_auditLogs_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_auditLogs_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*AuditLogWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *AuditLogWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogWhereInput(ctx, tmp) - } - - var zeroVal *AuditLogWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contactHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contactHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_contactHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_contactHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_contactHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_contactHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_contactHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contactHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_contactHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contactHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_contactHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ContactHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ContactHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOContactHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.ContactHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contactSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contactSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_contactSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contact_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contact_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_contact_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contacts_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_contacts_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_contacts_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_contacts_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_contacts_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_contacts_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_contacts_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contacts_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_contacts_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_contacts_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_contacts_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ContactWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ContactWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOContactWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactWhereInput(ctx, tmp) - } - - var zeroVal *generated.ContactWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_controlHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_controlHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_controlHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_controlHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_controlHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_controlHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controlHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controlHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ControlHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ControlHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOControlHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.ControlHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjectiveHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_controlObjectiveHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_controlObjectiveHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_controlObjectiveHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_controlObjectiveHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_controlObjectiveHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_controlObjectiveHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjectiveHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controlObjectiveHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjectiveHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controlObjectiveHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ControlObjectiveHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ControlObjectiveHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOControlObjectiveHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.ControlObjectiveHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjectiveSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_controlObjectiveSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_controlObjectiveSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjective_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_controlObjective_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_controlObjective_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjectives_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_controlObjectives_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_controlObjectives_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_controlObjectives_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_controlObjectives_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_controlObjectives_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_controlObjectives_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjectives_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controlObjectives_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlObjectives_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controlObjectives_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ControlObjectiveWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ControlObjectiveWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx, tmp) - } - - var zeroVal *generated.ControlObjectiveWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controlSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_controlSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_controlSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_control_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_control_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_control_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controls_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_controls_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_controls_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_controls_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_controls_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_controls_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_controls_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controls_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controls_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_controls_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_controls_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ControlWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ControlWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx, tmp) - } - - var zeroVal *generated.ControlWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentDataHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_documentDataHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_documentDataHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_documentDataHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_documentDataHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_documentDataHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_documentDataHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_documentDataHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.DocumentDataHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.DocumentDataHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.DocumentDataHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentDataSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_documentDataSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataSlice_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentDataSlice_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_documentDataSlice_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_documentDataSlice_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_documentDataSlice_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_documentDataSlice_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_documentDataSlice_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataSlice_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_documentDataSlice_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentDataSlice_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_documentDataSlice_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.DocumentDataWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.DocumentDataWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalODocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx, tmp) - } - - var zeroVal *generated.DocumentDataWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_documentData_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_documentData_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_documentData_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entities_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entities_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_entities_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_entities_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_entities_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_entities_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entities_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entities_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entities_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entities_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entities_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entities_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityOrder(ctx, tmp) - } - - var zeroVal *generated.EntityOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entities_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx, tmp) - } - - var zeroVal *generated.EntityWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_entityHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_entityHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_entityHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_entityHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entityHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entityHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entityHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entityHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.EntityHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.EntityHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entitySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entitySearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entitySearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypeHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityTypeHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_entityTypeHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_entityTypeHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_entityTypeHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_entityTypeHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entityTypeHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entityTypeHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypeHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entityTypeHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypeHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entityTypeHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityTypeHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityTypeHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.EntityTypeHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypeHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityTypeHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityTypeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.EntityTypeHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityTypeSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entityTypeSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityType_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityType_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entityType_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entityTypes_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_entityTypes_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_entityTypes_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_entityTypes_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_entityTypes_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_entityTypes_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_entityTypes_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypes_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entityTypes_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypes_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_entityTypes_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.EntityTypeOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOEntityTypeOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeOrder(ctx, tmp) - } - - var zeroVal *generated.EntityTypeOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entityTypes_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EntityTypeWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EntityTypeWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx, tmp) - } - - var zeroVal *generated.EntityTypeWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_entity_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_entity_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_entity_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_eventHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_eventHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_eventHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_eventHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_eventHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_eventHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_eventHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_eventHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_eventHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_eventHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_eventHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EventHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EventHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.EventHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_eventSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_eventSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_eventSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_event_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_event_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_event_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_events_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_events_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_events_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_events_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_events_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_events_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_events_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_events_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_events_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_events_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_events_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.EventWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.EventWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx, tmp) - } - - var zeroVal *generated.EventWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_fileHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_fileHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_fileHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_fileHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_fileHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_fileHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_fileHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_fileHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_fileHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_fileHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_fileHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.FileHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.FileHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.FileHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_fileSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_fileSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_fileSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_file_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_file_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_file_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_files_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_files_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_files_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_files_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_files_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_files_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_files_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_files_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_files_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_files_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_files_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.FileWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.FileWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOFileWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInput(ctx, tmp) - } - - var zeroVal *generated.FileWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_groupHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_groupHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_groupHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_groupHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_groupHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_groupHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.GroupHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOGroupHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.GroupHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.GroupHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupMembershipHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_groupMembershipHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_groupMembershipHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_groupMembershipHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_groupMembershipHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_groupMembershipHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMembershipHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupMembershipHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMembershipHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupMembershipHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupMembershipHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupMembershipHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.GroupMembershipHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupMemberships_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_groupMemberships_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_groupMemberships_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_groupMemberships_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_groupMemberships_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_groupMemberships_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMemberships_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupMemberships_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupMemberships_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupMemberships_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupMembershipWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupMembershipWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx, tmp) - } - - var zeroVal *generated.GroupMembershipWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSettingHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_groupSettingHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_groupSettingHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_groupSettingHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_groupSettingHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_groupSettingHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSettingHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupSettingHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSettingHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupSettingHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupSettingHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupSettingHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.GroupSettingHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_groupSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groupSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_groupSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_groupSettings_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_groupSettings_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_groupSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_groupSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groupSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groupSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupSettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupSettingWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingWhereInput(ctx, tmp) - } - - var zeroVal *generated.GroupSettingWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_group_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_group_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_group_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groups_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_groups_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_groups_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_groups_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_groups_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_groups_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_groups_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_groups_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groups_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groups_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groups_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_groups_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.GroupOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOGroupOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupOrder(ctx, tmp) - } - - var zeroVal *generated.GroupOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_groups_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.GroupWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.GroupWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx, tmp) - } - - var zeroVal *generated.GroupWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_hushHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_hushHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_hushHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_hushHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_hushHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_hushHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_hushHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_hushHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_hushHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.HushHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOHushHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.HushHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.HushHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOHushHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.HushHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hush_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_hush_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_hush_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_hushes_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_hushes_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_hushes_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_hushes_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_hushes_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_hushes_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_hushes_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushes_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_hushes_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushes_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_hushes_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.HushOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOHushOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushOrder(ctx, tmp) - } - - var zeroVal *generated.HushOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_hushes_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.HushWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.HushWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx, tmp) - } - - var zeroVal *generated.HushWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integrationHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_integrationHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_integrationHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_integrationHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_integrationHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_integrationHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_integrationHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrationHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_integrationHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrationHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_integrationHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.IntegrationHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOIntegrationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.IntegrationHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrationHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.IntegrationHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOIntegrationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.IntegrationHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integrationSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_integrationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integration_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integration_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_integration_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_integrations_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_integrations_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_integrations_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_integrations_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_integrations_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_integrations_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_integrations_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrations_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_integrations_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrations_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_integrations_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.IntegrationOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOIntegrationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationOrder(ctx, tmp) - } - - var zeroVal *generated.IntegrationOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_integrations_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.IntegrationWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.IntegrationWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx, tmp) - } - - var zeroVal *generated.IntegrationWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicies_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_internalPolicies_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_internalPolicies_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_internalPolicies_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_internalPolicies_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_internalPolicies_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_internalPolicies_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicies_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_internalPolicies_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicies_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_internalPolicies_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.InternalPolicyWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.InternalPolicyWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx, tmp) - } - - var zeroVal *generated.InternalPolicyWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicyHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_internalPolicyHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_internalPolicyHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_internalPolicyHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_internalPolicyHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_internalPolicyHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_internalPolicyHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicyHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_internalPolicyHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicyHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_internalPolicyHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.InternalPolicyHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.InternalPolicyHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOInternalPolicyHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.InternalPolicyHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicySearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_internalPolicySearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_internalPolicySearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_internalPolicy_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_internalPolicy_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_internalPolicy_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_invite_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_invite_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_invite_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_invites_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_invites_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_invites_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_invites_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_invites_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_invites_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_invites_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_invites_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_invites_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_invites_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_invites_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.InviteWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.InviteWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx, tmp) - } - - var zeroVal *generated.InviteWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narrativeHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_narrativeHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_narrativeHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_narrativeHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_narrativeHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_narrativeHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_narrativeHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narrativeHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_narrativeHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narrativeHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_narrativeHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.NarrativeHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.NarrativeHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalONarrativeHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.NarrativeHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narrativeSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_narrativeSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_narrativeSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narrative_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_narrative_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_narrative_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narratives_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_narratives_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_narratives_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_narratives_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_narratives_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_narratives_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_narratives_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narratives_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_narratives_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_narratives_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_narratives_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.NarrativeWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.NarrativeWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalONarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx, tmp) - } - - var zeroVal *generated.NarrativeWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_node_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_nodes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_nodes_argsIds(ctx, rawArgs) - if err != nil { - return nil, err - } - args["ids"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_nodes_argsIds( - ctx context.Context, - rawArgs map[string]interface{}, -) ([]string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["ids"] - if !ok { - var zeroVal []string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("ids")) - if tmp, ok := rawArgs["ids"]; ok { - return ec.unmarshalNID2ᚕstringᚄ(ctx, tmp) - } - - var zeroVal []string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_noteHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_noteHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_noteHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_noteHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_noteHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_noteHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_noteHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_noteHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_noteHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_noteHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_noteHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.NoteHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.NoteHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalONoteHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.NoteHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_notes_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_notes_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_notes_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_notes_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_notes_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_notes_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_notes_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_notes_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_notes_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_notes_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_notes_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.NoteWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.NoteWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalONoteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteWhereInput(ctx, tmp) - } - - var zeroVal *generated.NoteWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgMembershipHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_orgMembershipHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_orgMembershipHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_orgMembershipHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_orgMembershipHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_orgMembershipHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgMembershipHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgMembershipHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgMembershipHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgMembershipHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrgMembershipHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrgMembershipHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrgMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrgMembershipHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_orgMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgMemberships_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_orgMemberships_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_orgMemberships_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_orgMemberships_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_orgMemberships_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_orgMemberships_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgMemberships_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgMemberships_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgMemberships_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgMemberships_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrgMembershipWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrgMembershipWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrgMembershipWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscriptionHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgSubscriptionHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_orgSubscriptionHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_orgSubscriptionHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_orgSubscriptionHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_orgSubscriptionHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_orgSubscriptionHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscriptionHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgSubscriptionHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscriptionHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgSubscriptionHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrgSubscriptionHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrgSubscriptionHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrgSubscriptionHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrgSubscriptionHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscriptionSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgSubscriptionSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_orgSubscriptionSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscription_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgSubscription_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_orgSubscription_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscriptions_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_orgSubscriptions_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_orgSubscriptions_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_orgSubscriptions_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_orgSubscriptions_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_orgSubscriptions_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_orgSubscriptions_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscriptions_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgSubscriptions_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_orgSubscriptions_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_orgSubscriptions_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrgSubscriptionWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrgSubscriptionWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrgSubscriptionWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_organizationHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_organizationHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_organizationHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_organizationHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_organizationHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_organizationHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizationHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizationHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.OrganizationHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOOrganizationHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.OrganizationHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrganizationHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organizationSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSettingHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_organizationSettingHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_organizationSettingHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_organizationSettingHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_organizationSettingHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_organizationSettingHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSettingHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizationSettingHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSettingHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizationSettingHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationSettingHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationSettingHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrganizationSettingHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organizationSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organizationSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizationSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_organizationSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_organizationSettings_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_organizationSettings_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_organizationSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_organizationSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizationSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizationSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizationSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationSettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationSettingWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrganizationSettingWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organization_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organization_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_organization_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizations_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_organizations_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_organizations_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_organizations_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_organizations_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_organizations_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_organizations_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_organizations_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizations_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizations_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizations_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_organizations_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.OrganizationOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationOrder(ctx, tmp) - } - - var zeroVal *generated.OrganizationOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_organizations_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.OrganizationWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx, tmp) - } - - var zeroVal *generated.OrganizationWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_personalAccessTokenSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_personalAccessTokenSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_personalAccessTokenSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_personalAccessToken_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_personalAccessToken_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_personalAccessToken_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_personalAccessTokens_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_personalAccessTokens_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_personalAccessTokens_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_personalAccessTokens_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_personalAccessTokens_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_personalAccessTokens_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_personalAccessTokens_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_personalAccessTokens_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_personalAccessTokens_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_personalAccessTokens_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_personalAccessTokens_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.PersonalAccessTokenWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.PersonalAccessTokenWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx, tmp) - } - - var zeroVal *generated.PersonalAccessTokenWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedureHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_procedureHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_procedureHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_procedureHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_procedureHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_procedureHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_procedureHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedureHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_procedureHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedureHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_procedureHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ProcedureHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ProcedureHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOProcedureHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.ProcedureHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedureSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_procedureSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_procedureSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedure_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_procedure_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_procedure_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedures_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_procedures_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_procedures_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_procedures_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_procedures_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_procedures_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_procedures_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedures_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_procedures_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_procedures_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_procedures_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ProcedureWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ProcedureWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx, tmp) - } - - var zeroVal *generated.ProcedureWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_programHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_programHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_programHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_programHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_programHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_programHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ProgramHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ProgramHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOProgramHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.ProgramHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programMembershipHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_programMembershipHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_programMembershipHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_programMembershipHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_programMembershipHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_programMembershipHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_programMembershipHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programMembershipHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programMembershipHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programMembershipHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programMembershipHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ProgramMembershipHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ProgramMembershipHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOProgramMembershipHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.ProgramMembershipHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programMembership_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_programMembership_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_programMembership_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programMemberships_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_programMemberships_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_programMemberships_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_programMemberships_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_programMemberships_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_programMemberships_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_programMemberships_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programMemberships_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programMemberships_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programMemberships_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programMemberships_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ProgramMembershipWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ProgramMembershipWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx, tmp) - } - - var zeroVal *generated.ProgramMembershipWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_programSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_programSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_program_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_program_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_program_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programs_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_programs_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_programs_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_programs_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_programs_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_programs_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_programs_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programs_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programs_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_programs_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_programs_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.ProgramWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.ProgramWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx, tmp) - } - - var zeroVal *generated.ProgramWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_riskHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_riskHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_riskHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_riskHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_riskHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_riskHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_riskHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_riskHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_riskHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_riskHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_riskHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.RiskHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.RiskHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalORiskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.RiskHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_riskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_riskSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_riskSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_risk_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_risk_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_risk_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_risks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_risks_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_risks_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_risks_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_risks_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_risks_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_risks_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_risks_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_risks_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_risks_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_risks_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.RiskWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.RiskWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx, tmp) - } - - var zeroVal *generated.RiskWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_search_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_search_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_search_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standardHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_standardHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_standardHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_standardHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_standardHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_standardHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_standardHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standardHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_standardHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standardHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_standardHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.StandardHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.StandardHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOStandardHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.StandardHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standardSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_standardSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_standardSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standard_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_standard_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_standard_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standards_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_standards_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_standards_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_standards_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_standards_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_standards_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_standards_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standards_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_standards_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_standards_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_standards_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.StandardWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.StandardWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx, tmp) - } - - var zeroVal *generated.StandardWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrolHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subcontrolHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_subcontrolHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_subcontrolHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_subcontrolHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_subcontrolHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_subcontrolHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrolHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_subcontrolHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrolHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_subcontrolHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.SubcontrolHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.SubcontrolHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOSubcontrolHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.SubcontrolHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrolSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subcontrolSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_subcontrolSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrol_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subcontrol_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_subcontrol_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrols_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subcontrols_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_subcontrols_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_subcontrols_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_subcontrols_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_subcontrols_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_subcontrols_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrols_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_subcontrols_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subcontrols_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_subcontrols_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.SubcontrolWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.SubcontrolWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx, tmp) - } - - var zeroVal *generated.SubcontrolWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subscriberSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subscriberSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_subscriberSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subscriber_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subscriber_argsEmail(ctx, rawArgs) - if err != nil { - return nil, err - } - args["email"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_subscriber_argsEmail( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["email"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("email")) - if tmp, ok := rawArgs["email"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subscribers_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_subscribers_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_subscribers_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_subscribers_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_subscribers_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_subscribers_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_subscribers_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subscribers_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_subscribers_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_subscribers_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_subscribers_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.SubscriberWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.SubscriberWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx, tmp) - } - - var zeroVal *generated.SubscriberWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tFASettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_tFASettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_tFASettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_taskHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_taskHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_taskHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_taskHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_taskHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_taskHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_taskHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_taskHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_taskHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_taskHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_taskHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TaskHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TaskHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTaskHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.TaskHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_taskSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_taskSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_taskSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_task_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_task_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_task_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tasks_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_tasks_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_tasks_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_tasks_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_tasks_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_tasks_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_tasks_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tasks_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_tasks_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tasks_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_tasks_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TaskWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TaskWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx, tmp) - } - - var zeroVal *generated.TaskWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templateHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_templateHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_templateHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_templateHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_templateHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_templateHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_templateHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_templateHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templateHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_templateHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templateHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_templateHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.TemplateHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOTemplateHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.TemplateHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templateHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TemplateHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTemplateHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.TemplateHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templateSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_templateSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_templateSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_template_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_template_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_template_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templates_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_templates_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_templates_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_templates_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_templates_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_templates_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_templates_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_templates_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templates_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_templates_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templates_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_templates_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.TemplateOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOTemplateOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateOrder(ctx, tmp) - } - - var zeroVal *generated.TemplateOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_templates_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TemplateWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TemplateWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx, tmp) - } - - var zeroVal *generated.TemplateWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tfaSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_tfaSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_tfaSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (*string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal *string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalOID2ᚖstring(ctx, tmp) - } - - var zeroVal *string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tfaSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_tfaSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_tfaSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_tfaSettings_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_tfaSettings_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_tfaSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_tfaSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tfaSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_tfaSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_tfaSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_tfaSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.TFASettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.TFASettingWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx, tmp) - } - - var zeroVal *generated.TFASettingWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_userHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_userHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_userHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_userHistories_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_userHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_userHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_userHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_userHistories_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserHistoryOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.UserHistoryOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOUserHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrder(ctx, tmp) - } - - var zeroVal *generated.UserHistoryOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.UserHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_userSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSettingHistories_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_userSettingHistories_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_userSettingHistories_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_userSettingHistories_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_userSettingHistories_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_userSettingHistories_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSettingHistories_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_userSettingHistories_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSettingHistories_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_userSettingHistories_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserSettingHistoryWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserSettingHistoryWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx, tmp) - } - - var zeroVal *generated.UserSettingHistoryWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSettingSearch_argsQuery(ctx, rawArgs) - if err != nil { - return nil, err - } - args["query"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_userSettingSearch_argsQuery( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["query"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) - if tmp, ok := rawArgs["query"]; ok { - return ec.unmarshalNString2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSetting_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_userSetting_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_userSettings_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_userSettings_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_userSettings_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_userSettings_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_userSettings_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg4 - return args, nil -} -func (ec *executionContext) field_Query_userSettings_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSettings_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_userSettings_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_userSettings_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_userSettings_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserSettingWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserSettingWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, tmp) - } - - var zeroVal *generated.UserSettingWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_user_argsID(ctx, rawArgs) - if err != nil { - return nil, err - } - args["id"] = arg0 - return args, nil -} -func (ec *executionContext) field_Query_user_argsID( - ctx context.Context, - rawArgs map[string]interface{}, -) (string, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["id"] - if !ok { - var zeroVal string - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) - if tmp, ok := rawArgs["id"]; ok { - return ec.unmarshalNID2string(ctx, tmp) - } - - var zeroVal string - return zeroVal, nil -} - -func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - arg0, err := ec.field_Query_users_argsAfter(ctx, rawArgs) - if err != nil { - return nil, err - } - args["after"] = arg0 - arg1, err := ec.field_Query_users_argsFirst(ctx, rawArgs) - if err != nil { - return nil, err - } - args["first"] = arg1 - arg2, err := ec.field_Query_users_argsBefore(ctx, rawArgs) - if err != nil { - return nil, err - } - args["before"] = arg2 - arg3, err := ec.field_Query_users_argsLast(ctx, rawArgs) - if err != nil { - return nil, err - } - args["last"] = arg3 - arg4, err := ec.field_Query_users_argsOrderBy(ctx, rawArgs) - if err != nil { - return nil, err - } - args["orderBy"] = arg4 - arg5, err := ec.field_Query_users_argsWhere(ctx, rawArgs) - if err != nil { - return nil, err - } - args["where"] = arg5 - return args, nil -} -func (ec *executionContext) field_Query_users_argsAfter( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["after"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - if tmp, ok := rawArgs["after"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_users_argsFirst( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["first"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_users_argsBefore( - ctx context.Context, - rawArgs map[string]interface{}, -) (*entgql.Cursor[string], error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["before"] - if !ok { - var zeroVal *entgql.Cursor[string] - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - if tmp, ok := rawArgs["before"]; ok { - return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) - } - - var zeroVal *entgql.Cursor[string] - return zeroVal, nil -} - -func (ec *executionContext) field_Query_users_argsLast( - ctx context.Context, - rawArgs map[string]interface{}, -) (*int, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["last"] - if !ok { - var zeroVal *int - return zeroVal, nil - } - - 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_Query_users_argsOrderBy( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserOrder, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["orderBy"] - if !ok { - var zeroVal *generated.UserOrder - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) - if tmp, ok := rawArgs["orderBy"]; ok { - return ec.unmarshalOUserOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrder(ctx, tmp) - } - - var zeroVal *generated.UserOrder - return zeroVal, nil -} - -func (ec *executionContext) field_Query_users_argsWhere( - ctx context.Context, - rawArgs map[string]interface{}, -) (*generated.UserWhereInput, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["where"] - if !ok { - var zeroVal *generated.UserWhereInput - return zeroVal, nil - } - - ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) - if tmp, ok := rawArgs["where"]; ok { - return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, tmp) - } - - var zeroVal *generated.UserWhereInput - return zeroVal, nil -} - -func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (bool, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { - var zeroVal bool - return zeroVal, nil - } - - 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]interface{}) (map[string]interface{}, error) { - var err error - args := map[string]interface{}{} - 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]interface{}, -) (bool, error) { - // We won't call the directive if the argument is null. - // Set call_argument_directives_with_null to true to call directives - // even if the argument is null. - _, ok := rawArgs["includeDeprecated"] - if !ok { - var zeroVal bool - return zeroVal, nil - } - - 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) _APIToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _APIToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _APIToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _APIToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_APIToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, 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.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_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) (interface{}, 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_APIToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_token(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Token, nil - }) - if err != nil { - ec.Error(ctx, 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_APIToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*time.Time) - fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _APIToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_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) (interface{}, 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_APIToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_scopes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Scopes, 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_APIToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - 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) _APIToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_lastUsedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.LastUsedAt, 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.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _APIToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APIToken_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APIToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APIToken", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _APITokenBulkCreatePayload_apiTokens(ctx context.Context, field graphql.CollectedField, obj *APITokenBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.APITokens, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.APIToken) - fc.Result = res - return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenBulkCreatePayload_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenBulkCreatePayload", - 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_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _APITokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.APITokenEdge) - fc.Result = res - return ec.marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_APITokenEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_APITokenEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APITokenEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenConnection", - 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) _APITokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_APITokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenConnection", - 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) _APITokenCreatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *APITokenCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.APIToken, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.APIToken) - fc.Result = res - return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenCreatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenCreatePayload", - 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_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _APITokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *APITokenDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenDeletePayload", - 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) _APITokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.APIToken) - fc.Result = res - return ec.marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenEdge", - 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_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _APITokenSearchResult_apiTokens(ctx context.Context, field graphql.CollectedField, obj *APITokenSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.APITokens, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.APIToken) - fc.Result = res - return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenSearchResult_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenSearchResult", - 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_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _APITokenUpdatePayload_apiToken(ctx context.Context, field graphql.CollectedField, obj *APITokenUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.APIToken, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.APIToken) - fc.Result = res - return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_APITokenUpdatePayload_apiToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "APITokenUpdatePayload", - 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_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_ActionPlan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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_ActionPlan_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - 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) _ActionPlan_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_standard(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_standard(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standard(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Standard) - fc.Result = res - return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_risk(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Risk(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Risk) - fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_control(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Control(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Control) - fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_user(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.User(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.User) - fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlan_program(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlan_program(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Program(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Program) - fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlan_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlan", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanBulkCreatePayload_actionPlans(ctx context.Context, field graphql.CollectedField, obj *ActionPlanBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActionPlans, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ActionPlan) - fc.Result = res - return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanBulkCreatePayload_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanBulkCreatePayload", - 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_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ActionPlanEdge) - fc.Result = res - return ec.marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ActionPlanEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ActionPlanEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanConnection", - 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) _ActionPlanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_ActionPlanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanConnection", - 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) _ActionPlanCreatePayload_actionPlan(ctx context.Context, field graphql.CollectedField, obj *ActionPlanCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanCreatePayload_actionPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActionPlan, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.ActionPlan) - fc.Result = res - return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanCreatePayload_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanCreatePayload", - 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_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ActionPlanDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanDeletePayload", - 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) _ActionPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.ActionPlan) - fc.Result = res - return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanEdge", - 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_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ActionPlanHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_ActionPlanHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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_ActionPlanHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistory_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - 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) _ActionPlanHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistory_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistoryConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ActionPlanHistoryEdge) - fc.Result = res - return ec.marshalOActionPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ActionPlanHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ActionPlanHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistoryConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistoryConnection", - 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) _ActionPlanHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistoryConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_ActionPlanHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistoryConnection", - 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) _ActionPlanHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistoryEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.ActionPlanHistory) - fc.Result = res - return ec.marshalOActionPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistoryEdge", - 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_ActionPlanHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_ActionPlanHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_ActionPlanHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_ActionPlanHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlanHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlanHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlanHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlanHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlanHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlanHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlanHistory_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlanHistory_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlanHistory_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlanHistory_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlanHistory_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlanHistory_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlanHistory_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlanHistory_details(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanHistoryEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanSearchResult_actionPlans(ctx context.Context, field graphql.CollectedField, obj *ActionPlanSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanSearchResult_actionPlans(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActionPlans, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ActionPlan) - fc.Result = res - return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanSearchResult_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanSearchResult", - 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_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ActionPlanUpdatePayload_actionPlan(ctx context.Context, field graphql.CollectedField, obj *ActionPlanUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ActionPlanUpdatePayload_actionPlan(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActionPlan, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.ActionPlan) - fc.Result = res - return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ActionPlanUpdatePayload_actionPlan(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ActionPlanUpdatePayload", - 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_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditLog_table(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_table(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Table, 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_AuditLog_table(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLog", - 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) _AuditLog_time(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_time(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Time, 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.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditLog_time(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLog", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditLog_id(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditLog_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLog", - 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) _AuditLog_operation(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, 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_AuditLog_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLog", - 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) _AuditLog_changes(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_changes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Changes, 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_AuditLog_changes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLog", - 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) _AuditLog_updatedBy(ctx context.Context, field graphql.CollectedField, obj *AuditLog) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLog_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOID2ᚖstring(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditLog_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLog", - 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) _AuditLogConnection_edges(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*AuditLogEdge) - fc.Result = res - return ec.marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditLogConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLogConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_AuditLogEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_AuditLogEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditLogEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditLogConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogConnection_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) (interface{}, 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.(*entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditLogConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLogConnection", - 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) _AuditLogConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *AuditLogConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_AuditLogConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLogConnection", - 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) _AuditLogEdge_node(ctx context.Context, field graphql.CollectedField, obj *AuditLogEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*AuditLog) - fc.Result = res - return ec.marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLog(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditLogEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLogEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "table": - return ec.fieldContext_AuditLog_table(ctx, field) - case "time": - return ec.fieldContext_AuditLog_time(ctx, field) - case "id": - return ec.fieldContext_AuditLog_id(ctx, field) - case "operation": - return ec.fieldContext_AuditLog_operation(ctx, field) - case "changes": - return ec.fieldContext_AuditLog_changes(ctx, field) - case "updatedBy": - return ec.fieldContext_AuditLog_updatedBy(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type AuditLog", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _AuditLogEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *AuditLogEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_AuditLogEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_AuditLogEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "AuditLogEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Contact_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_Contact_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, 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.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, 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_Contact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_title(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_company(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_company(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Company, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_email(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_phoneNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PhoneNumber, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_address(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_address(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Address, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - 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) _Contact_status(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, 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.(enums.UserStatus) - fc.Result = res - return ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContactUserStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_entities(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entities(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Entity) - fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Contact_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Contact_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Contact", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactBulkCreatePayload_contacts(ctx context.Context, field graphql.CollectedField, obj *ContactBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactBulkCreatePayload_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contacts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Contact) - fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactBulkCreatePayload_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactBulkCreatePayload", - 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_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ContactEdge) - fc.Result = res - return ec.marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ContactEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ContactEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactConnection", - 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) _ContactConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_ContactConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactConnection", - 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) _ContactCreatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *ContactCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactCreatePayload_contact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Contact) - fc.Result = res - return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactCreatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactCreatePayload", - 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_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ContactDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactDeletePayload", - 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) _ContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.Contact) - fc.Result = res - return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactEdge", - 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_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContactHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_ContactHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_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) (interface{}, 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_ContactHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_title(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_company(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_company(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Company, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_phoneNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.PhoneNumber, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_address(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_address(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Address, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - 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) _ContactHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistory_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) (interface{}, 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.(enums.UserStatus) - fc.Result = res - return ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ContactHistoryUserStatus does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ContactHistoryEdge) - fc.Result = res - return ec.marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ContactHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", - 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) _ContactHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_ContactHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistoryConnection", - 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) _ContactHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.ContactHistory) - fc.Result = res - return ec.marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistoryEdge", - 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_ContactHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_ContactHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_ContactHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_ContactHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_ContactHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ContactHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ContactHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ContactHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ContactHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ContactHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ContactHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ContactHistory_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_ContactHistory_fullName(ctx, field) - case "title": - return ec.fieldContext_ContactHistory_title(ctx, field) - case "company": - return ec.fieldContext_ContactHistory_company(ctx, field) - case "email": - return ec.fieldContext_ContactHistory_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_ContactHistory_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_ContactHistory_address(ctx, field) - case "status": - return ec.fieldContext_ContactHistory_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactHistoryEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactSearchResult_contacts(ctx context.Context, field graphql.CollectedField, obj *ContactSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactSearchResult_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contacts, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Contact) - fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactSearchResult_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactSearchResult", - 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_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ContactUpdatePayload_contact(ctx context.Context, field graphql.CollectedField, obj *ContactUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ContactUpdatePayload_contact(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contact, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Contact) - fc.Result = res - return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ContactUpdatePayload_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ContactUpdatePayload", - 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_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_id(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(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_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐ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 Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐ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 Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_createdBy(_ 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_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_updatedBy(_ 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_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_deletedAt(_ 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 Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_deletedBy(_ 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_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_tags(_ 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_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_ownerID(_ 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_name(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 *generated.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) (interface{}, 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.marshalOString2string(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 *generated.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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(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 String does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_controlType(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_controlType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlType, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_controlType(_ 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_version(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_version(_ 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_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_controlNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlNumber, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_controlNumber(_ 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_family(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_family(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Family, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_family(_ 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_class(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_class(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Class, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_class(_ 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_source(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_source(_ 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_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_satisfies(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Satisfies, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_satisfies(_ 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_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_mappedFrameworks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MappedFrameworks, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_mappedFrameworks(_ 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_details(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_details(_ 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 Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_blockedGroups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BlockedGroups(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_editors(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Editors(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_viewers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Viewers(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_procedures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Procedures(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Procedure) - fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_subcontrols(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subcontrols(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Subcontrol) - fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_controlObjectives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjectives(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ControlObjective) - fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_standard(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_standard(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standard(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Standard) - fc.Result = res - return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_narratives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Narratives(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Narrative) - fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Risks(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Risk) - fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_actionPlans(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActionPlans(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ActionPlan) - fc.Result = res - return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tasks(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Task) - fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Control_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Control_programs(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Program) - fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Control_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Control", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlBulkCreatePayload_controls(ctx context.Context, field graphql.CollectedField, obj *ControlBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlBulkCreatePayload_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Controls, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Control) - fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlBulkCreatePayload_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlBulkCreatePayload", - 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ControlEdge) - fc.Result = res - return ec.marshalOControlEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐ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 "node": - return ec.fieldContext_ControlEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ControlEdge_cursor(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 *generated.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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐ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) _ControlConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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: 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) _ControlCreatePayload_control(ctx context.Context, field graphql.CollectedField, obj *ControlCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlCreatePayload_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) (interface{}, 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.(*generated.Control) - fc.Result = res - return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlCreatePayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlCreatePayload", - 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ControlDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlDeletePayload", - 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) _ControlEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.Control) - fc.Result = res - return ec.marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐ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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(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 Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ControlHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_ControlHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, 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_ControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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_ControlHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_controlType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_controlType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlType, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_controlType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_controlNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlNumber, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_family(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Family, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_class(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Class, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_satisfies(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Satisfies, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_mappedFrameworks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MappedFrameworks, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - 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) _ControlHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistory_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistoryConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ControlHistoryEdge) - fc.Result = res - return ec.marshalOControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ControlHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ControlHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistoryConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistoryConnection", - 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) _ControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistoryConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_ControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistoryConnection", - 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) _ControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistoryEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.ControlHistory) - fc.Result = res - return ec.marshalOControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistoryEdge", - 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_ControlHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_ControlHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_ControlHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_ControlHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_ControlHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlHistory_name(ctx, field) - case "description": - return ec.fieldContext_ControlHistory_description(ctx, field) - case "status": - return ec.fieldContext_ControlHistory_status(ctx, field) - case "controlType": - return ec.fieldContext_ControlHistory_controlType(ctx, field) - case "version": - return ec.fieldContext_ControlHistory_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlHistory_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlHistory_family(ctx, field) - case "class": - return ec.fieldContext_ControlHistory_class(ctx, field) - case "source": - return ec.fieldContext_ControlHistory_source(ctx, field) - case "satisfies": - return ec.fieldContext_ControlHistory_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlHistory_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlHistory_details(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlHistoryEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_ControlObjective_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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_ControlObjective_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjectiveType, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_controlNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlNumber, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_family(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Family, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_class(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Class, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MappedFrameworks, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - 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) _ControlObjective_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.BlockedGroups(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_editors(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Editors(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_viewers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Viewers(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.InternalPolicies(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.InternalPolicy) - fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Controls(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Control) - fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_procedures(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Procedures(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Procedure) - fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_risks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Risks(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Risk) - fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_subcontrols(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subcontrols(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Subcontrol) - fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_standard(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_standard(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standard(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Standard) - fc.Result = res - return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_narratives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Narratives(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Narrative) - fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tasks(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Task) - fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjective_programs(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjective_programs(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Program) - fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjective_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjective", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveBulkCreatePayload_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjectives, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ControlObjective) - fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveBulkCreatePayload", - 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_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ControlObjectiveEdge) - fc.Result = res - return ec.marshalOControlObjectiveEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ControlObjectiveEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ControlObjectiveEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveConnection", - 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) _ControlObjectiveConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_ControlObjectiveConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveConnection", - 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) _ControlObjectiveCreatePayload_controlObjective(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveCreatePayload_controlObjective(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjective, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.ControlObjective) - fc.Result = res - return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveCreatePayload_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveCreatePayload", - 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_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveDeletePayload", - 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) _ControlObjectiveEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.ControlObjective) - fc.Result = res - return ec.marshalOControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveEdge", - 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_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ControlObjectiveHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_ControlObjectiveHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, 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_ControlObjectiveHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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_ControlObjectiveHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjectiveType, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_controlNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlNumber, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_family(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Family, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_class(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Class, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_mappedFrameworks(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.MappedFrameworks, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - 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) _ControlObjectiveHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistory_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.ControlObjectiveHistoryEdge) - fc.Result = res - return ec.marshalOControlObjectiveHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ControlObjectiveHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ControlObjectiveHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryConnection", - 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) _ControlObjectiveHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_ControlObjectiveHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryConnection", - 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) _ControlObjectiveHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistoryEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.ControlObjectiveHistory) - fc.Result = res - return ec.marshalOControlObjectiveHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryEdge", - 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_ControlObjectiveHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjectiveHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjectiveHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjectiveHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjectiveHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjectiveHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjectiveHistory_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjectiveHistory_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjectiveHistory_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjectiveHistory_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjectiveHistory_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjectiveHistory_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjectiveHistory_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjectiveHistory_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjectiveHistory_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjectiveHistory_details(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveHistoryEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveSearchResult_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveSearchResult_controlObjectives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjectives, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ControlObjective) - fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveSearchResult_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveSearchResult", - 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_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlObjectiveUpdatePayload_controlObjective(ctx context.Context, field graphql.CollectedField, obj *ControlObjectiveUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlObjectiveUpdatePayload_controlObjective(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjective, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.ControlObjective) - fc.Result = res - return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlObjectiveUpdatePayload_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlObjectiveUpdatePayload", - 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_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlSearchResult_controls(ctx context.Context, field graphql.CollectedField, obj *ControlSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlSearchResult_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Controls, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Control) - fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlSearchResult_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlSearchResult", - 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ControlUpdatePayload_control(ctx context.Context, field graphql.CollectedField, obj *ControlUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ControlUpdatePayload_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) (interface{}, 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.(*generated.Control) - fc.Result = res - return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ControlUpdatePayload_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ControlUpdatePayload", - 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - 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) _DocumentData_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - 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) _DocumentData_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - 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) _DocumentData_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_DocumentData_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - 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) _DocumentData_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - 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) _DocumentData_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, 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.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - 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) _DocumentData_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_templateID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TemplateID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - 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) _DocumentData_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_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) (interface{}, 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.(customtypes.JSONObject) - fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_template(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_template(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Template(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Template) - fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_entity(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_entity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entity(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Entity) - fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentData_files(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentData_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentData_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentData", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataBulkCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.DocumentData) - fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataBulkCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataBulkCreatePayload", - 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_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.DocumentDataEdge) - fc.Result = res - return ec.marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_DocumentDataEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_DocumentDataEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataConnection", - 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) _DocumentDataConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_DocumentDataConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataConnection", - 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) _DocumentDataCreatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.DocumentData) - fc.Result = res - return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataCreatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataCreatePayload", - 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_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *DocumentDataDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataDeletePayload", - 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) _DocumentDataEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.DocumentData) - fc.Result = res - return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataEdge", - 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_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_ref(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type DocumentDataHistoryOpType does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_DocumentDataHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_templateID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TemplateID, nil - }) - if err != nil { - ec.Error(ctx, 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_DocumentDataHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - 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) _DocumentDataHistory_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistory_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) (interface{}, 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.(customtypes.JSONObject) - fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistory_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.DocumentDataHistoryEdge) - fc.Result = res - return ec.marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_DocumentDataHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", - 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) _DocumentDataHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_DocumentDataHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryConnection", - 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) _DocumentDataHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryEdge_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(*generated.DocumentDataHistory) - fc.Result = res - return ec.marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistory(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryEdge", - 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_DocumentDataHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_DocumentDataHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_DocumentDataHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentDataHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentDataHistory_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentDataHistory_data(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistory", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataHistoryEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataSearchResult_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.DocumentData) - fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataSearchResult_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataSearchResult", - 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_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _DocumentDataUpdatePayload_documentData(ctx context.Context, field graphql.CollectedField, obj *DocumentDataUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DocumentData, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.DocumentData) - fc.Result = res - return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_DocumentDataUpdatePayload_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "DocumentDataUpdatePayload", - 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_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_id(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_deletedAt(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_Entity_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, 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.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_name(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_displayName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayName, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_description(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_domains(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_domains(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Domains, 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_Entity_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_entityTypeID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EntityTypeID, 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.marshalOID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_status(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - 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) _Entity_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Contacts(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Contact) - fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Documents(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.DocumentData) - fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Notes(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Note) - fc.Result = res - return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) - case "subcontrols": - return ec.fieldContext_Note_subcontrols(ctx, field) - case "program": - return ec.fieldContext_Note_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_files(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Entity_entityType(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Entity_entityType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EntityType(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.EntityType) - fc.Result = res - return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Entity_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Entity", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntityBulkCreatePayload_entities(ctx context.Context, field graphql.CollectedField, obj *EntityBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entities, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Entity) - fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntityBulkCreatePayload_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityBulkCreatePayload", - 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_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityConnection_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.([]*generated.EntityEdge) - fc.Result = res - return ec.marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EntityEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntityEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityEdge", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _EntityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityConnection_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) (interface{}, 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.(entgql.PageInfo[string]) - fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityConnection", - 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) _EntityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null +func (ec *executionContext) field_Query_userHistories_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserHistoryOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.UserHistoryOrder + return zeroVal, nil } - res := resTmp.(int) - fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_EntityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityConnection", - 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") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOUserHistoryOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryOrder(ctx, tmp) } - return fc, nil -} -func (ec *executionContext) _EntityCreatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *EntityCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityCreatePayload_entity(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Entity, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Entity) - fc.Result = res - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + var zeroVal *generated.UserHistoryOrder + return zeroVal, nil } -func (ec *executionContext) fieldContext_EntityCreatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityCreatePayload", - 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_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) - }, +func (ec *executionContext) field_Query_userHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserHistoryWhereInput + return zeroVal, nil } - return fc, nil -} -func (ec *executionContext) _EntityDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntityDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryWhereInput(ctx, tmp) } - res := resTmp.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_EntityDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityDeletePayload", - 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 + var zeroVal *generated.UserHistoryWhereInput + return zeroVal, nil } -func (ec *executionContext) _EntityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityEdge_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Node, nil - }) +func (ec *executionContext) field_Query_userSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSearch_argsQuery(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + return nil, err } - res := resTmp.(*generated.Entity) - fc.Result = res - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + args["query"] = arg0 + return args, nil } - -func (ec *executionContext) fieldContext_EntityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityEdge", - 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_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) - }, +func (ec *executionContext) field_Query_userSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil } - return fc, nil -} -func (ec *executionContext) _EntityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityEdge_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) (interface{}, 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 + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_EntityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil + var zeroVal string + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ID, nil - }) +func (ec *executionContext) field_Query_userSettingHistories_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSettingHistories_argsAfter(ctx, rawArgs) if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntityHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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 nil, err } - return fc, nil -} - -func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_historyTime(ctx, field) + args["after"] = arg0 + arg1, err := ec.field_Query_userSettingHistories_argsFirst(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil - }) + args["first"] = arg1 + arg2, err := ec.field_Query_userSettingHistories_argsBefore(ctx, rawArgs) if err != nil { - ec.Error(ctx, 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntityHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, + return nil, err } - return fc, nil -} - -func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_ref(ctx, field) + args["before"] = arg2 + arg3, err := ec.field_Query_userSettingHistories_argsLast(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Ref, nil - }) + args["last"] = arg3 + arg4, err := ec.field_Query_userSettingHistories_argsWhere(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntityHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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 nil, err } - return fc, nil + args["where"] = arg4 + return args, nil } - -func (ec *executionContext) _EntityHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_operation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Operation, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null +func (ec *executionContext) field_Query_userSettingHistories_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - res := resTmp.(history.OpType) - fc.Result = res - return ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_EntityHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EntityHistoryOpType does not have child fields") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - return fc, nil -} -func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } -func (ec *executionContext) fieldContext_EntityHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, +func (ec *executionContext) field_Query_userSettingHistories_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - return fc, nil -} -func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_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) (interface{}, 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 { - return graphql.Null + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_EntityHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_createdBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null +func (ec *executionContext) field_Query_userSettingHistories_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} -func (ec *executionContext) fieldContext_EntityHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - return fc, nil + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_updatedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null +func (ec *executionContext) field_Query_userSettingHistories_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil } - if resTmp == nil { - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) fieldContext_EntityHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, +func (ec *executionContext) field_Query_userSettingHistories_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserSettingHistoryWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserSettingHistoryWhereInput + return zeroVal, nil } - return fc, nil -} -func (ec *executionContext) _EntityHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_deletedAt(ctx, field) - if err != nil { - return graphql.Null + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryWhereInput(ctx, tmp) } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil - }) + + var zeroVal *generated.UserSettingHistoryWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettingSearch_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSettingSearch_argsQuery(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + return nil, err } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + args["query"] = arg0 + return args, nil } +func (ec *executionContext) field_Query_userSettingSearch_argsQuery( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["query"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) fieldContext_EntityHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("query")) + if tmp, ok := rawArgs["query"]; ok { + return ec.unmarshalNString2string(ctx, tmp) } - return fc, nil + + var zeroVal string + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_deletedBy(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil - }) +func (ec *executionContext) field_Query_userSetting_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSetting_argsID(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + return nil, err } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + args["id"] = arg0 + return args, nil } +func (ec *executionContext) field_Query_userSetting_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) fieldContext_EntityHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) } - return fc, nil + + var zeroVal string + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_tags(ctx, field) +func (ec *executionContext) field_Query_userSettings_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_userSettings_argsAfter(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, nil - }) + args["after"] = arg0 + arg1, err := ec.field_Query_userSettings_argsFirst(ctx, rawArgs) 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_EntityHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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 nil, err } - return fc, nil -} - -func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_ownerID(ctx, field) + args["first"] = arg1 + arg2, err := ec.field_Query_userSettings_argsBefore(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) + args["before"] = arg2 + arg3, err := ec.field_Query_userSettings_argsLast(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null + return nil, err } - if resTmp == nil { - return graphql.Null + args["last"] = arg3 + arg4, err := ec.field_Query_userSettings_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + args["where"] = arg4 + return args, nil } +func (ec *executionContext) field_Query_userSettings_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } -func (ec *executionContext) fieldContext_EntityHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - return fc, nil + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Name, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null +func (ec *executionContext) field_Query_userSettings_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - if resTmp == nil { - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) fieldContext_EntityHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, +func (ec *executionContext) field_Query_userSettings_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - return fc, nil -} -func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_displayName(ctx, field) - if err != nil { - return graphql.Null + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil +} + +func (ec *executionContext) field_Query_userSettings_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil } - if resTmp == nil { - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) fieldContext_EntityHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, +func (ec *executionContext) field_Query_userSettings_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserSettingWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserSettingWhereInput + return zeroVal, nil } - return fc, nil -} -func (ec *executionContext) _EntityHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_description(ctx, field) - if err != nil { - return graphql.Null + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingWhereInput(ctx, tmp) } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Description, nil - }) + + var zeroVal *generated.UserSettingWhereInput + return zeroVal, nil +} + +func (ec *executionContext) field_Query_user_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_user_argsID(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + return nil, err } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + args["id"] = arg0 + return args, nil } +func (ec *executionContext) field_Query_user_argsID( + ctx context.Context, + rawArgs map[string]interface{}, +) (string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["id"] + if !ok { + var zeroVal string + return zeroVal, nil + } -func (ec *executionContext) fieldContext_EntityHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("id")) + if tmp, ok := rawArgs["id"]; ok { + return ec.unmarshalNID2string(ctx, tmp) } - return fc, nil + + var zeroVal string + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_domains(ctx, field) +func (ec *executionContext) field_Query_users_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.field_Query_users_argsAfter(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Domains, nil - }) + args["after"] = arg0 + arg1, err := ec.field_Query_users_argsFirst(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null + return nil, err } - res := resTmp.([]string) - fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_EntityHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, + args["first"] = arg1 + arg2, err := ec.field_Query_users_argsBefore(ctx, rawArgs) + if err != nil { + return nil, err } - return fc, nil -} - -func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_entityTypeID(ctx, field) + args["before"] = arg2 + arg3, err := ec.field_Query_users_argsLast(ctx, rawArgs) if err != nil { - return graphql.Null + return nil, err } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.EntityTypeID, nil - }) + args["last"] = arg3 + arg4, err := ec.field_Query_users_argsOrderBy(ctx, rawArgs) if err != nil { - ec.Error(ctx, err) - return graphql.Null + return nil, err } - if resTmp == nil { - return graphql.Null + args["orderBy"] = arg4 + arg5, err := ec.field_Query_users_argsWhere(ctx, rawArgs) + if err != nil { + return nil, err } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + args["where"] = arg5 + return args, nil } +func (ec *executionContext) field_Query_users_argsAfter( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["after"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil + } -func (ec *executionContext) fieldContext_EntityHistory_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) + if tmp, ok := rawArgs["after"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) } - return fc, nil + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } -func (ec *executionContext) _EntityHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistory_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Status, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null +func (ec *executionContext) field_Query_users_argsFirst( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["first"] + if !ok { + var zeroVal *int + return zeroVal, nil } - if resTmp == nil { - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("first")) + if tmp, ok := rawArgs["first"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + + var zeroVal *int + return zeroVal, nil } -func (ec *executionContext) fieldContext_EntityHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistory", - 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") - }, +func (ec *executionContext) field_Query_users_argsBefore( + ctx context.Context, + rawArgs map[string]interface{}, +) (*entgql.Cursor[string], error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["before"] + if !ok { + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } - return fc, nil + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) + if tmp, ok := rawArgs["before"]; ok { + return ec.unmarshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, tmp) + } + + var zeroVal *entgql.Cursor[string] + return zeroVal, nil } -func (ec *executionContext) _EntityHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryConnection_edges(ctx, field) - if err != nil { - return graphql.Null +func (ec *executionContext) field_Query_users_argsLast( + ctx context.Context, + rawArgs map[string]interface{}, +) (*int, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["last"] + if !ok { + var zeroVal *int + return zeroVal, nil } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Edges, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("last")) + if tmp, ok := rawArgs["last"]; ok { + return ec.unmarshalOInt2ᚖint(ctx, tmp) } - if resTmp == nil { - return graphql.Null + + var zeroVal *int + return zeroVal, nil +} + +func (ec *executionContext) field_Query_users_argsOrderBy( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserOrder, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["orderBy"] + if !ok { + var zeroVal *generated.UserOrder + return zeroVal, nil } - res := resTmp.([]*generated.EntityHistoryEdge) - fc.Result = res - return ec.marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx, field.Selections, res) + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("orderBy")) + if tmp, ok := rawArgs["orderBy"]; ok { + return ec.unmarshalOUserOrder2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserOrder(ctx, tmp) + } + + var zeroVal *generated.UserOrder + return zeroVal, nil } -func (ec *executionContext) fieldContext_EntityHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EntityHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityHistoryEdge", field.Name) - }, +func (ec *executionContext) field_Query_users_argsWhere( + ctx context.Context, + rawArgs map[string]interface{}, +) (*generated.UserWhereInput, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["where"] + if !ok { + var zeroVal *generated.UserWhereInput + return zeroVal, nil } - return fc, nil + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("where")) + if tmp, ok := rawArgs["where"]; ok { + return ec.unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx, tmp) + } + + var zeroVal *generated.UserWhereInput + return zeroVal, nil } -func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _APIToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_id(ctx, field) if err != nil { return graphql.Null } @@ -94286,7 +13566,7 @@ func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -94298,36 +13578,26 @@ func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Contex } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", + Object: "APIToken", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _APIToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -94340,38 +13610,35 @@ func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryConnection", + Object: "APIToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryEdge_node(ctx, field) +func (ec *executionContext) _APIToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -94384,7 +13651,7 @@ func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -94393,64 +13660,26 @@ func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EntityHistory) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistory(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryEdge", + Object: "APIToken", 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_EntityHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EntityHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EntityHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EntityHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_EntityHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityHistory_name(ctx, field) - case "displayName": - return ec.fieldContext_EntityHistory_displayName(ctx, field) - case "description": - return ec.fieldContext_EntityHistory_description(ctx, field) - case "domains": - return ec.fieldContext_EntityHistory_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_EntityHistory_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_EntityHistory_status(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityHistory", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _APIToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -94463,38 +13692,35 @@ func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityHistoryEdge", + Object: "APIToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, field graphql.CollectedField, obj *EntitySearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntitySearchResult_entities(ctx, field) +func (ec *executionContext) _APIToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -94507,7 +13733,7 @@ func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entities, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -94516,70 +13742,26 @@ func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntitySearchResult_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntitySearchResult", + Object: "APIToken", 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_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_id(ctx, field) +func (ec *executionContext) _APIToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -94592,38 +13774,35 @@ func (ec *executionContext) _EntityType_id(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_createdAt(ctx, field) +func (ec *executionContext) _APIToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -94636,7 +13815,7 @@ func (ec *executionContext) _EntityType_createdAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -94645,26 +13824,26 @@ func (ec *executionContext) _EntityType_createdAt(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_updatedAt(ctx, field) +func (ec *executionContext) _APIToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_tags(ctx, field) if err != nil { return graphql.Null } @@ -94677,7 +13856,7 @@ func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -94686,26 +13865,26 @@ func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } - -func (ec *executionContext) _EntityType_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_createdBy(ctx, field) + +func (ec *executionContext) _APIToken_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -94718,7 +13897,7 @@ func (ec *executionContext) _EntityType_createdBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -94729,24 +13908,24 @@ func (ec *executionContext) _EntityType_createdBy(ctx context.Context, field gra } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_updatedBy(ctx, field) +func (ec *executionContext) _APIToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_name(ctx, field) if err != nil { return graphql.Null } @@ -94759,23 +13938,26 @@ func (ec *executionContext) _EntityType_updatedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", Field: field, IsMethod: false, IsResolver: false, @@ -94786,8 +13968,8 @@ func (ec *executionContext) fieldContext_EntityType_updatedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _EntityType_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_deletedAt(ctx, field) +func (ec *executionContext) _APIToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_token(ctx, field) if err != nil { return graphql.Null } @@ -94800,35 +13982,38 @@ func (ec *executionContext) _EntityType_deletedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Token, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_deletedBy(ctx, field) +func (ec *executionContext) _APIToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_expiresAt(ctx, field) if err != nil { return graphql.Null } @@ -94841,7 +14026,7 @@ func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.ExpiresAt, nil }) if err != nil { ec.Error(ctx, err) @@ -94850,26 +14035,26 @@ func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_tags(ctx, field) +func (ec *executionContext) _APIToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_description(ctx, field) if err != nil { return graphql.Null } @@ -94882,7 +14067,7 @@ func (ec *executionContext) _EntityType_tags(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -94891,14 +14076,14 @@ func (ec *executionContext) _EntityType_tags(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", Field: field, IsMethod: false, IsResolver: false, @@ -94909,8 +14094,8 @@ func (ec *executionContext) fieldContext_EntityType_tags(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_ownerID(ctx, field) +func (ec *executionContext) _APIToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_scopes(ctx, field) if err != nil { return graphql.Null } @@ -94923,7 +14108,7 @@ func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Scopes, nil }) if err != nil { ec.Error(ctx, err) @@ -94932,26 +14117,26 @@ func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_name(ctx, field) +func (ec *executionContext) _APIToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_lastUsedAt(ctx, field) if err != nil { return graphql.Null } @@ -94964,38 +14149,35 @@ func (ec *executionContext) _EntityType_name(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.LastUsedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityType_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_owner(ctx, field) +func (ec *executionContext) _APIToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.APIToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APIToken_owner(ctx, field) if err != nil { return graphql.Null } @@ -95022,9 +14204,9 @@ func (ec *executionContext) _EntityType_owner(ctx context.Context, field graphql return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APIToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APIToken", Field: field, IsMethod: true, IsResolver: false, @@ -95143,8 +14325,8 @@ func (ec *executionContext) fieldContext_EntityType_owner(_ context.Context, fie return fc, nil } -func (ec *executionContext) _EntityType_entities(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityType_entities(ctx, field) +func (ec *executionContext) _APITokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -95157,7 +14339,7 @@ func (ec *executionContext) _EntityType_entities(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entities(ctx) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -95166,70 +14348,32 @@ func (ec *executionContext) _EntityType_entities(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.([]*generated.APITokenEdge) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalOAPITokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityType_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APITokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityType", + Object: "APITokenConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + case "node": + return ec.fieldContext_APITokenEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_APITokenEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type APITokenEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeBulkCreatePayload_entityTypes(ctx context.Context, field graphql.CollectedField, obj *EntityTypeBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) +func (ec *executionContext) _APITokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -95242,61 +14386,167 @@ func (ec *executionContext) _EntityTypeBulkCreatePayload_entityTypes(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityTypes, nil + 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.([]*generated.EntityType) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenConnection", + 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) _APITokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenConnection_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, 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_APITokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenConnection", + 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) _APITokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenEdge_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(*generated.APIToken) + fc.Result = res + return ec.marshalOAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeBulkCreatePayload_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APITokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeBulkCreatePayload", + Object: "APITokenEdge", 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_EntityType_id(ctx, field) + return ec.fieldContext_APIToken_id(ctx, field) case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) + return ec.fieldContext_APIToken_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) + return ec.fieldContext_APIToken_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) + return ec.fieldContext_APIToken_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) + return ec.fieldContext_APIToken_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) + return ec.fieldContext_APIToken_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) + return ec.fieldContext_APIToken_deletedBy(ctx, field) case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) + return ec.fieldContext_APIToken_tags(ctx, field) case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) + return ec.fieldContext_APIToken_ownerID(ctx, field) case "name": - return ec.fieldContext_EntityType_name(ctx, field) + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) + return ec.fieldContext_APIToken_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeConnection_edges(ctx, field) +func (ec *executionContext) _APITokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.APITokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -95309,41 +14559,38 @@ func (ec *executionContext) _EntityTypeConnection_edges(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*generated.EntityTypeEdge) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_APITokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeConnection", + Object: "APITokenEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EntityTypeEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntityTypeEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeEdge", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) +func (ec *executionContext) _ActionPlan_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_id(ctx, field) if err != nil { return graphql.Null } @@ -95356,7 +14603,7 @@ func (ec *executionContext) _EntityTypeConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -95368,36 +14615,26 @@ func (ec *executionContext) _EntityTypeConnection_pageInfo(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeConnection", + Object: "ActionPlan", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) +func (ec *executionContext) _ActionPlan_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -95410,38 +14647,35 @@ func (ec *executionContext) _EntityTypeConnection_totalCount(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeConnection", + Object: "ActionPlan", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeCreatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *EntityTypeCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) +func (ec *executionContext) _ActionPlan_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -95454,64 +14688,35 @@ func (ec *executionContext) _EntityTypeCreatePayload_entityType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityType, nil + 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.(*generated.EntityType) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeCreatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeCreatePayload", + Object: "ActionPlan", 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_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EntityTypeDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _ActionPlan_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -95524,38 +14729,35 @@ func (ec *executionContext) _EntityTypeDeletePayload_deletedID(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeDeletePayload", + Object: "ActionPlan", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeEdge_node(ctx, field) +func (ec *executionContext) _ActionPlan_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -95568,7 +14770,7 @@ func (ec *executionContext) _EntityTypeEdge_node(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -95577,52 +14779,26 @@ func (ec *executionContext) _EntityTypeEdge_node(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EntityType) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeEdge", + Object: "ActionPlan", 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_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeEdge_cursor(ctx, field) +func (ec *executionContext) _ActionPlan_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -95635,38 +14811,35 @@ func (ec *executionContext) _EntityTypeEdge_cursor(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeEdge", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_id(ctx, field) +func (ec *executionContext) _ActionPlan_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -95679,38 +14852,35 @@ func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) +func (ec *executionContext) _ActionPlan_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_tags(ctx, field) if err != nil { return graphql.Null } @@ -95723,38 +14893,35 @@ func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_ref(ctx, field) +func (ec *executionContext) _ActionPlan_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_name(ctx, field) if err != nil { return graphql.Null } @@ -95767,23 +14934,26 @@ func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, @@ -95794,8 +14964,8 @@ func (ec *executionContext) fieldContext_EntityTypeHistory_ref(_ context.Context return fc, nil } -func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_operation(ctx, field) +func (ec *executionContext) _ActionPlan_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_description(ctx, field) if err != nil { return graphql.Null } @@ -95808,38 +14978,35 @@ func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + 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.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EntityTypeHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) +func (ec *executionContext) _ActionPlan_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_status(ctx, field) if err != nil { return graphql.Null } @@ -95852,7 +15019,7 @@ func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -95861,26 +15028,26 @@ func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) +func (ec *executionContext) _ActionPlan_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_dueDate(ctx, field) if err != nil { return graphql.Null } @@ -95893,7 +15060,7 @@ func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DueDate, nil }) if err != nil { ec.Error(ctx, err) @@ -95907,9 +15074,9 @@ func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, fi return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, @@ -95920,8 +15087,8 @@ func (ec *executionContext) fieldContext_EntityTypeHistory_updatedAt(_ context.C return fc, nil } -func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) +func (ec *executionContext) _ActionPlan_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_priority(ctx, field) if err != nil { return graphql.Null } @@ -95934,7 +15101,7 @@ func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Priority, nil }) if err != nil { ec.Error(ctx, err) @@ -95948,9 +15115,9 @@ func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, @@ -95961,8 +15128,8 @@ func (ec *executionContext) fieldContext_EntityTypeHistory_createdBy(_ context.C return fc, nil } -func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) +func (ec *executionContext) _ActionPlan_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_source(ctx, field) if err != nil { return graphql.Null } @@ -95975,7 +15142,7 @@ func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -95989,9 +15156,9 @@ func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, @@ -96002,8 +15169,8 @@ func (ec *executionContext) fieldContext_EntityTypeHistory_updatedBy(_ context.C return fc, nil } -func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) +func (ec *executionContext) _ActionPlan_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_details(ctx, field) if err != nil { return graphql.Null } @@ -96016,7 +15183,7 @@ func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -96025,26 +15192,438 @@ func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_standard(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_standard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standard(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Standard) + fc.Result = res + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_risk(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Risk(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Risk) + fc.Result = res + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + 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 "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_control(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Control(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + 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 "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlan_user(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.User(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.User) + fc.Result = res + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlan_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlan", + Field: field, + IsMethod: true, + 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 "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) +func (ec *executionContext) _ActionPlan_program(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlan) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlan_program(ctx, field) if err != nil { return graphql.Null } @@ -96057,7 +15636,7 @@ func (ec *executionContext) _EntityTypeHistory_deletedBy(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Program(ctx) }) if err != nil { ec.Error(ctx, err) @@ -96066,26 +15645,98 @@ func (ec *executionContext) _EntityTypeHistory_deletedBy(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlan_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlan", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_tags(ctx, field) +func (ec *executionContext) _ActionPlanConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -96098,7 +15749,7 @@ func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -96107,26 +15758,32 @@ func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.ActionPlanEdge) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlanConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_ActionPlanEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ActionPlanEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlanEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) +func (ec *executionContext) _ActionPlanConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -96139,35 +15796,48 @@ func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlanConnection", 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") + 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) _EntityTypeHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistory_name(ctx, field) +func (ec *executionContext) _ActionPlanConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -96180,7 +15850,7 @@ func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -96192,26 +15862,26 @@ func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field g } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistory", + Object: "ActionPlanConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) +func (ec *executionContext) _ActionPlanEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -96224,7 +15894,7 @@ func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -96233,32 +15903,68 @@ func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntityTypeHistoryEdge) + res := resTmp.(*generated.ActionPlan) fc.Result = res - return ec.marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", + Object: "ActionPlanEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _ActionPlanEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -96271,7 +15977,7 @@ func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -96283,36 +15989,26 @@ func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Co } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", + Object: "ActionPlanEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _ActionPlanHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -96325,7 +16021,7 @@ func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -96337,26 +16033,26 @@ func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context. } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryConnection", + Object: "ActionPlanHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) +func (ec *executionContext) _ActionPlanHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -96369,63 +16065,38 @@ func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.EntityTypeHistory) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistory(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryEdge", + Object: "ActionPlanHistory", 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_EntityTypeHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EntityTypeHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EntityTypeHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityTypeHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityTypeHistory_name(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistory", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _ActionPlanHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -96438,38 +16109,35 @@ func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeHistoryEdge", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeSearchResult_entityTypes(ctx context.Context, field graphql.CollectedField, obj *EntityTypeSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) +func (ec *executionContext) _ActionPlanHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -96482,61 +16150,38 @@ func (ec *executionContext) _EntityTypeSearchResult_entityTypes(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityTypes, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.EntityType) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) + return ec.marshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeSearchResult_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeSearchResult", + Object: "ActionPlanHistory", 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_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type ActionPlanHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityTypeUpdatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *EntityTypeUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) +func (ec *executionContext) _ActionPlanHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -96549,64 +16194,35 @@ func (ec *executionContext) _EntityTypeUpdatePayload_entityType(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityType, nil + 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.(*generated.EntityType) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityTypeUpdatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityTypeUpdatePayload", + Object: "ActionPlanHistory", 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_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EntityUpdatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *EntityUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EntityUpdatePayload_entity(ctx, field) +func (ec *executionContext) _ActionPlanHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -96619,82 +16235,35 @@ func (ec *executionContext) _EntityUpdatePayload_entity(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity, nil + 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.(*generated.Entity) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EntityUpdatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EntityUpdatePayload", + Object: "ActionPlanHistory", 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_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_id(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_id(ctx, field) +func (ec *executionContext) _ActionPlanHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -96707,38 +16276,35 @@ func (ec *executionContext) _Event_id(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_createdAt(ctx, field) +func (ec *executionContext) _ActionPlanHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -96751,7 +16317,7 @@ func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -96760,26 +16326,26 @@ func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_updatedAt(ctx, field) +func (ec *executionContext) _ActionPlanHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -96792,7 +16358,7 @@ func (ec *executionContext) _Event_updatedAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -96806,9 +16372,9 @@ func (ec *executionContext) _Event_updatedAt(ctx context.Context, field graphql. return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96819,8 +16385,8 @@ func (ec *executionContext) fieldContext_Event_updatedAt(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_createdBy(ctx, field) +func (ec *executionContext) _ActionPlanHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -96833,7 +16399,7 @@ func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -96847,9 +16413,9 @@ func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96860,8 +16426,8 @@ func (ec *executionContext) fieldContext_Event_createdBy(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_updatedBy(ctx, field) +func (ec *executionContext) _ActionPlanHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -96874,7 +16440,7 @@ func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -96883,14 +16449,14 @@ func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96901,8 +16467,8 @@ func (ec *executionContext) fieldContext_Event_updatedBy(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Event_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_tags(ctx, field) +func (ec *executionContext) _ActionPlanHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -96915,23 +16481,26 @@ func (ec *executionContext) _Event_tags(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96942,8 +16511,8 @@ func (ec *executionContext) fieldContext_Event_tags(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_eventID(ctx, field) +func (ec *executionContext) _ActionPlanHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -96956,7 +16525,7 @@ func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -96970,9 +16539,9 @@ func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.Co return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, @@ -96983,8 +16552,8 @@ func (ec *executionContext) fieldContext_Event_eventID(_ context.Context, field return fc, nil } -func (ec *executionContext) _Event_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_correlationID(ctx, field) +func (ec *executionContext) _ActionPlanHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -96997,7 +16566,7 @@ func (ec *executionContext) _Event_correlationID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CorrelationID, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -97011,9 +16580,9 @@ func (ec *executionContext) _Event_correlationID(ctx context.Context, field grap return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, @@ -97024,8 +16593,8 @@ func (ec *executionContext) fieldContext_Event_correlationID(_ context.Context, return fc, nil } -func (ec *executionContext) _Event_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_eventType(ctx, field) +func (ec *executionContext) _ActionPlanHistory_dueDate(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_dueDate(ctx, field) if err != nil { return graphql.Null } @@ -97038,38 +16607,35 @@ func (ec *executionContext) _Event_eventType(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventType, nil + return obj.DueDate, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_dueDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_metadata(ctx, field) +func (ec *executionContext) _ActionPlanHistory_priority(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_priority(ctx, field) if err != nil { return graphql.Null } @@ -97082,7 +16648,7 @@ func (ec *executionContext) _Event_metadata(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + return obj.Priority, nil }) if err != nil { ec.Error(ctx, err) @@ -97091,26 +16657,26 @@ func (ec *executionContext) _Event_metadata(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_priority(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_user(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_user(ctx, field) +func (ec *executionContext) _ActionPlanHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_source(ctx, field) if err != nil { return graphql.Null } @@ -97123,7 +16689,7 @@ func (ec *executionContext) _Event_user(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -97132,100 +16698,26 @@ func (ec *executionContext) _Event_user(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.(string) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_group(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_group(ctx, field) +func (ec *executionContext) _ActionPlanHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -97238,7 +16730,7 @@ func (ec *executionContext) _Event_group(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -97247,128 +16739,26 @@ func (ec *executionContext) _Event_group(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_integration(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_integration(ctx, field) +func (ec *executionContext) _ActionPlanHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -97381,7 +16771,7 @@ func (ec *executionContext) _Event_integration(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integration(ctx) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -97390,58 +16780,32 @@ func (ec *executionContext) _Event_integration(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.([]*generated.ActionPlanHistoryEdge) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOActionPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) + case "node": + return ec.fieldContext_ActionPlanHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ActionPlanHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_organization(ctx, field) +func (ec *executionContext) _ActionPlanHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -97454,143 +16818,48 @@ func (ec *executionContext) _Event_organization(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + 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.([]*generated.Organization) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + Object: "ActionPlanHistoryConnection", + 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 Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_invite(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_invite(ctx, field) +func (ec *executionContext) _ActionPlanHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -97603,69 +16872,38 @@ func (ec *executionContext) _Event_invite(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invite(ctx) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Invite) + res := resTmp.(int) fc.Result = res - return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_personalAccessToken(ctx, field) +func (ec *executionContext) _ActionPlanHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -97678,7 +16916,7 @@ func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessToken(ctx) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -97687,62 +16925,64 @@ func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.PersonalAccessToken) + res := resTmp.(*generated.ActionPlanHistory) fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) + return ec.marshalOActionPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistoryEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) + return ec.fieldContext_ActionPlanHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ActionPlanHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ActionPlanHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ActionPlanHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + return ec.fieldContext_ActionPlanHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + return ec.fieldContext_ActionPlanHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + return ec.fieldContext_ActionPlanHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + return ec.fieldContext_ActionPlanHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + return ec.fieldContext_ActionPlanHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + return ec.fieldContext_ActionPlanHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + return ec.fieldContext_ActionPlanHistory_tags(ctx, field) case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + return ec.fieldContext_ActionPlanHistory_name(ctx, field) case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + return ec.fieldContext_ActionPlanHistory_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlanHistory_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlanHistory_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlanHistory_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlanHistory_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlanHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _Event_hush(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_hush(ctx, field) +func (ec *executionContext) _ActionPlanHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ActionPlanHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -97755,65 +16995,38 @@ func (ec *executionContext) _Event_hush(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hush(ctx) + 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.([]*generated.Hush) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ActionPlanHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "ActionPlanHistoryEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_orgmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_orgmembership(ctx, field) +func (ec *executionContext) _Contact_id(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_id(ctx, field) if err != nil { return graphql.Null } @@ -97826,63 +17039,38 @@ func (ec *executionContext) _Event_orgmembership(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Orgmembership(ctx) + 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.([]*generated.OrgMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_orgmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Contact", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_groupmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_groupmembership(ctx, field) +func (ec *executionContext) _Contact_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -97895,7 +17083,7 @@ func (ec *executionContext) _Event_groupmembership(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Groupmembership(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -97904,54 +17092,26 @@ func (ec *executionContext) _Event_groupmembership(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembership) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_groupmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Contact", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_subscriber(ctx, field) +func (ec *executionContext) _Contact_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -97964,7 +17124,7 @@ func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subscriber(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -97973,60 +17133,26 @@ func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subscriber) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Contact", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Event_file(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Event_file(ctx, field) +func (ec *executionContext) _Contact_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -98039,7 +17165,7 @@ func (ec *executionContext) _Event_file(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.File(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -98048,92 +17174,26 @@ func (ec *executionContext) _Event_file(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(string) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Event_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Event", + Object: "Contact", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, field graphql.CollectedField, obj *EventBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventBulkCreatePayload_events(ctx, field) +func (ec *executionContext) _Contact_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -98146,7 +17206,7 @@ func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -98155,70 +17215,26 @@ func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventBulkCreatePayload_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventBulkCreatePayload", + Object: "Contact", 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_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventConnection_edges(ctx, field) +func (ec *executionContext) _Contact_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -98231,7 +17247,7 @@ func (ec *executionContext) _EventConnection_edges(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -98240,32 +17256,26 @@ func (ec *executionContext) _EventConnection_edges(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EventEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventConnection", + Object: "Contact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EventEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EventEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventConnection_pageInfo(ctx, field) +func (ec *executionContext) _Contact_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -98278,48 +17288,35 @@ func (ec *executionContext) _EventConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventConnection", + Object: "Contact", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventConnection_totalCount(ctx, field) +func (ec *executionContext) _Contact_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_tags(ctx, field) if err != nil { return graphql.Null } @@ -98332,38 +17329,35 @@ func (ec *executionContext) _EventConnection_totalCount(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventConnection", + Object: "Contact", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventCreatePayload_event(ctx context.Context, field graphql.CollectedField, obj *EventCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventCreatePayload_event(ctx, field) +func (ec *executionContext) _Contact_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -98376,82 +17370,35 @@ func (ec *executionContext) _EventCreatePayload_event(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Event, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventCreatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventCreatePayload", + Object: "Contact", 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_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *EventDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Contact_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_fullName(ctx, field) if err != nil { return graphql.Null } @@ -98464,7 +17411,7 @@ func (ec *executionContext) _EventDeletePayload_deletedID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.FullName, nil }) if err != nil { ec.Error(ctx, err) @@ -98478,24 +17425,24 @@ func (ec *executionContext) _EventDeletePayload_deletedID(ctx context.Context, f } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventDeletePayload", + Object: "Contact", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventEdge_node(ctx, field) +func (ec *executionContext) _Contact_title(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_title(ctx, field) if err != nil { return graphql.Null } @@ -98508,7 +17455,7 @@ func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Title, nil }) if err != nil { ec.Error(ctx, err) @@ -98517,70 +17464,26 @@ func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventEdge", + Object: "Contact", 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_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventEdge_cursor(ctx, field) +func (ec *executionContext) _Contact_company(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_company(ctx, field) if err != nil { return graphql.Null } @@ -98593,38 +17496,35 @@ func (ec *executionContext) _EventEdge_cursor(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Company, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventEdge", + Object: "Contact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_id(ctx, field) +func (ec *executionContext) _Contact_email(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_email(ctx, field) if err != nil { return graphql.Null } @@ -98637,38 +17537,35 @@ func (ec *executionContext) _EventHistory_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "Contact", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_historyTime(ctx, field) +func (ec *executionContext) _Contact_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_phoneNumber(ctx, field) if err != nil { return graphql.Null } @@ -98681,38 +17578,35 @@ func (ec *executionContext) _EventHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.PhoneNumber, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "Contact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_ref(ctx, field) +func (ec *executionContext) _Contact_address(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_address(ctx, field) if err != nil { return graphql.Null } @@ -98725,7 +17619,7 @@ func (ec *executionContext) _EventHistory_ref(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Address, nil }) if err != nil { ec.Error(ctx, err) @@ -98739,9 +17633,9 @@ func (ec *executionContext) _EventHistory_ref(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "Contact", Field: field, IsMethod: false, IsResolver: false, @@ -98752,8 +17646,8 @@ func (ec *executionContext) fieldContext_EventHistory_ref(_ context.Context, fie return fc, nil } -func (ec *executionContext) _EventHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_operation(ctx, field) +func (ec *executionContext) _Contact_status(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_status(ctx, field) if err != nil { return graphql.Null } @@ -98766,7 +17660,7 @@ func (ec *executionContext) _EventHistory_operation(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -98778,26 +17672,26 @@ func (ec *executionContext) _EventHistory_operation(ctx context.Context, field g } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(enums.UserStatus) fc.Result = res - return ec.marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "Contact", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type EventHistoryOpType does not have child fields") + return nil, errors.New("field of type ContactUserStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_createdAt(ctx, field) +func (ec *executionContext) _Contact_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_owner(ctx, field) if err != nil { return graphql.Null } @@ -98810,7 +17704,7 @@ func (ec *executionContext) _EventHistory_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -98819,26 +17713,134 @@ func (ec *executionContext) _EventHistory_createdAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "Contact", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_updatedAt(ctx, field) +func (ec *executionContext) _Contact_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_entities(ctx, field) if err != nil { return graphql.Null } @@ -98851,7 +17853,7 @@ func (ec *executionContext) _EventHistory_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Entities(ctx) }) if err != nil { ec.Error(ctx, err) @@ -98860,26 +17862,70 @@ func (ec *executionContext) _EventHistory_updatedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Entity) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "Contact", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_createdBy(ctx, field) +func (ec *executionContext) _Contact_files(ctx context.Context, field graphql.CollectedField, obj *generated.Contact) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Contact_files(ctx, field) if err != nil { return graphql.Null } @@ -98892,7 +17938,7 @@ func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -98901,26 +17947,92 @@ func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Contact_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "Contact", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_updatedBy(ctx, field) +func (ec *executionContext) _ContactConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -98933,7 +18045,7 @@ func (ec *executionContext) _EventHistory_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -98942,26 +18054,32 @@ func (ec *executionContext) _EventHistory_updatedBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.ContactEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOContactEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ContactConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_ContactEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ContactEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_tags(ctx, field) +func (ec *executionContext) _ContactConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -98974,35 +18092,48 @@ func (ec *executionContext) _EventHistory_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + 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.([]string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ContactConnection", 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") + 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) _EventHistory_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_eventID(ctx, field) +func (ec *executionContext) _ContactConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -99015,35 +18146,38 @@ func (ec *executionContext) _EventHistory_eventID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ContactConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_correlationID(ctx, field) +func (ec *executionContext) _ContactEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -99056,7 +18190,7 @@ func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CorrelationID, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -99065,26 +18199,66 @@ func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Contact) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ContactEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) }, } return fc, nil } -func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_eventType(ctx, field) +func (ec *executionContext) _ContactEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -99097,7 +18271,7 @@ func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EventType, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -99109,26 +18283,26 @@ func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field g } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ContactEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistory_metadata(ctx, field) +func (ec *executionContext) _ContactHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -99141,35 +18315,38 @@ func (ec *executionContext) _EventHistory_metadata(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Metadata, nil + 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.(map[string]interface{}) + res := resTmp.(string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistory", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryConnection_edges(ctx, field) +func (ec *executionContext) _ContactHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -99182,41 +18359,38 @@ func (ec *executionContext) _EventHistoryConnection_edges(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.EventHistoryEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryConnection", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_EventHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_EventHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventHistoryEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _ContactHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -99229,48 +18403,35 @@ func (ec *executionContext) _EventHistoryConnection_pageInfo(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryConnection", + Object: "ContactHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _ContactHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -99283,7 +18444,7 @@ func (ec *executionContext) _EventHistoryConnection_totalCount(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -99295,26 +18456,26 @@ func (ec *executionContext) _EventHistoryConnection_totalCount(ctx context.Conte } return graphql.Null } - res := resTmp.(int) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNContactHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryConnection", + Object: "ContactHistory", 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 nil, errors.New("field of type ContactHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryEdge_node(ctx, field) +func (ec *executionContext) _ContactHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -99327,7 +18488,7 @@ func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -99336,54 +18497,26 @@ func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.EventHistory) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEventHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistory(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryEdge", + Object: "ContactHistory", 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_EventHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_EventHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_EventHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_EventHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_EventHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EventHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EventHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EventHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_EventHistory_tags(ctx, field) - case "eventID": - return ec.fieldContext_EventHistory_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_EventHistory_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_EventHistory_eventType(ctx, field) - case "metadata": - return ec.fieldContext_EventHistory_metadata(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventHistory", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _ContactHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -99396,38 +18529,35 @@ func (ec *executionContext) _EventHistoryEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + 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.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventHistoryEdge", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field graphql.CollectedField, obj *EventSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventSearchResult_events(ctx, field) +func (ec *executionContext) _ContactHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -99440,7 +18570,7 @@ func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -99449,70 +18579,26 @@ func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventSearchResult_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventSearchResult", + Object: "ContactHistory", 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_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _EventUpdatePayload_event(ctx context.Context, field graphql.CollectedField, obj *EventUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_EventUpdatePayload_event(ctx, field) +func (ec *executionContext) _ContactHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -99525,82 +18611,35 @@ func (ec *executionContext) _EventUpdatePayload_event(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Event, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_EventUpdatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "EventUpdatePayload", + Object: "ContactHistory", 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_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_id(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_id(ctx, field) +func (ec *executionContext) _ContactHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -99613,38 +18652,35 @@ func (ec *executionContext) _File_id(ctx context.Context, field graphql.Collecte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_createdAt(ctx, field) +func (ec *executionContext) _ContactHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -99657,7 +18693,7 @@ func (ec *executionContext) _File_createdAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -99666,26 +18702,26 @@ func (ec *executionContext) _File_createdAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_updatedAt(ctx, field) +func (ec *executionContext) _ContactHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -99698,7 +18734,7 @@ func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -99707,26 +18743,26 @@ func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_createdBy(ctx, field) +func (ec *executionContext) _ContactHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -99739,7 +18775,7 @@ func (ec *executionContext) _File_createdBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -99753,9 +18789,9 @@ func (ec *executionContext) _File_createdBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, @@ -99766,8 +18802,8 @@ func (ec *executionContext) fieldContext_File_createdBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _File_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_updatedBy(ctx, field) +func (ec *executionContext) _ContactHistory_fullName(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_fullName(ctx, field) if err != nil { return graphql.Null } @@ -99780,23 +18816,26 @@ func (ec *executionContext) _File_updatedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_fullName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, @@ -99807,8 +18846,8 @@ func (ec *executionContext) fieldContext_File_updatedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _File_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_deletedAt(ctx, field) +func (ec *executionContext) _ContactHistory_title(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_title(ctx, field) if err != nil { return graphql.Null } @@ -99821,7 +18860,7 @@ func (ec *executionContext) _File_deletedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Title, nil }) if err != nil { ec.Error(ctx, err) @@ -99830,26 +18869,26 @@ func (ec *executionContext) _File_deletedAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_deletedBy(ctx, field) +func (ec *executionContext) _ContactHistory_company(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_company(ctx, field) if err != nil { return graphql.Null } @@ -99862,7 +18901,7 @@ func (ec *executionContext) _File_deletedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Company, nil }) if err != nil { ec.Error(ctx, err) @@ -99876,9 +18915,9 @@ func (ec *executionContext) _File_deletedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_company(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, @@ -99889,8 +18928,8 @@ func (ec *executionContext) fieldContext_File_deletedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _File_tags(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_tags(ctx, field) +func (ec *executionContext) _ContactHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_email(ctx, field) if err != nil { return graphql.Null } @@ -99903,7 +18942,7 @@ func (ec *executionContext) _File_tags(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Email, nil }) if err != nil { ec.Error(ctx, err) @@ -99912,14 +18951,14 @@ func (ec *executionContext) _File_tags(ctx context.Context, field graphql.Collec if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, @@ -99930,8 +18969,8 @@ func (ec *executionContext) fieldContext_File_tags(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _File_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_providedFileName(ctx, field) +func (ec *executionContext) _ContactHistory_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_phoneNumber(ctx, field) if err != nil { return graphql.Null } @@ -99944,26 +18983,23 @@ func (ec *executionContext) _File_providedFileName(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileName, nil + return obj.PhoneNumber, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, @@ -99974,8 +19010,8 @@ func (ec *executionContext) fieldContext_File_providedFileName(_ context.Context return fc, nil } -func (ec *executionContext) _File_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_providedFileExtension(ctx, field) +func (ec *executionContext) _ContactHistory_address(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_address(ctx, field) if err != nil { return graphql.Null } @@ -99988,26 +19024,23 @@ func (ec *executionContext) _File_providedFileExtension(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileExtension, nil + return obj.Address, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_address(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", Field: field, IsMethod: false, IsResolver: false, @@ -100018,8 +19051,8 @@ func (ec *executionContext) fieldContext_File_providedFileExtension(_ context.Co return fc, nil } -func (ec *executionContext) _File_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_providedFileSize(ctx, field) +func (ec *executionContext) _ContactHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -100032,35 +19065,38 @@ func (ec *executionContext) _File_providedFileSize(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileSize, nil + 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.(int64) + res := resTmp.(enums.UserStatus) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalNContactHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistory", 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 nil, errors.New("field of type ContactHistoryUserStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_persistedFileSize(ctx, field) +func (ec *executionContext) _ContactHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -100073,7 +19109,7 @@ func (ec *executionContext) _File_persistedFileSize(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersistedFileSize, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -100082,26 +19118,32 @@ func (ec *executionContext) _File_persistedFileSize(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(int64) + res := resTmp.([]*generated.ContactHistoryEdge) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalOContactHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_ContactHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _File_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_detectedMimeType(ctx, field) +func (ec *executionContext) _ContactHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -100114,35 +19156,48 @@ func (ec *executionContext) _File_detectedMimeType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedMimeType, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistoryConnection", 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") + 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) _File_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_md5Hash(ctx, field) +func (ec *executionContext) _ContactHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -100155,35 +19210,38 @@ func (ec *executionContext) _File_md5Hash(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Md5Hash, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_detectedContentType(ctx, field) +func (ec *executionContext) _ContactHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -100196,38 +19254,75 @@ func (ec *executionContext) _File_detectedContentType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedContentType, nil + 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.(string) + res := resTmp.(*generated.ContactHistory) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOContactHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistoryEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_ContactHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ContactHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ContactHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ContactHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ContactHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ContactHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ContactHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ContactHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ContactHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ContactHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ContactHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ContactHistory_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_ContactHistory_fullName(ctx, field) + case "title": + return ec.fieldContext_ContactHistory_title(ctx, field) + case "company": + return ec.fieldContext_ContactHistory_company(ctx, field) + case "email": + return ec.fieldContext_ContactHistory_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_ContactHistory_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_ContactHistory_address(ctx, field) + case "status": + return ec.fieldContext_ContactHistory_status(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ContactHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _File_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storeKey(ctx, field) +func (ec *executionContext) _ContactHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ContactHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -100240,35 +19335,38 @@ func (ec *executionContext) _File_storeKey(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoreKey, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ContactHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "ContactHistoryEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_categoryType(ctx, field) +func (ec *executionContext) _Control_id(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_id(ctx, field) if err != nil { return graphql.Null } @@ -100281,35 +19379,38 @@ func (ec *executionContext) _File_categoryType(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CategoryType, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_uri(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_uri(ctx, field) +func (ec *executionContext) _Control_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -100322,7 +19423,7 @@ func (ec *executionContext) _File_uri(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.URI, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -100331,26 +19432,26 @@ func (ec *executionContext) _File_uri(ctx context.Context, field graphql.Collect if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storageScheme(ctx, field) +func (ec *executionContext) _Control_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -100363,7 +19464,7 @@ func (ec *executionContext) _File_storageScheme(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageScheme, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -100372,26 +19473,26 @@ func (ec *executionContext) _File_storageScheme(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storageVolume(ctx, field) +func (ec *executionContext) _Control_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -100404,7 +19505,7 @@ func (ec *executionContext) _File_storageVolume(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageVolume, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -100418,9 +19519,9 @@ func (ec *executionContext) _File_storageVolume(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, IsMethod: false, IsResolver: false, @@ -100431,8 +19532,8 @@ func (ec *executionContext) fieldContext_File_storageVolume(_ context.Context, f return fc, nil } -func (ec *executionContext) _File_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_storagePath(ctx, field) +func (ec *executionContext) _Control_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -100445,7 +19546,7 @@ func (ec *executionContext) _File_storagePath(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoragePath, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -100459,9 +19560,9 @@ func (ec *executionContext) _File_storagePath(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, IsMethod: false, IsResolver: false, @@ -100472,8 +19573,8 @@ func (ec *executionContext) fieldContext_File_storagePath(_ context.Context, fie return fc, nil } -func (ec *executionContext) _File_user(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_user(ctx, field) +func (ec *executionContext) _Control_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -100486,7 +19587,7 @@ func (ec *executionContext) _File_user(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -100495,249 +19596,67 @@ func (ec *executionContext) _File_user(ctx context.Context, field graphql.Collec if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_organization(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_organization(ctx, field) +func (ec *executionContext) _Control_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_deletedBy(ctx, field) if err != nil { return graphql.Null } ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Organization) - fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_File_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "File", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_deletedBy(_ 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) _File_group(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_group(ctx, field) +func (ec *executionContext) _Control_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_tags(ctx, field) if err != nil { return graphql.Null } @@ -100750,7 +19669,7 @@ func (ec *executionContext) _File_group(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -100759,128 +19678,26 @@ func (ec *executionContext) _File_group(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.([]string) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_contact(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_contact(ctx, field) +func (ec *executionContext) _Control_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -100893,75 +19710,38 @@ func (ec *executionContext) _File_contact(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contact(ctx) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Contact) + res := resTmp.(string) fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_entity(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_entity(ctx, field) +func (ec *executionContext) _Control_name(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_name(ctx, field) if err != nil { return graphql.Null } @@ -100974,79 +19754,38 @@ func (ec *executionContext) _File_entity(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity(ctx) + 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.([]*generated.Entity) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_userSetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_userSetting(ctx, field) +func (ec *executionContext) _Control_description(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_description(ctx, field) if err != nil { return graphql.Null } @@ -101059,7 +19798,7 @@ func (ec *executionContext) _File_userSetting(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserSetting(ctx) + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -101068,66 +19807,26 @@ func (ec *executionContext) _File_userSetting(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.UserSetting) + res := resTmp.(string) fc.Result = res - return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_organizationSetting(ctx, field) +func (ec *executionContext) _Control_status(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_status(ctx, field) if err != nil { return graphql.Null } @@ -101140,7 +19839,7 @@ func (ec *executionContext) _File_organizationSetting(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationSetting(ctx) + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -101149,66 +19848,26 @@ func (ec *executionContext) _File_organizationSetting(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrganizationSetting) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_template(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_template(ctx, field) +func (ec *executionContext) _Control_controlType(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_controlType(ctx, field) if err != nil { return graphql.Null } @@ -101221,7 +19880,7 @@ func (ec *executionContext) _File_template(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Template(ctx) + return obj.ControlType, nil }) if err != nil { ec.Error(ctx, err) @@ -101230,62 +19889,26 @@ func (ec *executionContext) _File_template(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Template) + res := resTmp.(string) fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_controlType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_documentData(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_documentData(ctx, field) +func (ec *executionContext) _Control_version(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_version(ctx, field) if err != nil { return graphql.Null } @@ -101298,7 +19921,7 @@ func (ec *executionContext) _File_documentData(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DocumentData(ctx) + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -101307,58 +19930,26 @@ func (ec *executionContext) _File_documentData(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.DocumentData) + res := resTmp.(string) fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_events(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_events(ctx, field) +func (ec *executionContext) _Control_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_controlNumber(ctx, field) if err != nil { return graphql.Null } @@ -101371,7 +19962,7 @@ func (ec *executionContext) _File_events(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.ControlNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -101380,70 +19971,26 @@ func (ec *executionContext) _File_events(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(string) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _File_program(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_File_program(ctx, field) +func (ec *executionContext) _Control_family(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_family(ctx, field) if err != nil { return graphql.Null } @@ -101456,7 +20003,7 @@ func (ec *executionContext) _File_program(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Program(ctx) + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -101465,98 +20012,26 @@ func (ec *executionContext) _File_program(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_File_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "File", + Object: "Control", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileConnection_edges(ctx, field) +func (ec *executionContext) _Control_class(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_class(ctx, field) if err != nil { return graphql.Null } @@ -101569,7 +20044,7 @@ func (ec *executionContext) _FileConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -101578,32 +20053,26 @@ func (ec *executionContext) _FileConnection_edges(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.FileEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileConnection", + Object: "Control", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_FileEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_FileEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FileEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileConnection_pageInfo(ctx, field) +func (ec *executionContext) _Control_source(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_source(ctx, field) if err != nil { return graphql.Null } @@ -101616,48 +20085,76 @@ func (ec *executionContext) _FileConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_source(_ 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_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_satisfies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Satisfies, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileConnection", + Object: "Control", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileConnection_totalCount(ctx, field) +func (ec *executionContext) _Control_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -101670,38 +20167,76 @@ func (ec *executionContext) _FileConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Control_mappedFrameworks(_ 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_details(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(int) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileConnection", + 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 Int does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *FileDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Control_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_owner(ctx, field) if err != nil { return graphql.Null } @@ -101714,7 +20249,7 @@ func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -101726,26 +20261,134 @@ func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, fi } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileDeletePayload", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileEdge_node(ctx, field) +func (ec *executionContext) _Control_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_blockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -101758,7 +20401,7 @@ func (ec *executionContext) _FileEdge_node(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.BlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -101767,92 +20410,128 @@ func (ec *executionContext) _FileEdge_node(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.File) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileEdge", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_File_id(ctx, field) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileEdge_cursor(ctx, field) +func (ec *executionContext) _Control_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_editors(ctx, field) if err != nil { return graphql.Null } @@ -101865,38 +20544,137 @@ func (ec *executionContext) _FileEdge_cursor(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Editors(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileEdge", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_id(ctx, field) +func (ec *executionContext) _Control_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_viewers(ctx, field) if err != nil { return graphql.Null } @@ -101909,38 +20687,137 @@ func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Viewers(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_historyTime(ctx, field) +func (ec *executionContext) _Control_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_procedures(ctx, field) if err != nil { return graphql.Null } @@ -101953,38 +20830,91 @@ func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Procedures(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_ref(ctx, field) +func (ec *executionContext) _Control_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -101997,7 +20927,7 @@ func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, err) @@ -102006,26 +20936,90 @@ func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_operation(ctx, field) +func (ec *executionContext) _Control_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_controlObjectives(ctx, field) if err != nil { return graphql.Null } @@ -102038,38 +21032,103 @@ func (ec *executionContext) _FileHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.ControlObjectives(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type FileHistoryOpType does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_createdAt(ctx, field) +func (ec *executionContext) _Control_standard(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_standard(ctx, field) if err != nil { return graphql.Null } @@ -102082,7 +21141,7 @@ func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Standard(ctx) }) if err != nil { ec.Error(ctx, err) @@ -102091,26 +21150,74 @@ func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Standard) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_updatedAt(ctx, field) +func (ec *executionContext) _Control_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_narratives(ctx, field) if err != nil { return graphql.Null } @@ -102123,7 +21230,7 @@ func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Narratives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -102132,26 +21239,72 @@ func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_createdBy(ctx, field) +func (ec *executionContext) _Control_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_risks(ctx, field) if err != nil { return graphql.Null } @@ -102164,7 +21317,7 @@ func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Risks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -102173,26 +21326,82 @@ func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_updatedBy(ctx, field) +func (ec *executionContext) _Control_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_actionPlans(ctx, field) if err != nil { return graphql.Null } @@ -102205,7 +21414,7 @@ func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.ActionPlans(ctx) }) if err != nil { ec.Error(ctx, err) @@ -102214,26 +21423,68 @@ func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.ActionPlan) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_deletedAt(ctx, field) +func (ec *executionContext) _Control_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_tasks(ctx, field) if err != nil { return graphql.Null } @@ -102246,7 +21497,7 @@ func (ec *executionContext) _FileHistory_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Tasks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -102255,26 +21506,76 @@ func (ec *executionContext) _FileHistory_deletedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Task_id(ctx, field) + case "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_deletedBy(ctx, field) +func (ec *executionContext) _Control_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Control) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Control_programs(ctx, field) if err != nil { return graphql.Null } @@ -102287,7 +21588,7 @@ func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, err) @@ -102296,26 +21597,98 @@ func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Control_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "Control", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_tags(ctx, field) +func (ec *executionContext) _ControlConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -102328,7 +21701,7 @@ func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -102337,26 +21710,32 @@ func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.ControlEdge) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOControlEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_ControlEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ControlEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_providedFileName(ctx, field) +func (ec *executionContext) _ControlConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -102369,7 +21748,7 @@ func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileName, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -102381,26 +21760,36 @@ func (ec *executionContext) _FileHistory_providedFileName(ctx context.Context, f } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlConnection", 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") + 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) _FileHistory_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_providedFileExtension(ctx, field) + +func (ec *executionContext) _ControlConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -102413,7 +21802,7 @@ func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileExtension, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -102425,26 +21814,26 @@ func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Conte } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_providedFileSize(ctx, field) +func (ec *executionContext) _ControlEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -102457,7 +21846,7 @@ func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProvidedFileSize, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -102466,26 +21855,96 @@ func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(int64) + res := resTmp.(*generated.Control) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalOControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + 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 Int does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_persistedFileSize(ctx, field) +func (ec *executionContext) _ControlEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -102498,35 +21957,38 @@ func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersistedFileSize, nil + 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.(int64) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOInt2int64(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + 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 Int does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_detectedMimeType(ctx, field) +func (ec *executionContext) _ControlHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -102539,35 +22001,38 @@ func (ec *executionContext) _FileHistory_detectedMimeType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedMimeType, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_md5Hash(ctx, field) +func (ec *executionContext) _ControlHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -102580,35 +22045,38 @@ func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Md5Hash, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_detectedContentType(ctx, field) +func (ec *executionContext) _ControlHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -102621,26 +22089,23 @@ func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DetectedContentType, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, @@ -102651,8 +22116,8 @@ func (ec *executionContext) fieldContext_FileHistory_detectedContentType(_ conte return fc, nil } -func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storeKey(ctx, field) +func (ec *executionContext) _ControlHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -102665,35 +22130,38 @@ func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoreKey, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNControlHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", 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 nil, errors.New("field of type ControlHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_categoryType(ctx, field) +func (ec *executionContext) _ControlHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -102706,7 +22174,7 @@ func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CategoryType, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -102715,26 +22183,26 @@ func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_uri(ctx, field) +func (ec *executionContext) _ControlHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -102747,7 +22215,7 @@ func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.URI, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -102756,26 +22224,26 @@ func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storageScheme(ctx, field) +func (ec *executionContext) _ControlHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -102788,7 +22256,7 @@ func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageScheme, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -102802,9 +22270,9 @@ func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, @@ -102815,8 +22283,8 @@ func (ec *executionContext) fieldContext_FileHistory_storageScheme(_ context.Con return fc, nil } -func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storageVolume(ctx, field) +func (ec *executionContext) _ControlHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -102829,7 +22297,7 @@ func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StorageVolume, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -102843,9 +22311,9 @@ func (ec *executionContext) _FileHistory_storageVolume(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, @@ -102856,8 +22324,8 @@ func (ec *executionContext) fieldContext_FileHistory_storageVolume(_ context.Con return fc, nil } -func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistory_storagePath(ctx, field) +func (ec *executionContext) _ControlHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -102870,7 +22338,7 @@ func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StoragePath, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -102879,26 +22347,26 @@ func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistory_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistory", + Object: "ControlHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryConnection_edges(ctx, field) +func (ec *executionContext) _ControlHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -102911,7 +22379,7 @@ func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -102920,32 +22388,26 @@ func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.FileHistoryEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_FileHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_FileHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FileHistoryEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _ControlHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -102958,48 +22420,35 @@ func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", + Object: "ControlHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _ControlHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -103012,7 +22461,7 @@ func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -103024,26 +22473,26 @@ func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Contex } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryConnection", + Object: "ControlHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryEdge_node(ctx, field) +func (ec *executionContext) _ControlHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -103056,85 +22505,38 @@ func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + 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.(*generated.FileHistory) + res := resTmp.(string) fc.Result = res - return ec.marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistory(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryEdge", + Object: "ControlHistory", 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_FileHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_FileHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_FileHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_FileHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_FileHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_FileHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_FileHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_FileHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_FileHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_FileHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_FileHistory_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_FileHistory_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_FileHistory_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_FileHistory_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_FileHistory_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_FileHistory_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_FileHistory_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_FileHistory_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_FileHistory_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_FileHistory_categoryType(ctx, field) - case "uri": - return ec.fieldContext_FileHistory_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_FileHistory_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_FileHistory_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_FileHistory_storagePath(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FileHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _ControlHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -103147,38 +22549,35 @@ func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + 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.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileHistoryEdge", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field graphql.CollectedField, obj *FileSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_FileSearchResult_files(ctx, field) +func (ec *executionContext) _ControlHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -103191,7 +22590,7 @@ func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -103200,92 +22599,26 @@ func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(string) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_FileSearchResult_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "FileSearchResult", + Object: "ControlHistory", 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_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_id(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_id(ctx, field) +func (ec *executionContext) _ControlHistory_controlType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_controlType(ctx, field) if err != nil { return graphql.Null } @@ -103298,38 +22631,35 @@ func (ec *executionContext) _Group_id(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.ControlType, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_controlType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_createdAt(ctx, field) +func (ec *executionContext) _ControlHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -103342,7 +22672,7 @@ func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -103351,26 +22681,26 @@ func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_updatedAt(ctx, field) +func (ec *executionContext) _ControlHistory_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_controlNumber(ctx, field) if err != nil { return graphql.Null } @@ -103383,7 +22713,7 @@ func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.ControlNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -103392,26 +22722,26 @@ func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_createdBy(ctx, field) +func (ec *executionContext) _ControlHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_family(ctx, field) if err != nil { return graphql.Null } @@ -103424,7 +22754,7 @@ func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -103438,9 +22768,9 @@ func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, @@ -103451,8 +22781,8 @@ func (ec *executionContext) fieldContext_Group_createdBy(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_updatedBy(ctx, field) +func (ec *executionContext) _ControlHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_class(ctx, field) if err != nil { return graphql.Null } @@ -103465,7 +22795,7 @@ func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -103479,9 +22809,9 @@ func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, @@ -103492,8 +22822,8 @@ func (ec *executionContext) fieldContext_Group_updatedBy(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_deletedAt(ctx, field) +func (ec *executionContext) _ControlHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_source(ctx, field) if err != nil { return graphql.Null } @@ -103506,7 +22836,7 @@ func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -103515,26 +22845,26 @@ func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_deletedBy(ctx, field) +func (ec *executionContext) _ControlHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -103547,7 +22877,7 @@ func (ec *executionContext) _Group_deletedBy(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -103561,9 +22891,9 @@ func (ec *executionContext) _Group_deletedBy(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, @@ -103574,8 +22904,8 @@ func (ec *executionContext) fieldContext_Group_deletedBy(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Group_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_tags(ctx, field) +func (ec *executionContext) _ControlHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -103588,7 +22918,7 @@ func (ec *executionContext) _Group_tags(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, err) @@ -103597,14 +22927,14 @@ func (ec *executionContext) _Group_tags(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", Field: field, IsMethod: false, IsResolver: false, @@ -103615,8 +22945,8 @@ func (ec *executionContext) fieldContext_Group_tags(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Group_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_ownerID(ctx, field) +func (ec *executionContext) _ControlHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -103629,7 +22959,7 @@ func (ec *executionContext) _Group_ownerID(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -103638,26 +22968,26 @@ func (ec *executionContext) _Group_ownerID(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistory", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_name(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_name(ctx, field) +func (ec *executionContext) _ControlHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -103670,38 +23000,41 @@ func (ec *executionContext) _Group_name(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + 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.(string) + res := resTmp.([]*generated.ControlHistoryEdge) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOControlHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_ControlHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ControlHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_description(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_description(ctx, field) +func (ec *executionContext) _ControlHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -103714,35 +23047,48 @@ func (ec *executionContext) _Group_description(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistoryConnection", 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") + 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) _Group_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_gravatarLogoURL(ctx, field) +func (ec *executionContext) _ControlHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -103755,35 +23101,38 @@ func (ec *executionContext) _Group_gravatarLogoURL(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GravatarLogoURL, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_logoURL(ctx, field) +func (ec *executionContext) _ControlHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -103796,7 +23145,7 @@ func (ec *executionContext) _Group_logoURL(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LogoURL, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -103805,26 +23154,76 @@ func (ec *executionContext) _Group_logoURL(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.ControlHistory) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControlHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistoryEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_ControlHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ControlHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ControlHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ControlHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ControlHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlHistory_name(ctx, field) + case "description": + return ec.fieldContext_ControlHistory_description(ctx, field) + case "status": + return ec.fieldContext_ControlHistory_status(ctx, field) + case "controlType": + return ec.fieldContext_ControlHistory_controlType(ctx, field) + case "version": + return ec.fieldContext_ControlHistory_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlHistory_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlHistory_family(ctx, field) + case "class": + return ec.fieldContext_ControlHistory_class(ctx, field) + case "source": + return ec.fieldContext_ControlHistory_source(ctx, field) + case "satisfies": + return ec.fieldContext_ControlHistory_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlHistory_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_displayName(ctx, field) +func (ec *executionContext) _ControlHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -103837,7 +23236,7 @@ func (ec *executionContext) _Group_displayName(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -103849,26 +23248,26 @@ func (ec *executionContext) _Group_displayName(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlHistoryEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_owner(ctx, field) +func (ec *executionContext) _ControlObjective_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_id(ctx, field) if err != nil { return graphql.Null } @@ -103881,143 +23280,38 @@ func (ec *executionContext) _Group_owner(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + 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.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_controlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlCreators(ctx, field) +func (ec *executionContext) _ControlObjective_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -104030,7 +23324,7 @@ func (ec *executionContext) _Group_controlCreators(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlCreators(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -104039,134 +23333,26 @@ func (ec *executionContext) _Group_controlCreators(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlObjectiveCreators(ctx, field) +func (ec *executionContext) _ControlObjective_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -104179,7 +23365,7 @@ func (ec *executionContext) _Group_controlObjectiveCreators(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectiveCreators(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -104188,134 +23374,26 @@ func (ec *executionContext) _Group_controlObjectiveCreators(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlObjectiveCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_groupCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_groupCreators(ctx, field) +func (ec *executionContext) _ControlObjective_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -104328,7 +23406,7 @@ func (ec *executionContext) _Group_groupCreators(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupCreators(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -104337,134 +23415,26 @@ func (ec *executionContext) _Group_groupCreators(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_groupCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_internalPolicyCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_internalPolicyCreators(ctx, field) +func (ec *executionContext) _ControlObjective_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -104477,7 +23447,7 @@ func (ec *executionContext) _Group_internalPolicyCreators(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicyCreators(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -104486,134 +23456,26 @@ func (ec *executionContext) _Group_internalPolicyCreators(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_internalPolicyCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_narrativeCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_narrativeCreators(ctx, field) +func (ec *executionContext) _ControlObjective_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -104626,7 +23488,7 @@ func (ec *executionContext) _Group_narrativeCreators(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NarrativeCreators(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -104635,134 +23497,26 @@ func (ec *executionContext) _Group_narrativeCreators(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_narrativeCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_procedureCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_procedureCreators(ctx, field) +func (ec *executionContext) _ControlObjective_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -104775,7 +23529,7 @@ func (ec *executionContext) _Group_procedureCreators(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProcedureCreators(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -104784,134 +23538,26 @@ func (ec *executionContext) _Group_procedureCreators(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_procedureCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_programCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_programCreators(ctx, field) +func (ec *executionContext) _ControlObjective_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_tags(ctx, field) if err != nil { return graphql.Null } @@ -104924,7 +23570,7 @@ func (ec *executionContext) _Group_programCreators(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramCreators(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -104933,134 +23579,26 @@ func (ec *executionContext) _Group_programCreators(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.([]string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_programCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_riskCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_riskCreators(ctx, field) +func (ec *executionContext) _ControlObjective_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -105073,143 +23611,38 @@ func (ec *executionContext) _Group_riskCreators(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RiskCreators(ctx) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_riskCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_templateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_templateCreators(ctx, field) +func (ec *executionContext) _ControlObjective_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_name(ctx, field) if err != nil { return graphql.Null } @@ -105222,143 +23655,38 @@ func (ec *executionContext) _Group_templateCreators(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TemplateCreators(ctx) + 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.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_templateCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_procedureEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_procedureEditors(ctx, field) +func (ec *executionContext) _ControlObjective_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_description(ctx, field) if err != nil { return graphql.Null } @@ -105371,7 +23699,7 @@ func (ec *executionContext) _Group_procedureEditors(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProcedureEditors(ctx) + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -105380,82 +23708,26 @@ func (ec *executionContext) _Group_procedureEditors(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(string) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_procedureEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_procedureBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_procedureBlockedGroups(ctx, field) +func (ec *executionContext) _ControlObjective_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_status(ctx, field) if err != nil { return graphql.Null } @@ -105468,7 +23740,7 @@ func (ec *executionContext) _Group_procedureBlockedGroups(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProcedureBlockedGroups(ctx) + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -105477,82 +23749,26 @@ func (ec *executionContext) _Group_procedureBlockedGroups(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(string) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_procedureBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_internalPolicyEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_internalPolicyEditors(ctx, field) +func (ec *executionContext) _ControlObjective_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) if err != nil { return graphql.Null } @@ -105565,7 +23781,7 @@ func (ec *executionContext) _Group_internalPolicyEditors(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicyEditors(ctx) + return obj.ControlObjectiveType, nil }) if err != nil { ec.Error(ctx, err) @@ -105574,80 +23790,26 @@ func (ec *executionContext) _Group_internalPolicyEditors(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_internalPolicyEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_internalPolicyBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) +func (ec *executionContext) _ControlObjective_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_version(ctx, field) if err != nil { return graphql.Null } @@ -105660,7 +23822,7 @@ func (ec *executionContext) _Group_internalPolicyBlockedGroups(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicyBlockedGroups(ctx) + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -105669,80 +23831,26 @@ func (ec *executionContext) _Group_internalPolicyBlockedGroups(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_internalPolicyBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_programEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_programEditors(ctx, field) +func (ec *executionContext) _ControlObjective_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_controlNumber(ctx, field) if err != nil { return graphql.Null } @@ -105755,7 +23863,7 @@ func (ec *executionContext) _Group_programEditors(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramEditors(ctx) + return obj.ControlNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -105764,98 +23872,26 @@ func (ec *executionContext) _Group_programEditors(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_programEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_programBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_programBlockedGroups(ctx, field) +func (ec *executionContext) _ControlObjective_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_family(ctx, field) if err != nil { return graphql.Null } @@ -105868,7 +23904,7 @@ func (ec *executionContext) _Group_programBlockedGroups(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramBlockedGroups(ctx) + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -105877,98 +23913,26 @@ func (ec *executionContext) _Group_programBlockedGroups(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_programBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_programViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_programViewers(ctx, field) +func (ec *executionContext) _ControlObjective_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_class(ctx, field) if err != nil { return graphql.Null } @@ -105981,7 +23945,7 @@ func (ec *executionContext) _Group_programViewers(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramViewers(ctx) + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -105990,98 +23954,26 @@ func (ec *executionContext) _Group_programViewers(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_programViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_riskEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_riskEditors(ctx, field) +func (ec *executionContext) _ControlObjective_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_source(ctx, field) if err != nil { return graphql.Null } @@ -106094,7 +23986,7 @@ func (ec *executionContext) _Group_riskEditors(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RiskEditors(ctx) + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -106103,82 +23995,26 @@ func (ec *executionContext) _Group_riskEditors(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Risk) + res := resTmp.(string) fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_riskEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_riskBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_riskBlockedGroups(ctx, field) +func (ec *executionContext) _ControlObjective_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -106191,7 +24027,7 @@ func (ec *executionContext) _Group_riskBlockedGroups(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RiskBlockedGroups(ctx) + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, err) @@ -106200,82 +24036,26 @@ func (ec *executionContext) _Group_riskBlockedGroups(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Risk) + res := resTmp.(string) fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_riskBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_riskViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_riskViewers(ctx, field) +func (ec *executionContext) _ControlObjective_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_details(ctx, field) if err != nil { return graphql.Null } @@ -106288,7 +24068,7 @@ func (ec *executionContext) _Group_riskViewers(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RiskViewers(ctx) + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -106297,82 +24077,26 @@ func (ec *executionContext) _Group_riskViewers(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Risk) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_riskViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Group_controlObjectiveEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlObjectiveEditors(ctx, field) +func (ec *executionContext) _ControlObjective_owner(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_owner(ctx, field) if err != nil { return graphql.Null } @@ -106385,103 +24109,146 @@ func (ec *executionContext) _Group_controlObjectiveEditors(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectiveEditors(ctx) + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlObjectiveEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_controlObjectiveBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) +func (ec *executionContext) _ControlObjective_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_blockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -106494,7 +24261,7 @@ func (ec *executionContext) _Group_controlObjectiveBlockedGroups(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectiveBlockedGroups(ctx) + return obj.BlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -106503,94 +24270,128 @@ func (ec *executionContext) _Group_controlObjectiveBlockedGroups(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlObjectiveBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) + return ec.fieldContext_Group_tags(ctx, field) case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) + return ec.fieldContext_Group_ownerID(ctx, field) case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) + return ec.fieldContext_Group_name(ctx, field) case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_controlObjectiveViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlObjectiveViewers(ctx, field) +func (ec *executionContext) _ControlObjective_editors(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_editors(ctx, field) if err != nil { return graphql.Null } @@ -106603,7 +24404,7 @@ func (ec *executionContext) _Group_controlObjectiveViewers(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectiveViewers(ctx) + return obj.Editors(ctx) }) if err != nil { ec.Error(ctx, err) @@ -106612,94 +24413,128 @@ func (ec *executionContext) _Group_controlObjectiveViewers(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlObjectiveViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) + return ec.fieldContext_Group_tags(ctx, field) case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) + return ec.fieldContext_Group_ownerID(ctx, field) case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) + return ec.fieldContext_Group_name(ctx, field) case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_controlEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlEditors(ctx, field) +func (ec *executionContext) _ControlObjective_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_viewers(ctx, field) if err != nil { return graphql.Null } @@ -106712,7 +24547,7 @@ func (ec *executionContext) _Group_controlEditors(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlEditors(ctx) + return obj.Viewers(ctx) }) if err != nil { ec.Error(ctx, err) @@ -106721,96 +24556,128 @@ func (ec *executionContext) _Group_controlEditors(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Control) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, 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) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Control_tags(ctx, field) + return ec.fieldContext_Group_tags(ctx, field) case "ownerID": - return ec.fieldContext_Control_ownerID(ctx, field) + return ec.fieldContext_Group_ownerID(ctx, field) case "name": - return ec.fieldContext_Control_name(ctx, field) + return ec.fieldContext_Group_name(ctx, field) case "description": - return ec.fieldContext_Control_description(ctx, field) - case "status": - return ec.fieldContext_Control_status(ctx, field) - case "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_controlBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlBlockedGroups(ctx, field) +func (ec *executionContext) _ControlObjective_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_internalPolicies(ctx, field) if err != nil { return graphql.Null } @@ -106823,7 +24690,7 @@ func (ec *executionContext) _Group_controlBlockedGroups(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlBlockedGroups(ctx) + return obj.InternalPolicies(ctx) }) if err != nil { ec.Error(ctx, err) @@ -106832,96 +24699,80 @@ func (ec *executionContext) _Group_controlBlockedGroups(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Control) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, 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) + return ec.fieldContext_InternalPolicy_id(ctx, field) case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Control_tags(ctx, field) + return ec.fieldContext_InternalPolicy_tags(ctx, field) case "ownerID": - return ec.fieldContext_Control_ownerID(ctx, field) + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) case "name": - return ec.fieldContext_Control_name(ctx, field) + return ec.fieldContext_InternalPolicy_name(ctx, field) case "description": - return ec.fieldContext_Control_description(ctx, field) + return ec.fieldContext_InternalPolicy_description(ctx, field) case "status": - return ec.fieldContext_Control_status(ctx, field) - case "controlType": - return ec.fieldContext_Control_controlType(ctx, field) + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) case "details": - return ec.fieldContext_Control_details(ctx, field) + return ec.fieldContext_InternalPolicy_details(ctx, field) case "owner": - return ec.fieldContext_Control_owner(ctx, field) + return ec.fieldContext_InternalPolicy_owner(ctx, field) case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) + return ec.fieldContext_InternalPolicy_editors(ctx, field) case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) + return ec.fieldContext_InternalPolicy_narratives(ctx, field) case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) + return ec.fieldContext_InternalPolicy_tasks(ctx, field) case "programs": - return ec.fieldContext_Control_programs(ctx, field) + return ec.fieldContext_InternalPolicy_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_controlViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_controlViewers(ctx, field) +func (ec *executionContext) _ControlObjective_controls(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_controls(ctx, field) if err != nil { return graphql.Null } @@ -106934,7 +24785,7 @@ func (ec *executionContext) _Group_controlViewers(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlViewers(ctx) + return obj.Controls(ctx) }) if err != nil { ec.Error(ctx, err) @@ -106948,9 +24799,9 @@ func (ec *executionContext) _Group_controlViewers(ctx context.Context, field gra return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_controlViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, @@ -107031,8 +24882,8 @@ func (ec *executionContext) fieldContext_Group_controlViewers(_ context.Context, return fc, nil } -func (ec *executionContext) _Group_narrativeEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_narrativeEditors(ctx, field) +func (ec *executionContext) _ControlObjective_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_procedures(ctx, field) if err != nil { return graphql.Null } @@ -107045,7 +24896,7 @@ func (ec *executionContext) _Group_narrativeEditors(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NarrativeEditors(ctx) + return obj.Procedures(ctx) }) if err != nil { ec.Error(ctx, err) @@ -107054,72 +24905,82 @@ func (ec *executionContext) _Group_narrativeEditors(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Narrative) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_narrativeEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Procedure_id(ctx, field) case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) + return ec.fieldContext_Procedure_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) + return ec.fieldContext_Procedure_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) + return ec.fieldContext_Procedure_tags(ctx, field) case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) + return ec.fieldContext_Procedure_ownerID(ctx, field) case "name": - return ec.fieldContext_Narrative_name(ctx, field) + return ec.fieldContext_Procedure_name(ctx, field) case "description": - return ec.fieldContext_Narrative_description(ctx, field) + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) + return ec.fieldContext_Procedure_satisfies(ctx, field) case "details": - return ec.fieldContext_Narrative_details(ctx, field) + return ec.fieldContext_Procedure_details(ctx, field) case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) + return ec.fieldContext_Procedure_owner(ctx, field) case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) + return ec.fieldContext_Procedure_blockedGroups(ctx, field) case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) + return ec.fieldContext_Procedure_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_narrativeBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) +func (ec *executionContext) _ControlObjective_risks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_risks(ctx, field) if err != nil { return graphql.Null } @@ -107132,7 +24993,7 @@ func (ec *executionContext) _Group_narrativeBlockedGroups(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NarrativeBlockedGroups(ctx) + return obj.Risks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -107141,72 +25002,82 @@ func (ec *executionContext) _Group_narrativeBlockedGroups(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Narrative) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_narrativeBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) + return ec.fieldContext_Risk_tags(ctx, field) case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) + return ec.fieldContext_Risk_ownerID(ctx, field) case "name": - return ec.fieldContext_Narrative_name(ctx, field) + return ec.fieldContext_Risk_name(ctx, field) case "description": - return ec.fieldContext_Narrative_description(ctx, field) + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) + return ec.fieldContext_Risk_satisfies(ctx, field) case "details": - return ec.fieldContext_Narrative_details(ctx, field) + return ec.fieldContext_Risk_details(ctx, field) case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) + return ec.fieldContext_Risk_owner(ctx, field) case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) + return ec.fieldContext_Risk_blockedGroups(ctx, field) case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) + return ec.fieldContext_Risk_editors(ctx, field) case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) + return ec.fieldContext_Risk_viewers(ctx, field) case "control": - return ec.fieldContext_Narrative_control(ctx, field) + return ec.fieldContext_Risk_control(ctx, field) case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) + return ec.fieldContext_Risk_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_narrativeViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_narrativeViewers(ctx, field) +func (ec *executionContext) _ControlObjective_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -107219,7 +25090,7 @@ func (ec *executionContext) _Group_narrativeViewers(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NarrativeViewers(ctx) + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, err) @@ -107228,346 +25099,90 @@ func (ec *executionContext) _Group_narrativeViewers(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Narrative) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_narrativeViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Subcontrol_id(ctx, field) case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) + return ec.fieldContext_Subcontrol_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) + return ec.fieldContext_Subcontrol_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) + return ec.fieldContext_Subcontrol_tags(ctx, field) case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) + return ec.fieldContext_Subcontrol_ownerID(ctx, field) case "name": - return ec.fieldContext_Narrative_name(ctx, field) + return ec.fieldContext_Subcontrol_name(ctx, field) case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) case "details": - return ec.fieldContext_Narrative_details(ctx, field) + return ec.fieldContext_Subcontrol_details(ctx, field) case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Group_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_setting(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Setting(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupSetting) - fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Group_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Group", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Group_users(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Users(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.User) - fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Group_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Group", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Group_events(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_events(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Event) - fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Group_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Group", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_integrations(ctx, field) +func (ec *executionContext) _ControlObjective_standard(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_standard(ctx, field) if err != nil { return graphql.Null } @@ -107580,7 +25195,7 @@ func (ec *executionContext) _Group_integrations(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations(ctx) + return obj.Standard(ctx) }) if err != nil { ec.Error(ctx, err) @@ -107589,58 +25204,74 @@ func (ec *executionContext) _Group_integrations(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.([]*generated.Standard) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Integration_id(ctx, field) + return ec.fieldContext_Standard_id(ctx, field) case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) + return ec.fieldContext_Standard_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) + return ec.fieldContext_Standard_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) + return ec.fieldContext_Standard_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) + return ec.fieldContext_Standard_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) + return ec.fieldContext_Standard_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) case "name": - return ec.fieldContext_Integration_name(ctx, field) + return ec.fieldContext_Standard_name(ctx, field) case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_files(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_files(ctx, field) +func (ec *executionContext) _ControlObjective_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_narratives(ctx, field) if err != nil { return graphql.Null } @@ -107653,7 +25284,7 @@ func (ec *executionContext) _Group_files(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.Narratives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -107662,92 +25293,72 @@ func (ec *executionContext) _Group_files(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_File_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) + return ec.fieldContext_Narrative_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) + return ec.fieldContext_Narrative_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) + return ec.fieldContext_Narrative_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) + return ec.fieldContext_Narrative_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) + return ec.fieldContext_Narrative_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) + return ec.fieldContext_Narrative_deletedBy(ctx, field) case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Group_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_tasks(ctx, field) +func (ec *executionContext) _ControlObjective_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_tasks(ctx, field) if err != nil { return graphql.Null } @@ -107774,9 +25385,9 @@ func (ec *executionContext) _Group_tasks(ctx context.Context, field graphql.Coll return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, @@ -107837,8 +25448,8 @@ func (ec *executionContext) fieldContext_Group_tasks(_ context.Context, field gr return fc, nil } -func (ec *executionContext) _Group_members(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Group_members(ctx, field) +func (ec *executionContext) _ControlObjective_programs(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjective) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjective_programs(ctx, field) if err != nil { return graphql.Null } @@ -107851,7 +25462,7 @@ func (ec *executionContext) _Group_members(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Members(ctx) + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, err) @@ -107860,197 +25471,98 @@ func (ec *executionContext) _Group_members(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembership) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Group_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjective_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Group", + Object: "ControlObjective", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _GroupBulkCreatePayload_groups(ctx context.Context, field graphql.CollectedField, obj *GroupBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Groups, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupBulkCreatePayload_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupBulkCreatePayload", - 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_Group_id(ctx, field) + return ec.fieldContext_Program_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_Program_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_Program_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_Program_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_Program_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_Program_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) + return ec.fieldContext_Program_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Group_tags(ctx, field) + return ec.fieldContext_Program_tags(ctx, field) case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_Program_ownerID(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) + return ec.fieldContext_Program_name(ctx, field) case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_Program_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupConnection_edges(ctx, field) +func (ec *executionContext) _ControlObjectiveConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -108072,32 +25584,32 @@ func (ec *executionContext) _GroupConnection_edges(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupEdge) + res := resTmp.([]*generated.ControlObjectiveEdge) fc.Result = res - return ec.marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx, field.Selections, res) + return ec.marshalOControlObjectiveEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupConnection", + Object: "ControlObjectiveConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_GroupEdge_node(ctx, field) + return ec.fieldContext_ControlObjectiveEdge_node(ctx, field) case "cursor": - return ec.fieldContext_GroupEdge_cursor(ctx, field) + return ec.fieldContext_ControlObjectiveEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupConnection_pageInfo(ctx, field) +func (ec *executionContext) _ControlObjectiveConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -108127,9 +25639,9 @@ func (ec *executionContext) _GroupConnection_pageInfo(ctx context.Context, field return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupConnection", + Object: "ControlObjectiveConnection", Field: field, IsMethod: false, IsResolver: false, @@ -108150,8 +25662,8 @@ func (ec *executionContext) fieldContext_GroupConnection_pageInfo(_ context.Cont return fc, nil } -func (ec *executionContext) _GroupConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupConnection_totalCount(ctx, field) +func (ec *executionContext) _ControlObjectiveConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -108181,9 +25693,9 @@ func (ec *executionContext) _GroupConnection_totalCount(ctx context.Context, fie return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupConnection", + Object: "ControlObjectiveConnection", Field: field, IsMethod: false, IsResolver: false, @@ -108194,8 +25706,8 @@ func (ec *executionContext) fieldContext_GroupConnection_totalCount(_ context.Co return fc, nil } -func (ec *executionContext) _GroupCreatePayload_group(ctx context.Context, field graphql.CollectedField, obj *GroupCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupCreatePayload_group(ctx, field) +func (ec *executionContext) _ControlObjectiveEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -108208,140 +25720,103 @@ func (ec *executionContext) _GroupCreatePayload_group(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group, nil + 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.(*generated.Group) + res := resTmp.(*generated.ControlObjective) fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupCreatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupCreatePayload", + Object: "ControlObjectiveEdge", 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_Group_id(ctx, field) + return ec.fieldContext_ControlObjective_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_ControlObjective_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_ControlObjective_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Group_tags(ctx, field) + return ec.fieldContext_ControlObjective_tags(ctx, field) case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_ControlObjective_ownerID(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) + return ec.fieldContext_ControlObjective_name(ctx, field) case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _ControlObjectiveEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -108354,7 +25829,7 @@ func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -108366,26 +25841,26 @@ func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, f } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupDeletePayload", + Object: "ControlObjectiveEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupEdge_node(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -108398,137 +25873,38 @@ func (ec *executionContext) _GroupEdge_node(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + 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.(*generated.Group) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupEdge", + Object: "ControlObjectiveHistory", 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_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupEdge_cursor(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -108541,7 +25917,7 @@ func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -108553,26 +25929,26 @@ func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupEdge", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_id(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -108585,38 +25961,35 @@ func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_historyTime(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -108629,7 +26002,7 @@ func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -108641,14 +26014,55 @@ func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field } return graphql.Null } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNControlObjectiveHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type ControlObjectiveHistoryOpType does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, 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 { + return graphql.Null + } res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -108659,8 +26073,8 @@ func (ec *executionContext) fieldContext_GroupHistory_historyTime(_ context.Cont return fc, nil } -func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_ref(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -108673,7 +26087,48 @@ func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.UpdatedAt, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -108687,9 +26142,9 @@ func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -108700,8 +26155,8 @@ func (ec *executionContext) fieldContext_GroupHistory_ref(_ context.Context, fie return fc, nil } -func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_operation(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -108714,38 +26169,35 @@ func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_createdAt(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -108758,7 +26210,7 @@ func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -108772,9 +26224,9 @@ func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field g return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -108785,8 +26237,8 @@ func (ec *executionContext) fieldContext_GroupHistory_createdAt(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_updatedAt(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -108799,7 +26251,7 @@ func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -108808,26 +26260,26 @@ func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_createdBy(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -108840,23 +26292,67 @@ func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Tags, 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_ControlObjectiveHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + 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) _ControlObjectiveHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -108867,8 +26363,8 @@ func (ec *executionContext) fieldContext_GroupHistory_createdBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_updatedBy(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -108881,7 +26377,51 @@ func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + 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_ControlObjectiveHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveHistory", + 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) _ControlObjectiveHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -108895,9 +26435,9 @@ func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -108908,8 +26448,8 @@ func (ec *executionContext) fieldContext_GroupHistory_updatedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_deletedAt(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -108922,7 +26462,7 @@ func (ec *executionContext) _GroupHistory_deletedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -108931,26 +26471,26 @@ func (ec *executionContext) _GroupHistory_deletedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_deletedBy(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_controlObjectiveType(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) if err != nil { return graphql.Null } @@ -108963,7 +26503,7 @@ func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.ControlObjectiveType, nil }) if err != nil { ec.Error(ctx, err) @@ -108977,9 +26517,9 @@ func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlObjectiveType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -108990,8 +26530,8 @@ func (ec *executionContext) fieldContext_GroupHistory_deletedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_tags(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -109004,7 +26544,7 @@ func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -109013,14 +26553,14 @@ func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109031,8 +26571,8 @@ func (ec *executionContext) fieldContext_GroupHistory_tags(_ context.Context, fi return fc, nil } -func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_ownerID(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_controlNumber(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_controlNumber(ctx, field) if err != nil { return graphql.Null } @@ -109045,7 +26585,7 @@ func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.ControlNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -109059,9 +26599,9 @@ func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_controlNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109072,8 +26612,8 @@ func (ec *executionContext) fieldContext_GroupHistory_ownerID(_ context.Context, return fc, nil } -func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_name(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_family(ctx, field) if err != nil { return graphql.Null } @@ -109086,26 +26626,23 @@ func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109116,8 +26653,8 @@ func (ec *executionContext) fieldContext_GroupHistory_name(_ context.Context, fi return fc, nil } -func (ec *executionContext) _GroupHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_description(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_class(ctx, field) if err != nil { return graphql.Null } @@ -109130,7 +26667,7 @@ func (ec *executionContext) _GroupHistory_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -109144,9 +26681,9 @@ func (ec *executionContext) _GroupHistory_description(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109157,8 +26694,8 @@ func (ec *executionContext) fieldContext_GroupHistory_description(_ context.Cont return fc, nil } -func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_source(ctx, field) if err != nil { return graphql.Null } @@ -109171,7 +26708,7 @@ func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GravatarLogoURL, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -109185,9 +26722,9 @@ func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, f return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109198,8 +26735,8 @@ func (ec *executionContext) fieldContext_GroupHistory_gravatarLogoURL(_ context. return fc, nil } -func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_logoURL(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -109212,7 +26749,7 @@ func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LogoURL, nil + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, err) @@ -109226,9 +26763,9 @@ func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", Field: field, IsMethod: false, IsResolver: false, @@ -109239,8 +26776,8 @@ func (ec *executionContext) fieldContext_GroupHistory_logoURL(_ context.Context, return fc, nil } -func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistory_displayName(ctx, field) +func (ec *executionContext) _ControlObjectiveHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -109253,38 +26790,35 @@ func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistory", + Object: "ControlObjectiveHistory", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryConnection_edges(ctx, field) +func (ec *executionContext) _ControlObjectiveHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -109306,32 +26840,32 @@ func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupHistoryEdge) + res := resTmp.([]*generated.ControlObjectiveHistoryEdge) fc.Result = res - return ec.marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx, field.Selections, res) + return ec.marshalOControlObjectiveHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", + Object: "ControlObjectiveHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_GroupHistoryEdge_node(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _ControlObjectiveHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -109361,9 +26895,9 @@ func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", + Object: "ControlObjectiveHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -109384,8 +26918,8 @@ func (ec *executionContext) fieldContext_GroupHistoryConnection_pageInfo(_ conte return fc, nil } -func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _ControlObjectiveHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -109415,9 +26949,9 @@ func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Conte return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryConnection", + Object: "ControlObjectiveHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -109428,8 +26962,8 @@ func (ec *executionContext) fieldContext_GroupHistoryConnection_totalCount(_ con return fc, nil } -func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryEdge_node(ctx, field) +func (ec *executionContext) _ControlObjectiveHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -109451,62 +26985,74 @@ func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupHistory) + res := resTmp.(*generated.ControlObjectiveHistory) fc.Result = res - return ec.marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistory(ctx, field.Selections, res) + return ec.marshalOControlObjectiveHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryEdge", + Object: "ControlObjectiveHistoryEdge", 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_GroupHistory_id(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_GroupHistory_historyTime(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_GroupHistory_ref(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_ref(ctx, field) case "operation": - return ec.fieldContext_GroupHistory_operation(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_GroupHistory_createdAt(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupHistory_updatedAt(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupHistory_createdBy(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupHistory_updatedBy(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupHistory_deletedAt(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupHistory_deletedBy(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_GroupHistory_tags(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_tags(ctx, field) case "ownerID": - return ec.fieldContext_GroupHistory_ownerID(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_ownerID(ctx, field) case "name": - return ec.fieldContext_GroupHistory_name(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_name(ctx, field) case "description": - return ec.fieldContext_GroupHistory_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_GroupHistory_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_GroupHistory_displayName(ctx, field) + return ec.fieldContext_ControlObjectiveHistory_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjectiveHistory_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjectiveHistory_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjectiveHistory_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjectiveHistory_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjectiveHistory_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjectiveHistory_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjectiveHistory_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjectiveHistory_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjectiveHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _ControlObjectiveHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ControlObjectiveHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -109536,9 +27082,9 @@ func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ControlObjectiveHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupHistoryEdge", + Object: "ControlObjectiveHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -109549,8 +27095,8 @@ func (ec *executionContext) fieldContext_GroupHistoryEdge_cursor(_ context.Conte return fc, nil } -func (ec *executionContext) _GroupMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_id(ctx, field) +func (ec *executionContext) _DocumentData_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_id(ctx, field) if err != nil { return graphql.Null } @@ -109580,9 +27126,9 @@ func (ec *executionContext) _GroupMembership_id(ctx context.Context, field graph return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109593,8 +27139,8 @@ func (ec *executionContext) fieldContext_GroupMembership_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _GroupMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_createdAt(ctx, field) +func (ec *executionContext) _DocumentData_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -109621,9 +27167,9 @@ func (ec *executionContext) _GroupMembership_createdAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109634,8 +27180,8 @@ func (ec *executionContext) fieldContext_GroupMembership_createdAt(_ context.Con return fc, nil } -func (ec *executionContext) _GroupMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_updatedAt(ctx, field) +func (ec *executionContext) _DocumentData_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -109662,9 +27208,9 @@ func (ec *executionContext) _GroupMembership_updatedAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109675,8 +27221,8 @@ func (ec *executionContext) fieldContext_GroupMembership_updatedAt(_ context.Con return fc, nil } -func (ec *executionContext) _GroupMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_createdBy(ctx, field) +func (ec *executionContext) _DocumentData_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -109703,9 +27249,9 @@ func (ec *executionContext) _GroupMembership_createdBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109716,8 +27262,8 @@ func (ec *executionContext) fieldContext_GroupMembership_createdBy(_ context.Con return fc, nil } -func (ec *executionContext) _GroupMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_updatedBy(ctx, field) +func (ec *executionContext) _DocumentData_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -109744,9 +27290,9 @@ func (ec *executionContext) _GroupMembership_updatedBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109757,8 +27303,49 @@ func (ec *executionContext) fieldContext_GroupMembership_updatedBy(_ context.Con return fc, nil } -func (ec *executionContext) _GroupMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_deletedAt(ctx, field) +func (ec *executionContext) _DocumentData_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, 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_DocumentData_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentData", + 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) _DocumentData_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -109785,9 +27372,9 @@ func (ec *executionContext) _GroupMembership_deletedAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109798,8 +27385,8 @@ func (ec *executionContext) fieldContext_GroupMembership_deletedAt(_ context.Con return fc, nil } -func (ec *executionContext) _GroupMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_deletedBy(ctx, field) +func (ec *executionContext) _DocumentData_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -109826,9 +27413,9 @@ func (ec *executionContext) _GroupMembership_deletedBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109839,8 +27426,8 @@ func (ec *executionContext) fieldContext_GroupMembership_deletedBy(_ context.Con return fc, nil } -func (ec *executionContext) _GroupMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_role(ctx, field) +func (ec *executionContext) _DocumentData_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -109853,38 +27440,35 @@ func (ec *executionContext) _GroupMembership_role(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMembershipRole does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembership_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_groupID(ctx, field) +func (ec *executionContext) _DocumentData_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_templateID(ctx, field) if err != nil { return graphql.Null } @@ -109897,7 +27481,7 @@ func (ec *executionContext) _GroupMembership_groupID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return obj.TemplateID, nil }) if err != nil { ec.Error(ctx, err) @@ -109914,9 +27498,9 @@ func (ec *executionContext) _GroupMembership_groupID(ctx context.Context, field return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: false, IsResolver: false, @@ -109927,8 +27511,8 @@ func (ec *executionContext) fieldContext_GroupMembership_groupID(_ context.Conte return fc, nil } -func (ec *executionContext) _GroupMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_userID(ctx, field) +func (ec *executionContext) _DocumentData_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_data(ctx, field) if err != nil { return graphql.Null } @@ -109941,7 +27525,7 @@ func (ec *executionContext) _GroupMembership_userID(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.Data, nil }) if err != nil { ec.Error(ctx, err) @@ -109953,26 +27537,26 @@ func (ec *executionContext) _GroupMembership_userID(ctx context.Context, field g } return graphql.Null } - res := resTmp.(string) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", 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 nil, errors.New("field of type JSON does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembership_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_group(ctx, field) +func (ec *executionContext) _DocumentData_owner(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_owner(ctx, field) if err != nil { return graphql.Null } @@ -109985,140 +27569,143 @@ func (ec *executionContext) _GroupMembership_group(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) + return ec.fieldContext_Organization_name(ctx, field) case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) + return ec.fieldContext_Organization_controlCreators(ctx, field) case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) + return ec.fieldContext_Organization_groupCreators(ctx, field) case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) + return ec.fieldContext_Organization_narrativeCreators(ctx, field) case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) + return ec.fieldContext_Organization_procedureCreators(ctx, field) case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) + return ec.fieldContext_Organization_programCreators(ctx, field) case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) + return ec.fieldContext_Organization_riskCreators(ctx, field) case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) case "setting": - return ec.fieldContext_Group_setting(ctx, field) + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) case "users": - return ec.fieldContext_Group_users(ctx, field) + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) case "files": - return ec.fieldContext_Group_files(ctx, field) + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_user(ctx, field) +func (ec *executionContext) _DocumentData_template(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_template(ctx, field) if err != nil { return graphql.Null } @@ -110131,7 +27718,7 @@ func (ec *executionContext) _GroupMembership_user(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.Template(ctx) }) if err != nil { ec.Error(ctx, err) @@ -110143,100 +27730,62 @@ func (ec *executionContext) _GroupMembership_user(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(*generated.Template) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: true, 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) + return ec.fieldContext_Template_id(ctx, field) case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_Template_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_Template_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_Template_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) + return ec.fieldContext_Template_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) + return ec.fieldContext_Template_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) + return ec.fieldContext_Template_deletedBy(ctx, field) case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembership_events(ctx, field) +func (ec *executionContext) _DocumentData_entity(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_entity(ctx, field) if err != nil { return graphql.Null } @@ -110249,7 +27798,7 @@ func (ec *executionContext) _GroupMembership_events(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.Entity(ctx) }) if err != nil { ec.Error(ctx, err) @@ -110258,70 +27807,70 @@ func (ec *executionContext) _GroupMembership_events(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.([]*generated.Entity) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembership", + Object: "DocumentData", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Event_id(ctx, field) + return ec.fieldContext_Entity_id(ctx, field) case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) + return ec.fieldContext_Entity_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) + return ec.fieldContext_Entity_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) + return ec.fieldContext_Entity_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) +func (ec *executionContext) _DocumentData_files(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentData) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentData_files(ctx, field) if err != nil { return graphql.Null } @@ -110334,7 +27883,7 @@ func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupMemberships, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -110343,54 +27892,92 @@ func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(c if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembership) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentData_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipBulkCreatePayload", + Object: "DocumentData", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) + return ec.fieldContext_File_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) + return ec.fieldContext_File_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + return ec.fieldContext_File_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) + return ec.fieldContext_File_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + return ec.fieldContext_File_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + return ec.fieldContext_File_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipConnection_edges(ctx, field) +func (ec *executionContext) _DocumentDataConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -110412,32 +27999,32 @@ func (ec *executionContext) _GroupMembershipConnection_edges(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembershipEdge) + res := resTmp.([]*generated.DocumentDataEdge) fc.Result = res - return ec.marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx, field.Selections, res) + return ec.marshalODocumentDataEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipConnection", + Object: "DocumentDataConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_GroupMembershipEdge_node(ctx, field) + return ec.fieldContext_DocumentDataEdge_node(ctx, field) case "cursor": - return ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) + return ec.fieldContext_DocumentDataEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentDataEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) +func (ec *executionContext) _DocumentDataConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -110467,9 +28054,9 @@ func (ec *executionContext) _GroupMembershipConnection_pageInfo(ctx context.Cont return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipConnection", + Object: "DocumentDataConnection", Field: field, IsMethod: false, IsResolver: false, @@ -110490,8 +28077,8 @@ func (ec *executionContext) fieldContext_GroupMembershipConnection_pageInfo(_ co return fc, nil } -func (ec *executionContext) _GroupMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) +func (ec *executionContext) _DocumentDataConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -110521,9 +28108,9 @@ func (ec *executionContext) _GroupMembershipConnection_totalCount(ctx context.Co return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipConnection", + Object: "DocumentDataConnection", Field: field, IsMethod: false, IsResolver: false, @@ -110534,124 +28121,8 @@ func (ec *executionContext) fieldContext_GroupMembershipConnection_totalCount(_ return fc, nil } -func (ec *executionContext) _GroupMembershipCreatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.GroupMembership, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.GroupMembership) - fc.Result = res - return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupMembershipCreatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupMembershipCreatePayload", - 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_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _GroupMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_GroupMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupMembershipDeletePayload", - 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) _GroupMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipEdge_node(ctx, field) +func (ec *executionContext) _DocumentDataEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -110673,54 +28144,58 @@ func (ec *executionContext) _GroupMembershipEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupMembership) + res := resTmp.(*generated.DocumentData) fc.Result = res - return ec.marshalOGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) + return ec.marshalODocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipEdge", + Object: "DocumentDataEdge", 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_GroupMembership_id(ctx, field) + return ec.fieldContext_DocumentData_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) + return ec.fieldContext_DocumentData_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + return ec.fieldContext_DocumentData_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) + return ec.fieldContext_DocumentData_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + return ec.fieldContext_DocumentData_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) +func (ec *executionContext) _DocumentDataEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -110750,9 +28225,9 @@ func (ec *executionContext) _GroupMembershipEdge_cursor(ctx context.Context, fie return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipEdge", + Object: "DocumentDataEdge", Field: field, IsMethod: false, IsResolver: false, @@ -110763,8 +28238,8 @@ func (ec *executionContext) fieldContext_GroupMembershipEdge_cursor(_ context.Co return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_id(ctx, field) +func (ec *executionContext) _DocumentDataHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -110794,9 +28269,9 @@ func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, fiel return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -110807,8 +28282,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_id(_ context.Con return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) +func (ec *executionContext) _DocumentDataHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -110838,9 +28313,9 @@ func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Cont return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -110851,8 +28326,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_historyTime(_ co return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_ref(ctx, field) +func (ec *executionContext) _DocumentDataHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -110879,9 +28354,9 @@ func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -110892,8 +28367,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_ref(_ context.Co return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_operation(ctx, field) +func (ec *executionContext) _DocumentDataHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -110920,24 +28395,24 @@ func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Contex } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNDocumentDataHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMembershipHistoryOpType does not have child fields") + return nil, errors.New("field of type DocumentDataHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) +func (ec *executionContext) _DocumentDataHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -110964,9 +28439,9 @@ func (ec *executionContext) _GroupMembershipHistory_createdAt(ctx context.Contex return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -110977,8 +28452,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_createdAt(_ cont return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) +func (ec *executionContext) _DocumentDataHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -111005,9 +28480,9 @@ func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Contex return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111018,8 +28493,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedAt(_ cont return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) +func (ec *executionContext) _DocumentDataHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -111046,9 +28521,9 @@ func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Contex return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111059,8 +28534,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_createdBy(_ cont return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) +func (ec *executionContext) _DocumentDataHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -111087,9 +28562,9 @@ func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Contex return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111100,8 +28575,49 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedBy(_ cont return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) +func (ec *executionContext) _DocumentDataHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, 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_DocumentDataHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistory", + 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) _DocumentDataHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -111128,9 +28644,9 @@ func (ec *executionContext) _GroupMembershipHistory_deletedAt(ctx context.Contex return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111141,8 +28657,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedAt(_ cont return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) +func (ec *executionContext) _DocumentDataHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -111169,9 +28685,9 @@ func (ec *executionContext) _GroupMembershipHistory_deletedBy(ctx context.Contex return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111182,8 +28698,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedBy(_ cont return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_role(ctx, field) +func (ec *executionContext) _DocumentDataHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -111196,38 +28712,35 @@ func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupMembershipHistoryRole does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) +func (ec *executionContext) _DocumentDataHistory_templateID(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_templateID(ctx, field) if err != nil { return graphql.Null } @@ -111240,7 +28753,7 @@ func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return obj.TemplateID, nil }) if err != nil { ec.Error(ctx, err) @@ -111257,9 +28770,9 @@ func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_templateID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", Field: field, IsMethod: false, IsResolver: false, @@ -111270,8 +28783,8 @@ func (ec *executionContext) fieldContext_GroupMembershipHistory_groupID(_ contex return fc, nil } -func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistory_userID(ctx, field) +func (ec *executionContext) _DocumentDataHistory_data(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistory_data(ctx, field) if err != nil { return graphql.Null } @@ -111284,7 +28797,7 @@ func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.Data, nil }) if err != nil { ec.Error(ctx, err) @@ -111296,26 +28809,26 @@ func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, } return graphql.Null } - res := resTmp.(string) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistory_data(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistory", + Object: "DocumentDataHistory", 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 nil, errors.New("field of type JSON does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) +func (ec *executionContext) _DocumentDataHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -111337,32 +28850,32 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembershipHistoryEdge) + res := resTmp.([]*generated.DocumentDataHistoryEdge) fc.Result = res - return ec.marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx, field.Selections, res) + return ec.marshalODocumentDataHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "DocumentDataHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) + return ec.fieldContext_DocumentDataHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) + return ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _DocumentDataHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -111392,9 +28905,9 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx conte return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "DocumentDataHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -111415,8 +28928,123 @@ func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageIn return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _DocumentDataHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryConnection_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, 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_DocumentDataHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryConnection", + 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) _DocumentDataHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryEdge_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(*generated.DocumentDataHistory) + fc.Result = res + return ec.marshalODocumentDataHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataHistoryEdge", + 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_DocumentDataHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_DocumentDataHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_DocumentDataHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_DocumentDataHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentDataHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentDataHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentDataHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentDataHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentDataHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentDataHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentDataHistory_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentDataHistory_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentDataHistory_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentDataHistory_data(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistory", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.DocumentDataHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -111429,7 +29057,7 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -111441,26 +29069,26 @@ func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx con } return graphql.Null } - res := resTmp.(int) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_DocumentDataHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryConnection", + Object: "DocumentDataHistoryEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) +func (ec *executionContext) _Entity_id(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_id(ctx, field) if err != nil { return graphql.Null } @@ -111473,63 +29101,38 @@ func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + 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.(*generated.GroupMembershipHistory) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistory(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryEdge", + Object: "Entity", 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_GroupMembershipHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_GroupMembershipHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_GroupMembershipHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembershipHistory_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembershipHistory_userID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistory", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Entity_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -111542,38 +29145,35 @@ func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + 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.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipHistoryEdge", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupMembershipUpdatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *GroupMembershipUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) +func (ec *executionContext) _Entity_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -111586,66 +29186,35 @@ func (ec *executionContext) _GroupMembershipUpdatePayload_groupMembership(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupMembership, nil + 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.(*generated.GroupMembership) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupMembershipUpdatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupMembershipUpdatePayload", + Object: "Entity", 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_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field graphql.CollectedField, obj *GroupSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSearchResult_groups(ctx, field) +func (ec *executionContext) _Entity_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -111658,7 +29227,7 @@ func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Groups, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -111667,128 +29236,26 @@ func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSearchResult_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSearchResult", + Object: "Entity", 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_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_id(ctx, field) +func (ec *executionContext) _Entity_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -111801,38 +29268,35 @@ func (ec *executionContext) _GroupSetting_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_createdAt(ctx, field) +func (ec *executionContext) _Entity_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -111845,7 +29309,7 @@ func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -111859,9 +29323,9 @@ func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field g return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, @@ -111872,8 +29336,8 @@ func (ec *executionContext) fieldContext_GroupSetting_createdAt(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_updatedAt(ctx, field) +func (ec *executionContext) _Entity_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -111886,7 +29350,7 @@ func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -111895,26 +29359,26 @@ func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_createdBy(ctx, field) +func (ec *executionContext) _Entity_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_tags(ctx, field) if err != nil { return graphql.Null } @@ -111927,7 +29391,7 @@ func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -111936,14 +29400,14 @@ func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, @@ -111954,8 +29418,8 @@ func (ec *executionContext) fieldContext_GroupSetting_createdBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_updatedBy(ctx, field) +func (ec *executionContext) _Entity_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -111968,7 +29432,7 @@ func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -111979,24 +29443,24 @@ func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field g } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_tags(ctx, field) +func (ec *executionContext) _Entity_name(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_name(ctx, field) if err != nil { return graphql.Null } @@ -112009,7 +29473,7 @@ func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -112018,14 +29482,14 @@ func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, @@ -112036,8 +29500,8 @@ func (ec *executionContext) fieldContext_GroupSetting_tags(_ context.Context, fi return fc, nil } -func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_deletedAt(ctx, field) +func (ec *executionContext) _Entity_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_displayName(ctx, field) if err != nil { return graphql.Null } @@ -112050,7 +29514,7 @@ func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -112059,26 +29523,26 @@ func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_deletedBy(ctx, field) +func (ec *executionContext) _Entity_description(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_description(ctx, field) if err != nil { return graphql.Null } @@ -112091,7 +29555,7 @@ func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -112105,9 +29569,9 @@ func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, @@ -112118,8 +29582,8 @@ func (ec *executionContext) fieldContext_GroupSetting_deletedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSetting_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_visibility(ctx, field) +func (ec *executionContext) _Entity_domains(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_domains(ctx, field) if err != nil { return graphql.Null } @@ -112132,38 +29596,35 @@ func (ec *executionContext) _GroupSetting_visibility(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Visibility, nil + return obj.Domains, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Visibility) + res := resTmp.([]string) fc.Result = res - return ec.marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingVisibility does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_joinPolicy(ctx, field) +func (ec *executionContext) _Entity_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_entityTypeID(ctx, field) if err != nil { return graphql.Null } @@ -112176,38 +29637,35 @@ func (ec *executionContext) _GroupSetting_joinPolicy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.JoinPolicy, nil + return obj.EntityTypeID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.JoinPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingJoinPolicy does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_syncToSlack(ctx, field) +func (ec *executionContext) _Entity_status(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_status(ctx, field) if err != nil { return graphql.Null } @@ -112220,7 +29678,7 @@ func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToSlack, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -112229,26 +29687,26 @@ func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_syncToGithub(ctx, field) +func (ec *executionContext) _Entity_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_owner(ctx, field) if err != nil { return graphql.Null } @@ -112261,7 +29719,7 @@ func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToGithub, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -112270,26 +29728,134 @@ func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_groupID(ctx, field) +func (ec *executionContext) _Entity_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_contacts(ctx, field) if err != nil { return graphql.Null } @@ -112302,7 +29868,7 @@ func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return obj.Contacts(ctx) }) if err != nil { ec.Error(ctx, err) @@ -112311,26 +29877,66 @@ func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Contact) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSetting_group(ctx, field) +func (ec *executionContext) _Entity_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_documents(ctx, field) if err != nil { return graphql.Null } @@ -112343,7 +29949,7 @@ func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return obj.Documents(ctx) }) if err != nil { ec.Error(ctx, err) @@ -112352,128 +29958,58 @@ func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.([]*generated.DocumentData) fc.Result = res - return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSetting_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSetting", + Object: "Entity", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_DocumentData_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_DocumentData_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_DocumentData_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_DocumentData_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_DocumentData_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) + return ec.fieldContext_DocumentData_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_DocumentData_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx context.Context, field graphql.CollectedField, obj *GroupSettingBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) +func (ec *executionContext) _Entity_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_notes(ctx, field) if err != nil { return graphql.Null } @@ -112486,7 +30022,7 @@ func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSettings, nil + return obj.Notes(ctx) }) if err != nil { ec.Error(ctx, err) @@ -112495,56 +30031,56 @@ func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupSetting) + res := resTmp.([]*generated.Note) fc.Result = res - return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) + return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingBulkCreatePayload_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingBulkCreatePayload", + Object: "Entity", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) + return ec.fieldContext_Note_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Note_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_Note_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_Note_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_Note_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_Note_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + case "program": + return ec.fieldContext_Note_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingConnection_edges(ctx, field) +func (ec *executionContext) _Entity_files(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_files(ctx, field) if err != nil { return graphql.Null } @@ -112557,7 +30093,7 @@ func (ec *executionContext) _GroupSettingConnection_edges(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -112566,32 +30102,92 @@ func (ec *executionContext) _GroupSettingConnection_edges(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupSettingEdge) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingConnection", + Object: "Entity", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_GroupSettingEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_GroupSettingEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) +func (ec *executionContext) _Entity_entityType(ctx context.Context, field graphql.CollectedField, obj *generated.Entity) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Entity_entityType(ctx, field) if err != nil { return graphql.Null } @@ -112604,48 +30200,61 @@ func (ec *executionContext) _GroupSettingConnection_pageInfo(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.EntityType(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*generated.EntityType) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Entity_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingConnection", + Object: "Entity", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) +func (ec *executionContext) _EntityConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -112658,38 +30267,41 @@ func (ec *executionContext) _GroupSettingConnection_totalCount(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.([]*generated.EntityEdge) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOEntityEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingConnection", + Object: "EntityConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_EntityEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntityEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *GroupSettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) +func (ec *executionContext) _EntityConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -112702,7 +30314,7 @@ func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSetting, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -112714,56 +30326,36 @@ func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context. } return graphql.Null } - res := resTmp.(*generated.GroupSetting) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingCreatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingCreatePayload", + Object: "EntityConnection", 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_GroupSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + 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 GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *GroupSettingDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _EntityConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -112776,7 +30368,7 @@ func (ec *executionContext) _GroupSettingDeletePayload_deletedID(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -112788,26 +30380,26 @@ func (ec *executionContext) _GroupSettingDeletePayload_deletedID(ctx context.Con } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingDeletePayload", + Object: "EntityConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingEdge_node(ctx, field) +func (ec *executionContext) _EntityEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -112829,56 +30421,70 @@ func (ec *executionContext) _GroupSettingEdge_node(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupSetting) + res := resTmp.(*generated.Entity) fc.Result = res - return ec.marshalOGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingEdge", + Object: "EntityEdge", 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_GroupSetting_id(ctx, field) + return ec.fieldContext_Entity_id(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_Entity_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingEdge_cursor(ctx, field) +func (ec *executionContext) _EntityEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -112908,9 +30514,9 @@ func (ec *executionContext) _GroupSettingEdge_cursor(ctx context.Context, field return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingEdge", + Object: "EntityEdge", Field: field, IsMethod: false, IsResolver: false, @@ -112921,8 +30527,8 @@ func (ec *executionContext) fieldContext_GroupSettingEdge_cursor(_ context.Conte return fc, nil } -func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_id(ctx, field) +func (ec *executionContext) _EntityHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -112952,9 +30558,9 @@ func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field g return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -112965,8 +30571,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Contex return fc, nil } -func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) +func (ec *executionContext) _EntityHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -112996,9 +30602,9 @@ func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113009,8 +30615,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ conte return fc, nil } -func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_ref(ctx, field) +func (ec *executionContext) _EntityHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -113037,9 +30643,9 @@ func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113050,8 +30656,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Conte return fc, nil } -func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_operation(ctx, field) +func (ec *executionContext) _EntityHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -113078,24 +30684,24 @@ func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNEntityHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingHistoryOpType does not have child fields") + return nil, errors.New("field of type EntityHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) +func (ec *executionContext) _EntityHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -113122,9 +30728,9 @@ func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113135,8 +30741,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) +func (ec *executionContext) _EntityHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -113163,9 +30769,9 @@ func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113176,8 +30782,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) +func (ec *executionContext) _EntityHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -113204,9 +30810,9 @@ func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113217,8 +30823,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) +func (ec *executionContext) _EntityHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -113245,50 +30851,9 @@ func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", - 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) _GroupSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_GroupSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113299,8 +30864,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_tags(_ context.Cont return fc, nil } -func (ec *executionContext) _GroupSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) +func (ec *executionContext) _EntityHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -113327,9 +30892,9 @@ func (ec *executionContext) _GroupSettingHistory_deletedAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113340,8 +30905,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_deletedAt(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) +func (ec *executionContext) _EntityHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -113368,9 +30933,9 @@ func (ec *executionContext) _GroupSettingHistory_deletedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113381,8 +30946,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_deletedBy(_ context return fc, nil } -func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_visibility(ctx, field) +func (ec *executionContext) _EntityHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -113395,38 +30960,35 @@ func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Visibility, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Visibility) + res := resTmp.([]string) fc.Result = res - return ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingHistoryVisibility does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) +func (ec *executionContext) _EntityHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -113439,38 +31001,35 @@ func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.JoinPolicy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.JoinPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type GroupSettingHistoryJoinPolicy does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) +func (ec *executionContext) _EntityHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -113483,7 +31042,7 @@ func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToSlack, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -113492,26 +31051,26 @@ func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) +func (ec *executionContext) _EntityHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_displayName(ctx, field) if err != nil { return graphql.Null } @@ -113524,7 +31083,7 @@ func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SyncToGithub, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -113533,26 +31092,26 @@ func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistory_groupID(ctx, field) +func (ec *executionContext) _EntityHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -113565,7 +31124,7 @@ func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupID, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -113579,9 +31138,9 @@ func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistory", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, @@ -113592,8 +31151,8 @@ func (ec *executionContext) fieldContext_GroupSettingHistory_groupID(_ context.C return fc, nil } -func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) +func (ec *executionContext) _EntityHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_domains(ctx, field) if err != nil { return graphql.Null } @@ -113606,7 +31165,7 @@ func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Domains, nil }) if err != nil { ec.Error(ctx, err) @@ -113615,32 +31174,26 @@ func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupSettingHistoryEdge) + res := resTmp.([]string) fc.Result = res - return ec.marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", + Object: "EntityHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _EntityHistory_entityTypeID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_entityTypeID(ctx, field) if err != nil { return graphql.Null } @@ -113653,48 +31206,35 @@ func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.EntityTypeID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_entityTypeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", + Object: "EntityHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _EntityHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -113707,38 +31247,35 @@ func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryConnection", + Object: "EntityHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) +func (ec *executionContext) _EntityHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -113751,7 +31288,7 @@ func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -113760,60 +31297,32 @@ func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.GroupSettingHistory) + res := resTmp.([]*generated.EntityHistoryEdge) fc.Result = res - return ec.marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistory(ctx, field.Selections, res) + return ec.marshalOEntityHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryEdge", + Object: "EntityHistoryConnection", 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_GroupSettingHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_GroupSettingHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_GroupSettingHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSettingHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSettingHistory_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSettingHistory_groupID(ctx, field) + case "node": + return ec.fieldContext_EntityHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _EntityHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -113826,7 +31335,7 @@ func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -113838,26 +31347,36 @@ func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingHistoryEdge", + Object: "EntityHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + 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) _GroupSettingSearchResult_groupSettings(ctx context.Context, field graphql.CollectedField, obj *GroupSettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) +func (ec *executionContext) _EntityHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -113870,65 +31389,38 @@ func (ec *executionContext) _GroupSettingSearchResult_groupSettings(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSettings, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.GroupSetting) + res := resTmp.(int) fc.Result = res - return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingSearchResult_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingSearchResult", + Object: "EntityHistoryConnection", 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_GroupSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _GroupSettingUpdatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *GroupSettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) +func (ec *executionContext) _EntityHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -113941,68 +31433,73 @@ func (ec *executionContext) _GroupSettingUpdatePayload_groupSetting(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupSetting, nil + 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.(*generated.GroupSetting) + res := resTmp.(*generated.EntityHistory) fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalOEntityHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupSettingUpdatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupSettingUpdatePayload", + Object: "EntityHistoryEdge", 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_GroupSetting_id(ctx, field) + return ec.fieldContext_EntityHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EntityHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EntityHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EntityHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) + return ec.fieldContext_EntityHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + return ec.fieldContext_EntityHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) + return ec.fieldContext_EntityHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) + return ec.fieldContext_EntityHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + return ec.fieldContext_EntityHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + return ec.fieldContext_EntityHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityHistory_name(ctx, field) + case "displayName": + return ec.fieldContext_EntityHistory_displayName(ctx, field) + case "description": + return ec.fieldContext_EntityHistory_description(ctx, field) + case "domains": + return ec.fieldContext_EntityHistory_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_EntityHistory_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_EntityHistory_status(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _GroupUpdatePayload_group(ctx context.Context, field graphql.CollectedField, obj *GroupUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_GroupUpdatePayload_group(ctx, field) +func (ec *executionContext) _EntityHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -114015,7 +31512,7 @@ func (ec *executionContext) _GroupUpdatePayload_group(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -114027,128 +31524,26 @@ func (ec *executionContext) _GroupUpdatePayload_group(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_GroupUpdatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "GroupUpdatePayload", + Object: "EntityHistoryEdge", 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_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Hush_id(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_id(ctx, field) +func (ec *executionContext) _EntityType_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_id(ctx, field) if err != nil { return graphql.Null } @@ -114178,9 +31573,9 @@ func (ec *executionContext) _Hush_id(ctx context.Context, field graphql.Collecte return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114191,8 +31586,8 @@ func (ec *executionContext) fieldContext_Hush_id(_ context.Context, field graphq return fc, nil } -func (ec *executionContext) _Hush_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_createdAt(ctx, field) +func (ec *executionContext) _EntityType_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -114219,9 +31614,9 @@ func (ec *executionContext) _Hush_createdAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114232,8 +31627,8 @@ func (ec *executionContext) fieldContext_Hush_createdAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_updatedAt(ctx, field) +func (ec *executionContext) _EntityType_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -114260,9 +31655,9 @@ func (ec *executionContext) _Hush_updatedAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114273,8 +31668,8 @@ func (ec *executionContext) fieldContext_Hush_updatedAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_createdBy(ctx, field) +func (ec *executionContext) _EntityType_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -114301,9 +31696,9 @@ func (ec *executionContext) _Hush_createdBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114314,8 +31709,8 @@ func (ec *executionContext) fieldContext_Hush_createdBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_updatedBy(ctx, field) +func (ec *executionContext) _EntityType_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -114342,9 +31737,9 @@ func (ec *executionContext) _Hush_updatedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114355,8 +31750,8 @@ func (ec *executionContext) fieldContext_Hush_updatedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_deletedAt(ctx, field) +func (ec *executionContext) _EntityType_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -114383,9 +31778,9 @@ func (ec *executionContext) _Hush_deletedAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114396,8 +31791,8 @@ func (ec *executionContext) fieldContext_Hush_deletedAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_deletedBy(ctx, field) +func (ec *executionContext) _EntityType_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -114424,9 +31819,9 @@ func (ec *executionContext) _Hush_deletedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114437,8 +31832,8 @@ func (ec *executionContext) fieldContext_Hush_deletedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Hush_name(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_name(ctx, field) +func (ec *executionContext) _EntityType_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_tags(ctx, field) if err != nil { return graphql.Null } @@ -114451,26 +31846,23 @@ func (ec *executionContext) _Hush_name(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114481,8 +31873,8 @@ func (ec *executionContext) fieldContext_Hush_name(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Hush_description(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_description(ctx, field) +func (ec *executionContext) _EntityType_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -114495,7 +31887,7 @@ func (ec *executionContext) _Hush_description(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -114506,24 +31898,24 @@ func (ec *executionContext) _Hush_description(ctx context.Context, field graphql } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Hush_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_kind(ctx, field) +func (ec *executionContext) _EntityType_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_name(ctx, field) if err != nil { return graphql.Null } @@ -114536,64 +31928,26 @@ func (ec *executionContext) _Hush_kind(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Hush_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Hush", - 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) _Hush_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_secretName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SecretName, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: false, IsResolver: false, @@ -114604,81 +31958,8 @@ func (ec *executionContext) fieldContext_Hush_secretName(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Hush_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_integrations(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Integrations(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Integration) - fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Hush_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Hush", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Hush_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_organization(ctx, field) +func (ec *executionContext) _EntityType_owner(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_owner(ctx, field) if err != nil { return graphql.Null } @@ -114691,7 +31972,7 @@ func (ec *executionContext) _Hush_organization(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -114700,14 +31981,14 @@ func (ec *executionContext) _Hush_organization(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: true, IsResolver: false, @@ -114826,8 +32107,8 @@ func (ec *executionContext) fieldContext_Hush_organization(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Hush_events(ctx, field) +func (ec *executionContext) _EntityType_entities(ctx context.Context, field graphql.CollectedField, obj *generated.EntityType) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityType_entities(ctx, field) if err != nil { return graphql.Null } @@ -114840,7 +32121,7 @@ func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.Entities(ctx) }) if err != nil { ec.Error(ctx, err) @@ -114849,141 +32130,70 @@ func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.([]*generated.Entity) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Hush_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityType_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Hush", + Object: "EntityType", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _HushBulkCreatePayload_hushes(ctx context.Context, field graphql.CollectedField, obj *HushBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Hushes, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Hush) - fc.Result = res - return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_HushBulkCreatePayload_hushes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "HushBulkCreatePayload", - 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_Hush_id(ctx, field) + return ec.fieldContext_Entity_id(ctx, field) case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) + return ec.fieldContext_Entity_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) + return ec.fieldContext_Entity_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) + return ec.fieldContext_Entity_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) + return ec.fieldContext_Entity_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) + return ec.fieldContext_Entity_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) case "name": - return ec.fieldContext_Hush_name(ctx, field) + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushConnection_edges(ctx, field) +func (ec *executionContext) _EntityTypeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -115005,32 +32215,32 @@ func (ec *executionContext) _HushConnection_edges(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.HushEdge) + res := resTmp.([]*generated.EntityTypeEdge) fc.Result = res - return ec.marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx, field.Selections, res) + return ec.marshalOEntityTypeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushConnection", + Object: "EntityTypeConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_HushEdge_node(ctx, field) + return ec.fieldContext_EntityTypeEdge_node(ctx, field) case "cursor": - return ec.fieldContext_HushEdge_cursor(ctx, field) + return ec.fieldContext_EntityTypeEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityTypeEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushConnection_pageInfo(ctx, field) +func (ec *executionContext) _EntityTypeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -115060,9 +32270,9 @@ func (ec *executionContext) _HushConnection_pageInfo(ctx context.Context, field return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushConnection", + Object: "EntityTypeConnection", Field: field, IsMethod: false, IsResolver: false, @@ -115083,8 +32293,8 @@ func (ec *executionContext) fieldContext_HushConnection_pageInfo(_ context.Conte return fc, nil } -func (ec *executionContext) _HushConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushConnection_totalCount(ctx, field) +func (ec *executionContext) _EntityTypeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -115114,9 +32324,9 @@ func (ec *executionContext) _HushConnection_totalCount(ctx context.Context, fiel return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushConnection", + Object: "EntityTypeConnection", Field: field, IsMethod: false, IsResolver: false, @@ -115127,126 +32337,8 @@ func (ec *executionContext) fieldContext_HushConnection_totalCount(_ context.Con return fc, nil } -func (ec *executionContext) _HushCreatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *HushCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushCreatePayload_hush(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Hush, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Hush) - fc.Result = res - return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_HushCreatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "HushCreatePayload", - 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_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _HushDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *HushDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_HushDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "HushDeletePayload", - 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) _HushEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushEdge_node(ctx, field) +func (ec *executionContext) _EntityTypeEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -115268,56 +32360,52 @@ func (ec *executionContext) _HushEdge_node(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Hush) + res := resTmp.(*generated.EntityType) fc.Result = res - return ec.marshalOHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) + return ec.marshalOEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushEdge", + Object: "EntityTypeEdge", 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_Hush_id(ctx, field) + return ec.fieldContext_EntityType_id(ctx, field) case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) + return ec.fieldContext_EntityType_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) + return ec.fieldContext_EntityType_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) + return ec.fieldContext_EntityType_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) + return ec.fieldContext_EntityType_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) + return ec.fieldContext_EntityType_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushEdge_cursor(ctx, field) +func (ec *executionContext) _EntityTypeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -115347,9 +32435,9 @@ func (ec *executionContext) _HushEdge_cursor(ctx context.Context, field graphql. return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushEdge", + Object: "EntityTypeEdge", Field: field, IsMethod: false, IsResolver: false, @@ -115360,8 +32448,8 @@ func (ec *executionContext) fieldContext_HushEdge_cursor(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_id(ctx, field) +func (ec *executionContext) _EntityTypeHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -115391,9 +32479,9 @@ func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.C return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115404,8 +32492,8 @@ func (ec *executionContext) fieldContext_HushHistory_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_historyTime(ctx, field) +func (ec *executionContext) _EntityTypeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -115435,9 +32523,9 @@ func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115448,8 +32536,8 @@ func (ec *executionContext) fieldContext_HushHistory_historyTime(_ context.Conte return fc, nil } -func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_ref(ctx, field) +func (ec *executionContext) _EntityTypeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -115476,9 +32564,9 @@ func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115489,8 +32577,8 @@ func (ec *executionContext) fieldContext_HushHistory_ref(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _HushHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_operation(ctx, field) +func (ec *executionContext) _EntityTypeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -115517,24 +32605,24 @@ func (ec *executionContext) _HushHistory_operation(ctx context.Context, field gr } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNEntityTypeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type HushHistoryOpType does not have child fields") + return nil, errors.New("field of type EntityTypeHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_createdAt(ctx, field) +func (ec *executionContext) _EntityTypeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -115561,9 +32649,9 @@ func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115574,8 +32662,8 @@ func (ec *executionContext) fieldContext_HushHistory_createdAt(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_updatedAt(ctx, field) +func (ec *executionContext) _EntityTypeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -115602,9 +32690,9 @@ func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115615,8 +32703,8 @@ func (ec *executionContext) fieldContext_HushHistory_updatedAt(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_createdBy(ctx, field) +func (ec *executionContext) _EntityTypeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -115643,9 +32731,9 @@ func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115656,8 +32744,8 @@ func (ec *executionContext) fieldContext_HushHistory_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_updatedBy(ctx, field) +func (ec *executionContext) _EntityTypeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -115684,9 +32772,9 @@ func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115697,8 +32785,8 @@ func (ec *executionContext) fieldContext_HushHistory_updatedBy(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_deletedAt(ctx, field) +func (ec *executionContext) _EntityTypeHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -115725,9 +32813,9 @@ func (ec *executionContext) _HushHistory_deletedAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115738,8 +32826,8 @@ func (ec *executionContext) fieldContext_HushHistory_deletedAt(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_deletedBy(ctx, field) +func (ec *executionContext) _EntityTypeHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -115766,9 +32854,9 @@ func (ec *executionContext) _HushHistory_deletedBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115779,8 +32867,8 @@ func (ec *executionContext) fieldContext_HushHistory_deletedBy(_ context.Context return fc, nil } -func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_name(ctx, field) +func (ec *executionContext) _EntityTypeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -115793,26 +32881,23 @@ func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115823,8 +32908,8 @@ func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, fie return fc, nil } -func (ec *executionContext) _HushHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_description(ctx, field) +func (ec *executionContext) _EntityTypeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -115837,7 +32922,7 @@ func (ec *executionContext) _HushHistory_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -115851,9 +32936,9 @@ func (ec *executionContext) _HushHistory_description(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115864,8 +32949,8 @@ func (ec *executionContext) fieldContext_HushHistory_description(_ context.Conte return fc, nil } -func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_kind(ctx, field) +func (ec *executionContext) _EntityTypeHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -115878,64 +32963,26 @@ func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_HushHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "HushHistory", - 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) _HushHistory_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistory_secretName(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SecretName, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistory_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistory", + Object: "EntityTypeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -115946,8 +32993,8 @@ func (ec *executionContext) fieldContext_HushHistory_secretName(_ context.Contex return fc, nil } -func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryConnection_edges(ctx, field) +func (ec *executionContext) _EntityTypeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -115969,32 +33016,32 @@ func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.HushHistoryEdge) + res := resTmp.([]*generated.EntityTypeHistoryEdge) fc.Result = res - return ec.marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx, field.Selections, res) + return ec.marshalOEntityTypeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "EntityTypeHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_HushHistoryEdge_node(ctx, field) + return ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_HushHistoryEdge_cursor(ctx, field) + return ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _EntityTypeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -116024,9 +33071,9 @@ func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "EntityTypeHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -116047,8 +33094,8 @@ func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _EntityTypeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -116078,9 +33125,9 @@ func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Contex return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryConnection", + Object: "EntityTypeHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -116091,8 +33138,8 @@ func (ec *executionContext) fieldContext_HushHistoryConnection_totalCount(_ cont return fc, nil } -func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryEdge_node(ctx, field) +func (ec *executionContext) _EntityTypeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -116114,56 +33161,54 @@ func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.HushHistory) + res := resTmp.(*generated.EntityTypeHistory) fc.Result = res - return ec.marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistory(ctx, field.Selections, res) + return ec.marshalOEntityTypeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryEdge", + Object: "EntityTypeHistoryEdge", 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_HushHistory_id(ctx, field) + return ec.fieldContext_EntityTypeHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_HushHistory_historyTime(ctx, field) + return ec.fieldContext_EntityTypeHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_HushHistory_ref(ctx, field) + return ec.fieldContext_EntityTypeHistory_ref(ctx, field) case "operation": - return ec.fieldContext_HushHistory_operation(ctx, field) + return ec.fieldContext_EntityTypeHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_HushHistory_createdAt(ctx, field) + return ec.fieldContext_EntityTypeHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_HushHistory_updatedAt(ctx, field) + return ec.fieldContext_EntityTypeHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_HushHistory_createdBy(ctx, field) + return ec.fieldContext_EntityTypeHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_HushHistory_updatedBy(ctx, field) + return ec.fieldContext_EntityTypeHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_HushHistory_deletedAt(ctx, field) + return ec.fieldContext_EntityTypeHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_HushHistory_deletedBy(ctx, field) + return ec.fieldContext_EntityTypeHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityTypeHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityTypeHistory_ownerID(ctx, field) case "name": - return ec.fieldContext_HushHistory_name(ctx, field) - case "description": - return ec.fieldContext_HushHistory_description(ctx, field) - case "kind": - return ec.fieldContext_HushHistory_kind(ctx, field) - case "secretName": - return ec.fieldContext_HushHistory_secretName(ctx, field) + return ec.fieldContext_EntityTypeHistory_name(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type HushHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _EntityTypeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EntityTypeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -116193,9 +33238,9 @@ func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field g return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EntityTypeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushHistoryEdge", + Object: "EntityTypeHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -116206,8 +33251,8 @@ func (ec *executionContext) fieldContext_HushHistoryEdge_cursor(_ context.Contex return fc, nil } -func (ec *executionContext) _HushUpdatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *HushUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_HushUpdatePayload_hush(ctx, field) +func (ec *executionContext) _Event_id(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_id(ctx, field) if err != nil { return graphql.Null } @@ -116220,7 +33265,7 @@ func (ec *executionContext) _HushUpdatePayload_hush(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Hush, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -116232,56 +33277,26 @@ func (ec *executionContext) _HushUpdatePayload_hush(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.Hush) + res := resTmp.(string) fc.Result = res - return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_HushUpdatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "HushUpdatePayload", + Object: "Event", 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_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_id(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_id(ctx, field) +func (ec *executionContext) _Event_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -116294,38 +33309,35 @@ func (ec *executionContext) _Integration_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + 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.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_createdAt(ctx, field) +func (ec *executionContext) _Event_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -116338,7 +33350,7 @@ func (ec *executionContext) _Integration_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -116352,9 +33364,9 @@ func (ec *executionContext) _Integration_createdAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: false, IsResolver: false, @@ -116365,8 +33377,8 @@ func (ec *executionContext) fieldContext_Integration_createdAt(_ context.Context return fc, nil } -func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_updatedAt(ctx, field) +func (ec *executionContext) _Event_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -116379,7 +33391,7 @@ func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -116388,26 +33400,26 @@ func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_createdBy(ctx, field) +func (ec *executionContext) _Event_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -116420,7 +33432,7 @@ func (ec *executionContext) _Integration_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -116434,9 +33446,9 @@ func (ec *executionContext) _Integration_createdBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: false, IsResolver: false, @@ -116447,8 +33459,8 @@ func (ec *executionContext) fieldContext_Integration_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_updatedBy(ctx, field) +func (ec *executionContext) _Event_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_tags(ctx, field) if err != nil { return graphql.Null } @@ -116461,7 +33473,7 @@ func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -116470,14 +33482,14 @@ func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: false, IsResolver: false, @@ -116488,8 +33500,8 @@ func (ec *executionContext) fieldContext_Integration_updatedBy(_ context.Context return fc, nil } -func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_tags(ctx, field) +func (ec *executionContext) _Event_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_eventID(ctx, field) if err != nil { return graphql.Null } @@ -116502,7 +33514,7 @@ func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.EventID, nil }) if err != nil { ec.Error(ctx, err) @@ -116511,14 +33523,14 @@ func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: false, IsResolver: false, @@ -116529,8 +33541,8 @@ func (ec *executionContext) fieldContext_Integration_tags(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Integration_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_deletedAt(ctx, field) +func (ec *executionContext) _Event_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_correlationID(ctx, field) if err != nil { return graphql.Null } @@ -116543,7 +33555,7 @@ func (ec *executionContext) _Integration_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.CorrelationID, nil }) if err != nil { ec.Error(ctx, err) @@ -116552,26 +33564,26 @@ func (ec *executionContext) _Integration_deletedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_deletedBy(ctx, field) +func (ec *executionContext) _Event_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_eventType(ctx, field) if err != nil { return graphql.Null } @@ -116584,23 +33596,26 @@ func (ec *executionContext) _Integration_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.EventType, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: false, IsResolver: false, @@ -116611,8 +33626,8 @@ func (ec *executionContext) fieldContext_Integration_deletedBy(_ context.Context return fc, nil } -func (ec *executionContext) _Integration_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_ownerID(ctx, field) +func (ec *executionContext) _Event_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_metadata(ctx, field) if err != nil { return graphql.Null } @@ -116625,7 +33640,7 @@ func (ec *executionContext) _Integration_ownerID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Metadata, nil }) if err != nil { ec.Error(ctx, err) @@ -116634,26 +33649,26 @@ func (ec *executionContext) _Integration_ownerID(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Integration_name(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_name(ctx, field) +func (ec *executionContext) _Event_user(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_user(ctx, field) if err != nil { return graphql.Null } @@ -116666,38 +33681,109 @@ func (ec *executionContext) _Integration_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.User(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_description(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_description(ctx, field) +func (ec *executionContext) _Event_group(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_group(ctx, field) if err != nil { return graphql.Null } @@ -116710,7 +33796,7 @@ func (ec *executionContext) _Integration_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Group(ctx) }) if err != nil { ec.Error(ctx, err) @@ -116719,26 +33805,128 @@ func (ec *executionContext) _Integration_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_kind(ctx, field) +func (ec *executionContext) _Event_integration(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_integration(ctx, field) if err != nil { return graphql.Null } @@ -116751,7 +33939,7 @@ func (ec *executionContext) _Integration_kind(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.Integration(ctx) }) if err != nil { ec.Error(ctx, err) @@ -116760,26 +33948,58 @@ func (ec *executionContext) _Integration_kind(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Integration) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) }, } return fc, nil } -func (ec *executionContext) _Integration_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_owner(ctx, field) +func (ec *executionContext) _Event_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_organization(ctx, field) if err != nil { return graphql.Null } @@ -116792,7 +34012,7 @@ func (ec *executionContext) _Integration_owner(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) @@ -116801,14 +34021,14 @@ func (ec *executionContext) _Integration_owner(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: true, IsResolver: false, @@ -116927,8 +34147,8 @@ func (ec *executionContext) fieldContext_Integration_owner(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Integration_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_secrets(ctx, field) +func (ec *executionContext) _Event_invite(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_invite(ctx, field) if err != nil { return graphql.Null } @@ -116941,7 +34161,159 @@ func (ec *executionContext) _Integration_secrets(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Secrets(ctx) + return obj.Invite(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Invite) + fc.Result = res + return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_personalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersonalAccessToken(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.PersonalAccessToken) + fc.Result = res + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Event_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Event", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Event_hush(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_hush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hush(ctx) }) if err != nil { ec.Error(ctx, err) @@ -116955,9 +34327,9 @@ func (ec *executionContext) _Integration_secrets(ctx context.Context, field grap return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: true, IsResolver: false, @@ -116998,8 +34370,8 @@ func (ec *executionContext) fieldContext_Integration_secrets(_ context.Context, return fc, nil } -func (ec *executionContext) _Integration_events(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Integration_events(ctx, field) +func (ec *executionContext) _Event_orgmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_orgmembership(ctx, field) if err != nil { return graphql.Null } @@ -117012,7 +34384,7 @@ func (ec *executionContext) _Integration_events(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.Orgmembership(ctx) }) if err != nil { ec.Error(ctx, err) @@ -117021,70 +34393,54 @@ func (ec *executionContext) _Integration_events(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.([]*generated.OrgMembership) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Integration_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_orgmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Integration", + Object: "Event", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Event_id(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx context.Context, field graphql.CollectedField, obj *IntegrationBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) +func (ec *executionContext) _Event_groupmembership(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_groupmembership(ctx, field) if err != nil { return graphql.Null } @@ -117097,7 +34453,7 @@ func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations, nil + return obj.Groupmembership(ctx) }) if err != nil { ec.Error(ctx, err) @@ -117106,58 +34462,54 @@ func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.([]*generated.GroupMembership) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationBulkCreatePayload_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_groupmembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationBulkCreatePayload", + Object: "Event", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Integration_id(ctx, field) + return ec.fieldContext_GroupMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) + return ec.fieldContext_GroupMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) + return ec.fieldContext_GroupMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) case "events": - return ec.fieldContext_Integration_events(ctx, field) + return ec.fieldContext_GroupMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationConnection_edges(ctx, field) +func (ec *executionContext) _Event_subscriber(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_subscriber(ctx, field) if err != nil { return graphql.Null } @@ -117170,7 +34522,7 @@ func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Subscriber(ctx) }) if err != nil { ec.Error(ctx, err) @@ -117179,32 +34531,60 @@ func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.IntegrationEdge) + res := resTmp.([]*generated.Subscriber) fc.Result = res - return ec.marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx, field.Selections, res) + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationConnection", + Object: "Event", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_IntegrationEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IntegrationEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) +func (ec *executionContext) _Event_file(ctx context.Context, field graphql.CollectedField, obj *generated.Event) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Event_file(ctx, field) if err != nil { return graphql.Null } @@ -117217,48 +34597,101 @@ func (ec *executionContext) _IntegrationConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.File(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Event_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationConnection", + Object: "Event", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationConnection_totalCount(ctx, field) +func (ec *executionContext) _EventConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -117271,38 +34704,41 @@ func (ec *executionContext) _IntegrationConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.([]*generated.EventEdge) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOEventEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationConnection", + Object: "EventConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_EventEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EventEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationCreatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *IntegrationCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) +func (ec *executionContext) _EventConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -117315,7 +34751,7 @@ func (ec *executionContext) _IntegrationCreatePayload_integration(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integration, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -117327,58 +34763,36 @@ func (ec *executionContext) _IntegrationCreatePayload_integration(ctx context.Co } return graphql.Null } - res := resTmp.(*generated.Integration) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationCreatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationCreatePayload", + Object: "EventConnection", 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_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) + 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 Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *IntegrationDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _EventConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -117391,7 +34805,7 @@ func (ec *executionContext) _IntegrationDeletePayload_deletedID(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -117403,26 +34817,26 @@ func (ec *executionContext) _IntegrationDeletePayload_deletedID(ctx context.Cont } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationDeletePayload", + Object: "EventConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationEdge_node(ctx, field) +func (ec *executionContext) _EventEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -117444,58 +34858,70 @@ func (ec *executionContext) _IntegrationEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Integration) + res := resTmp.(*generated.Event) fc.Result = res - return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) + return ec.marshalOEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationEdge", + Object: "EventEdge", 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_Integration_id(ctx, field) + return ec.fieldContext_Event_id(ctx, field) case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) + return ec.fieldContext_Event_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) + return ec.fieldContext_Event_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) + return ec.fieldContext_Event_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) + return ec.fieldContext_Event_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationEdge_cursor(ctx, field) +func (ec *executionContext) _EventEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -117525,9 +34951,9 @@ func (ec *executionContext) _IntegrationEdge_cursor(ctx context.Context, field g return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationEdge", + Object: "EventEdge", Field: field, IsMethod: false, IsResolver: false, @@ -117538,8 +34964,8 @@ func (ec *executionContext) fieldContext_IntegrationEdge_cursor(_ context.Contex return fc, nil } -func (ec *executionContext) _IntegrationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_id(ctx, field) +func (ec *executionContext) _EventHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -117569,9 +34995,9 @@ func (ec *executionContext) _IntegrationHistory_id(ctx context.Context, field gr return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117582,8 +35008,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_id(_ context.Context return fc, nil } -func (ec *executionContext) _IntegrationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_historyTime(ctx, field) +func (ec *executionContext) _EventHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -117613,9 +35039,9 @@ func (ec *executionContext) _IntegrationHistory_historyTime(ctx context.Context, return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117626,8 +35052,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_historyTime(_ contex return fc, nil } -func (ec *executionContext) _IntegrationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_ref(ctx, field) +func (ec *executionContext) _EventHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -117654,9 +35080,9 @@ func (ec *executionContext) _IntegrationHistory_ref(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117667,8 +35093,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_ref(_ context.Contex return fc, nil } -func (ec *executionContext) _IntegrationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_operation(ctx, field) +func (ec *executionContext) _EventHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -117695,24 +35121,24 @@ func (ec *executionContext) _IntegrationHistory_operation(ctx context.Context, f } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNEventHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type IntegrationHistoryOpType does not have child fields") + return nil, errors.New("field of type EventHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_createdAt(ctx, field) +func (ec *executionContext) _EventHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -117739,9 +35165,9 @@ func (ec *executionContext) _IntegrationHistory_createdAt(ctx context.Context, f return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117752,8 +35178,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_createdAt(_ context. return fc, nil } -func (ec *executionContext) _IntegrationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) +func (ec *executionContext) _EventHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -117780,9 +35206,9 @@ func (ec *executionContext) _IntegrationHistory_updatedAt(ctx context.Context, f return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117793,8 +35219,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_updatedAt(_ context. return fc, nil } -func (ec *executionContext) _IntegrationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_createdBy(ctx, field) +func (ec *executionContext) _EventHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -117821,9 +35247,9 @@ func (ec *executionContext) _IntegrationHistory_createdBy(ctx context.Context, f return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117834,8 +35260,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_createdBy(_ context. return fc, nil } -func (ec *executionContext) _IntegrationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) +func (ec *executionContext) _EventHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -117862,9 +35288,9 @@ func (ec *executionContext) _IntegrationHistory_updatedBy(ctx context.Context, f return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117875,8 +35301,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_updatedBy(_ context. return fc, nil } -func (ec *executionContext) _IntegrationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_tags(ctx, field) +func (ec *executionContext) _EventHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -117903,9 +35329,9 @@ func (ec *executionContext) _IntegrationHistory_tags(ctx context.Context, field return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117916,8 +35342,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_tags(_ context.Conte return fc, nil } -func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) +func (ec *executionContext) _EventHistory_eventID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_eventID(ctx, field) if err != nil { return graphql.Null } @@ -117930,7 +35356,7 @@ func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.EventID, nil }) if err != nil { ec.Error(ctx, err) @@ -117939,26 +35365,26 @@ func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_eventID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) +func (ec *executionContext) _EventHistory_correlationID(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_correlationID(ctx, field) if err != nil { return graphql.Null } @@ -117971,7 +35397,7 @@ func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.CorrelationID, nil }) if err != nil { ec.Error(ctx, err) @@ -117985,9 +35411,9 @@ func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, f return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_correlationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -117998,8 +35424,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_deletedBy(_ context. return fc, nil } -func (ec *executionContext) _IntegrationHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_ownerID(ctx, field) +func (ec *executionContext) _EventHistory_eventType(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_eventType(ctx, field) if err != nil { return graphql.Null } @@ -118012,23 +35438,26 @@ func (ec *executionContext) _IntegrationHistory_ownerID(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.EventType, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistory_eventType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistory", Field: field, IsMethod: false, IsResolver: false, @@ -118039,8 +35468,8 @@ func (ec *executionContext) fieldContext_IntegrationHistory_ownerID(_ context.Co return fc, nil } -func (ec *executionContext) _IntegrationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_name(ctx, field) +func (ec *executionContext) _EventHistory_metadata(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistory_metadata(ctx, field) if err != nil { return graphql.Null } @@ -118053,38 +35482,82 @@ func (ec *executionContext) _IntegrationHistory_name(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Metadata, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") + return graphql.Null + } + res := resTmp.(map[string]interface{}) + fc.Result = res + return ec.marshalOMap2map(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventHistory_metadata(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Map does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _EventHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryConnection_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Edges, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(string) + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EventHistoryEdge) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOEventHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_EventHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_EventHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EventHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_description(ctx, field) +func (ec *executionContext) _EventHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -118097,35 +35570,48 @@ func (ec *executionContext) _IntegrationHistory_description(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistoryConnection", 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") + 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) _IntegrationHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistory_kind(ctx, field) +func (ec *executionContext) _EventHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -118138,35 +35624,38 @@ func (ec *executionContext) _IntegrationHistory_kind(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistory", + Object: "EventHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) +func (ec *executionContext) _EventHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -118179,7 +35668,7 @@ func (ec *executionContext) _IntegrationHistoryConnection_edges(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -118188,32 +35677,54 @@ func (ec *executionContext) _IntegrationHistoryConnection_edges(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.IntegrationHistoryEdge) + res := resTmp.(*generated.EventHistory) fc.Result = res - return ec.marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx, field.Selections, res) + return ec.marshalOEventHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryConnection", + Object: "EventHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_EventHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_EventHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_EventHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_EventHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_EventHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EventHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EventHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EventHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_EventHistory_tags(ctx, field) + case "eventID": + return ec.fieldContext_EventHistory_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_EventHistory_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_EventHistory_eventType(ctx, field) + case "metadata": + return ec.fieldContext_EventHistory_metadata(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EventHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _EventHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.EventHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -118226,7 +35737,7 @@ func (ec *executionContext) _IntegrationHistoryConnection_pageInfo(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -118238,36 +35749,26 @@ func (ec *executionContext) _IntegrationHistoryConnection_pageInfo(ctx context.C } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_EventHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryConnection", + Object: "EventHistoryEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _File_id(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_id(ctx, field) if err != nil { return graphql.Null } @@ -118280,7 +35781,7 @@ func (ec *executionContext) _IntegrationHistoryConnection_totalCount(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -118292,26 +35793,26 @@ func (ec *executionContext) _IntegrationHistoryConnection_totalCount(ctx context } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryConnection", + Object: "File", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) +func (ec *executionContext) _File_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -118324,7 +35825,7 @@ func (ec *executionContext) _IntegrationHistoryEdge_node(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -118333,58 +35834,26 @@ func (ec *executionContext) _IntegrationHistoryEdge_node(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.IntegrationHistory) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOIntegrationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistory(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryEdge", + Object: "File", 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_IntegrationHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_IntegrationHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_IntegrationHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_IntegrationHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_IntegrationHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_IntegrationHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_IntegrationHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_IntegrationHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_IntegrationHistory_name(ctx, field) - case "description": - return ec.fieldContext_IntegrationHistory_description(ctx, field) - case "kind": - return ec.fieldContext_IntegrationHistory_kind(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationHistory", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _File_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -118397,38 +35866,35 @@ func (ec *executionContext) _IntegrationHistoryEdge_cursor(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + 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.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationHistoryEdge", + Object: "File", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Context, field graphql.CollectedField, obj *IntegrationSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) +func (ec *executionContext) _File_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -118441,7 +35907,7 @@ func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -118450,58 +35916,26 @@ func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(string) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationSearchResult_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationSearchResult", + Object: "File", 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_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _IntegrationUpdatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *IntegrationUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) +func (ec *executionContext) _File_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -118514,70 +35948,35 @@ func (ec *executionContext) _IntegrationUpdatePayload_integration(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integration, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Integration) + res := resTmp.(string) fc.Result = res - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_IntegrationUpdatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "IntegrationUpdatePayload", + Object: "File", 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_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_id(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_id(ctx, field) +func (ec *executionContext) _File_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -118590,38 +35989,35 @@ func (ec *executionContext) _InternalPolicy_id(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_createdAt(ctx, field) +func (ec *executionContext) _File_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -118634,7 +36030,7 @@ func (ec *executionContext) _InternalPolicy_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -118643,26 +36039,26 @@ func (ec *executionContext) _InternalPolicy_createdAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_updatedAt(ctx, field) +func (ec *executionContext) _File_tags(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_tags(ctx, field) if err != nil { return graphql.Null } @@ -118675,7 +36071,7 @@ func (ec *executionContext) _InternalPolicy_updatedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -118684,26 +36080,26 @@ func (ec *executionContext) _InternalPolicy_updatedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_createdBy(ctx, field) +func (ec *executionContext) _File_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_providedFileName(ctx, field) if err != nil { return graphql.Null } @@ -118716,23 +36112,26 @@ func (ec *executionContext) _InternalPolicy_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.ProvidedFileName, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -118743,8 +36142,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_createdBy(_ context.Cont return fc, nil } -func (ec *executionContext) _InternalPolicy_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_updatedBy(ctx, field) +func (ec *executionContext) _File_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_providedFileExtension(ctx, field) if err != nil { return graphql.Null } @@ -118757,23 +36156,26 @@ func (ec *executionContext) _InternalPolicy_updatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.ProvidedFileExtension, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -118784,8 +36186,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_updatedBy(_ context.Cont return fc, nil } -func (ec *executionContext) _InternalPolicy_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_deletedAt(ctx, field) +func (ec *executionContext) _File_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_providedFileSize(ctx, field) if err != nil { return graphql.Null } @@ -118798,7 +36200,7 @@ func (ec *executionContext) _InternalPolicy_deletedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.ProvidedFileSize, nil }) if err != nil { ec.Error(ctx, err) @@ -118807,26 +36209,26 @@ func (ec *executionContext) _InternalPolicy_deletedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(int64) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOInt2int64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_deletedBy(ctx, field) +func (ec *executionContext) _File_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_persistedFileSize(ctx, field) if err != nil { return graphql.Null } @@ -118839,7 +36241,7 @@ func (ec *executionContext) _InternalPolicy_deletedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.PersistedFileSize, nil }) if err != nil { ec.Error(ctx, err) @@ -118848,26 +36250,26 @@ func (ec *executionContext) _InternalPolicy_deletedBy(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(int64) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInt2int64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_tags(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_tags(ctx, field) +func (ec *executionContext) _File_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_detectedMimeType(ctx, field) if err != nil { return graphql.Null } @@ -118880,7 +36282,7 @@ func (ec *executionContext) _InternalPolicy_tags(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.DetectedMimeType, nil }) if err != nil { ec.Error(ctx, err) @@ -118889,14 +36291,14 @@ func (ec *executionContext) _InternalPolicy_tags(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -118907,8 +36309,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _InternalPolicy_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_ownerID(ctx, field) +func (ec *executionContext) _File_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_md5Hash(ctx, field) if err != nil { return graphql.Null } @@ -118921,7 +36323,7 @@ func (ec *executionContext) _InternalPolicy_ownerID(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Md5Hash, nil }) if err != nil { ec.Error(ctx, err) @@ -118932,24 +36334,24 @@ func (ec *executionContext) _InternalPolicy_ownerID(ctx context.Context, field g } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_name(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_name(ctx, field) +func (ec *executionContext) _File_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_detectedContentType(ctx, field) if err != nil { return graphql.Null } @@ -118962,7 +36364,7 @@ func (ec *executionContext) _InternalPolicy_name(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.DetectedContentType, nil }) if err != nil { ec.Error(ctx, err) @@ -118979,9 +36381,9 @@ func (ec *executionContext) _InternalPolicy_name(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -118992,8 +36394,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_name(_ context.Context, return fc, nil } -func (ec *executionContext) _InternalPolicy_description(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_description(ctx, field) +func (ec *executionContext) _File_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storeKey(ctx, field) if err != nil { return graphql.Null } @@ -119006,7 +36408,7 @@ func (ec *executionContext) _InternalPolicy_description(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.StoreKey, nil }) if err != nil { ec.Error(ctx, err) @@ -119020,9 +36422,9 @@ func (ec *executionContext) _InternalPolicy_description(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -119033,8 +36435,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_description(_ context.Co return fc, nil } -func (ec *executionContext) _InternalPolicy_status(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_status(ctx, field) +func (ec *executionContext) _File_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_categoryType(ctx, field) if err != nil { return graphql.Null } @@ -119047,7 +36449,7 @@ func (ec *executionContext) _InternalPolicy_status(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.CategoryType, nil }) if err != nil { ec.Error(ctx, err) @@ -119061,9 +36463,9 @@ func (ec *executionContext) _InternalPolicy_status(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -119074,8 +36476,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_status(_ context.Context return fc, nil } -func (ec *executionContext) _InternalPolicy_policyType(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_policyType(ctx, field) +func (ec *executionContext) _File_uri(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_uri(ctx, field) if err != nil { return graphql.Null } @@ -119088,7 +36490,7 @@ func (ec *executionContext) _InternalPolicy_policyType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PolicyType, nil + return obj.URI, nil }) if err != nil { ec.Error(ctx, err) @@ -119102,9 +36504,9 @@ func (ec *executionContext) _InternalPolicy_policyType(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_policyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -119115,8 +36517,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_policyType(_ context.Con return fc, nil } -func (ec *executionContext) _InternalPolicy_version(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_version(ctx, field) +func (ec *executionContext) _File_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storageScheme(ctx, field) if err != nil { return graphql.Null } @@ -119129,7 +36531,7 @@ func (ec *executionContext) _InternalPolicy_version(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.StorageScheme, nil }) if err != nil { ec.Error(ctx, err) @@ -119143,9 +36545,9 @@ func (ec *executionContext) _InternalPolicy_version(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -119156,8 +36558,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_version(_ context.Contex return fc, nil } -func (ec *executionContext) _InternalPolicy_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) +func (ec *executionContext) _File_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storageVolume(ctx, field) if err != nil { return graphql.Null } @@ -119170,7 +36572,7 @@ func (ec *executionContext) _InternalPolicy_purposeAndScope(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PurposeAndScope, nil + return obj.StorageVolume, nil }) if err != nil { ec.Error(ctx, err) @@ -119184,9 +36586,9 @@ func (ec *executionContext) _InternalPolicy_purposeAndScope(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -119197,8 +36599,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_purposeAndScope(_ contex return fc, nil } -func (ec *executionContext) _InternalPolicy_background(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_background(ctx, field) +func (ec *executionContext) _File_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_storagePath(ctx, field) if err != nil { return graphql.Null } @@ -119211,7 +36613,7 @@ func (ec *executionContext) _InternalPolicy_background(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Background, nil + return obj.StoragePath, nil }) if err != nil { ec.Error(ctx, err) @@ -119225,9 +36627,9 @@ func (ec *executionContext) _InternalPolicy_background(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: false, IsResolver: false, @@ -119238,8 +36640,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_background(_ context.Con return fc, nil } -func (ec *executionContext) _InternalPolicy_details(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_details(ctx, field) +func (ec *executionContext) _File_user(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_user(ctx, field) if err != nil { return graphql.Null } @@ -119252,7 +36654,7 @@ func (ec *executionContext) _InternalPolicy_details(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) @@ -119261,26 +36663,100 @@ func (ec *executionContext) _InternalPolicy_details(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_owner(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_owner(ctx, field) +func (ec *executionContext) _File_organization(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_organization(ctx, field) if err != nil { return graphql.Null } @@ -119293,7 +36769,7 @@ func (ec *executionContext) _InternalPolicy_owner(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) @@ -119302,14 +36778,14 @@ func (ec *executionContext) _InternalPolicy_owner(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, IsResolver: false, @@ -119428,8 +36904,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_owner(_ context.Context, return fc, nil } -func (ec *executionContext) _InternalPolicy_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) +func (ec *executionContext) _File_group(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_group(ctx, field) if err != nil { return graphql.Null } @@ -119442,7 +36918,7 @@ func (ec *executionContext) _InternalPolicy_blockedGroups(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BlockedGroups(ctx) + return obj.Group(ctx) }) if err != nil { ec.Error(ctx, err) @@ -119456,9 +36932,9 @@ func (ec *executionContext) _InternalPolicy_blockedGroups(ctx context.Context, f return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, IsResolver: false, @@ -119571,8 +37047,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_blockedGroups(_ context. return fc, nil } -func (ec *executionContext) _InternalPolicy_editors(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_editors(ctx, field) +func (ec *executionContext) _File_contact(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_contact(ctx, field) if err != nil { return graphql.Null } @@ -119585,7 +37061,7 @@ func (ec *executionContext) _InternalPolicy_editors(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Editors(ctx) + return obj.Contact(ctx) }) if err != nil { ec.Error(ctx, err) @@ -119594,128 +37070,66 @@ func (ec *executionContext) _InternalPolicy_editors(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.([]*generated.Contact) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_contact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_Contact_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_Contact_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_Contact_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_Contact_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_Contact_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_Contact_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) + return ec.fieldContext_Contact_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Group_tags(ctx, field) + return ec.fieldContext_Contact_tags(ctx, field) case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_Contact_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) +func (ec *executionContext) _File_entity(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_entity(ctx, field) if err != nil { return graphql.Null } @@ -119728,7 +37142,7 @@ func (ec *executionContext) _InternalPolicy_controlObjectives(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectives(ctx) + return obj.Entity(ctx) }) if err != nil { ec.Error(ctx, err) @@ -119737,94 +37151,70 @@ func (ec *executionContext) _InternalPolicy_controlObjectives(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.([]*generated.Entity) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) + return ec.fieldContext_Entity_id(ctx, field) case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) + return ec.fieldContext_Entity_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + return ec.fieldContext_Entity_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) + return ec.fieldContext_Entity_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + return ec.fieldContext_Entity_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + return ec.fieldContext_Entity_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + return ec.fieldContext_Entity_deletedBy(ctx, field) case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) + return ec.fieldContext_Entity_tags(ctx, field) case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) + return ec.fieldContext_Entity_ownerID(ctx, field) case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) + return ec.fieldContext_Entity_status(ctx, field) case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_controls(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_controls(ctx, field) +func (ec *executionContext) _File_userSetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_userSetting(ctx, field) if err != nil { return graphql.Null } @@ -119837,7 +37227,7 @@ func (ec *executionContext) _InternalPolicy_controls(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Controls(ctx) + return obj.UserSetting(ctx) }) if err != nil { ec.Error(ctx, err) @@ -119846,96 +37236,66 @@ func (ec *executionContext) _InternalPolicy_controls(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Control) + res := resTmp.([]*generated.UserSetting) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, 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) + return ec.fieldContext_UserSetting_id(ctx, field) case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) + return ec.fieldContext_UserSetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) + return ec.fieldContext_UserSetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) + return ec.fieldContext_UserSetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) + return ec.fieldContext_UserSetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(ctx, field) - case "name": - return ec.fieldContext_Control_name(ctx, field) - case "description": - return ec.fieldContext_Control_description(ctx, field) + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) case "status": - return ec.fieldContext_Control_status(ctx, field) - case "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_procedures(ctx, field) +func (ec *executionContext) _File_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_organizationSetting(ctx, field) if err != nil { return graphql.Null } @@ -119948,7 +37308,7 @@ func (ec *executionContext) _InternalPolicy_procedures(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedures(ctx) + return obj.OrganizationSetting(ctx) }) if err != nil { ec.Error(ctx, err) @@ -119957,82 +37317,143 @@ func (ec *executionContext) _InternalPolicy_procedures(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.([]*generated.OrganizationSetting) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Procedure_id(ctx, field) + return ec.fieldContext_OrganizationSetting_id(ctx, field) case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _File_template(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_template(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Template(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Template) + fc.Result = res + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_File_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "File", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) + return ec.fieldContext_Template_tags(ctx, field) case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_narratives(ctx, field) +func (ec *executionContext) _File_documentData(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_documentData(ctx, field) if err != nil { return graphql.Null } @@ -120045,7 +37466,7 @@ func (ec *executionContext) _InternalPolicy_narratives(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Narratives(ctx) + return obj.DocumentData(ctx) }) if err != nil { ec.Error(ctx, err) @@ -120054,72 +37475,58 @@ func (ec *executionContext) _InternalPolicy_narratives(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Narrative) + res := resTmp.([]*generated.DocumentData) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_DocumentData_id(ctx, field) case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) + return ec.fieldContext_DocumentData_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) + return ec.fieldContext_DocumentData_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) + return ec.fieldContext_DocumentData_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) + return ec.fieldContext_DocumentData_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) + return ec.fieldContext_DocumentData_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_tasks(ctx, field) +func (ec *executionContext) _File_events(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_events(ctx, field) if err != nil { return graphql.Null } @@ -120132,7 +37539,7 @@ func (ec *executionContext) _InternalPolicy_tasks(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tasks(ctx) + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) @@ -120141,76 +37548,70 @@ func (ec *executionContext) _InternalPolicy_tasks(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Task) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, 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) + return ec.fieldContext_Event_id(ctx, field) case "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) + return ec.fieldContext_Event_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) + return ec.fieldContext_Event_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) + return ec.fieldContext_Event_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) + return ec.fieldContext_Event_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicy_programs(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicy_programs(ctx, field) +func (ec *executionContext) _File_program(ctx context.Context, field graphql.CollectedField, obj *generated.File) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_File_program(ctx, field) if err != nil { return graphql.Null } @@ -120223,7 +37624,7 @@ func (ec *executionContext) _InternalPolicy_programs(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) + return obj.Program(ctx) }) if err != nil { ec.Error(ctx, err) @@ -120237,9 +37638,9 @@ func (ec *executionContext) _InternalPolicy_programs(ctx context.Context, field return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicy_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_File_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicy", + Object: "File", Field: field, IsMethod: true, IsResolver: false, @@ -120322,8 +37723,8 @@ func (ec *executionContext) fieldContext_InternalPolicy_programs(_ context.Conte return fc, nil } -func (ec *executionContext) _InternalPolicyBulkCreatePayload_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) +func (ec *executionContext) _FileConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -120336,7 +37737,7 @@ func (ec *executionContext) _InternalPolicyBulkCreatePayload_internalPolicies(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicies, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -120345,80 +37746,32 @@ func (ec *executionContext) _InternalPolicyBulkCreatePayload_internalPolicies(ct if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.([]*generated.FileEdge) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOFileEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyBulkCreatePayload", + Object: "FileConnection", 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_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) + case "node": + return ec.fieldContext_FileEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_FileEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, fmt.Errorf("no field named %q was found under type FileEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicyConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyConnection_edges(ctx, field) +func (ec *executionContext) _FileConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -120431,41 +37784,48 @@ func (ec *executionContext) _InternalPolicyConnection_edges(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*generated.InternalPolicyEdge) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOInternalPolicyEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyEdge(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyConnection", + Object: "FileConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_InternalPolicyEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_InternalPolicyEdge_cursor(ctx, field) + 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 InternalPolicyEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicyConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyConnection_pageInfo(ctx, field) +func (ec *executionContext) _FileConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -120478,7 +37838,7 @@ func (ec *executionContext) _InternalPolicyConnection_pageInfo(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -120490,36 +37850,133 @@ func (ec *executionContext) _InternalPolicyConnection_pageInfo(ctx context.Conte } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(int) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyConnection", + Object: "FileConnection", + 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) _FileEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileEdge_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(*generated.File) + fc.Result = res + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileEdge", 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) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicyConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyConnection_totalCount(ctx, field) +func (ec *executionContext) _FileEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -120532,7 +37989,7 @@ func (ec *executionContext) _InternalPolicyConnection_totalCount(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -120544,26 +38001,26 @@ func (ec *executionContext) _InternalPolicyConnection_totalCount(ctx context.Con } return graphql.Null } - res := resTmp.(int) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyConnection", + Object: "FileEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyCreatePayload_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyCreatePayload_internalPolicy(ctx, field) +func (ec *executionContext) _FileHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -120576,7 +38033,7 @@ func (ec *executionContext) _InternalPolicyCreatePayload_internalPolicy(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicy, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -120588,80 +38045,26 @@ func (ec *executionContext) _InternalPolicyCreatePayload_internalPolicy(ctx cont } return graphql.Null } - res := resTmp.(*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyCreatePayload_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyCreatePayload", + Object: "FileHistory", 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_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _FileHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -120674,7 +38077,7 @@ func (ec *executionContext) _InternalPolicyDeletePayload_deletedID(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -120686,26 +38089,26 @@ func (ec *executionContext) _InternalPolicyDeletePayload_deletedID(ctx context.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyDeletePayload", + Object: "FileHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyEdge_node(ctx, field) +func (ec *executionContext) _FileHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -120718,7 +38121,7 @@ func (ec *executionContext) _InternalPolicyEdge_node(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -120727,80 +38130,26 @@ func (ec *executionContext) _InternalPolicyEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyEdge", + Object: "FileHistory", 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_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyEdge_cursor(ctx, field) +func (ec *executionContext) _FileHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -120813,7 +38162,7 @@ func (ec *executionContext) _InternalPolicyEdge_cursor(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -120825,26 +38174,26 @@ func (ec *executionContext) _InternalPolicyEdge_cursor(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNFileHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyEdge", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type FileHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_id(ctx, field) +func (ec *executionContext) _FileHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -120857,38 +38206,117 @@ func (ec *executionContext) _InternalPolicyHistory_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FileHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _FileHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) +func (ec *executionContext) _FileHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -120901,26 +38329,64 @@ func (ec *executionContext) _InternalPolicyHistory_historyTime(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + 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) _FileHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_deletedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedAt, 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -120931,8 +38397,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_historyTime(_ con return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_ref(ctx, field) +func (ec *executionContext) _FileHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -120945,7 +38411,7 @@ func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -120959,9 +38425,9 @@ func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -120972,8 +38438,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_ref(_ context.Con return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_operation(ctx, field) +func (ec *executionContext) _FileHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -120986,7 +38452,48 @@ func (ec *executionContext) _InternalPolicyHistory_operation(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Tags, 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_FileHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + 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) _FileHistory_providedFileName(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_providedFileName(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProvidedFileName, nil }) if err != nil { ec.Error(ctx, err) @@ -120998,26 +38505,26 @@ func (ec *executionContext) _InternalPolicyHistory_operation(ctx context.Context } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_providedFileName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type InternalPolicyHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) +func (ec *executionContext) _FileHistory_providedFileExtension(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_providedFileExtension(ctx, field) if err != nil { return graphql.Null } @@ -121030,35 +38537,38 @@ func (ec *executionContext) _InternalPolicyHistory_createdAt(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.ProvidedFileExtension, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_providedFileExtension(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) +func (ec *executionContext) _FileHistory_providedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_providedFileSize(ctx, field) if err != nil { return graphql.Null } @@ -121071,7 +38581,7 @@ func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.ProvidedFileSize, nil }) if err != nil { ec.Error(ctx, err) @@ -121080,26 +38590,26 @@ func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(int64) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOInt2int64(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_providedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) +func (ec *executionContext) _FileHistory_persistedFileSize(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_persistedFileSize(ctx, field) if err != nil { return graphql.Null } @@ -121112,7 +38622,48 @@ func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.PersistedFileSize, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(int64) + fc.Result = res + return ec.marshalOInt2int64(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileHistory_persistedFileSize(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + 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) _FileHistory_detectedMimeType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_detectedMimeType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DetectedMimeType, nil }) if err != nil { ec.Error(ctx, err) @@ -121126,9 +38677,9 @@ func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_detectedMimeType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -121139,8 +38690,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_createdBy(_ conte return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) +func (ec *executionContext) _FileHistory_md5Hash(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_md5Hash(ctx, field) if err != nil { return graphql.Null } @@ -121153,7 +38704,7 @@ func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Md5Hash, nil }) if err != nil { ec.Error(ctx, err) @@ -121167,9 +38718,9 @@ func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_md5Hash(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -121180,8 +38731,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedBy(_ conte return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_deletedAt(ctx, field) +func (ec *executionContext) _FileHistory_detectedContentType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_detectedContentType(ctx, field) if err != nil { return graphql.Null } @@ -121194,35 +38745,38 @@ func (ec *executionContext) _InternalPolicyHistory_deletedAt(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.DetectedContentType, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_detectedContentType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_deletedBy(ctx, field) +func (ec *executionContext) _FileHistory_storeKey(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storeKey(ctx, field) if err != nil { return graphql.Null } @@ -121235,7 +38789,7 @@ func (ec *executionContext) _InternalPolicyHistory_deletedBy(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.StoreKey, nil }) if err != nil { ec.Error(ctx, err) @@ -121249,9 +38803,9 @@ func (ec *executionContext) _InternalPolicyHistory_deletedBy(ctx context.Context return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_storeKey(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -121262,8 +38816,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_deletedBy(_ conte return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_tags(ctx, field) +func (ec *executionContext) _FileHistory_categoryType(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_categoryType(ctx, field) if err != nil { return graphql.Null } @@ -121276,7 +38830,7 @@ func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.CategoryType, nil }) if err != nil { ec.Error(ctx, err) @@ -121285,14 +38839,14 @@ func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_categoryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -121303,8 +38857,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_tags(_ context.Co return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_ownerID(ctx, field) +func (ec *executionContext) _FileHistory_uri(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_uri(ctx, field) if err != nil { return graphql.Null } @@ -121317,7 +38871,7 @@ func (ec *executionContext) _InternalPolicyHistory_ownerID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.URI, nil }) if err != nil { ec.Error(ctx, err) @@ -121331,9 +38885,9 @@ func (ec *executionContext) _InternalPolicyHistory_ownerID(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_uri(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -121344,8 +38898,49 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_ownerID(_ context return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_name(ctx, field) +func (ec *executionContext) _FileHistory_storageScheme(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storageScheme(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.StorageScheme, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileHistory_storageScheme(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileHistory", + 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) _FileHistory_storageVolume(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storageVolume(ctx, field) if err != nil { return graphql.Null } @@ -121358,26 +38953,23 @@ func (ec *executionContext) _InternalPolicyHistory_name(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.StorageVolume, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_storageVolume(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -121388,8 +38980,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_name(_ context.Co return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_description(ctx, field) +func (ec *executionContext) _FileHistory_storagePath(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistory_storagePath(ctx, field) if err != nil { return graphql.Null } @@ -121402,7 +38994,7 @@ func (ec *executionContext) _InternalPolicyHistory_description(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.StoragePath, nil }) if err != nil { ec.Error(ctx, err) @@ -121416,9 +39008,9 @@ func (ec *executionContext) _InternalPolicyHistory_description(ctx context.Conte return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistory_storagePath(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistory", Field: field, IsMethod: false, IsResolver: false, @@ -121429,8 +39021,8 @@ func (ec *executionContext) fieldContext_InternalPolicyHistory_description(_ con return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_status(ctx, field) +func (ec *executionContext) _FileHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -121443,7 +39035,7 @@ func (ec *executionContext) _InternalPolicyHistory_status(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -121452,26 +39044,32 @@ func (ec *executionContext) _InternalPolicyHistory_status(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.FileHistoryEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOFileHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_FileHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_FileHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_policyType(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_policyType(ctx, field) +func (ec *executionContext) _FileHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -121484,35 +39082,48 @@ func (ec *executionContext) _InternalPolicyHistory_policyType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PolicyType, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_policyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistoryConnection", 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") + 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) _InternalPolicyHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_version(ctx, field) +func (ec *executionContext) _FileHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -121525,35 +39136,38 @@ func (ec *executionContext) _InternalPolicyHistory_version(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_purposeAndScope(ctx, field) +func (ec *executionContext) _FileHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -121566,7 +39180,7 @@ func (ec *executionContext) _InternalPolicyHistory_purposeAndScope(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PurposeAndScope, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -121575,26 +39189,76 @@ func (ec *executionContext) _InternalPolicyHistory_purposeAndScope(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.FileHistory) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOFileHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistoryEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_FileHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_FileHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_FileHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_FileHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_FileHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_FileHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_FileHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_FileHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_FileHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_FileHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_FileHistory_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_FileHistory_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_FileHistory_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_FileHistory_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_FileHistory_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_FileHistory_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_FileHistory_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_FileHistory_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_FileHistory_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_FileHistory_categoryType(ctx, field) + case "uri": + return ec.fieldContext_FileHistory_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_FileHistory_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_FileHistory_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_FileHistory_storagePath(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type FileHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_background(ctx, field) +func (ec *executionContext) _FileHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.FileHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -121607,35 +39271,38 @@ func (ec *executionContext) _InternalPolicyHistory_background(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Background, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_FileHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "FileHistoryEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistory_details(ctx, field) +func (ec *executionContext) _Group_id(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_id(ctx, field) if err != nil { return graphql.Null } @@ -121648,35 +39315,38 @@ func (ec *executionContext) _InternalPolicyHistory_details(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + 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.(map[string]interface{}) + res := resTmp.(string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistory", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Group_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -121689,7 +39359,7 @@ func (ec *executionContext) _InternalPolicyHistoryConnection_edges(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -121698,32 +39368,26 @@ func (ec *executionContext) _InternalPolicyHistoryConnection_edges(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicyHistoryEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOInternalPolicyHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryConnection", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistoryEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Group_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -121736,48 +39400,35 @@ func (ec *executionContext) _InternalPolicyHistoryConnection_pageInfo(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + 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.(entgql.PageInfo[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryConnection", + Object: "Group", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Group_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -121790,38 +39441,35 @@ func (ec *executionContext) _InternalPolicyHistoryConnection_totalCount(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryConnection", + Object: "Group", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) +func (ec *executionContext) _Group_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -121834,7 +39482,7 @@ func (ec *executionContext) _InternalPolicyHistoryEdge_node(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -121843,68 +39491,26 @@ func (ec *executionContext) _InternalPolicyHistoryEdge_node(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.InternalPolicyHistory) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicyHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistory(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryEdge", + Object: "Group", 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_InternalPolicyHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_InternalPolicyHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_InternalPolicyHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicyHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicyHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicyHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicyHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicyHistory_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicyHistory_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicyHistory_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicyHistory_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicyHistory_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicyHistory_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicyHistory_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicyHistory_details(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Group_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -121917,38 +39523,35 @@ func (ec *executionContext) _InternalPolicyHistoryEdge_cursor(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyHistoryEdge", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicySearchResult_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *InternalPolicySearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicySearchResult_internalPolicies(ctx, field) +func (ec *executionContext) _Group_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -121961,7 +39564,7 @@ func (ec *executionContext) _InternalPolicySearchResult_internalPolicies(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicies, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -121970,80 +39573,26 @@ func (ec *executionContext) _InternalPolicySearchResult_internalPolicies(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicySearchResult_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicySearchResult", + Object: "Group", 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_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _InternalPolicyUpdatePayload_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *InternalPolicyUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InternalPolicyUpdatePayload_internalPolicy(ctx, field) +func (ec *executionContext) _Group_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_tags(ctx, field) if err != nil { return graphql.Null } @@ -122056,92 +39605,35 @@ func (ec *executionContext) _InternalPolicyUpdatePayload_internalPolicy(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.InternalPolicy) + res := resTmp.([]string) fc.Result = res - return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InternalPolicyUpdatePayload_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InternalPolicyUpdatePayload", + Object: "Group", 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_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_id(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_id(ctx, field) +func (ec *executionContext) _Group_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -122154,26 +39646,23 @@ func (ec *executionContext) _Invite_id(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, @@ -122184,8 +39673,8 @@ func (ec *executionContext) fieldContext_Invite_id(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _Invite_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_createdAt(ctx, field) +func (ec *executionContext) _Group_name(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_name(ctx, field) if err != nil { return graphql.Null } @@ -122198,35 +39687,38 @@ func (ec *executionContext) _Invite_createdAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + 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.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_updatedAt(ctx, field) +func (ec *executionContext) _Group_description(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_description(ctx, field) if err != nil { return graphql.Null } @@ -122239,7 +39731,7 @@ func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -122248,26 +39740,26 @@ func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_createdBy(ctx, field) +func (ec *executionContext) _Group_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_gravatarLogoURL(ctx, field) if err != nil { return graphql.Null } @@ -122280,7 +39772,7 @@ func (ec *executionContext) _Invite_createdBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.GravatarLogoURL, nil }) if err != nil { ec.Error(ctx, err) @@ -122294,9 +39786,9 @@ func (ec *executionContext) _Invite_createdBy(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, @@ -122307,8 +39799,8 @@ func (ec *executionContext) fieldContext_Invite_createdBy(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_updatedBy(ctx, field) +func (ec *executionContext) _Group_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_logoURL(ctx, field) if err != nil { return graphql.Null } @@ -122321,7 +39813,7 @@ func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.LogoURL, nil }) if err != nil { ec.Error(ctx, err) @@ -122335,9 +39827,9 @@ func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, @@ -122348,8 +39840,8 @@ func (ec *executionContext) fieldContext_Invite_updatedBy(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Invite_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_deletedAt(ctx, field) +func (ec *executionContext) _Group_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_displayName(ctx, field) if err != nil { return graphql.Null } @@ -122362,35 +39854,38 @@ func (ec *executionContext) _Invite_deletedAt(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_deletedBy(ctx, field) +func (ec *executionContext) _Group_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_owner(ctx, field) if err != nil { return graphql.Null } @@ -122403,7 +39898,7 @@ func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -122412,26 +39907,134 @@ func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_ownerID(ctx, field) +func (ec *executionContext) _Group_controlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlCreators(ctx, field) if err != nil { return graphql.Null } @@ -122444,7 +40047,7 @@ func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.ControlCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -122453,26 +40056,134 @@ func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_expires(ctx, field) +func (ec *executionContext) _Group_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlObjectiveCreators(ctx, field) if err != nil { return graphql.Null } @@ -122485,7 +40196,7 @@ func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Expires, nil + return obj.ControlObjectiveCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -122494,26 +40205,134 @@ func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlObjectiveCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_recipient(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_recipient(ctx, field) +func (ec *executionContext) _Group_groupCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_groupCreators(ctx, field) if err != nil { return graphql.Null } @@ -122526,38 +40345,143 @@ func (ec *executionContext) _Invite_recipient(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Recipient, nil + return obj.GroupCreators(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_recipient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_groupCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_status(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_status(ctx, field) +func (ec *executionContext) _Group_internalPolicyCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_internalPolicyCreators(ctx, field) if err != nil { return graphql.Null } @@ -122570,38 +40494,143 @@ func (ec *executionContext) _Invite_status(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.InternalPolicyCreators(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.InviteStatus) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_internalPolicyCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type InviteInviteStatus does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_role(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_role(ctx, field) +func (ec *executionContext) _Group_narrativeCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_narrativeCreators(ctx, field) if err != nil { return graphql.Null } @@ -122614,38 +40643,143 @@ func (ec *executionContext) _Invite_role(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.NarrativeCreators(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_narrativeCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type InviteRole does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_sendAttempts(ctx, field) +func (ec *executionContext) _Group_procedureCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_procedureCreators(ctx, field) if err != nil { return graphql.Null } @@ -122658,38 +40792,143 @@ func (ec *executionContext) _Invite_sendAttempts(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SendAttempts, nil + return obj.ProcedureCreators(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_procedureCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_requestorID(ctx, field) +func (ec *executionContext) _Group_programCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_programCreators(ctx, field) if err != nil { return graphql.Null } @@ -122702,7 +40941,7 @@ func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RequestorID, nil + return obj.ProgramCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -122711,26 +40950,134 @@ func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_requestorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_programCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_owner(ctx, field) +func (ec *executionContext) _Group_riskCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_riskCreators(ctx, field) if err != nil { return graphql.Null } @@ -122743,7 +41090,7 @@ func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.RiskCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -122752,14 +41099,14 @@ func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_riskCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: true, IsResolver: false, @@ -122878,8 +41225,8 @@ func (ec *executionContext) fieldContext_Invite_owner(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Invite_events(ctx, field) +func (ec *executionContext) _Group_templateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_templateCreators(ctx, field) if err != nil { return graphql.Null } @@ -122892,7 +41239,7 @@ func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.TemplateCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -122901,70 +41248,134 @@ func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Invite_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_templateCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Invite", + Object: "Group", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Event_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context, field graphql.CollectedField, obj *InviteBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) +func (ec *executionContext) _Group_procedureEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_procedureEditors(ctx, field) if err != nil { return graphql.Null } @@ -122977,7 +41388,7 @@ func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invites, nil + return obj.ProcedureEditors(ctx) }) if err != nil { ec.Error(ctx, err) @@ -122986,60 +41397,82 @@ func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Invite) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteBulkCreatePayload_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_procedureEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteBulkCreatePayload", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Invite_id(ctx, field) + return ec.fieldContext_Procedure_id(ctx, field) case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) + return ec.fieldContext_Procedure_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteConnection_edges(ctx, field) +func (ec *executionContext) _Group_procedureBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_procedureBlockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -123052,7 +41485,7 @@ func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.ProcedureBlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -123061,32 +41494,82 @@ func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InviteEdge) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_procedureBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteConnection", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_InviteEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_InviteEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InviteEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteConnection_pageInfo(ctx, field) +func (ec *executionContext) _Group_internalPolicyEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_internalPolicyEditors(ctx, field) if err != nil { return graphql.Null } @@ -123099,48 +41582,89 @@ func (ec *executionContext) _InviteConnection_pageInfo(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.InternalPolicyEditors(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_internalPolicyEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteConnection", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteConnection_totalCount(ctx, field) +func (ec *executionContext) _Group_internalPolicyBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -123153,38 +41677,89 @@ func (ec *executionContext) _InviteConnection_totalCount(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.InternalPolicyBlockedGroups(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_internalPolicyBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteConnection", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteCreatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *InviteCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteCreatePayload_invite(ctx, field) +func (ec *executionContext) _Group_programEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_programEditors(ctx, field) if err != nil { return graphql.Null } @@ -123197,72 +41772,107 @@ func (ec *executionContext) _InviteCreatePayload_invite(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invite, nil + return obj.ProgramEditors(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Invite) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteCreatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_programEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteCreatePayload", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Invite_id(ctx, field) + return ec.fieldContext_Program_id(ctx, field) case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) + return ec.fieldContext_Program_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) + return ec.fieldContext_Program_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) + return ec.fieldContext_Program_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) + return ec.fieldContext_Program_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) + return ec.fieldContext_Program_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *InviteDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Group_programBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_programBlockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -123275,38 +41885,107 @@ func (ec *executionContext) _InviteDeletePayload_deletedID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.ProgramBlockedGroups(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_programBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteDeletePayload", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteEdge_node(ctx, field) +func (ec *executionContext) _Group_programViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_programViewers(ctx, field) if err != nil { return graphql.Null } @@ -123319,7 +41998,7 @@ func (ec *executionContext) _InviteEdge_node(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.ProgramViewers(ctx) }) if err != nil { ec.Error(ctx, err) @@ -123328,60 +42007,98 @@ func (ec *executionContext) _InviteEdge_node(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Invite) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_programViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteEdge", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Invite_id(ctx, field) + return ec.fieldContext_Program_id(ctx, field) case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) + return ec.fieldContext_Program_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) + return ec.fieldContext_Program_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) + return ec.fieldContext_Program_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) + return ec.fieldContext_Program_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) + return ec.fieldContext_Program_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteEdge_cursor(ctx, field) +func (ec *executionContext) _Group_riskEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_riskEditors(ctx, field) if err != nil { return graphql.Null } @@ -123394,38 +42111,91 @@ func (ec *executionContext) _InviteEdge_cursor(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.RiskEditors(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_riskEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteEdge", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _InviteUpdatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *InviteUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_InviteUpdatePayload_invite(ctx, field) +func (ec *executionContext) _Group_riskBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_riskBlockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -123438,72 +42208,91 @@ func (ec *executionContext) _InviteUpdatePayload_invite(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invite, nil + return obj.RiskBlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Invite) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_InviteUpdatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_riskBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "InviteUpdatePayload", + Object: "Group", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Invite_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _Mutation_createActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createActionPlan(ctx, field) +func (ec *executionContext) _Group_riskViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_riskViewers(ctx, field) if err != nil { return graphql.Null } @@ -123516,53 +42305,91 @@ func (ec *executionContext) _Mutation_createActionPlan(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateActionPlan(rctx, fc.Args["input"].(generated.CreateActionPlanInput)) + return obj.RiskViewers(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ActionPlanCreatePayload) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalNActionPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanCreatePayload(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_riskViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "actionPlan": - return ec.fieldContext_ActionPlanCreatePayload_actionPlan(ctx, field) + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", 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_createActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkActionPlan(ctx, field) +func (ec *executionContext) _Group_controlObjectiveEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlObjectiveEditors(ctx, field) if err != nil { return graphql.Null } @@ -123575,53 +42402,103 @@ func (ec *executionContext) _Mutation_createBulkActionPlan(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkActionPlan(rctx, fc.Args["input"].([]*generated.CreateActionPlanInput)) + return obj.ControlObjectiveEditors(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ActionPlanBulkCreatePayload) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlObjectiveEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "actionPlans": - return ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", 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_createBulkActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVActionPlan(ctx, field) +func (ec *executionContext) _Group_controlObjectiveBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -123634,53 +42511,103 @@ func (ec *executionContext) _Mutation_createBulkCSVActionPlan(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVActionPlan(rctx, fc.Args["input"].(graphql.Upload)) + return obj.ControlObjectiveBlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ActionPlanBulkCreatePayload) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlObjectiveBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "actionPlans": - return ec.fieldContext_ActionPlanBulkCreatePayload_actionPlans(ctx, field) + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", 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_createBulkCSVActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateActionPlan(ctx, field) +func (ec *executionContext) _Group_controlObjectiveViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlObjectiveViewers(ctx, field) if err != nil { return graphql.Null } @@ -123693,53 +42620,103 @@ func (ec *executionContext) _Mutation_updateActionPlan(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateActionPlan(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateActionPlanInput)) + return obj.ControlObjectiveViewers(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ActionPlanUpdatePayload) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalNActionPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanUpdatePayload(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlObjectiveViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "actionPlan": - return ec.fieldContext_ActionPlanUpdatePayload_actionPlan(ctx, field) + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", 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_updateActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteActionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteActionPlan(ctx, field) +func (ec *executionContext) _Group_controlEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlEditors(ctx, field) if err != nil { return graphql.Null } @@ -123752,53 +42729,105 @@ func (ec *executionContext) _Mutation_deleteActionPlan(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteActionPlan(rctx, fc.Args["id"].(string)) + return obj.ControlEditors(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ActionPlanDeletePayload) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNActionPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanDeletePayload(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteActionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_ActionPlanDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", 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_deleteActionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createAPIToken(ctx, field) +func (ec *executionContext) _Group_controlBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlBlockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -123811,53 +42840,105 @@ func (ec *executionContext) _Mutation_createAPIToken(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateAPIToken(rctx, fc.Args["input"].(generated.CreateAPITokenInput)) + return obj.ControlBlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*APITokenCreatePayload) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiToken": - return ec.fieldContext_APITokenCreatePayload_apiToken(ctx, field) + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", 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_createAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkAPIToken(ctx, field) +func (ec *executionContext) _Group_controlViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_controlViewers(ctx, field) if err != nil { return graphql.Null } @@ -123870,53 +42951,105 @@ func (ec *executionContext) _Mutation_createBulkAPIToken(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkAPIToken(rctx, fc.Args["input"].([]*generated.CreateAPITokenInput)) + return obj.ControlViewers(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*APITokenBulkCreatePayload) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_controlViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiTokens": - return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", 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_createBulkAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVAPIToken(ctx, field) +func (ec *executionContext) _Group_narrativeEditors(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_narrativeEditors(ctx, field) if err != nil { return graphql.Null } @@ -123929,53 +43062,81 @@ func (ec *executionContext) _Mutation_createBulkCSVAPIToken(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVAPIToken(rctx, fc.Args["input"].(graphql.Upload)) + return obj.NarrativeEditors(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*APITokenBulkCreatePayload) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_narrativeEditors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiTokens": - return ec.fieldContext_APITokenBulkCreatePayload_apiTokens(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", 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_createBulkCSVAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateAPIToken(ctx, field) +func (ec *executionContext) _Group_narrativeBlockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -123988,53 +43149,81 @@ func (ec *executionContext) _Mutation_updateAPIToken(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateAPIToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateAPITokenInput)) + return obj.NarrativeBlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*APITokenUpdatePayload) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_narrativeBlockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiToken": - return ec.fieldContext_APITokenUpdatePayload_apiToken(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", 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_updateAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteAPIToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteAPIToken(ctx, field) +func (ec *executionContext) _Group_narrativeViewers(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_narrativeViewers(ctx, field) if err != nil { return graphql.Null } @@ -124047,53 +43236,81 @@ func (ec *executionContext) _Mutation_deleteAPIToken(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteAPIToken(rctx, fc.Args["id"].(string)) + return obj.NarrativeViewers(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*APITokenDeletePayload) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteAPIToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_narrativeViewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_APITokenDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", 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_deleteAPIToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createContact(ctx, field) +func (ec *executionContext) _Group_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_setting(ctx, field) if err != nil { return graphql.Null } @@ -124106,7 +43323,7 @@ func (ec *executionContext) _Mutation_createContact(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateContact(rctx, fc.Args["input"].(generated.CreateContactInput)) + return obj.Setting(ctx) }) if err != nil { ec.Error(ctx, err) @@ -124118,41 +43335,56 @@ func (ec *executionContext) _Mutation_createContact(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*ContactCreatePayload) + res := resTmp.(*generated.GroupSetting) fc.Result = res - return ec.marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx, field.Selections, res) + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "contact": - return ec.fieldContext_ContactCreatePayload_contact(ctx, field) + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", 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_createContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkContact(ctx, field) +func (ec *executionContext) _Group_users(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_users(ctx, field) if err != nil { return graphql.Null } @@ -124165,53 +43397,109 @@ func (ec *executionContext) _Mutation_createBulkContact(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkContact(rctx, fc.Args["input"].([]*generated.CreateContactInput)) + return obj.Users(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ContactBulkCreatePayload) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "contacts": - return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", 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_createBulkContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVContact(ctx, field) +func (ec *executionContext) _Group_events(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_events(ctx, field) if err != nil { return graphql.Null } @@ -124224,53 +43512,79 @@ func (ec *executionContext) _Mutation_createBulkCSVContact(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVContact(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ContactBulkCreatePayload) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "contacts": - return ec.fieldContext_ContactBulkCreatePayload_contacts(ctx, field) + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", 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_createBulkCSVContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateContact(ctx, field) +func (ec *executionContext) _Group_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_integrations(ctx, field) if err != nil { return graphql.Null } @@ -124283,53 +43597,67 @@ func (ec *executionContext) _Mutation_updateContact(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateContact(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateContactInput)) + return obj.Integrations(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ContactUpdatePayload) + res := resTmp.([]*generated.Integration) fc.Result = res - return ec.marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "contact": - return ec.fieldContext_ContactUpdatePayload_contact(ctx, field) + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Integration", 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_updateContact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteContact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteContact(ctx, field) +func (ec *executionContext) _Group_files(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_files(ctx, field) if err != nil { return graphql.Null } @@ -124342,53 +43670,101 @@ func (ec *executionContext) _Mutation_deleteContact(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteContact(rctx, fc.Args["id"].(string)) + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ContactDeletePayload) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteContact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_ContactDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", 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_deleteContact_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) +func (ec *executionContext) _Group_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_tasks(ctx, field) if err != nil { return graphql.Null } @@ -124401,53 +43777,85 @@ func (ec *executionContext) _Mutation_createControl(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateControl(rctx, fc.Args["input"].(generated.CreateControlInput)) + return obj.Tasks(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ControlCreatePayload) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlCreatePayload(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + 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 "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) case "control": - return ec.fieldContext_ControlCreatePayload_control(ctx, field) + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Task", 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_createBulkControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkControl(ctx, field) +func (ec *executionContext) _Group_members(ctx context.Context, field graphql.CollectedField, obj *generated.Group) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Group_members(ctx, field) if err != nil { return graphql.Null } @@ -124460,53 +43868,63 @@ func (ec *executionContext) _Mutation_createBulkControl(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkControl(rctx, fc.Args["input"].([]*generated.CreateControlInput)) + return obj.Members(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ControlBulkCreatePayload) + res := resTmp.([]*generated.GroupMembership) fc.Result = res - return ec.marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Group_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Group", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "controls": - return ec.fieldContext_ControlBulkCreatePayload_controls(ctx, field) + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", 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_createBulkControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVControl(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVControl(ctx, field) +func (ec *executionContext) _GroupConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -124519,53 +43937,41 @@ func (ec *executionContext) _Mutation_createBulkCSVControl(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVControl(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*ControlBulkCreatePayload) + res := resTmp.([]*generated.GroupEdge) fc.Result = res - return ec.marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "controls": - return ec.fieldContext_ControlBulkCreatePayload_controls(ctx, field) + case "node": + return ec.fieldContext_GroupEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupEdge", 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_createBulkCSVControl_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) +func (ec *executionContext) _GroupConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -124578,7 +43984,7 @@ func (ec *executionContext) _Mutation_updateControl(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateControl(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateControlInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -124590,41 +43996,36 @@ func (ec *executionContext) _Mutation_updateControl(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*ControlUpdatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNControlUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlUpdatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "control": - return ec.fieldContext_ControlUpdatePayload_control(ctx, field) + 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 ControlUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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) +func (ec *executionContext) _GroupConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -124637,7 +44038,7 @@ func (ec *executionContext) _Mutation_deleteControl(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteControl(rctx, fc.Args["id"].(string)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -124649,41 +44050,26 @@ func (ec *executionContext) _Mutation_deleteControl(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*ControlDeletePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNControlDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlDeletePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteControl(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_ControlDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlDeletePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteControl_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createControlObjective(ctx, field) +func (ec *executionContext) _GroupEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -124696,53 +44082,137 @@ func (ec *executionContext) _Mutation_createControlObjective(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateControlObjective(rctx, fc.Args["input"].(generated.CreateControlObjectiveInput)) + 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.(*ControlObjectiveCreatePayload) + res := resTmp.(*generated.Group) fc.Result = res - return ec.marshalNControlObjectiveCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "controlObjective": - return ec.fieldContext_ControlObjectiveCreatePayload_controlObjective(ctx, field) + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", 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_createControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkControlObjective(ctx, field) +func (ec *executionContext) _GroupEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -124755,7 +44225,7 @@ func (ec *executionContext) _Mutation_createBulkControlObjective(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkControlObjective(rctx, fc.Args["input"].([]*generated.CreateControlObjectiveInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -124767,41 +44237,26 @@ func (ec *executionContext) _Mutation_createBulkControlObjective(ctx context.Con } return graphql.Null } - res := resTmp.(*ControlObjectiveBulkCreatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "controlObjectives": - return ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveBulkCreatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVControlObjective(ctx, field) +func (ec *executionContext) _GroupHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -124814,7 +44269,7 @@ func (ec *executionContext) _Mutation_createBulkCSVControlObjective(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVControlObjective(rctx, fc.Args["input"].(graphql.Upload)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -124826,41 +44281,26 @@ func (ec *executionContext) _Mutation_createBulkCSVControlObjective(ctx context. } return graphql.Null } - res := resTmp.(*ControlObjectiveBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "controlObjectives": - return ec.fieldContext_ControlObjectiveBulkCreatePayload_controlObjectives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateControlObjective(ctx, field) +func (ec *executionContext) _GroupHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -124873,7 +44313,7 @@ func (ec *executionContext) _Mutation_updateControlObjective(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateControlObjective(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateControlObjectiveInput)) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -124885,41 +44325,26 @@ func (ec *executionContext) _Mutation_updateControlObjective(ctx context.Context } return graphql.Null } - res := resTmp.(*ControlObjectiveUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNControlObjectiveUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveUpdatePayload(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "controlObjective": - return ec.fieldContext_ControlObjectiveUpdatePayload_controlObjective(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteControlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteControlObjective(ctx, field) +func (ec *executionContext) _GroupHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -124932,53 +44357,35 @@ func (ec *executionContext) _Mutation_deleteControlObjective(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteControlObjective(rctx, fc.Args["id"].(string)) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ControlObjectiveDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNControlObjectiveDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteControlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_ControlObjectiveDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteControlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createDocumentData(ctx, field) +func (ec *executionContext) _GroupHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -124991,7 +44398,7 @@ func (ec *executionContext) _Mutation_createDocumentData(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateDocumentData(rctx, fc.Args["input"].(generated.CreateDocumentDataInput)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -125003,41 +44410,26 @@ func (ec *executionContext) _Mutation_createDocumentData(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*DocumentDataCreatePayload) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx, field.Selections, res) + return ec.marshalNGroupHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataCreatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataCreatePayload", field.Name) + return nil, errors.New("field of type GroupHistoryOpType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkDocumentData(ctx, field) +func (ec *executionContext) _GroupHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -125050,53 +44442,35 @@ func (ec *executionContext) _Mutation_createBulkDocumentData(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkDocumentData(rctx, fc.Args["input"].([]*generated.CreateDocumentDataInput)) + 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.(*DocumentDataBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVDocumentData(ctx, field) +func (ec *executionContext) _GroupHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -125109,53 +44483,35 @@ func (ec *executionContext) _Mutation_createBulkCSVDocumentData(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVDocumentData(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*DocumentDataBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataBulkCreatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateDocumentData(ctx, field) +func (ec *executionContext) _GroupHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -125168,53 +44524,35 @@ func (ec *executionContext) _Mutation_updateDocumentData(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateDocumentData(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateDocumentDataInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*DocumentDataUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataUpdatePayload_documentData(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteDocumentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteDocumentData(ctx, field) +func (ec *executionContext) _GroupHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -125227,53 +44565,35 @@ func (ec *executionContext) _Mutation_deleteDocumentData(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteDocumentData(rctx, fc.Args["id"].(string)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*DocumentDataDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteDocumentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_DocumentDataDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteDocumentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEntity(ctx, field) +func (ec *executionContext) _GroupHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -125286,53 +44606,35 @@ func (ec *executionContext) _Mutation_createEntity(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEntity(rctx, fc.Args["input"].(generated.CreateEntityInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entity": - return ec.fieldContext_EntityCreatePayload_entity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEntity(ctx, field) +func (ec *executionContext) _GroupHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -125345,53 +44647,35 @@ func (ec *executionContext) _Mutation_createBulkEntity(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEntity(rctx, fc.Args["input"].([]*generated.CreateEntityInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entities": - return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEntity(ctx, field) +func (ec *executionContext) _GroupHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -125404,53 +44688,35 @@ func (ec *executionContext) _Mutation_createBulkCSVEntity(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEntity(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityBulkCreatePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entities": - return ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEntity(ctx, field) +func (ec *executionContext) _GroupHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -125463,53 +44729,35 @@ func (ec *executionContext) _Mutation_updateEntity(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEntity(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityInput)) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entity": - return ec.fieldContext_EntityUpdatePayload_entity(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEntity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEntity(ctx, field) +func (ec *executionContext) _GroupHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -125522,7 +44770,7 @@ func (ec *executionContext) _Mutation_deleteEntity(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEntity(rctx, fc.Args["id"].(string)) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -125534,41 +44782,26 @@ func (ec *executionContext) _Mutation_deleteEntity(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*EntityDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEntity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEntity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEntityType(ctx, field) +func (ec *executionContext) _GroupHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -125581,53 +44814,35 @@ func (ec *executionContext) _Mutation_createEntityType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEntityType(rctx, fc.Args["input"].(generated.CreateEntityTypeInput)) + 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.(*EntityTypeCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityType": - return ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEntityType(ctx, field) +func (ec *executionContext) _GroupHistory_gravatarLogoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) if err != nil { return graphql.Null } @@ -125640,53 +44855,35 @@ func (ec *executionContext) _Mutation_createBulkEntityType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEntityType(rctx, fc.Args["input"].([]*generated.CreateEntityTypeInput)) + return obj.GravatarLogoURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityTypeBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_gravatarLogoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityTypes": - return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEntityType(ctx, field) +func (ec *executionContext) _GroupHistory_logoURL(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_logoURL(ctx, field) if err != nil { return graphql.Null } @@ -125699,53 +44896,35 @@ func (ec *executionContext) _Mutation_createBulkCSVEntityType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEntityType(rctx, fc.Args["input"].(graphql.Upload)) + return obj.LogoURL, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*EntityTypeBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_logoURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityTypes": - return ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEntityType(ctx, field) +func (ec *executionContext) _GroupHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistory_displayName(ctx, field) if err != nil { return graphql.Null } @@ -125758,7 +44937,7 @@ func (ec *executionContext) _Mutation_updateEntityType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEntityType(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEntityTypeInput)) + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -125770,41 +44949,26 @@ func (ec *executionContext) _Mutation_updateEntityType(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*EntityTypeUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "entityType": - return ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEntityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEntityType(ctx, field) +func (ec *executionContext) _GroupHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -125817,53 +44981,41 @@ func (ec *executionContext) _Mutation_deleteEntityType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEntityType(rctx, fc.Args["id"].(string)) + 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.(*EntityTypeDeletePayload) + res := resTmp.([]*generated.GroupHistoryEdge) fc.Result = res - return ec.marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx, field.Selections, res) + return ec.marshalOGroupHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEntityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) + case "node": + return ec.fieldContext_GroupHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupHistoryEdge", 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_deleteEntityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createEvent(ctx, field) +func (ec *executionContext) _GroupHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -125876,7 +45028,7 @@ func (ec *executionContext) _Mutation_createEvent(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateEvent(rctx, fc.Args["input"].(generated.CreateEventInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -125888,41 +45040,36 @@ func (ec *executionContext) _Mutation_createEvent(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*EventCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "event": - return ec.fieldContext_EventCreatePayload_event(ctx, field) + 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 EventCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_createEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkEvent(ctx, field) +func (ec *executionContext) _GroupHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -125935,7 +45082,7 @@ func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkEvent(rctx, fc.Args["input"].([]*generated.CreateEventInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -125947,41 +45094,26 @@ func (ec *executionContext) _Mutation_createBulkEvent(ctx context.Context, field } return graphql.Null } - res := resTmp.(*EventBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "events": - return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVEvent(ctx, field) +func (ec *executionContext) _GroupHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -125994,53 +45126,71 @@ func (ec *executionContext) _Mutation_createBulkCSVEvent(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVEvent(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*EventBulkCreatePayload) + res := resTmp.(*generated.GroupHistory) fc.Result = res - return ec.marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "events": - return ec.fieldContext_EventBulkCreatePayload_events(ctx, field) + case "id": + return ec.fieldContext_GroupHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_GroupHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_GroupHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_GroupHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_GroupHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_GroupHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_GroupHistory_name(ctx, field) + case "description": + return ec.fieldContext_GroupHistory_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_GroupHistory_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_GroupHistory_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_GroupHistory_displayName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EventBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupHistory", 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_createBulkCSVEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateEvent(ctx, field) +func (ec *executionContext) _GroupHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -126053,7 +45203,7 @@ func (ec *executionContext) _Mutation_updateEvent(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateEvent(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateEventInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -126065,41 +45215,26 @@ func (ec *executionContext) _Mutation_updateEvent(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*EventUpdatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "event": - return ec.fieldContext_EventUpdatePayload_event(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventUpdatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteEvent(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteEvent(ctx, field) +func (ec *executionContext) _GroupMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_id(ctx, field) if err != nil { return graphql.Null } @@ -126112,7 +45247,7 @@ func (ec *executionContext) _Mutation_deleteEvent(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteEvent(rctx, fc.Args["id"].(string)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -126124,41 +45259,26 @@ func (ec *executionContext) _Mutation_deleteEvent(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*EventDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteEvent(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_EventDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EventDeletePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteEvent_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteFile(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteFile(ctx, field) +func (ec *executionContext) _GroupMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -126171,53 +45291,35 @@ func (ec *executionContext) _Mutation_deleteFile(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteFile(rctx, fc.Args["id"].(string)) + 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.(*FileDeletePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteFile(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_FileDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FileDeletePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteFile_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createGroup(ctx, field) +func (ec *executionContext) _GroupMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -126230,53 +45332,35 @@ func (ec *executionContext) _Mutation_createGroup(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateGroup(rctx, fc.Args["input"].(generated.CreateGroupInput)) + 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.(*GroupCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "group": - return ec.fieldContext_GroupCreatePayload_group(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkGroup(ctx, field) +func (ec *executionContext) _GroupMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -126289,53 +45373,35 @@ func (ec *executionContext) _Mutation_createBulkGroup(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkGroup(rctx, fc.Args["input"].([]*generated.CreateGroupInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groups": - return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVGroup(ctx, field) +func (ec *executionContext) _GroupMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -126348,53 +45414,35 @@ func (ec *executionContext) _Mutation_createBulkCSVGroup(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVGroup(rctx, fc.Args["input"].(graphql.Upload)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groups": - return ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateGroup(ctx, field) +func (ec *executionContext) _GroupMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -126407,53 +45455,35 @@ func (ec *executionContext) _Mutation_updateGroup(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateGroup(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "group": - return ec.fieldContext_GroupUpdatePayload_group(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteGroup(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteGroup(ctx, field) +func (ec *executionContext) _GroupMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -126466,53 +45496,35 @@ func (ec *executionContext) _Mutation_deleteGroup(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteGroup(rctx, fc.Args["id"].(string)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteGroup(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteGroup_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createGroupMembership(ctx, field) +func (ec *executionContext) _GroupMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_role(ctx, field) if err != nil { return graphql.Null } @@ -126525,7 +45537,7 @@ func (ec *executionContext) _Mutation_createGroupMembership(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateGroupMembership(rctx, fc.Args["input"].(generated.CreateGroupMembershipInput)) + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -126537,41 +45549,26 @@ func (ec *executionContext) _Mutation_createGroupMembership(ctx context.Context, } return graphql.Null } - res := resTmp.(*GroupMembershipCreatePayload) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx, field.Selections, res) + return ec.marshalNGroupMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupMembership": - return ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipCreatePayload", field.Name) + return nil, errors.New("field of type GroupMembershipRole does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkGroupMembership(ctx, field) +func (ec *executionContext) _GroupMembership_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_groupID(ctx, field) if err != nil { return graphql.Null } @@ -126584,7 +45581,7 @@ func (ec *executionContext) _Mutation_createBulkGroupMembership(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkGroupMembership(rctx, fc.Args["input"].([]*generated.CreateGroupMembershipInput)) + return obj.GroupID, nil }) if err != nil { ec.Error(ctx, err) @@ -126596,41 +45593,26 @@ func (ec *executionContext) _Mutation_createBulkGroupMembership(ctx context.Cont } return graphql.Null } - res := resTmp.(*GroupMembershipBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupMemberships": - return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVGroupMembership(ctx, field) +func (ec *executionContext) _GroupMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_userID(ctx, field) if err != nil { return graphql.Null } @@ -126643,7 +45625,7 @@ func (ec *executionContext) _Mutation_createBulkCSVGroupMembership(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVGroupMembership(rctx, fc.Args["input"].(graphql.Upload)) + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) @@ -126655,41 +45637,26 @@ func (ec *executionContext) _Mutation_createBulkCSVGroupMembership(ctx context.C } return graphql.Null } - res := resTmp.(*GroupMembershipBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupMemberships": - return ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateGroupMembership(ctx, field) +func (ec *executionContext) _GroupMembership_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_group(ctx, field) if err != nil { return graphql.Null } @@ -126702,7 +45669,7 @@ func (ec *executionContext) _Mutation_updateGroupMembership(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateGroupMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupMembershipInput)) + return obj.Group(ctx) }) if err != nil { ec.Error(ctx, err) @@ -126714,41 +45681,128 @@ func (ec *executionContext) _Mutation_updateGroupMembership(ctx context.Context, } return graphql.Null } - res := resTmp.(*GroupMembershipUpdatePayload) + res := resTmp.(*generated.Group) fc.Result = res - return ec.marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx, field.Selections, res) + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "groupMembership": - return ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", 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_updateGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteGroupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteGroupMembership(ctx, field) +func (ec *executionContext) _GroupMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_user(ctx, field) if err != nil { return graphql.Null } @@ -126761,7 +45815,7 @@ func (ec *executionContext) _Mutation_deleteGroupMembership(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteGroupMembership(rctx, fc.Args["id"].(string)) + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) @@ -126773,41 +45827,100 @@ func (ec *executionContext) _Mutation_deleteGroupMembership(ctx context.Context, } return graphql.Null } - res := resTmp.(*GroupMembershipDeletePayload) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteGroupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", 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_deleteGroupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createGroupSetting(ctx, field) +func (ec *executionContext) _GroupMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembership_events(ctx, field) if err != nil { return graphql.Null } @@ -126820,53 +45933,79 @@ func (ec *executionContext) _Mutation_createGroupSetting(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateGroupSetting(rctx, fc.Args["input"].(generated.CreateGroupSettingInput)) + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*GroupSettingCreatePayload) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembership", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "groupSetting": - return ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", 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_createGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkGroupSetting(ctx, field) +func (ec *executionContext) _GroupMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -126879,53 +46018,41 @@ func (ec *executionContext) _Mutation_createBulkGroupSetting(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkGroupSetting(rctx, fc.Args["input"].([]*generated.CreateGroupSettingInput)) + 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.(*GroupSettingBulkCreatePayload) + res := resTmp.([]*generated.GroupMembershipEdge) fc.Result = res - return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "groupSettings": - return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) + case "node": + return ec.fieldContext_GroupMembershipEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipEdge", 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_createBulkGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVGroupSetting(ctx, field) +func (ec *executionContext) _GroupMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -126938,7 +46065,7 @@ func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVGroupSetting(rctx, fc.Args["input"].(graphql.Upload)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -126950,41 +46077,36 @@ func (ec *executionContext) _Mutation_createBulkCSVGroupSetting(ctx context.Cont } return graphql.Null } - res := resTmp.(*GroupSettingBulkCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "groupSettings": - return ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) + 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 GroupSettingBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_createBulkCSVGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateGroupSetting(ctx, field) +func (ec *executionContext) _GroupMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -126997,7 +46119,7 @@ func (ec *executionContext) _Mutation_updateGroupSetting(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateGroupSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateGroupSettingInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -127009,41 +46131,26 @@ func (ec *executionContext) _Mutation_updateGroupSetting(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*GroupSettingUpdatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "groupSetting": - return ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingUpdatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteGroupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteGroupSetting(ctx, field) +func (ec *executionContext) _GroupMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -127056,53 +46163,63 @@ func (ec *executionContext) _Mutation_deleteGroupSetting(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteGroupSetting(rctx, fc.Args["id"].(string)) + 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.(*GroupSettingDeletePayload) + res := resTmp.(*generated.GroupMembership) fc.Result = res - return ec.marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx, field.Selections, res) + return ec.marshalOGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteGroupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", 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_deleteGroupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createHush(ctx, field) +func (ec *executionContext) _GroupMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -127115,7 +46232,7 @@ func (ec *executionContext) _Mutation_createHush(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateHush(rctx, fc.Args["input"].(generated.CreateHushInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -127127,41 +46244,26 @@ func (ec *executionContext) _Mutation_createHush(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*HushCreatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hush": - return ec.fieldContext_HushCreatePayload_hush(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushCreatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkHush(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -127174,7 +46276,7 @@ func (ec *executionContext) _Mutation_createBulkHush(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkHush(rctx, fc.Args["input"].([]*generated.CreateHushInput)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -127186,41 +46288,26 @@ func (ec *executionContext) _Mutation_createBulkHush(ctx context.Context, field } return graphql.Null } - res := resTmp.(*HushBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hushes": - return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVHush(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -127233,7 +46320,7 @@ func (ec *executionContext) _Mutation_createBulkCSVHush(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVHush(rctx, fc.Args["input"].(graphql.Upload)) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -127245,41 +46332,26 @@ func (ec *executionContext) _Mutation_createBulkCSVHush(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*HushBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hushes": - return ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateHush(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -127292,53 +46364,35 @@ func (ec *executionContext) _Mutation_updateHush(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateHush(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateHushInput)) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*HushUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "hush": - return ec.fieldContext_HushUpdatePayload_hush(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteHush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteHush(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -127351,7 +46405,7 @@ func (ec *executionContext) _Mutation_deleteHush(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteHush(rctx, fc.Args["id"].(string)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -127363,41 +46417,26 @@ func (ec *executionContext) _Mutation_deleteHush(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*HushDeletePayload) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx, field.Selections, res) + return ec.marshalNGroupMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteHush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_HushDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushDeletePayload", field.Name) + return nil, errors.New("field of type GroupMembershipHistoryOpType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteHush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createIntegration(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -127410,53 +46449,35 @@ func (ec *executionContext) _Mutation_createIntegration(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateIntegration(rctx, fc.Args["input"].(generated.CreateIntegrationInput)) + 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.(*IntegrationCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "integration": - return ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkIntegration(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -127469,53 +46490,35 @@ func (ec *executionContext) _Mutation_createBulkIntegration(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkIntegration(rctx, fc.Args["input"].([]*generated.CreateIntegrationInput)) + 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.(*IntegrationBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "integrations": - return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVIntegration(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -127528,53 +46531,35 @@ func (ec *executionContext) _Mutation_createBulkCSVIntegration(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVIntegration(rctx, fc.Args["input"].(graphql.Upload)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*IntegrationBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "integrations": - return ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateIntegration(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -127587,53 +46572,35 @@ func (ec *executionContext) _Mutation_updateIntegration(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateIntegration(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateIntegrationInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*IntegrationUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "integration": - return ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteIntegration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteIntegration(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -127646,53 +46613,35 @@ func (ec *executionContext) _Mutation_deleteIntegration(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteIntegration(rctx, fc.Args["id"].(string)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*IntegrationDeletePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteIntegration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationDeletePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteIntegration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createInternalPolicy(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -127705,53 +46654,35 @@ func (ec *executionContext) _Mutation_createInternalPolicy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateInternalPolicy(rctx, fc.Args["input"].(generated.CreateInternalPolicyInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*InternalPolicyCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNInternalPolicyCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "internalPolicy": - return ec.fieldContext_InternalPolicyCreatePayload_internalPolicy(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkInternalPolicy(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_role(ctx, field) if err != nil { return graphql.Null } @@ -127764,7 +46695,7 @@ func (ec *executionContext) _Mutation_createBulkInternalPolicy(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkInternalPolicy(rctx, fc.Args["input"].([]*generated.CreateInternalPolicyInput)) + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -127776,41 +46707,26 @@ func (ec *executionContext) _Mutation_createBulkInternalPolicy(ctx context.Conte } return graphql.Null } - res := resTmp.(*InternalPolicyBulkCreatePayload) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNGroupMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "internalPolicies": - return ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyBulkCreatePayload", field.Name) + return nil, errors.New("field of type GroupMembershipHistoryRole does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVInternalPolicy(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) if err != nil { return graphql.Null } @@ -127823,7 +46739,7 @@ func (ec *executionContext) _Mutation_createBulkCSVInternalPolicy(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVInternalPolicy(rctx, fc.Args["input"].(graphql.Upload)) + return obj.GroupID, nil }) if err != nil { ec.Error(ctx, err) @@ -127835,41 +46751,26 @@ func (ec *executionContext) _Mutation_createBulkCSVInternalPolicy(ctx context.Co } return graphql.Null } - res := resTmp.(*InternalPolicyBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "internalPolicies": - return ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateInternalPolicy(ctx, field) +func (ec *executionContext) _GroupMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistory_userID(ctx, field) if err != nil { return graphql.Null } @@ -127882,7 +46783,7 @@ func (ec *executionContext) _Mutation_updateInternalPolicy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateInternalPolicy(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateInternalPolicyInput)) + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) @@ -127894,41 +46795,26 @@ func (ec *executionContext) _Mutation_updateInternalPolicy(ctx context.Context, } return graphql.Null } - res := resTmp.(*InternalPolicyUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNInternalPolicyUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyUpdatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "internalPolicy": - return ec.fieldContext_InternalPolicyUpdatePayload_internalPolicy(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteInternalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteInternalPolicy(ctx, field) +func (ec *executionContext) _GroupMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -127941,53 +46827,41 @@ func (ec *executionContext) _Mutation_deleteInternalPolicy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteInternalPolicy(rctx, fc.Args["id"].(string)) + 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.(*InternalPolicyDeletePayload) + res := resTmp.([]*generated.GroupMembershipHistoryEdge) fc.Result = res - return ec.marshalNInternalPolicyDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyDeletePayload(ctx, field.Selections, res) + return ec.marshalOGroupMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteInternalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_InternalPolicyDeletePayload_deletedID(ctx, field) + case "node": + return ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryEdge", 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_deleteInternalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createInvite(ctx, field) +func (ec *executionContext) _GroupMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -128000,7 +46874,7 @@ func (ec *executionContext) _Mutation_createInvite(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateInvite(rctx, fc.Args["input"].(generated.CreateInviteInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -128012,41 +46886,36 @@ func (ec *executionContext) _Mutation_createInvite(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*InviteCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "invite": - return ec.fieldContext_InviteCreatePayload_invite(ctx, field) + 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 InviteCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_createInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkInvite(ctx, field) +func (ec *executionContext) _GroupMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -128059,7 +46928,7 @@ func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkInvite(rctx, fc.Args["input"].([]*generated.CreateInviteInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -128071,41 +46940,26 @@ func (ec *executionContext) _Mutation_createBulkInvite(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*InviteBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "invites": - return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVInvite(ctx, field) +func (ec *executionContext) _GroupMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -128118,53 +46972,63 @@ func (ec *executionContext) _Mutation_createBulkCSVInvite(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVInvite(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*InviteBulkCreatePayload) + res := resTmp.(*generated.GroupMembershipHistory) fc.Result = res - return ec.marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "invites": - return ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) + case "id": + return ec.fieldContext_GroupMembershipHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_GroupMembershipHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_GroupMembershipHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_GroupMembershipHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembershipHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembershipHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembershipHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembershipHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembershipHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembershipHistory_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembershipHistory_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembershipHistory_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembershipHistory_userID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InviteBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistory", 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_createBulkCSVInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateInvite(ctx, field) +func (ec *executionContext) _GroupMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -128177,7 +47041,7 @@ func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateInvite(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateInviteInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -128189,41 +47053,26 @@ func (ec *executionContext) _Mutation_updateInvite(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*InviteUpdatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupMembershipHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "invite": - return ec.fieldContext_InviteUpdatePayload_invite(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteUpdatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteInvite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteInvite(ctx, field) +func (ec *executionContext) _GroupSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_id(ctx, field) if err != nil { return graphql.Null } @@ -128236,7 +47085,7 @@ func (ec *executionContext) _Mutation_deleteInvite(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteInvite(rctx, fc.Args["id"].(string)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -128248,41 +47097,26 @@ func (ec *executionContext) _Mutation_deleteInvite(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*InviteDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteInvite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InviteDeletePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteInvite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createNarrative(ctx, field) +func (ec *executionContext) _GroupSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -128295,53 +47129,35 @@ func (ec *executionContext) _Mutation_createNarrative(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateNarrative(rctx, fc.Args["input"].(generated.CreateNarrativeInput)) + 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.(*NarrativeCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNNarrativeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "narrative": - return ec.fieldContext_NarrativeCreatePayload_narrative(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NarrativeCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkNarrative(ctx, field) +func (ec *executionContext) _GroupSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -128354,53 +47170,35 @@ func (ec *executionContext) _Mutation_createBulkNarrative(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkNarrative(rctx, fc.Args["input"].([]*generated.CreateNarrativeInput)) + 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.(*NarrativeBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "narratives": - return ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NarrativeBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVNarrative(ctx, field) +func (ec *executionContext) _GroupSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -128413,53 +47211,35 @@ func (ec *executionContext) _Mutation_createBulkCSVNarrative(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVNarrative(rctx, fc.Args["input"].(graphql.Upload)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*NarrativeBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "narratives": - return ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NarrativeBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateNarrative(ctx, field) +func (ec *executionContext) _GroupSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -128472,53 +47252,35 @@ func (ec *executionContext) _Mutation_updateNarrative(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateNarrative(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateNarrativeInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*NarrativeUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNNarrativeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "narrative": - return ec.fieldContext_NarrativeUpdatePayload_narrative(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NarrativeUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteNarrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteNarrative(ctx, field) +func (ec *executionContext) _GroupSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_tags(ctx, field) if err != nil { return graphql.Null } @@ -128531,53 +47293,35 @@ func (ec *executionContext) _Mutation_deleteNarrative(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteNarrative(rctx, fc.Args["id"].(string)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*NarrativeDeletePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNNarrativeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteNarrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_NarrativeDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NarrativeDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteNarrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } 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) +func (ec *executionContext) _GroupSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -128590,53 +47334,35 @@ func (ec *executionContext) _Mutation_createOrganization(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOrganization(rctx, fc.Args["input"].(generated.CreateOrganizationInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organization": - return ec.fieldContext_OrganizationCreatePayload_organization(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOrganization(ctx, field) +func (ec *executionContext) _GroupSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -128649,53 +47375,35 @@ func (ec *executionContext) _Mutation_createBulkOrganization(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOrganization(rctx, fc.Args["input"].([]*generated.CreateOrganizationInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizations": - return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOrganization(ctx, field) +func (ec *executionContext) _GroupSetting_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_visibility(ctx, field) if err != nil { return graphql.Null } @@ -128708,7 +47416,7 @@ func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOrganization(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Visibility, nil }) if err != nil { ec.Error(ctx, err) @@ -128720,41 +47428,26 @@ func (ec *executionContext) _Mutation_createBulkCSVOrganization(ctx context.Cont } return graphql.Null } - res := resTmp.(*OrganizationBulkCreatePayload) + res := resTmp.(enums.Visibility) fc.Result = res - return ec.marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizations": - return ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationBulkCreatePayload", field.Name) + return nil, errors.New("field of type GroupSettingVisibility does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOrganization_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) +func (ec *executionContext) _GroupSetting_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_joinPolicy(ctx, field) if err != nil { return graphql.Null } @@ -128767,7 +47460,7 @@ func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOrganization(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrganizationInput)) + return obj.JoinPolicy, nil }) if err != nil { ec.Error(ctx, err) @@ -128779,41 +47472,26 @@ func (ec *executionContext) _Mutation_updateOrganization(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*OrganizationUpdatePayload) + res := resTmp.(enums.JoinPolicy) fc.Result = res - return ec.marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx, field.Selections, res) + return ec.marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organization": - return ec.fieldContext_OrganizationUpdatePayload_organization(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationUpdatePayload", field.Name) + return nil, errors.New("field of type GroupSettingJoinPolicy does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_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) +func (ec *executionContext) _GroupSetting_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_syncToSlack(ctx, field) if err != nil { return graphql.Null } @@ -128826,53 +47504,35 @@ func (ec *executionContext) _Mutation_deleteOrganization(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOrganization(rctx, fc.Args["id"].(string)) + return obj.SyncToSlack, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } + if resTmp == nil { return graphql.Null } - res := resTmp.(*OrganizationDeletePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOrganization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationDeletePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOrganization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOrganizationSetting(ctx, field) +func (ec *executionContext) _GroupSetting_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_syncToGithub(ctx, field) if err != nil { return graphql.Null } @@ -128885,53 +47545,35 @@ func (ec *executionContext) _Mutation_createOrganizationSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOrganizationSetting(rctx, fc.Args["input"].(generated.CreateOrganizationSettingInput)) + return obj.SyncToGithub, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationSettingCreatePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationSetting": - return ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingCreatePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOrganizationSetting(ctx, field) +func (ec *executionContext) _GroupSetting_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_groupID(ctx, field) if err != nil { return graphql.Null } @@ -128944,53 +47586,35 @@ func (ec *executionContext) _Mutation_createBulkOrganizationSetting(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOrganizationSetting(rctx, fc.Args["input"].([]*generated.CreateOrganizationSettingInput)) + return obj.GroupID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationSettingBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "organizationSettings": - return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOrganizationSetting(ctx, field) +func (ec *executionContext) _GroupSetting_group(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSetting_group(ctx, field) if err != nil { return graphql.Null } @@ -129003,53 +47627,137 @@ func (ec *executionContext) _Mutation_createBulkCSVOrganizationSetting(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOrganizationSetting(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Group(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrganizationSettingBulkCreatePayload) + res := resTmp.(*generated.Group) fc.Result = res - return ec.marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSetting_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSetting", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "organizationSettings": - return ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", 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_createBulkCSVOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOrganizationSetting(ctx, field) +func (ec *executionContext) _GroupSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -129062,53 +47770,41 @@ func (ec *executionContext) _Mutation_updateOrganizationSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOrganizationSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrganizationSettingInput)) + 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.(*OrganizationSettingUpdatePayload) + res := resTmp.([]*generated.GroupSettingEdge) fc.Result = res - return ec.marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalOGroupSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "organizationSetting": - return ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) + case "node": + return ec.fieldContext_GroupSettingEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupSettingEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSettingEdge", 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_updateOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOrganizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOrganizationSetting(ctx, field) +func (ec *executionContext) _GroupSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -129121,7 +47817,7 @@ func (ec *executionContext) _Mutation_deleteOrganizationSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOrganizationSetting(rctx, fc.Args["id"].(string)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -129133,41 +47829,36 @@ func (ec *executionContext) _Mutation_deleteOrganizationSetting(ctx context.Cont } return graphql.Null } - res := resTmp.(*OrganizationSettingDeletePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOrganizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) + 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 OrganizationSettingDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_deleteOrganizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOrgMembership(ctx, field) +func (ec *executionContext) _GroupSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -129180,7 +47871,7 @@ func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOrgMembership(rctx, fc.Args["input"].(generated.CreateOrgMembershipInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -129192,41 +47883,26 @@ func (ec *executionContext) _Mutation_createOrgMembership(ctx context.Context, f } return graphql.Null } - res := resTmp.(*OrgMembershipCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgMembership": - return ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOrgMembership(ctx, field) +func (ec *executionContext) _GroupSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -129239,53 +47915,65 @@ func (ec *executionContext) _Mutation_createBulkOrgMembership(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOrgMembership(rctx, fc.Args["input"].([]*generated.CreateOrgMembershipInput)) + 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.(*OrgMembershipBulkCreatePayload) + res := resTmp.(*generated.GroupSetting) fc.Result = res - return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "orgMemberships": - return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", 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_createBulkOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOrgMembership(ctx, field) +func (ec *executionContext) _GroupSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -129298,7 +47986,7 @@ func (ec *executionContext) _Mutation_createBulkCSVOrgMembership(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOrgMembership(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -129310,41 +47998,26 @@ func (ec *executionContext) _Mutation_createBulkCSVOrgMembership(ctx context.Con } return graphql.Null } - res := resTmp.(*OrgMembershipBulkCreatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgMemberships": - return ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOrgMembership(ctx, field) +func (ec *executionContext) _GroupSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -129357,7 +48030,7 @@ func (ec *executionContext) _Mutation_updateOrgMembership(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOrgMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrgMembershipInput)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -129369,41 +48042,26 @@ func (ec *executionContext) _Mutation_updateOrgMembership(ctx context.Context, f } return graphql.Null } - res := resTmp.(*OrgMembershipUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgMembership": - return ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipUpdatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOrgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOrgMembership(ctx, field) +func (ec *executionContext) _GroupSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -129416,7 +48074,7 @@ func (ec *executionContext) _Mutation_deleteOrgMembership(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOrgMembership(rctx, fc.Args["id"].(string)) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -129428,41 +48086,26 @@ func (ec *executionContext) _Mutation_deleteOrgMembership(ctx context.Context, f } return graphql.Null } - res := resTmp.(*OrgMembershipDeletePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOrgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipDeletePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOrgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createOrgSubscription(ctx, field) +func (ec *executionContext) _GroupSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -129475,53 +48118,35 @@ func (ec *executionContext) _Mutation_createOrgSubscription(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateOrgSubscription(rctx, fc.Args["input"].(generated.CreateOrgSubscriptionInput)) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrgSubscriptionCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgSubscriptionCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createOrgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgSubscription": - return ec.fieldContext_OrgSubscriptionCreatePayload_orgSubscription(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkOrgSubscription(ctx, field) +func (ec *executionContext) _GroupSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -129534,7 +48159,7 @@ func (ec *executionContext) _Mutation_createBulkOrgSubscription(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkOrgSubscription(rctx, fc.Args["input"].([]*generated.CreateOrgSubscriptionInput)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -129546,41 +48171,26 @@ func (ec *executionContext) _Mutation_createBulkOrgSubscription(ctx context.Cont } return graphql.Null } - res := resTmp.(*OrgSubscriptionBulkCreatePayload) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNOrgSubscriptionBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNGroupSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkOrgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgSubscriptions": - return ec.fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionBulkCreatePayload", field.Name) + return nil, errors.New("field of type GroupSettingHistoryOpType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVOrgSubscription(ctx, field) +func (ec *executionContext) _GroupSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -129593,53 +48203,35 @@ func (ec *executionContext) _Mutation_createBulkCSVOrgSubscription(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVOrgSubscription(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*OrgSubscriptionBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrgSubscriptionBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVOrgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgSubscriptions": - return ec.fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateOrgSubscription(ctx, field) +func (ec *executionContext) _GroupSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -129652,53 +48244,35 @@ func (ec *executionContext) _Mutation_updateOrgSubscription(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateOrgSubscription(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateOrgSubscriptionInput)) + 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.(*OrgSubscriptionUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrgSubscriptionUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateOrgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "orgSubscription": - return ec.fieldContext_OrgSubscriptionUpdatePayload_orgSubscription(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteOrgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteOrgSubscription(ctx, field) +func (ec *executionContext) _GroupSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -129711,53 +48285,35 @@ func (ec *executionContext) _Mutation_deleteOrgSubscription(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteOrgSubscription(rctx, fc.Args["id"].(string)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*OrgSubscriptionDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgSubscriptionDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteOrgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_OrgSubscriptionDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteOrgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createPersonalAccessToken(ctx, field) +func (ec *executionContext) _GroupSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -129770,53 +48326,35 @@ func (ec *executionContext) _Mutation_createPersonalAccessToken(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreatePersonalAccessToken(rctx, fc.Args["input"].(generated.CreatePersonalAccessTokenInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessToken": - return ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkPersonalAccessToken(ctx, field) +func (ec *executionContext) _GroupSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -129829,53 +48367,35 @@ func (ec *executionContext) _Mutation_createBulkPersonalAccessToken(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkPersonalAccessToken(rctx, fc.Args["input"].([]*generated.CreatePersonalAccessTokenInput)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenBulkCreatePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessTokens": - return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVPersonalAccessToken(ctx, field) +func (ec *executionContext) _GroupSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -129888,53 +48408,35 @@ func (ec *executionContext) _Mutation_createBulkCSVPersonalAccessToken(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVPersonalAccessToken(rctx, fc.Args["input"].(graphql.Upload)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVPersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessTokens": - return ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVPersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updatePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updatePersonalAccessToken(ctx, field) +func (ec *executionContext) _GroupSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -129947,53 +48449,35 @@ func (ec *executionContext) _Mutation_updatePersonalAccessToken(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdatePersonalAccessToken(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdatePersonalAccessTokenInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*PersonalAccessTokenUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updatePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "personalAccessToken": - return ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updatePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deletePersonalAccessToken(ctx, field) +func (ec *executionContext) _GroupSettingHistory_visibility(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_visibility(ctx, field) if err != nil { return graphql.Null } @@ -130006,7 +48490,7 @@ func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeletePersonalAccessToken(rctx, fc.Args["id"].(string)) + return obj.Visibility, nil }) if err != nil { ec.Error(ctx, err) @@ -130018,41 +48502,26 @@ func (ec *executionContext) _Mutation_deletePersonalAccessToken(ctx context.Cont } return graphql.Null } - res := resTmp.(*PersonalAccessTokenDeletePayload) + res := resTmp.(enums.Visibility) fc.Result = res - return ec.marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx, field.Selections, res) + return ec.marshalNGroupSettingHistoryVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deletePersonalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_visibility(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenDeletePayload", field.Name) + return nil, errors.New("field of type GroupSettingHistoryVisibility does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deletePersonalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createProcedure(ctx, field) +func (ec *executionContext) _GroupSettingHistory_joinPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) if err != nil { return graphql.Null } @@ -130065,7 +48534,7 @@ func (ec *executionContext) _Mutation_createProcedure(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateProcedure(rctx, fc.Args["input"].(generated.CreateProcedureInput)) + return obj.JoinPolicy, nil }) if err != nil { ec.Error(ctx, err) @@ -130077,41 +48546,26 @@ func (ec *executionContext) _Mutation_createProcedure(ctx context.Context, field } return graphql.Null } - res := resTmp.(*ProcedureCreatePayload) + res := resTmp.(enums.JoinPolicy) fc.Result = res - return ec.marshalNProcedureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureCreatePayload(ctx, field.Selections, res) + return ec.marshalNGroupSettingHistoryJoinPolicy2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐJoinPolicy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_joinPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "procedure": - return ec.fieldContext_ProcedureCreatePayload_procedure(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureCreatePayload", field.Name) + return nil, errors.New("field of type GroupSettingHistoryJoinPolicy does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkProcedure(ctx, field) +func (ec *executionContext) _GroupSettingHistory_syncToSlack(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) if err != nil { return graphql.Null } @@ -130124,53 +48578,35 @@ func (ec *executionContext) _Mutation_createBulkProcedure(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkProcedure(rctx, fc.Args["input"].([]*generated.CreateProcedureInput)) + return obj.SyncToSlack, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ProcedureBulkCreatePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_syncToSlack(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "procedures": - return ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureBulkCreatePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVProcedure(ctx, field) +func (ec *executionContext) _GroupSettingHistory_syncToGithub(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) if err != nil { return graphql.Null } @@ -130183,53 +48619,35 @@ func (ec *executionContext) _Mutation_createBulkCSVProcedure(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVProcedure(rctx, fc.Args["input"].(graphql.Upload)) + return obj.SyncToGithub, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ProcedureBulkCreatePayload) + res := resTmp.(bool) fc.Result = res - return ec.marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_syncToGithub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "procedures": - return ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureBulkCreatePayload", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateProcedure(ctx, field) +func (ec *executionContext) _GroupSettingHistory_groupID(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistory_groupID(ctx, field) if err != nil { return graphql.Null } @@ -130242,53 +48660,35 @@ func (ec *executionContext) _Mutation_updateProcedure(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateProcedure(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateProcedureInput)) + return obj.GroupID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ProcedureUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNProcedureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistory_groupID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "procedure": - return ec.fieldContext_ProcedureUpdatePayload_procedure(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteProcedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteProcedure(ctx, field) +func (ec *executionContext) _GroupSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -130301,53 +48701,41 @@ func (ec *executionContext) _Mutation_deleteProcedure(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteProcedure(rctx, fc.Args["id"].(string)) + 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.(*ProcedureDeletePayload) + res := resTmp.([]*generated.GroupSettingHistoryEdge) fc.Result = res - return ec.marshalNProcedureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureDeletePayload(ctx, field.Selections, res) + return ec.marshalOGroupSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteProcedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_ProcedureDeletePayload_deletedID(ctx, field) + case "node": + return ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProcedureDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryEdge", 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_deleteProcedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createProgram(ctx, field) +func (ec *executionContext) _GroupSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -130360,7 +48748,7 @@ func (ec *executionContext) _Mutation_createProgram(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateProgram(rctx, fc.Args["input"].(generated.CreateProgramInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -130372,41 +48760,36 @@ func (ec *executionContext) _Mutation_createProgram(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*ProgramCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createProgram(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "program": - return ec.fieldContext_ProgramCreatePayload_program(ctx, field) + 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 ProgramCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_createProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkProgram(ctx, field) +func (ec *executionContext) _GroupSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -130419,7 +48802,7 @@ func (ec *executionContext) _Mutation_createBulkProgram(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkProgram(rctx, fc.Args["input"].([]*generated.CreateProgramInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -130431,41 +48814,26 @@ func (ec *executionContext) _Mutation_createBulkProgram(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*ProgramBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNProgramBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkProgram(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "programs": - return ec.fieldContext_ProgramBulkCreatePayload_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVProgram(ctx, field) +func (ec *executionContext) _GroupSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -130478,53 +48846,69 @@ func (ec *executionContext) _Mutation_createBulkCSVProgram(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVProgram(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*ProgramBulkCreatePayload) + res := resTmp.(*generated.GroupSettingHistory) fc.Result = res - return ec.marshalNProgramBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOGroupSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVProgram(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "programs": - return ec.fieldContext_ProgramBulkCreatePayload_programs(ctx, field) + case "id": + return ec.fieldContext_GroupSettingHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_GroupSettingHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_GroupSettingHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_GroupSettingHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSettingHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSettingHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSettingHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSettingHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSettingHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSettingHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSettingHistory_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSettingHistory_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSettingHistory_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSettingHistory_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSettingHistory_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSettingHistory_groupID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistory", 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_createBulkCSVProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateProgram(ctx, field) +func (ec *executionContext) _GroupSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.GroupSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -130537,7 +48921,7 @@ func (ec *executionContext) _Mutation_updateProgram(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateProgram(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateProgramInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -130549,41 +48933,26 @@ func (ec *executionContext) _Mutation_updateProgram(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*ProgramUpdatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNProgramUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramUpdatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateProgram(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_GroupSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "GroupSettingHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "program": - return ec.fieldContext_ProgramUpdatePayload_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramUpdatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteProgram(ctx, field) +func (ec *executionContext) _Hush_id(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_id(ctx, field) if err != nil { return graphql.Null } @@ -130596,7 +48965,7 @@ func (ec *executionContext) _Mutation_deleteProgram(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteProgram(rctx, fc.Args["id"].(string)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -130608,41 +48977,26 @@ func (ec *executionContext) _Mutation_deleteProgram(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*ProgramDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramDeletePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteProgram(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_ProgramDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramDeletePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createProgramWithMembers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createProgramWithMembers(ctx, field) +func (ec *executionContext) _Hush_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -130655,53 +49009,35 @@ func (ec *executionContext) _Mutation_createProgramWithMembers(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateProgramWithMembers(rctx, fc.Args["input"].(CreateProgramWithMembersInput)) + 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.(*ProgramCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createProgramWithMembers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "program": - return ec.fieldContext_ProgramCreatePayload_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createProgramWithMembers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createFullProgram(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createFullProgram(ctx, field) +func (ec *executionContext) _Hush_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -130714,53 +49050,35 @@ func (ec *executionContext) _Mutation_createFullProgram(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateFullProgram(rctx, fc.Args["input"].(CreateFullProgramInput)) + 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.(*ProgramCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createFullProgram(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "program": - return ec.fieldContext_ProgramCreatePayload_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createFullProgram_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createControlWithSubcontrols(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createControlWithSubcontrols(ctx, field) +func (ec *executionContext) _Hush_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -130773,53 +49091,35 @@ func (ec *executionContext) _Mutation_createControlWithSubcontrols(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateControlWithSubcontrols(rctx, fc.Args["input"].(CreateControlWithSubcontrolsInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ControlCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createControlWithSubcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "control": - return ec.fieldContext_ControlCreatePayload_control(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createControlWithSubcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createProgramMembership(ctx, field) +func (ec *executionContext) _Hush_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -130832,53 +49132,35 @@ func (ec *executionContext) _Mutation_createProgramMembership(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateProgramMembership(rctx, fc.Args["input"].(generated.CreateProgramMembershipInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ProgramMembershipCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createProgramMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "programMembership": - return ec.fieldContext_ProgramMembershipCreatePayload_programMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkProgramMembership(ctx, field) +func (ec *executionContext) _Hush_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -130891,53 +49173,35 @@ func (ec *executionContext) _Mutation_createBulkProgramMembership(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkProgramMembership(rctx, fc.Args["input"].([]*generated.CreateProgramMembershipInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ProgramMembershipBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNProgramMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkProgramMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "programMemberships": - return ec.fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVProgramMembership(ctx, field) +func (ec *executionContext) _Hush_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -130950,53 +49214,35 @@ func (ec *executionContext) _Mutation_createBulkCSVProgramMembership(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVProgramMembership(rctx, fc.Args["input"].(graphql.Upload)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*ProgramMembershipBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVProgramMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "programMemberships": - return ec.fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateProgramMembership(ctx, field) +func (ec *executionContext) _Hush_name(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_name(ctx, field) if err != nil { return graphql.Null } @@ -131009,7 +49255,7 @@ func (ec *executionContext) _Mutation_updateProgramMembership(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateProgramMembership(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateProgramMembershipInput)) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -131021,41 +49267,26 @@ func (ec *executionContext) _Mutation_updateProgramMembership(ctx context.Contex } return graphql.Null } - res := resTmp.(*ProgramMembershipUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipUpdatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateProgramMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "programMembership": - return ec.fieldContext_ProgramMembershipUpdatePayload_programMembership(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateProgramMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteProgramMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteProgramMembership(ctx, field) +func (ec *executionContext) _Hush_description(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_description(ctx, field) if err != nil { return graphql.Null } @@ -131068,53 +49299,35 @@ func (ec *executionContext) _Mutation_deleteProgramMembership(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteProgramMembership(rctx, fc.Args["id"].(string)) + 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.(*ProgramMembershipDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteProgramMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_ProgramMembershipDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteProgramMembership_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) +func (ec *executionContext) _Hush_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_kind(ctx, field) if err != nil { return graphql.Null } @@ -131127,53 +49340,35 @@ func (ec *executionContext) _Mutation_createRisk(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateRisk(rctx, fc.Args["input"].(generated.CreateRiskInput)) + 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.(*RiskCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNRiskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "risk": - return ec.fieldContext_RiskCreatePayload_risk(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkRisk(ctx, field) +func (ec *executionContext) _Hush_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_secretName(ctx, field) if err != nil { return graphql.Null } @@ -131186,53 +49381,35 @@ func (ec *executionContext) _Mutation_createBulkRisk(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkRisk(rctx, fc.Args["input"].([]*generated.CreateRiskInput)) + return obj.SecretName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*RiskBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "risks": - return ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkRisk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVRisk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVRisk(ctx, field) +func (ec *executionContext) _Hush_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_integrations(ctx, field) if err != nil { return graphql.Null } @@ -131245,53 +49422,67 @@ func (ec *executionContext) _Mutation_createBulkCSVRisk(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVRisk(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Integrations(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*RiskBulkCreatePayload) + res := resTmp.([]*generated.Integration) fc.Result = res - return ec.marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "risks": - return ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RiskBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Integration", 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_createBulkCSVRisk_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) +func (ec *executionContext) _Hush_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_organization(ctx, field) if err != nil { return graphql.Null } @@ -131304,53 +49495,143 @@ func (ec *executionContext) _Mutation_updateRisk(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateRisk(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateRiskInput)) + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*RiskUpdatePayload) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNRiskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskUpdatePayload(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "risk": - return ec.fieldContext_RiskUpdatePayload_risk(ctx, field) + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RiskUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", 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) +func (ec *executionContext) _Hush_events(ctx context.Context, field graphql.CollectedField, obj *generated.Hush) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Hush_events(ctx, field) if err != nil { return graphql.Null } @@ -131363,53 +49644,79 @@ func (ec *executionContext) _Mutation_deleteRisk(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteRisk(rctx, fc.Args["id"].(string)) + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*RiskDeletePayload) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNRiskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskDeletePayload(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteRisk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Hush_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Hush", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_RiskDeletePayload_deletedID(ctx, field) + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RiskDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", 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_createStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createStandard(ctx, field) +func (ec *executionContext) _HushConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -131422,53 +49729,41 @@ func (ec *executionContext) _Mutation_createStandard(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateStandard(rctx, fc.Args["input"].(generated.CreateStandardInput)) + 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.(*StandardCreatePayload) + res := resTmp.([]*generated.HushEdge) fc.Result = res - return ec.marshalNStandardCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardCreatePayload(ctx, field.Selections, res) + return ec.marshalOHushEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "standard": - return ec.fieldContext_StandardCreatePayload_standard(ctx, field) + case "node": + return ec.fieldContext_HushEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_HushEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type StandardCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HushEdge", 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_createStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkStandard(ctx, field) +func (ec *executionContext) _HushConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -131481,7 +49776,7 @@ func (ec *executionContext) _Mutation_createBulkStandard(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkStandard(rctx, fc.Args["input"].([]*generated.CreateStandardInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -131493,41 +49788,36 @@ func (ec *executionContext) _Mutation_createBulkStandard(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*StandardBulkCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "standards": - return ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) + 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 StandardBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_createBulkStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVStandard(ctx, field) +func (ec *executionContext) _HushConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -131540,7 +49830,7 @@ func (ec *executionContext) _Mutation_createBulkCSVStandard(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVStandard(rctx, fc.Args["input"].(graphql.Upload)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -131552,41 +49842,26 @@ func (ec *executionContext) _Mutation_createBulkCSVStandard(ctx context.Context, } return graphql.Null } - res := resTmp.(*StandardBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "standards": - return ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StandardBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateStandard(ctx, field) +func (ec *executionContext) _HushEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -131599,53 +49874,65 @@ func (ec *executionContext) _Mutation_updateStandard(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateStandard(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateStandardInput)) + 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.(*StandardUpdatePayload) + res := resTmp.(*generated.Hush) fc.Result = res - return ec.marshalNStandardUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardUpdatePayload(ctx, field.Selections, res) + return ec.marshalOHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "standard": - return ec.fieldContext_StandardUpdatePayload_standard(ctx, field) + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type StandardUpdatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Hush", 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_updateStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteStandard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteStandard(ctx, field) +func (ec *executionContext) _HushEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -131658,7 +49945,7 @@ func (ec *executionContext) _Mutation_deleteStandard(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteStandard(rctx, fc.Args["id"].(string)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -131670,41 +49957,26 @@ func (ec *executionContext) _Mutation_deleteStandard(ctx context.Context, field } return graphql.Null } - res := resTmp.(*StandardDeletePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNStandardDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardDeletePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteStandard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_StandardDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StandardDeletePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteStandard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createSubcontrol(ctx, field) +func (ec *executionContext) _HushHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -131717,7 +49989,7 @@ func (ec *executionContext) _Mutation_createSubcontrol(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateSubcontrol(rctx, fc.Args["input"].(generated.CreateSubcontrolInput)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -131729,41 +50001,26 @@ func (ec *executionContext) _Mutation_createSubcontrol(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*SubcontrolCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubcontrolCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolCreatePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subcontrol": - return ec.fieldContext_SubcontrolCreatePayload_subcontrol(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkSubcontrol(ctx, field) +func (ec *executionContext) _HushHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -131776,7 +50033,7 @@ func (ec *executionContext) _Mutation_createBulkSubcontrol(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkSubcontrol(rctx, fc.Args["input"].([]*generated.CreateSubcontrolInput)) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -131788,41 +50045,26 @@ func (ec *executionContext) _Mutation_createBulkSubcontrol(ctx context.Context, } return graphql.Null } - res := resTmp.(*SubcontrolBulkCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subcontrols": - return ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolBulkCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVSubcontrol(ctx, field) +func (ec *executionContext) _HushHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -131835,53 +50077,35 @@ func (ec *executionContext) _Mutation_createBulkCSVSubcontrol(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVSubcontrol(rctx, fc.Args["input"].(graphql.Upload)) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubcontrolBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subcontrols": - return ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateSubcontrol(ctx, field) +func (ec *executionContext) _HushHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -131894,7 +50118,7 @@ func (ec *executionContext) _Mutation_updateSubcontrol(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateSubcontrol(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateSubcontrolInput)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -131906,41 +50130,26 @@ func (ec *executionContext) _Mutation_updateSubcontrol(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*SubcontrolUpdatePayload) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNSubcontrolUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolUpdatePayload(ctx, field.Selections, res) + return ec.marshalNHushHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subcontrol": - return ec.fieldContext_SubcontrolUpdatePayload_subcontrol(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolUpdatePayload", field.Name) + return nil, errors.New("field of type HushHistoryOpType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteSubcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteSubcontrol(ctx, field) +func (ec *executionContext) _HushHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -131953,53 +50162,35 @@ func (ec *executionContext) _Mutation_deleteSubcontrol(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteSubcontrol(rctx, fc.Args["id"].(string)) + 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.(*SubcontrolDeletePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNSubcontrolDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolDeletePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteSubcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_SubcontrolDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolDeletePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteSubcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createSubscriber(ctx, field) +func (ec *executionContext) _HushHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -132012,53 +50203,35 @@ func (ec *executionContext) _Mutation_createSubscriber(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateSubscriber(rctx, fc.Args["input"].(generated.CreateSubscriberInput)) + 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.(*SubscriberCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscriber": - return ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkSubscriber(ctx, field) +func (ec *executionContext) _HushHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -132071,53 +50244,35 @@ func (ec *executionContext) _Mutation_createBulkSubscriber(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkSubscriber(rctx, fc.Args["input"].([]*generated.CreateSubscriberInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscribers": - return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVSubscriber(ctx, field) +func (ec *executionContext) _HushHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -132130,53 +50285,35 @@ func (ec *executionContext) _Mutation_createBulkCSVSubscriber(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVSubscriber(rctx, fc.Args["input"].(graphql.Upload)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscribers": - return ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateSubscriber(ctx, field) +func (ec *executionContext) _HushHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -132189,53 +50326,35 @@ func (ec *executionContext) _Mutation_updateSubscriber(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateSubscriber(rctx, fc.Args["email"].(string), fc.Args["input"].(generated.UpdateSubscriberInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "subscriber": - return ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateSubscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteSubscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteSubscriber(ctx, field) +func (ec *executionContext) _HushHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -132248,53 +50367,35 @@ func (ec *executionContext) _Mutation_deleteSubscriber(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteSubscriber(rctx, fc.Args["email"].(string), fc.Args["ownerID"].(*string)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*SubscriberDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteSubscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "email": - return ec.fieldContext_SubscriberDeletePayload_email(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteSubscriber_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) +func (ec *executionContext) _HushHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -132307,7 +50408,7 @@ func (ec *executionContext) _Mutation_createTask(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateTask(rctx, fc.Args["input"].(generated.CreateTaskInput)) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -132319,41 +50420,26 @@ func (ec *executionContext) _Mutation_createTask(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*TaskCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNTaskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskCreatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "task": - return ec.fieldContext_TaskCreatePayload_task(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkTask(ctx, field) +func (ec *executionContext) _HushHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -132366,53 +50452,35 @@ func (ec *executionContext) _Mutation_createBulkTask(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkTask(rctx, fc.Args["input"].([]*generated.CreateTaskInput)) + 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.(*TaskBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNTaskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "tasks": - return ec.fieldContext_TaskBulkCreatePayload_tasks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkTask_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVTask(ctx, field) +func (ec *executionContext) _HushHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_kind(ctx, field) if err != nil { return graphql.Null } @@ -132425,53 +50493,35 @@ func (ec *executionContext) _Mutation_createBulkCSVTask(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVTask(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*TaskBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNTaskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "tasks": - return ec.fieldContext_TaskBulkCreatePayload_tasks(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVTask_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) +func (ec *executionContext) _HushHistory_secretName(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistory_secretName(ctx, field) if err != nil { return graphql.Null } @@ -132484,53 +50534,35 @@ func (ec *executionContext) _Mutation_updateTask(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateTask(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateTaskInput)) + return obj.SecretName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*TaskUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNTaskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistory_secretName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistory", 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_TaskUpdatePayload_task(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskUpdatePayload", 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 + 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) _Mutation_deleteTask(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteTask(ctx, field) +func (ec *executionContext) _HushHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -132543,53 +50575,41 @@ func (ec *executionContext) _Mutation_deleteTask(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteTask(rctx, fc.Args["id"].(string)) + 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.(*TaskDeletePayload) + res := resTmp.([]*generated.HushHistoryEdge) fc.Result = res - return ec.marshalNTaskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskDeletePayload(ctx, field.Selections, res) + return ec.marshalOHushHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteTask(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "deletedID": - return ec.fieldContext_TaskDeletePayload_deletedID(ctx, field) + case "node": + return ec.fieldContext_HushHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_HushHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskDeletePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HushHistoryEdge", 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_createTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createTemplate(ctx, field) +func (ec *executionContext) _HushHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -132602,7 +50622,7 @@ func (ec *executionContext) _Mutation_createTemplate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateTemplate(rctx, fc.Args["input"].(generated.CreateTemplateInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -132614,41 +50634,36 @@ func (ec *executionContext) _Mutation_createTemplate(ctx context.Context, field } return graphql.Null } - res := resTmp.(*TemplateCreatePayload) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "template": - return ec.fieldContext_TemplateCreatePayload_template(ctx, field) + 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 TemplateCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_createTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkTemplate(ctx, field) +func (ec *executionContext) _HushHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -132661,7 +50676,7 @@ func (ec *executionContext) _Mutation_createBulkTemplate(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkTemplate(rctx, fc.Args["input"].([]*generated.CreateTemplateInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -132673,41 +50688,26 @@ func (ec *executionContext) _Mutation_createBulkTemplate(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*TemplateBulkCreatePayload) + res := resTmp.(int) fc.Result = res - return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "templates": - return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVTemplate(ctx, field) +func (ec *executionContext) _HushHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -132720,53 +50720,65 @@ func (ec *executionContext) _Mutation_createBulkCSVTemplate(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVTemplate(rctx, fc.Args["input"].(graphql.Upload)) + 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.(*TemplateBulkCreatePayload) + res := resTmp.(*generated.HushHistory) fc.Result = res - return ec.marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOHushHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "templates": - return ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) + case "id": + return ec.fieldContext_HushHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_HushHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_HushHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_HushHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_HushHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_HushHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_HushHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_HushHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_HushHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_HushHistory_deletedBy(ctx, field) + case "name": + return ec.fieldContext_HushHistory_name(ctx, field) + case "description": + return ec.fieldContext_HushHistory_description(ctx, field) + case "kind": + return ec.fieldContext_HushHistory_kind(ctx, field) + case "secretName": + return ec.fieldContext_HushHistory_secretName(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TemplateBulkCreatePayload", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HushHistory", 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_createBulkCSVTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateTemplate(ctx, field) +func (ec *executionContext) _HushHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.HushHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -132779,7 +50791,7 @@ func (ec *executionContext) _Mutation_updateTemplate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateTemplate(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateTemplateInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -132791,41 +50803,26 @@ func (ec *executionContext) _Mutation_updateTemplate(ctx context.Context, field } return graphql.Null } - res := resTmp.(*TemplateUpdatePayload) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_HushHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "HushHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "template": - return ec.fieldContext_TemplateUpdatePayload_template(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateUpdatePayload", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteTemplate(ctx, field) +func (ec *executionContext) _Integration_id(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_id(ctx, field) if err != nil { return graphql.Null } @@ -132838,7 +50835,7 @@ func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteTemplate(rctx, fc.Args["id"].(string)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -132850,41 +50847,26 @@ func (ec *executionContext) _Mutation_deleteTemplate(ctx context.Context, field } return graphql.Null } - res := resTmp.(*TemplateDeletePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteTemplate(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TemplateDeletePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteTemplate_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createTFASetting(ctx, field) +func (ec *executionContext) _Integration_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -132897,53 +50879,35 @@ func (ec *executionContext) _Mutation_createTFASetting(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateTFASetting(rctx, fc.Args["input"].(generated.CreateTFASettingInput)) + 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.(*TFASettingCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createTFASetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "tfaSetting": - return ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASettingCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateTFASetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateTFASetting(ctx, field) +func (ec *executionContext) _Integration_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -132956,53 +50920,35 @@ func (ec *executionContext) _Mutation_updateTFASetting(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateTFASetting(rctx, fc.Args["input"].(generated.UpdateTFASettingInput)) + 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.(*TFASettingUpdatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateTFASetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "tfaSetting": - return ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASettingUpdatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateTFASetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createUser(ctx, field) +func (ec *executionContext) _Integration_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -133015,53 +50961,35 @@ func (ec *executionContext) _Mutation_createUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateUser(rctx, fc.Args["input"].(generated.CreateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "user": - return ec.fieldContext_UserCreatePayload_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUser(ctx, field) +func (ec *executionContext) _Integration_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -133074,53 +51002,35 @@ func (ec *executionContext) _Mutation_updateUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUser(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserInput), fc.Args["avatarFile"].(*graphql.Upload)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "user": - return ec.fieldContext_UserUpdatePayload_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_deleteUser(ctx, field) +func (ec *executionContext) _Integration_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_tags(ctx, field) if err != nil { return graphql.Null } @@ -133133,53 +51043,35 @@ func (ec *executionContext) _Mutation_deleteUser(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().DeleteUser(rctx, fc.Args["id"].(string)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserDeletePayload) + res := resTmp.([]string) fc.Result = res - return ec.marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_deleteUser(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "deletedID": - return ec.fieldContext_UserDeletePayload_deletedID(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserDeletePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_deleteUser_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createUserSetting(ctx, field) +func (ec *executionContext) _Integration_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -133192,53 +51084,35 @@ func (ec *executionContext) _Mutation_createUserSetting(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateUserSetting(rctx, fc.Args["input"].(generated.CreateUserSettingInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserSettingCreatePayload) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userSetting": - return ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSettingCreatePayload", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkUserSetting(ctx, field) +func (ec *executionContext) _Integration_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -133251,53 +51125,35 @@ func (ec *executionContext) _Mutation_createBulkUserSetting(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkUserSetting(rctx, fc.Args["input"].([]*generated.CreateUserSettingInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserSettingBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userSettings": - return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_createBulkCSVUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_createBulkCSVUserSetting(ctx, field) +func (ec *executionContext) _Integration_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -133310,53 +51166,35 @@ func (ec *executionContext) _Mutation_createBulkCSVUserSetting(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().CreateBulkCSVUserSetting(rctx, fc.Args["input"].(graphql.Upload)) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*UserSettingBulkCreatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_createBulkCSVUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userSettings": - return ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSettingBulkCreatePayload", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_createBulkCSVUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Mutation_updateUserSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Mutation_updateUserSetting(ctx, field) +func (ec *executionContext) _Integration_name(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_name(ctx, field) if err != nil { return graphql.Null } @@ -133369,7 +51207,7 @@ func (ec *executionContext) _Mutation_updateUserSetting(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Mutation().UpdateUserSetting(rctx, fc.Args["id"].(string), fc.Args["input"].(generated.UpdateUserSettingInput)) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -133381,41 +51219,26 @@ func (ec *executionContext) _Mutation_updateUserSetting(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*UserSettingUpdatePayload) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Mutation_updateUserSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Mutation", + Object: "Integration", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "userSetting": - return ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSettingUpdatePayload", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Mutation_updateUserSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_id(ctx, field) +func (ec *executionContext) _Integration_description(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_description(ctx, field) if err != nil { return graphql.Null } @@ -133428,38 +51251,35 @@ func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Integration", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_createdAt(ctx, field) +func (ec *executionContext) _Integration_kind(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_kind(ctx, field) if err != nil { return graphql.Null } @@ -133472,7 +51292,7 @@ func (ec *executionContext) _Narrative_createdAt(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Kind, nil }) if err != nil { ec.Error(ctx, err) @@ -133481,26 +51301,26 @@ func (ec *executionContext) _Narrative_createdAt(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Integration", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_updatedAt(ctx, field) +func (ec *executionContext) _Integration_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_owner(ctx, field) if err != nil { return graphql.Null } @@ -133513,7 +51333,7 @@ func (ec *executionContext) _Narrative_updatedAt(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -133522,26 +51342,134 @@ func (ec *executionContext) _Narrative_updatedAt(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Integration", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Narrative_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_createdBy(ctx, field) +func (ec *executionContext) _Integration_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_secrets(ctx, field) if err != nil { return graphql.Null } @@ -133554,7 +51482,7 @@ func (ec *executionContext) _Narrative_createdBy(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Secrets(ctx) }) if err != nil { ec.Error(ctx, err) @@ -133563,26 +51491,56 @@ func (ec *executionContext) _Narrative_createdBy(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Hush) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Integration", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) }, } return fc, nil } -func (ec *executionContext) _Narrative_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_updatedBy(ctx, field) +func (ec *executionContext) _Integration_events(ctx context.Context, field graphql.CollectedField, obj *generated.Integration) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Integration_events(ctx, field) if err != nil { return graphql.Null } @@ -133595,7 +51553,7 @@ func (ec *executionContext) _Narrative_updatedBy(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) @@ -133604,26 +51562,70 @@ func (ec *executionContext) _Narrative_updatedBy(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Integration_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "Integration", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _Narrative_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_deletedAt(ctx, field) +func (ec *executionContext) _IntegrationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -133636,7 +51638,7 @@ func (ec *executionContext) _Narrative_deletedAt(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -133645,26 +51647,32 @@ func (ec *executionContext) _Narrative_deletedAt(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.IntegrationEdge) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOIntegrationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_IntegrationEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_IntegrationEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Narrative_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_deletedBy(ctx, field) +func (ec *executionContext) _IntegrationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -133677,35 +51685,48 @@ func (ec *executionContext) _Narrative_deletedBy(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationConnection", 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") + 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) _Narrative_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_tags(ctx, field) +func (ec *executionContext) _IntegrationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -133718,35 +51739,38 @@ func (ec *executionContext) _Narrative_tags(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_ownerID(ctx, field) +func (ec *executionContext) _IntegrationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -133759,38 +51783,67 @@ func (ec *executionContext) _Narrative_ownerID(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + 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.(string) + res := resTmp.(*generated.Integration) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) }, } return fc, nil } -func (ec *executionContext) _Narrative_name(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_name(ctx, field) +func (ec *executionContext) _IntegrationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -133803,7 +51856,7 @@ func (ec *executionContext) _Narrative_name(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -133815,26 +51868,26 @@ func (ec *executionContext) _Narrative_name(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_description(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_description(ctx, field) +func (ec *executionContext) _IntegrationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -133847,35 +51900,38 @@ func (ec *executionContext) _Narrative_description(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_satisfies(ctx, field) +func (ec *executionContext) _IntegrationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -133888,35 +51944,38 @@ func (ec *executionContext) _Narrative_satisfies(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Satisfies, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_details(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_details(ctx, field) +func (ec *executionContext) _IntegrationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -133929,7 +51988,7 @@ func (ec *executionContext) _Narrative_details(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -133938,26 +51997,26 @@ func (ec *executionContext) _Narrative_details(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(string) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_owner(ctx, field) +func (ec *executionContext) _IntegrationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -133970,7 +52029,7 @@ func (ec *executionContext) _Narrative_owner(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -133981,135 +52040,27 @@ func (ec *executionContext) _Narrative_owner(ctx context.Context, field graphql. ec.Errorf(ctx, "must not be null") } return graphql.Null - } - res := resTmp.(*generated.Organization) - fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Narrative_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Narrative", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + } + res := resTmp.(history.OpType) + fc.Result = res + return ec.marshalNIntegrationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type IntegrationHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_blockedGroups(ctx, field) +func (ec *executionContext) _IntegrationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -134122,7 +52073,7 @@ func (ec *executionContext) _Narrative_blockedGroups(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BlockedGroups(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -134131,128 +52082,26 @@ func (ec *executionContext) _Narrative_blockedGroups(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_editors(ctx, field) +func (ec *executionContext) _IntegrationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -134265,7 +52114,7 @@ func (ec *executionContext) _Narrative_editors(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Editors(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -134274,128 +52123,26 @@ func (ec *executionContext) _Narrative_editors(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_viewers(ctx, field) +func (ec *executionContext) _IntegrationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -134408,7 +52155,7 @@ func (ec *executionContext) _Narrative_viewers(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Viewers(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -134417,128 +52164,26 @@ func (ec *executionContext) _Narrative_viewers(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_internalPolicy(ctx, field) +func (ec *executionContext) _IntegrationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -134551,7 +52196,7 @@ func (ec *executionContext) _Narrative_internalPolicy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicy(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -134560,80 +52205,26 @@ func (ec *executionContext) _Narrative_internalPolicy(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_control(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_control(ctx, field) +func (ec *executionContext) _IntegrationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -134646,7 +52237,7 @@ func (ec *executionContext) _Narrative_control(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Control(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -134655,96 +52246,26 @@ func (ec *executionContext) _Narrative_control(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Control) + res := resTmp.([]string) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_procedure(ctx, field) +func (ec *executionContext) _IntegrationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -134757,7 +52278,7 @@ func (ec *executionContext) _Narrative_procedure(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedure(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -134766,82 +52287,26 @@ func (ec *executionContext) _Narrative_procedure(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_controlObjective(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_controlObjective(ctx, field) +func (ec *executionContext) _IntegrationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -134854,7 +52319,7 @@ func (ec *executionContext) _Narrative_controlObjective(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjective(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -134863,94 +52328,26 @@ func (ec *executionContext) _Narrative_controlObjective(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.(string) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Narrative_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Narrative_programs(ctx, field) +func (ec *executionContext) _IntegrationHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -134963,7 +52360,7 @@ func (ec *executionContext) _Narrative_programs(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -134972,98 +52369,26 @@ func (ec *executionContext) _Narrative_programs(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Narrative_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Narrative", + Object: "IntegrationHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeBulkCreatePayload_narratives(ctx context.Context, field graphql.CollectedField, obj *NarrativeBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) +func (ec *executionContext) _IntegrationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -135076,81 +52401,38 @@ func (ec *executionContext) _NarrativeBulkCreatePayload_narratives(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Narratives, nil + 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.([]*generated.Narrative) + res := resTmp.(string) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeBulkCreatePayload_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeBulkCreatePayload", + Object: "IntegrationHistory", 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_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeConnection_edges(ctx, field) +func (ec *executionContext) _IntegrationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -135163,7 +52445,7 @@ func (ec *executionContext) _NarrativeConnection_edges(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -135172,32 +52454,26 @@ func (ec *executionContext) _NarrativeConnection_edges(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.NarrativeEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalONarrativeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeConnection", + Object: "IntegrationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_NarrativeEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_NarrativeEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NarrativeEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeConnection_pageInfo(ctx, field) +func (ec *executionContext) _IntegrationHistory_kind(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistory_kind(ctx, field) if err != nil { return graphql.Null } @@ -135210,48 +52486,35 @@ func (ec *executionContext) _NarrativeConnection_pageInfo(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + 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.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistory_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeConnection", + Object: "IntegrationHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeConnection_totalCount(ctx, field) +func (ec *executionContext) _IntegrationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -135264,38 +52527,41 @@ func (ec *executionContext) _NarrativeConnection_totalCount(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.([]*generated.IntegrationHistoryEdge) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOIntegrationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeConnection", + Object: "IntegrationHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeCreatePayload_narrative(ctx context.Context, field graphql.CollectedField, obj *NarrativeCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeCreatePayload_narrative(ctx, field) +func (ec *executionContext) _IntegrationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -135308,7 +52574,7 @@ func (ec *executionContext) _NarrativeCreatePayload_narrative(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Narrative, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -135320,72 +52586,36 @@ func (ec *executionContext) _NarrativeCreatePayload_narrative(ctx context.Contex } return graphql.Null } - res := resTmp.(*generated.Narrative) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeCreatePayload_narrative(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeCreatePayload", + Object: "IntegrationHistoryConnection", 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_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) + 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 Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *NarrativeDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _IntegrationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -135398,7 +52628,7 @@ func (ec *executionContext) _NarrativeDeletePayload_deletedID(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -135410,26 +52640,26 @@ func (ec *executionContext) _NarrativeDeletePayload_deletedID(ctx context.Contex } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeDeletePayload", + Object: "IntegrationHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeEdge_node(ctx, field) +func (ec *executionContext) _IntegrationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -135451,72 +52681,58 @@ func (ec *executionContext) _NarrativeEdge_node(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Narrative) + res := resTmp.(*generated.IntegrationHistory) fc.Result = res - return ec.marshalONarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) + return ec.marshalOIntegrationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeEdge", + Object: "IntegrationHistoryEdge", 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_Narrative_id(ctx, field) + return ec.fieldContext_IntegrationHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_IntegrationHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_IntegrationHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_IntegrationHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) + return ec.fieldContext_IntegrationHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) + return ec.fieldContext_IntegrationHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) + return ec.fieldContext_IntegrationHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) + return ec.fieldContext_IntegrationHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_IntegrationHistory_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) + return ec.fieldContext_IntegrationHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) + return ec.fieldContext_IntegrationHistory_deletedBy(ctx, field) case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) + return ec.fieldContext_IntegrationHistory_ownerID(ctx, field) case "name": - return ec.fieldContext_Narrative_name(ctx, field) + return ec.fieldContext_IntegrationHistory_name(ctx, field) case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) + return ec.fieldContext_IntegrationHistory_description(ctx, field) + case "kind": + return ec.fieldContext_IntegrationHistory_kind(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type IntegrationHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeEdge_cursor(ctx, field) +func (ec *executionContext) _IntegrationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.IntegrationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -135546,9 +52762,9 @@ func (ec *executionContext) _NarrativeEdge_cursor(ctx context.Context, field gra return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_IntegrationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeEdge", + Object: "IntegrationHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -135559,8 +52775,8 @@ func (ec *executionContext) fieldContext_NarrativeEdge_cursor(_ context.Context, return fc, nil } -func (ec *executionContext) _NarrativeHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_id(ctx, field) +func (ec *executionContext) _InternalPolicy_id(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_id(ctx, field) if err != nil { return graphql.Null } @@ -135590,9 +52806,9 @@ func (ec *executionContext) _NarrativeHistory_id(ctx context.Context, field grap return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -135603,8 +52819,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_id(_ context.Context, return fc, nil } -func (ec *executionContext) _NarrativeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_historyTime(ctx, field) +func (ec *executionContext) _InternalPolicy_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -135617,26 +52833,64 @@ func (ec *executionContext) _NarrativeHistory_historyTime(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicy_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicy", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicy_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_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) (interface{}, 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 { return graphql.Null } res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -135647,8 +52901,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_historyTime(_ context. return fc, nil } -func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_ref(ctx, field) +func (ec *executionContext) _InternalPolicy_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -135661,7 +52915,7 @@ func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -135675,9 +52929,9 @@ func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -135688,8 +52942,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_ref(_ context.Context, return fc, nil } -func (ec *executionContext) _NarrativeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_operation(ctx, field) +func (ec *executionContext) _InternalPolicy_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -135702,38 +52956,35 @@ func (ec *executionContext) _NarrativeHistory_operation(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type NarrativeHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_createdAt(ctx, field) +func (ec *executionContext) _InternalPolicy_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -135746,7 +52997,7 @@ func (ec *executionContext) _NarrativeHistory_createdAt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -135760,9 +53011,9 @@ func (ec *executionContext) _NarrativeHistory_createdAt(ctx context.Context, fie return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -135773,8 +53024,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_createdAt(_ context.Co return fc, nil } -func (ec *executionContext) _NarrativeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) +func (ec *executionContext) _InternalPolicy_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -135787,7 +53038,7 @@ func (ec *executionContext) _NarrativeHistory_updatedAt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -135796,26 +53047,26 @@ func (ec *executionContext) _NarrativeHistory_updatedAt(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_createdBy(ctx, field) +func (ec *executionContext) _InternalPolicy_tags(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_tags(ctx, field) if err != nil { return graphql.Null } @@ -135828,7 +53079,7 @@ func (ec *executionContext) _NarrativeHistory_createdBy(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -135837,14 +53088,14 @@ func (ec *executionContext) _NarrativeHistory_createdBy(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -135855,8 +53106,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_createdBy(_ context.Co return fc, nil } -func (ec *executionContext) _NarrativeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) +func (ec *executionContext) _InternalPolicy_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -135869,7 +53120,7 @@ func (ec *executionContext) _NarrativeHistory_updatedBy(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -135880,24 +53131,24 @@ func (ec *executionContext) _NarrativeHistory_updatedBy(ctx context.Context, fie } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_deletedAt(ctx, field) +func (ec *executionContext) _InternalPolicy_name(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_name(ctx, field) if err != nil { return graphql.Null } @@ -135910,35 +53161,38 @@ func (ec *executionContext) _NarrativeHistory_deletedAt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + 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.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NarrativeHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_deletedBy(ctx, field) +func (ec *executionContext) _InternalPolicy_description(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_description(ctx, field) if err != nil { return graphql.Null } @@ -135951,7 +53205,7 @@ func (ec *executionContext) _NarrativeHistory_deletedBy(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -135965,9 +53219,9 @@ func (ec *executionContext) _NarrativeHistory_deletedBy(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -135978,8 +53232,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_deletedBy(_ context.Co return fc, nil } -func (ec *executionContext) _NarrativeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_tags(ctx, field) +func (ec *executionContext) _InternalPolicy_status(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_status(ctx, field) if err != nil { return graphql.Null } @@ -135992,7 +53246,7 @@ func (ec *executionContext) _NarrativeHistory_tags(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -136001,14 +53255,14 @@ func (ec *executionContext) _NarrativeHistory_tags(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -136019,8 +53273,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_tags(_ context.Context return fc, nil } -func (ec *executionContext) _NarrativeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_ownerID(ctx, field) +func (ec *executionContext) _InternalPolicy_policyType(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_policyType(ctx, field) if err != nil { return graphql.Null } @@ -136033,26 +53287,23 @@ func (ec *executionContext) _NarrativeHistory_ownerID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.PolicyType, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_policyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -136063,8 +53314,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_ownerID(_ context.Cont return fc, nil } -func (ec *executionContext) _NarrativeHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_name(ctx, field) +func (ec *executionContext) _InternalPolicy_version(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_version(ctx, field) if err != nil { return graphql.Null } @@ -136077,26 +53328,23 @@ func (ec *executionContext) _NarrativeHistory_name(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + 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.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -136107,8 +53355,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_name(_ context.Context return fc, nil } -func (ec *executionContext) _NarrativeHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_description(ctx, field) +func (ec *executionContext) _InternalPolicy_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -136121,7 +53369,7 @@ func (ec *executionContext) _NarrativeHistory_description(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -136135,9 +53383,9 @@ func (ec *executionContext) _NarrativeHistory_description(ctx context.Context, f return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -136148,8 +53396,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_description(_ context. return fc, nil } -func (ec *executionContext) _NarrativeHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_satisfies(ctx, field) +func (ec *executionContext) _InternalPolicy_background(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_background(ctx, field) if err != nil { return graphql.Null } @@ -136162,7 +53410,7 @@ func (ec *executionContext) _NarrativeHistory_satisfies(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Satisfies, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -136176,9 +53424,9 @@ func (ec *executionContext) _NarrativeHistory_satisfies(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -136189,8 +53437,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_satisfies(_ context.Co return fc, nil } -func (ec *executionContext) _NarrativeHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistory_details(ctx, field) +func (ec *executionContext) _InternalPolicy_details(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_details(ctx, field) if err != nil { return graphql.Null } @@ -136217,9 +53465,9 @@ func (ec *executionContext) _NarrativeHistory_details(ctx context.Context, field return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistory", + Object: "InternalPolicy", Field: field, IsMethod: false, IsResolver: false, @@ -136230,8 +53478,8 @@ func (ec *executionContext) fieldContext_NarrativeHistory_details(_ context.Cont return fc, nil } -func (ec *executionContext) _NarrativeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) +func (ec *executionContext) _InternalPolicy_owner(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_owner(ctx, field) if err != nil { return graphql.Null } @@ -136244,7 +53492,7 @@ func (ec *executionContext) _NarrativeHistoryConnection_edges(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -136253,32 +53501,134 @@ func (ec *executionContext) _NarrativeHistoryConnection_edges(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.NarrativeHistoryEdge) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalONarrativeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryConnection", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NarrativeHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _InternalPolicy_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -136291,48 +53641,137 @@ func (ec *executionContext) _NarrativeHistoryConnection_pageInfo(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.BlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryConnection", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _InternalPolicy_editors(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_editors(ctx, field) if err != nil { return graphql.Null } @@ -136345,38 +53784,137 @@ func (ec *executionContext) _NarrativeHistoryConnection_totalCount(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Editors(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryConnection", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) +func (ec *executionContext) _InternalPolicy_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) if err != nil { return graphql.Null } @@ -136389,7 +53927,7 @@ func (ec *executionContext) _NarrativeHistoryEdge_node(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.ControlObjectives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -136398,60 +53936,94 @@ func (ec *executionContext) _NarrativeHistoryEdge_node(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.NarrativeHistory) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalONarrativeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistory(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryEdge", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_NarrativeHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_NarrativeHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_NarrativeHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_NarrativeHistory_operation(ctx, field) + return ec.fieldContext_ControlObjective_id(ctx, field) case "createdAt": - return ec.fieldContext_NarrativeHistory_createdAt(ctx, field) + return ec.fieldContext_ControlObjective_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_NarrativeHistory_createdBy(ctx, field) + return ec.fieldContext_ControlObjective_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_NarrativeHistory_deletedAt(ctx, field) + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_NarrativeHistory_deletedBy(ctx, field) + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) case "tags": - return ec.fieldContext_NarrativeHistory_tags(ctx, field) + return ec.fieldContext_ControlObjective_tags(ctx, field) case "ownerID": - return ec.fieldContext_NarrativeHistory_ownerID(ctx, field) + return ec.fieldContext_ControlObjective_ownerID(ctx, field) case "name": - return ec.fieldContext_NarrativeHistory_name(ctx, field) + return ec.fieldContext_ControlObjective_name(ctx, field) case "description": - return ec.fieldContext_NarrativeHistory_description(ctx, field) - case "satisfies": - return ec.fieldContext_NarrativeHistory_satisfies(ctx, field) + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) case "details": - return ec.fieldContext_NarrativeHistory_details(ctx, field) + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NarrativeHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _InternalPolicy_controls(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_controls(ctx, field) if err != nil { return graphql.Null } @@ -136464,38 +54036,105 @@ func (ec *executionContext) _NarrativeHistoryEdge_cursor(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Controls(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeHistoryEdge", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeSearchResult_narratives(ctx context.Context, field graphql.CollectedField, obj *NarrativeSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeSearchResult_narratives(ctx, field) +func (ec *executionContext) _InternalPolicy_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_procedures(ctx, field) if err != nil { return graphql.Null } @@ -136508,7 +54147,7 @@ func (ec *executionContext) _NarrativeSearchResult_narratives(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Narratives, nil + return obj.Procedures(ctx) }) if err != nil { ec.Error(ctx, err) @@ -136517,72 +54156,82 @@ func (ec *executionContext) _NarrativeSearchResult_narratives(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Narrative) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeSearchResult_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeSearchResult", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Narrative_id(ctx, field) + return ec.fieldContext_Procedure_id(ctx, field) case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) + return ec.fieldContext_Procedure_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) + return ec.fieldContext_Procedure_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) + return ec.fieldContext_Procedure_tags(ctx, field) case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) + return ec.fieldContext_Procedure_ownerID(ctx, field) case "name": - return ec.fieldContext_Narrative_name(ctx, field) + return ec.fieldContext_Procedure_name(ctx, field) case "description": - return ec.fieldContext_Narrative_description(ctx, field) + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) + return ec.fieldContext_Procedure_satisfies(ctx, field) case "details": - return ec.fieldContext_Narrative_details(ctx, field) + return ec.fieldContext_Procedure_details(ctx, field) case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) + return ec.fieldContext_Procedure_owner(ctx, field) case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) + return ec.fieldContext_Procedure_blockedGroups(ctx, field) case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) + return ec.fieldContext_Procedure_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _NarrativeUpdatePayload_narrative(ctx context.Context, field graphql.CollectedField, obj *NarrativeUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NarrativeUpdatePayload_narrative(ctx, field) +func (ec *executionContext) _InternalPolicy_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_narratives(ctx, field) if err != nil { return graphql.Null } @@ -136595,28 +54244,25 @@ func (ec *executionContext) _NarrativeUpdatePayload_narrative(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Narrative, nil + return obj.Narratives(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Narrative) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NarrativeUpdatePayload_narrative(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NarrativeUpdatePayload", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { @@ -136671,52 +54317,8 @@ func (ec *executionContext) fieldContext_NarrativeUpdatePayload_narrative(_ cont return fc, nil } -func (ec *executionContext) _Note_id(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Note_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Note", - 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) _Note_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_createdAt(ctx, field) +func (ec *executionContext) _InternalPolicy_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_tasks(ctx, field) if err != nil { return graphql.Null } @@ -136729,7 +54331,7 @@ func (ec *executionContext) _Note_createdAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Tasks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -136738,26 +54340,76 @@ func (ec *executionContext) _Note_createdAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Task_id(ctx, field) + case "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_updatedAt(ctx, field) +func (ec *executionContext) _InternalPolicy_programs(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicy) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicy_programs(ctx, field) if err != nil { return graphql.Null } @@ -136770,7 +54422,7 @@ func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, err) @@ -136779,26 +54431,98 @@ func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicy_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicy", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_createdBy(ctx, field) +func (ec *executionContext) _InternalPolicyConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -136811,7 +54535,7 @@ func (ec *executionContext) _Note_createdBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -136820,26 +54544,32 @@ func (ec *executionContext) _Note_createdBy(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.InternalPolicyEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicyEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_InternalPolicyEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_InternalPolicyEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_updatedBy(ctx, field) +func (ec *executionContext) _InternalPolicyConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -136852,35 +54582,48 @@ func (ec *executionContext) _Note_updatedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyConnection", 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") + 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) _Note_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_deletedAt(ctx, field) +func (ec *executionContext) _InternalPolicyConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -136893,35 +54636,38 @@ func (ec *executionContext) _Note_deletedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_deletedBy(ctx, field) +func (ec *executionContext) _InternalPolicyEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -136934,7 +54680,7 @@ func (ec *executionContext) _Note_deletedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -136943,26 +54689,80 @@ func (ec *executionContext) _Note_deletedBy(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.InternalPolicy) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _Note_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_tags(ctx, field) +func (ec *executionContext) _InternalPolicyEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -136975,35 +54775,38 @@ func (ec *executionContext) _Note_tags(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + 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.([]string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_ownerID(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -137016,23 +54819,26 @@ func (ec *executionContext) _Note_ownerID(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + 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.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, @@ -137043,8 +54849,8 @@ func (ec *executionContext) fieldContext_Note_ownerID(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Note_text(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_text(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -137057,7 +54863,7 @@ func (ec *executionContext) _Note_text(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -137069,26 +54875,26 @@ func (ec *executionContext) _Note_text(ctx context.Context, field graphql.Collec } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_owner(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -137101,7 +54907,7 @@ func (ec *executionContext) _Note_owner(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -137110,134 +54916,26 @@ func (ec *executionContext) _Note_owner(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_entity(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_entity(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -137250,79 +54948,38 @@ func (ec *executionContext) _Note_entity(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entity(ctx) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Entity) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + return ec.marshalNInternalPolicyHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type InternalPolicyHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_subcontrols(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -137335,7 +54992,7 @@ func (ec *executionContext) _Note_subcontrols(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subcontrols(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -137344,90 +55001,26 @@ func (ec *executionContext) _Note_subcontrols(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subcontrol) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Note_program(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Note_program(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -137440,7 +55033,7 @@ func (ec *executionContext) _Note_program(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Program(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -137449,98 +55042,26 @@ func (ec *executionContext) _Note_program(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Note_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Note", + Object: "InternalPolicyHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteConnection_edges(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -137553,7 +55074,7 @@ func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -137562,32 +55083,26 @@ func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.NoteEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalONoteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteConnection", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_NoteEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_NoteEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NoteEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteConnection_pageInfo(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -137600,48 +55115,35 @@ func (ec *executionContext) _NoteConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteConnection", + Object: "InternalPolicyHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteConnection_totalCount(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -137654,38 +55156,35 @@ func (ec *executionContext) _NoteConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteConnection", + Object: "InternalPolicyHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteEdge_node(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -137698,7 +55197,7 @@ func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -137707,56 +55206,26 @@ func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Note) + res := resTmp.(string) fc.Result = res - return ec.marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteEdge", + Object: "InternalPolicyHistory", 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_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) - case "subcontrols": - return ec.fieldContext_Note_subcontrols(ctx, field) - case "program": - return ec.fieldContext_Note_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteEdge_cursor(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -137769,38 +55238,35 @@ func (ec *executionContext) _NoteEdge_cursor(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteEdge", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_id(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -137813,38 +55279,35 @@ func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_historyTime(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -137857,7 +55320,7 @@ func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -137869,26 +55332,26 @@ func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_ref(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -137901,7 +55364,7 @@ func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -137915,9 +55378,9 @@ func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql. return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, @@ -137928,8 +55391,8 @@ func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_operation(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -137942,38 +55405,35 @@ func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + 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.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type NoteHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_createdAt(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_policyType(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_policyType(ctx, field) if err != nil { return graphql.Null } @@ -137986,7 +55446,7 @@ func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.PolicyType, nil }) if err != nil { ec.Error(ctx, err) @@ -137995,26 +55455,26 @@ func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_policyType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_updatedAt(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -138027,7 +55487,7 @@ func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -138036,26 +55496,26 @@ func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_createdBy(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -138068,7 +55528,7 @@ func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -138082,9 +55542,9 @@ func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, @@ -138095,8 +55555,8 @@ func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_updatedBy(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_background(ctx, field) if err != nil { return graphql.Null } @@ -138109,7 +55569,7 @@ func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -138123,9 +55583,9 @@ func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, @@ -138136,8 +55596,8 @@ func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context return fc, nil } -func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_deletedAt(ctx, field) +func (ec *executionContext) _InternalPolicyHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -138150,7 +55610,7 @@ func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -138159,26 +55619,26 @@ func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_deletedBy(ctx, field) +func (ec *executionContext) _InternalPolicyHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -138191,7 +55651,7 @@ func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -138200,26 +55660,32 @@ func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.InternalPolicyHistoryEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicyHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _NoteHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_tags(ctx, field) +func (ec *executionContext) _InternalPolicyHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -138232,35 +55698,48 @@ func (ec *executionContext) _NoteHistory_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + 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.([]string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistoryConnection", 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") + 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) _NoteHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_ownerID(ctx, field) +func (ec *executionContext) _InternalPolicyHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -138273,35 +55752,38 @@ func (ec *executionContext) _NoteHistory_ownerID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistory_text(ctx, field) +func (ec *executionContext) _InternalPolicyHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -138314,38 +55796,77 @@ func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Text, nil + 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.(string) + res := resTmp.(*generated.InternalPolicyHistory) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOInternalPolicyHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistory_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistory", + Object: "InternalPolicyHistoryEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicyHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_InternalPolicyHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_InternalPolicyHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_InternalPolicyHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicyHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicyHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicyHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicyHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicyHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicyHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicyHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicyHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicyHistory_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicyHistory_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicyHistory_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicyHistory_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicyHistory_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicyHistory_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicyHistory_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicyHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryConnection_edges(ctx, field) +func (ec *executionContext) _InternalPolicyHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InternalPolicyHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -138358,41 +55879,38 @@ func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*generated.NoteHistoryEdge) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InternalPolicyHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "InternalPolicyHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_NoteHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NoteHistoryEdge", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Invite_id(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_id(ctx, field) if err != nil { return graphql.Null } @@ -138405,7 +55923,7 @@ func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -138417,36 +55935,26 @@ func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "Invite", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Invite_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -138459,38 +55967,35 @@ func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryConnection", + Object: "Invite", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryEdge_node(ctx, field) +func (ec *executionContext) _Invite_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -138503,7 +56008,7 @@ func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -138512,54 +56017,26 @@ func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.NoteHistory) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistory(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryEdge", + Object: "Invite", 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_NoteHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_NoteHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_NoteHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_NoteHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_NoteHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_NoteHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_NoteHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_NoteHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_NoteHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_NoteHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_NoteHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_NoteHistory_ownerID(ctx, field) - case "text": - return ec.fieldContext_NoteHistory_text(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NoteHistory", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Invite_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -138572,38 +56049,35 @@ func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_NoteHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "NoteHistoryEdge", + Object: "Invite", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_id(ctx, field) +func (ec *executionContext) _Invite_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -138616,38 +56090,35 @@ func (ec *executionContext) _OrgMembership_id(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_createdAt(ctx, field) +func (ec *executionContext) _Invite_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -138660,7 +56131,7 @@ func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -138674,9 +56145,9 @@ func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", Field: field, IsMethod: false, IsResolver: false, @@ -138687,8 +56158,8 @@ func (ec *executionContext) fieldContext_OrgMembership_createdAt(_ context.Conte return fc, nil } -func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_updatedAt(ctx, field) +func (ec *executionContext) _Invite_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -138701,7 +56172,7 @@ func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -138710,26 +56181,26 @@ func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_createdBy(ctx, field) +func (ec *executionContext) _Invite_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -138742,7 +56213,7 @@ func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -138753,24 +56224,24 @@ func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_updatedBy(ctx, field) +func (ec *executionContext) _Invite_expires(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_expires(ctx, field) if err != nil { return graphql.Null } @@ -138783,7 +56254,7 @@ func (ec *executionContext) _OrgMembership_updatedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Expires, nil }) if err != nil { ec.Error(ctx, err) @@ -138792,26 +56263,26 @@ func (ec *executionContext) _OrgMembership_updatedBy(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_expires(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_deletedAt(ctx, field) +func (ec *executionContext) _Invite_recipient(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_recipient(ctx, field) if err != nil { return graphql.Null } @@ -138824,35 +56295,38 @@ func (ec *executionContext) _OrgMembership_deletedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Recipient, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_recipient(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_deletedBy(ctx, field) +func (ec *executionContext) _Invite_status(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_status(ctx, field) if err != nil { return graphql.Null } @@ -138865,35 +56339,38 @@ func (ec *executionContext) _OrgMembership_deletedBy(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + 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.(string) + res := resTmp.(enums.InviteStatus) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", 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 nil, errors.New("field of type InviteInviteStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_role(ctx, field) +func (ec *executionContext) _Invite_role(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_role(ctx, field) if err != nil { return graphql.Null } @@ -138920,24 +56397,24 @@ func (ec *executionContext) _OrgMembership_role(ctx context.Context, field graph } res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrgMembershipRole does not have child fields") + return nil, errors.New("field of type InviteRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_organizationID(ctx, field) +func (ec *executionContext) _Invite_sendAttempts(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_sendAttempts(ctx, field) if err != nil { return graphql.Null } @@ -138950,7 +56427,7 @@ func (ec *executionContext) _OrgMembership_organizationID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.SendAttempts, nil }) if err != nil { ec.Error(ctx, err) @@ -138962,26 +56439,26 @@ func (ec *executionContext) _OrgMembership_organizationID(ctx context.Context, f } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_sendAttempts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_userID(ctx, field) +func (ec *executionContext) _Invite_requestorID(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_requestorID(ctx, field) if err != nil { return graphql.Null } @@ -138994,38 +56471,35 @@ func (ec *executionContext) _OrgMembership_userID(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.RequestorID, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_requestorID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembership_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_organization(ctx, field) +func (ec *executionContext) _Invite_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_owner(ctx, field) if err != nil { return graphql.Null } @@ -139038,26 +56512,23 @@ func (ec *executionContext) _OrgMembership_organization(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", Field: field, IsMethod: true, IsResolver: false, @@ -139176,126 +56647,8 @@ func (ec *executionContext) fieldContext_OrgMembership_organization(_ context.Co return fc, nil } -func (ec *executionContext) _OrgMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.User(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrgMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrgMembership", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrgMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembership_events(ctx, field) +func (ec *executionContext) _Invite_events(ctx context.Context, field graphql.CollectedField, obj *generated.Invite) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Invite_events(ctx, field) if err != nil { return graphql.Null } @@ -139322,9 +56675,9 @@ func (ec *executionContext) _OrgMembership_events(ctx context.Context, field gra return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Invite_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembership", + Object: "Invite", Field: field, IsMethod: true, IsResolver: false, @@ -139379,8 +56732,8 @@ func (ec *executionContext) fieldContext_OrgMembership_events(_ context.Context, return fc, nil } -func (ec *executionContext) _OrgMembershipBulkCreatePayload_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) +func (ec *executionContext) _InviteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -139393,7 +56746,7 @@ func (ec *executionContext) _OrgMembershipBulkCreatePayload_orgMemberships(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgMemberships, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -139402,54 +56755,32 @@ func (ec *executionContext) _OrgMembershipBulkCreatePayload_orgMemberships(ctx c if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgMembership) + res := resTmp.([]*generated.InviteEdge) fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOInviteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InviteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipBulkCreatePayload", + Object: "InviteConnection", 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_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) + case "node": + return ec.fieldContext_InviteEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_InviteEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InviteEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipConnection_edges(ctx, field) +func (ec *executionContext) _InviteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -139462,41 +56793,48 @@ func (ec *executionContext) _OrgMembershipConnection_edges(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*generated.OrgMembershipEdge) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InviteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipConnection", + Object: "InviteConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_OrgMembershipEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) + 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 OrgMembershipEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) +func (ec *executionContext) _InviteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.InviteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -139509,7 +56847,7 @@ func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -139521,36 +56859,101 @@ func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Contex } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(int) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InviteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipConnection", + Object: "InviteConnection", + 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) _InviteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteEdge_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(*generated.Invite) + fc.Result = res + return ec.marshalOInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InviteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteEdge", 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) + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) +func (ec *executionContext) _InviteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.InviteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -139563,7 +56966,7 @@ func (ec *executionContext) _OrgMembershipConnection_totalCount(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -139575,26 +56978,26 @@ func (ec *executionContext) _OrgMembershipConnection_totalCount(ctx context.Cont } return graphql.Null } - res := resTmp.(int) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_InviteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipConnection", + Object: "InviteEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) +func (ec *executionContext) _Narrative_id(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_id(ctx, field) if err != nil { return graphql.Null } @@ -139607,7 +57010,7 @@ func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgMembership, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -139619,54 +57022,67 @@ func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx contex } return graphql.Null } - res := resTmp.(*generated.OrgMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipCreatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipCreatePayload", + Object: "Narrative", 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_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Narrative_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Narrative_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Narrative_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -139679,38 +57095,76 @@ func (ec *executionContext) _OrgMembershipDeletePayload_deletedID(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Narrative_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Narrative_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipDeletePayload", + Object: "Narrative", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipEdge_node(ctx, field) +func (ec *executionContext) _Narrative_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -139723,7 +57177,7 @@ func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -139732,54 +57186,26 @@ func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrgMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipEdge", + Object: "Narrative", 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_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) +func (ec *executionContext) _Narrative_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -139792,38 +57218,76 @@ func (ec *executionContext) _OrgMembershipEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Narrative_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Narrative_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_deletedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedBy, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipEdge", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_id(ctx, field) +func (ec *executionContext) _Narrative_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_tags(ctx, field) if err != nil { return graphql.Null } @@ -139836,7 +57300,48 @@ func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Tags, 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_Narrative_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + 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) _Narrative_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -139853,9 +57358,9 @@ func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, @@ -139866,8 +57371,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistory_id(_ context.Conte return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) +func (ec *executionContext) _Narrative_name(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_name(ctx, field) if err != nil { return graphql.Null } @@ -139880,7 +57385,7 @@ func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -139892,26 +57397,26 @@ func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Contex } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_ref(ctx, field) +func (ec *executionContext) _Narrative_description(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_description(ctx, field) if err != nil { return graphql.Null } @@ -139924,7 +57429,7 @@ func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -139938,9 +57443,9 @@ func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, @@ -139951,8 +57456,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Cont return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_operation(ctx, field) +func (ec *executionContext) _Narrative_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -139965,38 +57470,76 @@ func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Narrative_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Narrative", + 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) _Narrative_details(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(history.OpType) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrgMembershipHistoryOpType does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) +func (ec *executionContext) _Narrative_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_owner(ctx, field) if err != nil { return graphql.Null } @@ -140009,35 +57552,146 @@ func (ec *executionContext) _OrgMembershipHistory_createdAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) +func (ec *executionContext) _Narrative_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_blockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -140050,7 +57704,7 @@ func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.BlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -140059,26 +57713,128 @@ func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) +func (ec *executionContext) _Narrative_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_editors(ctx, field) if err != nil { return graphql.Null } @@ -140091,7 +57847,7 @@ func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Editors(ctx) }) if err != nil { ec.Error(ctx, err) @@ -140100,26 +57856,128 @@ func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) +func (ec *executionContext) _Narrative_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_viewers(ctx, field) if err != nil { return graphql.Null } @@ -140132,7 +57990,7 @@ func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Viewers(ctx) }) if err != nil { ec.Error(ctx, err) @@ -140141,26 +57999,128 @@ func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) +func (ec *executionContext) _Narrative_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_internalPolicy(ctx, field) if err != nil { return graphql.Null } @@ -140173,7 +58133,7 @@ func (ec *executionContext) _OrgMembershipHistory_deletedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.InternalPolicy(ctx) }) if err != nil { ec.Error(ctx, err) @@ -140182,26 +58142,80 @@ func (ec *executionContext) _OrgMembershipHistory_deletedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) +func (ec *executionContext) _Narrative_control(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_control(ctx, field) if err != nil { return graphql.Null } @@ -140214,7 +58228,7 @@ func (ec *executionContext) _OrgMembershipHistory_deletedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Control(ctx) }) if err != nil { ec.Error(ctx, err) @@ -140223,26 +58237,96 @@ func (ec *executionContext) _OrgMembershipHistory_deletedBy(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_role(ctx, field) +func (ec *executionContext) _Narrative_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_procedure(ctx, field) if err != nil { return graphql.Null } @@ -140255,38 +58339,91 @@ func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.Procedure(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrgMembershipHistoryRole does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) +func (ec *executionContext) _Narrative_controlObjective(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_controlObjective(ctx, field) if err != nil { return graphql.Null } @@ -140299,38 +58436,103 @@ func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.ControlObjective(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistory_userID(ctx, field) +func (ec *executionContext) _Narrative_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Narrative) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Narrative_programs(ctx, field) if err != nil { return graphql.Null } @@ -140343,38 +58545,107 @@ func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Narrative_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistory", + Object: "Narrative", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) +func (ec *executionContext) _NarrativeConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -140396,32 +58667,32 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgMembershipHistoryEdge) + res := resTmp.([]*generated.NarrativeEdge) fc.Result = res - return ec.marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx, field.Selections, res) + return ec.marshalONarrativeEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", + Object: "NarrativeConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) + return ec.fieldContext_NarrativeEdge_node(ctx, field) case "cursor": - return ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) + return ec.fieldContext_NarrativeEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NarrativeEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _NarrativeConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -140451,9 +58722,9 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", + Object: "NarrativeConnection", Field: field, IsMethod: false, IsResolver: false, @@ -140474,8 +58745,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_pageInfo return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _NarrativeConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -140505,9 +58776,9 @@ func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx conte return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryConnection", + Object: "NarrativeConnection", Field: field, IsMethod: false, IsResolver: false, @@ -140518,8 +58789,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_totalCou return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) +func (ec *executionContext) _NarrativeEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -140541,54 +58812,72 @@ func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrgMembershipHistory) + res := resTmp.(*generated.Narrative) fc.Result = res - return ec.marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistory(ctx, field.Selections, res) + return ec.marshalONarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryEdge", + Object: "NarrativeEdge", 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_OrgMembershipHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_OrgMembershipHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_OrgMembershipHistory_operation(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "createdAt": - return ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) + return ec.fieldContext_Narrative_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) + return ec.fieldContext_Narrative_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) + return ec.fieldContext_Narrative_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) + return ec.fieldContext_Narrative_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) + return ec.fieldContext_Narrative_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembershipHistory_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembershipHistory_userID(ctx, field) + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _NarrativeEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -140618,9 +58907,9 @@ func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipHistoryEdge", + Object: "NarrativeEdge", Field: field, IsMethod: false, IsResolver: false, @@ -140631,8 +58920,8 @@ func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_cursor(_ conte return fc, nil } -func (ec *executionContext) _OrgMembershipUpdatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *OrgMembershipUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) +func (ec *executionContext) _NarrativeHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -140645,7 +58934,7 @@ func (ec *executionContext) _OrgMembershipUpdatePayload_orgMembership(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgMembership, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -140657,54 +58946,26 @@ func (ec *executionContext) _OrgMembershipUpdatePayload_orgMembership(ctx contex } return graphql.Null } - res := resTmp.(*generated.OrgMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgMembershipUpdatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgMembershipUpdatePayload", + Object: "NarrativeHistory", 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_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_id(ctx, field) +func (ec *executionContext) _NarrativeHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -140717,7 +58978,7 @@ func (ec *executionContext) _OrgSubscription_id(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -140729,26 +58990,26 @@ func (ec *executionContext) _OrgSubscription_id(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_createdAt(ctx, field) +func (ec *executionContext) _NarrativeHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -140761,7 +59022,7 @@ func (ec *executionContext) _OrgSubscription_createdAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -140770,26 +59031,26 @@ func (ec *executionContext) _OrgSubscription_createdAt(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_updatedAt(ctx, field) +func (ec *executionContext) _NarrativeHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -140802,35 +59063,38 @@ func (ec *executionContext) _OrgSubscription_updatedAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNNarrativeHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type NarrativeHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_createdBy(ctx, field) +func (ec *executionContext) _NarrativeHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -140843,7 +59107,7 @@ func (ec *executionContext) _OrgSubscription_createdBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -140852,26 +59116,26 @@ func (ec *executionContext) _OrgSubscription_createdBy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_updatedBy(ctx, field) +func (ec *executionContext) _NarrativeHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -140884,7 +59148,7 @@ func (ec *executionContext) _OrgSubscription_updatedBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -140893,26 +59157,26 @@ func (ec *executionContext) _OrgSubscription_updatedBy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_tags(ctx, field) +func (ec *executionContext) _NarrativeHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -140925,7 +59189,7 @@ func (ec *executionContext) _OrgSubscription_tags(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -140934,14 +59198,14 @@ func (ec *executionContext) _OrgSubscription_tags(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -140952,8 +59216,8 @@ func (ec *executionContext) fieldContext_OrgSubscription_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _OrgSubscription_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_deletedAt(ctx, field) +func (ec *executionContext) _NarrativeHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -140966,7 +59230,7 @@ func (ec *executionContext) _OrgSubscription_deletedAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -140975,26 +59239,26 @@ func (ec *executionContext) _OrgSubscription_deletedAt(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_deletedBy(ctx, field) +func (ec *executionContext) _NarrativeHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -141007,7 +59271,7 @@ func (ec *executionContext) _OrgSubscription_deletedBy(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -141016,26 +59280,26 @@ func (ec *executionContext) _OrgSubscription_deletedBy(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_ownerID(ctx, field) +func (ec *executionContext) _NarrativeHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -141048,7 +59312,7 @@ func (ec *executionContext) _OrgSubscription_ownerID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -141059,24 +59323,24 @@ func (ec *executionContext) _OrgSubscription_ownerID(ctx context.Context, field } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_stripeSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) +func (ec *executionContext) _NarrativeHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -141089,7 +59353,7 @@ func (ec *executionContext) _OrgSubscription_stripeSubscriptionID(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeSubscriptionID, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -141098,14 +59362,14 @@ func (ec *executionContext) _OrgSubscription_stripeSubscriptionID(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_stripeSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -141116,8 +59380,8 @@ func (ec *executionContext) fieldContext_OrgSubscription_stripeSubscriptionID(_ return fc, nil } -func (ec *executionContext) _OrgSubscription_productTier(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_productTier(ctx, field) +func (ec *executionContext) _NarrativeHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -141130,23 +59394,26 @@ func (ec *executionContext) _OrgSubscription_productTier(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProductTier, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_productTier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -141157,8 +59424,8 @@ func (ec *executionContext) fieldContext_OrgSubscription_productTier(_ context.C return fc, nil } -func (ec *executionContext) _OrgSubscription_stripeProductTierID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) +func (ec *executionContext) _NarrativeHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -141171,23 +59438,26 @@ func (ec *executionContext) _OrgSubscription_stripeProductTierID(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeProductTierID, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_stripeProductTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -141198,8 +59468,8 @@ func (ec *executionContext) fieldContext_OrgSubscription_stripeProductTierID(_ c return fc, nil } -func (ec *executionContext) _OrgSubscription_stripeSubscriptionStatus(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) +func (ec *executionContext) _NarrativeHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -141212,7 +59482,7 @@ func (ec *executionContext) _OrgSubscription_stripeSubscriptionStatus(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeSubscriptionStatus, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -141226,9 +59496,9 @@ func (ec *executionContext) _OrgSubscription_stripeSubscriptionStatus(ctx contex return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_stripeSubscriptionStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", Field: field, IsMethod: false, IsResolver: false, @@ -141239,8 +59509,8 @@ func (ec *executionContext) fieldContext_OrgSubscription_stripeSubscriptionStatu return fc, nil } -func (ec *executionContext) _OrgSubscription_active(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_active(ctx, field) +func (ec *executionContext) _NarrativeHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -141253,38 +59523,35 @@ func (ec *executionContext) _OrgSubscription_active(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } - -func (ec *executionContext) _OrgSubscription_stripeCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + +func (ec *executionContext) _NarrativeHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -141297,7 +59564,7 @@ func (ec *executionContext) _OrgSubscription_stripeCustomerID(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeCustomerID, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -141306,26 +59573,26 @@ func (ec *executionContext) _OrgSubscription_stripeCustomerID(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_stripeCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistory", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_expiresAt(ctx, field) +func (ec *executionContext) _NarrativeHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -141338,7 +59605,7 @@ func (ec *executionContext) _OrgSubscription_expiresAt(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpiresAt, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -141347,26 +59614,32 @@ func (ec *executionContext) _OrgSubscription_expiresAt(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.([]*generated.NarrativeHistoryEdge) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalONarrativeHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscription_features(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_features(ctx, field) +func (ec *executionContext) _NarrativeHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -141379,35 +59652,48 @@ func (ec *executionContext) _OrgSubscription_features(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Features, nil + 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.([]string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistoryConnection", 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") + 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) _OrgSubscription_owner(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscription_owner(ctx, field) +func (ec *executionContext) _NarrativeHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -141420,143 +59706,38 @@ func (ec *executionContext) _OrgSubscription_owner(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(int) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscription_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscription", + Object: "NarrativeHistoryConnection", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *OrgSubscriptionBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx, field) +func (ec *executionContext) _NarrativeHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -141569,7 +59750,7 @@ func (ec *executionContext) _OrgSubscriptionBulkCreatePayload_orgSubscriptions(c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgSubscriptions, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -141578,64 +59759,60 @@ func (ec *executionContext) _OrgSubscriptionBulkCreatePayload_orgSubscriptions(c if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgSubscription) + res := resTmp.(*generated.NarrativeHistory) fc.Result = res - return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, field.Selections, res) + return ec.marshalONarrativeHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionBulkCreatePayload", + Object: "NarrativeHistoryEdge", 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_OrgSubscription_id(ctx, field) + return ec.fieldContext_NarrativeHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_NarrativeHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_NarrativeHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_NarrativeHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_OrgSubscription_createdAt(ctx, field) + return ec.fieldContext_NarrativeHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) + return ec.fieldContext_NarrativeHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OrgSubscription_createdBy(ctx, field) + return ec.fieldContext_NarrativeHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscription_tags(ctx, field) + return ec.fieldContext_NarrativeHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) + return ec.fieldContext_NarrativeHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + return ec.fieldContext_NarrativeHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_NarrativeHistory_tags(ctx, field) case "ownerID": - return ec.fieldContext_OrgSubscription_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscription_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscription_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscription_features(ctx, field) - case "owner": - return ec.fieldContext_OrgSubscription_owner(ctx, field) + return ec.fieldContext_NarrativeHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_NarrativeHistory_name(ctx, field) + case "description": + return ec.fieldContext_NarrativeHistory_description(ctx, field) + case "satisfies": + return ec.fieldContext_NarrativeHistory_satisfies(ctx, field) + case "details": + return ec.fieldContext_NarrativeHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NarrativeHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionConnection_edges(ctx, field) +func (ec *executionContext) _NarrativeHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NarrativeHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -141648,41 +59825,38 @@ func (ec *executionContext) _OrgSubscriptionConnection_edges(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*generated.OrgSubscriptionEdge) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOOrgSubscriptionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionEdge(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NarrativeHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionConnection", + Object: "NarrativeHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_OrgSubscriptionEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrgSubscriptionEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionEdge", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionConnection_pageInfo(ctx, field) +func (ec *executionContext) _Note_id(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_id(ctx, field) if err != nil { return graphql.Null } @@ -141695,7 +59869,7 @@ func (ec *executionContext) _OrgSubscriptionConnection_pageInfo(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -141707,36 +59881,26 @@ func (ec *executionContext) _OrgSubscriptionConnection_pageInfo(ctx context.Cont } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionConnection", + Object: "Note", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionConnection_totalCount(ctx, field) +func (ec *executionContext) _Note_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -141749,38 +59913,35 @@ func (ec *executionContext) _OrgSubscriptionConnection_totalCount(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionConnection", + Object: "Note", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionCreatePayload_orgSubscription(ctx context.Context, field graphql.CollectedField, obj *OrgSubscriptionCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionCreatePayload_orgSubscription(ctx, field) +func (ec *executionContext) _Note_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -141793,76 +59954,35 @@ func (ec *executionContext) _OrgSubscriptionCreatePayload_orgSubscription(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgSubscription, nil + 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.(*generated.OrgSubscription) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionCreatePayload_orgSubscription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionCreatePayload", + Object: "Note", 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_OrgSubscription_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgSubscription_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscription_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OrgSubscription_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscription_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscription_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscription_features(ctx, field) - case "owner": - return ec.fieldContext_OrgSubscription_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrgSubscriptionDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Note_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -141875,38 +59995,35 @@ func (ec *executionContext) _OrgSubscriptionDeletePayload_deletedID(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionDeletePayload", + Object: "Note", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionEdge_node(ctx, field) +func (ec *executionContext) _Note_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -141919,7 +60036,7 @@ func (ec *executionContext) _OrgSubscriptionEdge_node(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -141928,64 +60045,26 @@ func (ec *executionContext) _OrgSubscriptionEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrgSubscription) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionEdge", + Object: "Note", 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_OrgSubscription_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgSubscription_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscription_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OrgSubscription_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscription_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscription_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscription_features(ctx, field) - case "owner": - return ec.fieldContext_OrgSubscription_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionEdge_cursor(ctx, field) +func (ec *executionContext) _Note_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -141998,38 +60077,35 @@ func (ec *executionContext) _OrgSubscriptionEdge_cursor(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionEdge", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_id(ctx, field) +func (ec *executionContext) _Note_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -142042,38 +60118,35 @@ func (ec *executionContext) _OrgSubscriptionHistory_id(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_historyTime(ctx, field) +func (ec *executionContext) _Note_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_tags(ctx, field) if err != nil { return graphql.Null } @@ -142086,38 +60159,35 @@ func (ec *executionContext) _OrgSubscriptionHistory_historyTime(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_ref(ctx, field) +func (ec *executionContext) _Note_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -142130,7 +60200,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_ref(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -142141,24 +60211,24 @@ func (ec *executionContext) _OrgSubscriptionHistory_ref(ctx context.Context, fie } res := resTmp.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_operation(ctx, field) +func (ec *executionContext) _Note_text(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_text(ctx, field) if err != nil { return graphql.Null } @@ -142171,7 +60241,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_operation(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) @@ -142183,26 +60253,26 @@ func (ec *executionContext) _OrgSubscriptionHistory_operation(ctx context.Contex } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgSubscriptionHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrgSubscriptionHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_createdAt(ctx, field) +func (ec *executionContext) _Note_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_owner(ctx, field) if err != nil { return graphql.Null } @@ -142215,7 +60285,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_createdAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -142224,26 +60294,134 @@ func (ec *executionContext) _OrgSubscriptionHistory_createdAt(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_updatedAt(ctx, field) +func (ec *executionContext) _Note_entity(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_entity(ctx, field) if err != nil { return graphql.Null } @@ -142256,7 +60434,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_updatedAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Entity(ctx) }) if err != nil { ec.Error(ctx, err) @@ -142265,26 +60443,70 @@ func (ec *executionContext) _OrgSubscriptionHistory_updatedAt(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Entity) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_createdBy(ctx, field) +func (ec *executionContext) _Note_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -142297,7 +60519,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_createdBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, err) @@ -142306,26 +60528,90 @@ func (ec *executionContext) _OrgSubscriptionHistory_createdBy(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_updatedBy(ctx, field) +func (ec *executionContext) _Note_program(ctx context.Context, field graphql.CollectedField, obj *generated.Note) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Note_program(ctx, field) if err != nil { return graphql.Null } @@ -142338,7 +60624,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_updatedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Program(ctx) }) if err != nil { ec.Error(ctx, err) @@ -142347,26 +60633,98 @@ func (ec *executionContext) _OrgSubscriptionHistory_updatedBy(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Note_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "Note", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_tags(ctx, field) +func (ec *executionContext) _NoteConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -142379,7 +60737,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_tags(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -142388,26 +60746,32 @@ func (ec *executionContext) _OrgSubscriptionHistory_tags(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.NoteEdge) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalONoteEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_NoteEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_NoteEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NoteEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_deletedAt(ctx, field) +func (ec *executionContext) _NoteConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -142420,35 +60784,48 @@ func (ec *executionContext) _OrgSubscriptionHistory_deletedAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + 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.(time.Time) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + 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) _OrgSubscriptionHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_deletedBy(ctx, field) +func (ec *executionContext) _NoteConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -142461,35 +60838,38 @@ func (ec *executionContext) _OrgSubscriptionHistory_deletedBy(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_ownerID(ctx, field) +func (ec *executionContext) _NoteEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -142502,7 +60882,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_ownerID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -142511,26 +60891,56 @@ func (ec *executionContext) _OrgSubscriptionHistory_ownerID(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Note) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_Note_id(ctx, field) + case "createdAt": + return ec.fieldContext_Note_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Note_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Note_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Note_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Note_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + case "program": + return ec.fieldContext_Note_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_stripeSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionID(ctx, field) +func (ec *executionContext) _NoteEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -142543,35 +60953,38 @@ func (ec *executionContext) _OrgSubscriptionHistory_stripeSubscriptionID(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeSubscriptionID, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_productTier(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_productTier(ctx, field) +func (ec *executionContext) _NoteHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -142584,35 +60997,38 @@ func (ec *executionContext) _OrgSubscriptionHistory_productTier(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProductTier, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_productTier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_stripeProductTierID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeProductTierID(ctx, field) +func (ec *executionContext) _NoteHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -142625,35 +61041,38 @@ func (ec *executionContext) _OrgSubscriptionHistory_stripeProductTierID(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeProductTierID, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeProductTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_stripeSubscriptionStatus(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionStatus(ctx, field) +func (ec *executionContext) _NoteHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -142666,7 +61085,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_stripeSubscriptionStatus(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeSubscriptionStatus, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -142680,9 +61099,9 @@ func (ec *executionContext) _OrgSubscriptionHistory_stripeSubscriptionStatus(ctx return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeSubscriptionStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, @@ -142693,8 +61112,8 @@ func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeSubscripti return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_active(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_active(ctx, field) +func (ec *executionContext) _NoteHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -142707,7 +61126,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_active(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -142719,26 +61138,26 @@ func (ec *executionContext) _OrgSubscriptionHistory_active(ctx context.Context, } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNNoteHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteHistory", 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 nil, errors.New("field of type NoteHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_stripeCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeCustomerID(ctx, field) +func (ec *executionContext) _NoteHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -142751,7 +61170,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_stripeCustomerID(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeCustomerID, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -142760,26 +61179,26 @@ func (ec *executionContext) _OrgSubscriptionHistory_stripeCustomerID(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_expiresAt(ctx, field) +func (ec *executionContext) _NoteHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -142792,7 +61211,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_expiresAt(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpiresAt, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -142801,14 +61220,14 @@ func (ec *executionContext) _OrgSubscriptionHistory_expiresAt(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, @@ -142819,8 +61238,8 @@ func (ec *executionContext) fieldContext_OrgSubscriptionHistory_expiresAt(_ cont return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistory_features(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistory_features(ctx, field) +func (ec *executionContext) _NoteHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -142833,7 +61252,7 @@ func (ec *executionContext) _OrgSubscriptionHistory_features(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Features, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -142842,14 +61261,14 @@ func (ec *executionContext) _OrgSubscriptionHistory_features(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistory_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistory", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, @@ -142860,8 +61279,8 @@ func (ec *executionContext) fieldContext_OrgSubscriptionHistory_features(_ conte return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistoryConnection_edges(ctx, field) +func (ec *executionContext) _NoteHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -142874,7 +61293,7 @@ func (ec *executionContext) _OrgSubscriptionHistoryConnection_edges(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -142883,32 +61302,26 @@ func (ec *executionContext) _OrgSubscriptionHistoryConnection_edges(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgSubscriptionHistoryEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrgSubscriptionHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistoryConnection", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_OrgSubscriptionHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrgSubscriptionHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionHistoryEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _NoteHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -142921,48 +61334,35 @@ func (ec *executionContext) _OrgSubscriptionHistoryConnection_pageInfo(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistoryConnection", + Object: "NoteHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _NoteHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -142975,38 +61375,35 @@ func (ec *executionContext) _OrgSubscriptionHistoryConnection_totalCount(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistoryConnection", + Object: "NoteHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistoryEdge_node(ctx, field) +func (ec *executionContext) _NoteHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -143019,7 +61416,7 @@ func (ec *executionContext) _OrgSubscriptionHistoryEdge_node(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -143028,68 +61425,26 @@ func (ec *executionContext) _OrgSubscriptionHistoryEdge_node(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrgSubscriptionHistory) + res := resTmp.([]string) fc.Result = res - return ec.marshalOOrgSubscriptionHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistory(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistoryEdge", + Object: "NoteHistory", 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_OrgSubscriptionHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_OrgSubscriptionHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_OrgSubscriptionHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_OrgSubscriptionHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_OrgSubscriptionHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgSubscriptionHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgSubscriptionHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgSubscriptionHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscriptionHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgSubscriptionHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgSubscriptionHistory_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OrgSubscriptionHistory_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscriptionHistory_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscriptionHistory_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscriptionHistory_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscriptionHistory_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscriptionHistory_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscriptionHistory_features(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionHistory", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _NoteHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -143102,38 +61457,35 @@ func (ec *executionContext) _OrgSubscriptionHistoryEdge_cursor(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionHistoryEdge", + Object: "NoteHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionSearchResult_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *OrgSubscriptionSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionSearchResult_orgSubscriptions(ctx, field) +func (ec *executionContext) _NoteHistory_text(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistory_text(ctx, field) if err != nil { return graphql.Null } @@ -143146,73 +61498,38 @@ func (ec *executionContext) _OrgSubscriptionSearchResult_orgSubscriptions(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgSubscriptions, nil + return obj.Text, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.OrgSubscription) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionSearchResult_orgSubscriptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistory_text(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionSearchResult", + Object: "NoteHistory", 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_OrgSubscription_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgSubscription_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscription_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OrgSubscription_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscription_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscription_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscription_features(ctx, field) - case "owner": - return ec.fieldContext_OrgSubscription_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrgSubscriptionUpdatePayload_orgSubscription(ctx context.Context, field graphql.CollectedField, obj *OrgSubscriptionUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrgSubscriptionUpdatePayload_orgSubscription(ctx, field) +func (ec *executionContext) _NoteHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -143225,76 +61542,41 @@ func (ec *executionContext) _OrgSubscriptionUpdatePayload_orgSubscription(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgSubscription, nil + 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.(*generated.OrgSubscription) + res := resTmp.([]*generated.NoteHistoryEdge) fc.Result = res - return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) + return ec.marshalONoteHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrgSubscriptionUpdatePayload_orgSubscription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrgSubscriptionUpdatePayload", + Object: "NoteHistoryConnection", 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_OrgSubscription_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgSubscription_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscription_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OrgSubscription_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscription_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscription_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscription_features(ctx, field) - case "owner": - return ec.fieldContext_OrgSubscription_owner(ctx, field) + case "node": + return ec.fieldContext_NoteHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NoteHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_id(ctx, field) +func (ec *executionContext) _NoteHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -143307,7 +61589,7 @@ func (ec *executionContext) _Organization_id(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -143319,26 +61601,36 @@ func (ec *executionContext) _Organization_id(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "NoteHistoryConnection", 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") + 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) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_createdAt(ctx, field) +func (ec *executionContext) _NoteHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -143351,35 +61643,38 @@ func (ec *executionContext) _Organization_createdAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "NoteHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_updatedAt(ctx, field) +func (ec *executionContext) _NoteHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -143392,7 +61687,7 @@ func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -143401,26 +61696,54 @@ func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.NoteHistory) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalONoteHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "NoteHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_NoteHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_NoteHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_NoteHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_NoteHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_NoteHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_NoteHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_NoteHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_NoteHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_NoteHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_NoteHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_NoteHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_NoteHistory_ownerID(ctx, field) + case "text": + return ec.fieldContext_NoteHistory_text(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NoteHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_createdBy(ctx, field) +func (ec *executionContext) _NoteHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.NoteHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NoteHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -143433,35 +61756,38 @@ func (ec *executionContext) _Organization_createdBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_NoteHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "NoteHistoryEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_updatedBy(ctx, field) +func (ec *executionContext) _OrgMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_id(ctx, field) if err != nil { return graphql.Null } @@ -143474,35 +61800,38 @@ func (ec *executionContext) _Organization_updatedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_tags(ctx, field) +func (ec *executionContext) _OrgMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -143515,7 +61844,7 @@ func (ec *executionContext) _Organization_tags(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -143524,26 +61853,26 @@ func (ec *executionContext) _Organization_tags(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_deletedAt(ctx, field) +func (ec *executionContext) _OrgMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -143556,7 +61885,7 @@ func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -143570,9 +61899,9 @@ func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field g return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, @@ -143583,8 +61912,8 @@ func (ec *executionContext) fieldContext_Organization_deletedAt(_ context.Contex return fc, nil } -func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_deletedBy(ctx, field) +func (ec *executionContext) _OrgMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -143597,7 +61926,7 @@ func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -143611,9 +61940,9 @@ func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, @@ -143624,8 +61953,8 @@ func (ec *executionContext) fieldContext_Organization_deletedBy(_ context.Contex return fc, nil } -func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_name(ctx, field) +func (ec *executionContext) _OrgMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -143638,26 +61967,23 @@ func (ec *executionContext) _Organization_name(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, @@ -143668,8 +61994,8 @@ func (ec *executionContext) fieldContext_Organization_name(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Organization_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_displayName(ctx, field) +func (ec *executionContext) _OrgMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -143682,38 +62008,35 @@ func (ec *executionContext) _Organization_displayName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_description(ctx, field) +func (ec *executionContext) _OrgMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -143726,7 +62049,7 @@ func (ec *executionContext) _Organization_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -143740,9 +62063,9 @@ func (ec *executionContext) _Organization_description(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", Field: field, IsMethod: false, IsResolver: false, @@ -143753,8 +62076,8 @@ func (ec *executionContext) fieldContext_Organization_description(_ context.Cont return fc, nil } -func (ec *executionContext) _Organization_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_personalOrg(ctx, field) +func (ec *executionContext) _OrgMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_role(ctx, field) if err != nil { return graphql.Null } @@ -143767,35 +62090,38 @@ func (ec *executionContext) _Organization_personalOrg(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalOrg, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalNOrgMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", 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 nil, errors.New("field of type OrgMembershipRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_avatarRemoteURL(ctx, field) +func (ec *executionContext) _OrgMembership_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -143808,35 +62134,38 @@ func (ec *executionContext) _Organization_avatarRemoteURL(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_dedicatedDb(ctx, field) +func (ec *executionContext) _OrgMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_userID(ctx, field) if err != nil { return graphql.Null } @@ -143849,7 +62178,7 @@ func (ec *executionContext) _Organization_dedicatedDb(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DedicatedDb, nil + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) @@ -143861,26 +62190,26 @@ func (ec *executionContext) _Organization_dedicatedDb(ctx context.Context, field } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_controlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_controlCreators(ctx, field) +func (ec *executionContext) _OrgMembership_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_organization(ctx, field) if err != nil { return graphql.Null } @@ -143893,137 +62222,146 @@ func (ec *executionContext) _Organization_controlCreators(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlCreators(ctx) + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_controlCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) + return ec.fieldContext_Organization_name(ctx, field) case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) + return ec.fieldContext_Organization_controlCreators(ctx, field) case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) + return ec.fieldContext_Organization_groupCreators(ctx, field) case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) + return ec.fieldContext_Organization_narrativeCreators(ctx, field) case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) + return ec.fieldContext_Organization_procedureCreators(ctx, field) case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) + return ec.fieldContext_Organization_programCreators(ctx, field) case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) + return ec.fieldContext_Organization_riskCreators(ctx, field) case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) case "setting": - return ec.fieldContext_Group_setting(ctx, field) + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) case "users": - return ec.fieldContext_Group_users(ctx, field) + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) case "files": - return ec.fieldContext_Group_files(ctx, field) + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) +func (ec *executionContext) _OrgMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_user(ctx, field) if err != nil { return graphql.Null } @@ -144036,137 +62374,197 @@ func (ec *executionContext) _Organization_controlObjectiveCreators(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectiveCreators(ctx) + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_controlObjectiveCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembership", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_User_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_User_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_User_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_User_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_User_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_User_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) + return ec.fieldContext_User_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgMembership_events(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembership_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgMembership_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembership", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_groupCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_groupCreators(ctx, field) +func (ec *executionContext) _OrgMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -144179,7 +62577,7 @@ func (ec *executionContext) _Organization_groupCreators(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupCreators(ctx) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -144188,128 +62586,32 @@ func (ec *executionContext) _Organization_groupCreators(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.([]*generated.OrgMembershipEdge) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOOrgMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_groupCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "node": + return ec.fieldContext_OrgMembershipEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_internalPolicyCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_internalPolicyCreators(ctx, field) +func (ec *executionContext) _OrgMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -144322,137 +62624,48 @@ func (ec *executionContext) _Organization_internalPolicyCreators(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicyCreators(ctx) + 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.([]*generated.Group) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_internalPolicyCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + 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 Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_narrativeCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_narrativeCreators(ctx, field) +func (ec *executionContext) _OrgMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -144465,137 +62678,38 @@ func (ec *executionContext) _Organization_narrativeCreators(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.NarrativeCreators(ctx) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(int) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_narrativeCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_procedureCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_procedureCreators(ctx, field) +func (ec *executionContext) _OrgMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -144608,7 +62722,7 @@ func (ec *executionContext) _Organization_procedureCreators(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProcedureCreators(ctx) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -144617,128 +62731,54 @@ func (ec *executionContext) _Organization_procedureCreators(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*generated.OrgMembership) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_procedureCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Group_id(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_programCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_programCreators(ctx, field) +func (ec *executionContext) _OrgMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -144751,137 +62791,38 @@ func (ec *executionContext) _Organization_programCreators(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramCreators(ctx) + 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.([]*generated.Group) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_programCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_riskCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_riskCreators(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -144894,137 +62835,38 @@ func (ec *executionContext) _Organization_riskCreators(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RiskCreators(ctx) + 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.([]*generated.Group) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_riskCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_templateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_templateCreators(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -145037,137 +62879,38 @@ func (ec *executionContext) _Organization_templateCreators(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TemplateCreators(ctx) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_templateCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_parent(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -145180,7 +62923,7 @@ func (ec *executionContext) _Organization_parent(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Parent(ctx) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -145189,134 +62932,26 @@ func (ec *executionContext) _Organization_parent(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + Object: "OrgMembershipHistory", + 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_children(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_children(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -145329,7 +62964,7 @@ func (ec *executionContext) _Organization_children(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Children(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -145341,45 +62976,67 @@ func (ec *executionContext) _Organization_children(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*generated.OrganizationConnection) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) + return ec.marshalNOrgMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_children(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, 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) - case "totalCount": - return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name) + return nil, errors.New("field of type OrgMembershipHistoryOpType does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _OrgMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Organization_children_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedAt, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _Organization_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_groups(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -145392,7 +63049,7 @@ func (ec *executionContext) _Organization_groups(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Groups(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -145401,128 +63058,26 @@ func (ec *executionContext) _Organization_groups(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_templates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_templates(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -145535,7 +63090,7 @@ func (ec *executionContext) _Organization_templates(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Templates(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -145544,62 +63099,26 @@ func (ec *executionContext) _Organization_templates(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Template) + res := resTmp.(string) fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_integrations(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -145612,7 +63131,7 @@ func (ec *executionContext) _Organization_integrations(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Integrations(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -145621,58 +63140,26 @@ func (ec *executionContext) _Organization_integrations(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Integration) + res := resTmp.(string) fc.Result = res - return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_setting(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -145685,7 +63172,7 @@ func (ec *executionContext) _Organization_setting(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Setting(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -145694,66 +63181,26 @@ func (ec *executionContext) _Organization_setting(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrganizationSetting) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_documentData(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_documentData(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -145766,7 +63213,7 @@ func (ec *executionContext) _Organization_documentData(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DocumentData(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -145775,58 +63222,26 @@ func (ec *executionContext) _Organization_documentData(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.DocumentData) + res := resTmp.(string) fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_orgSubscriptions(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_role(ctx, field) if err != nil { return graphql.Null } @@ -145839,73 +63254,38 @@ func (ec *executionContext) _Organization_orgSubscriptions(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgSubscriptions(ctx) + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.OrgSubscription) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, field.Selections, res) + return ec.marshalNOrgMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_orgSubscriptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgSubscription_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgSubscription_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscription_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OrgSubscription_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscription_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscription_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscription_features(ctx, field) - case "owner": - return ec.fieldContext_OrgSubscription_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + return nil, errors.New("field of type OrgMembershipHistoryRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_personalAccessTokens(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -145918,71 +63298,38 @@ func (ec *executionContext) _Organization_personalAccessTokens(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens(ctx) + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.PersonalAccessToken) + res := resTmp.(string) fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_apiTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_apiTokens(ctx, field) +func (ec *executionContext) _OrgMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistory_userID(ctx, field) if err != nil { return graphql.Null } @@ -145995,69 +63342,38 @@ func (ec *executionContext) _Organization_apiTokens(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.APITokens(ctx) + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.APIToken) + res := resTmp.(string) fc.Result = res - return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + 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 *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_users(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -146070,7 +63386,7 @@ func (ec *executionContext) _Organization_users(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Users(ctx) + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -146079,100 +63395,32 @@ func (ec *executionContext) _Organization_users(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.([]*generated.OrgMembershipHistoryEdge) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalOOrgMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistoryConnection", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + case "node": + return ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_invites(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_invites(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -146185,69 +63433,48 @@ func (ec *executionContext) _Organization_invites(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Invites(ctx) + 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.([]*generated.Invite) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + 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 Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_subscribers(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -146260,69 +63487,38 @@ func (ec *executionContext) _Organization_subscribers(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subscribers(ctx) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Subscriber) + res := resTmp.(int) fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_events(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_events(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -146335,7 +63531,7 @@ func (ec *executionContext) _Organization_events(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -146344,70 +63540,54 @@ func (ec *executionContext) _Organization_events(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(*generated.OrgMembershipHistory) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOOrgMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistoryEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Event_id(ctx, field) + return ec.fieldContext_OrgMembershipHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_OrgMembershipHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_OrgMembershipHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_OrgMembershipHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) + return ec.fieldContext_OrgMembershipHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) + return ec.fieldContext_OrgMembershipHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) + return ec.fieldContext_OrgMembershipHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + return ec.fieldContext_OrgMembershipHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembershipHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembershipHistory_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembershipHistory_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembershipHistory_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembershipHistory_userID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _Organization_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_secrets(ctx, field) +func (ec *executionContext) _OrgMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -146420,65 +63600,38 @@ func (ec *executionContext) _Organization_secrets(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Secrets(ctx) + 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.([]*generated.Hush) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgMembershipHistoryEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_files(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_files(ctx, field) +func (ec *executionContext) _OrgSubscription_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_id(ctx, field) if err != nil { return graphql.Null } @@ -146491,101 +63644,79 @@ func (ec *executionContext) _Organization_files(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + 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.([]*generated.File) + res := resTmp.(string) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type ID does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgSubscription_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscription_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscription", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_entities(ctx, field) +func (ec *executionContext) _OrgSubscription_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -146598,7 +63729,7 @@ func (ec *executionContext) _Organization_entities(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Entities(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -146607,70 +63738,26 @@ func (ec *executionContext) _Organization_entities(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Entity) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_entityTypes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_entityTypes(ctx, field) +func (ec *executionContext) _OrgSubscription_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -146683,7 +63770,7 @@ func (ec *executionContext) _Organization_entityTypes(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EntityTypes(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -146692,52 +63779,26 @@ func (ec *executionContext) _Organization_entityTypes(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.EntityType) + res := resTmp.(string) fc.Result = res - return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_contacts(ctx, field) +func (ec *executionContext) _OrgSubscription_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -146750,7 +63811,7 @@ func (ec *executionContext) _Organization_contacts(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Contacts(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -146759,66 +63820,26 @@ func (ec *executionContext) _Organization_contacts(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Contact) + res := resTmp.(string) fc.Result = res - return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_notes(ctx, field) +func (ec *executionContext) _OrgSubscription_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_tags(ctx, field) if err != nil { return graphql.Null } @@ -146831,7 +63852,7 @@ func (ec *executionContext) _Organization_notes(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Notes(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -146840,56 +63861,26 @@ func (ec *executionContext) _Organization_notes(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Note) + res := resTmp.([]string) fc.Result = res - return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) - case "subcontrols": - return ec.fieldContext_Note_subcontrols(ctx, field) - case "program": - return ec.fieldContext_Note_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_tasks(ctx, field) +func (ec *executionContext) _OrgSubscription_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -146902,7 +63893,7 @@ func (ec *executionContext) _Organization_tasks(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tasks(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -146911,76 +63902,26 @@ func (ec *executionContext) _Organization_tasks(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Task) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_programs(ctx, field) +func (ec *executionContext) _OrgSubscription_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -146993,7 +63934,7 @@ func (ec *executionContext) _Organization_programs(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -147002,98 +63943,26 @@ func (ec *executionContext) _Organization_programs(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_procedures(ctx, field) +func (ec *executionContext) _OrgSubscription_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -147106,7 +63975,7 @@ func (ec *executionContext) _Organization_procedures(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedures(ctx) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -147115,82 +63984,26 @@ func (ec *executionContext) _Organization_procedures(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(string) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_internalPolicies(ctx, field) +func (ec *executionContext) _OrgSubscription_stripeSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) if err != nil { return graphql.Null } @@ -147203,7 +64016,7 @@ func (ec *executionContext) _Organization_internalPolicies(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicies(ctx) + return obj.StripeSubscriptionID, nil }) if err != nil { ec.Error(ctx, err) @@ -147212,80 +64025,26 @@ func (ec *executionContext) _Organization_internalPolicies(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_stripeSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_risks(ctx, field) +func (ec *executionContext) _OrgSubscription_productTier(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_productTier(ctx, field) if err != nil { return graphql.Null } @@ -147298,7 +64057,7 @@ func (ec *executionContext) _Organization_risks(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Risks(ctx) + return obj.ProductTier, nil }) if err != nil { ec.Error(ctx, err) @@ -147307,82 +64066,26 @@ func (ec *executionContext) _Organization_risks(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Risk) + res := resTmp.(string) fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_productTier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_controlObjectives(ctx, field) +func (ec *executionContext) _OrgSubscription_stripeProductTierID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) if err != nil { return graphql.Null } @@ -147395,7 +64098,7 @@ func (ec *executionContext) _Organization_controlObjectives(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectives(ctx) + return obj.StripeProductTierID, nil }) if err != nil { ec.Error(ctx, err) @@ -147404,94 +64107,26 @@ func (ec *executionContext) _Organization_controlObjectives(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.(string) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_stripeProductTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_narratives(ctx, field) +func (ec *executionContext) _OrgSubscription_stripeSubscriptionStatus(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) if err != nil { return graphql.Null } @@ -147504,7 +64139,7 @@ func (ec *executionContext) _Organization_narratives(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Narratives(ctx) + return obj.StripeSubscriptionStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -147513,72 +64148,26 @@ func (ec *executionContext) _Organization_narratives(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Narrative) + res := resTmp.(string) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_stripeSubscriptionStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_controls(ctx, field) +func (ec *executionContext) _OrgSubscription_active(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_active(ctx, field) if err != nil { return graphql.Null } @@ -147591,105 +64180,38 @@ func (ec *executionContext) _Organization_controls(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Controls(ctx) + 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.([]*generated.Control) + res := resTmp.(bool) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_subcontrols(ctx, field) +func (ec *executionContext) _OrgSubscription_stripeCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) if err != nil { return graphql.Null } @@ -147702,7 +64224,7 @@ func (ec *executionContext) _Organization_subcontrols(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subcontrols(ctx) + return obj.StripeCustomerID, nil }) if err != nil { ec.Error(ctx, err) @@ -147711,90 +64233,26 @@ func (ec *executionContext) _Organization_subcontrols(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subcontrol) + res := resTmp.(string) fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_stripeCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Organization_members(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Organization_members(ctx, field) +func (ec *executionContext) _OrgSubscription_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_expiresAt(ctx, field) if err != nil { return graphql.Null } @@ -147807,7 +64265,7 @@ func (ec *executionContext) _Organization_members(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Members(ctx) + return obj.ExpiresAt, nil }) if err != nil { ec.Error(ctx, err) @@ -147816,54 +64274,26 @@ func (ec *executionContext) _Organization_members(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrgMembership) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Organization_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Organization", + Object: "OrgSubscription", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationBulkCreatePayload_organizations(ctx context.Context, field graphql.CollectedField, obj *OrganizationBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationBulkCreatePayload_organizations(ctx, field) +func (ec *executionContext) _OrgSubscription_features(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_features(ctx, field) if err != nil { return graphql.Null } @@ -147876,7 +64306,7 @@ func (ec *executionContext) _OrganizationBulkCreatePayload_organizations(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organizations, nil + return obj.Features, nil }) if err != nil { ec.Error(ctx, err) @@ -147885,16 +64315,57 @@ func (ec *executionContext) _OrganizationBulkCreatePayload_organizations(ctx con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.([]string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscription_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscription", + 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) _OrgSubscription_owner(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscription) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscription_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationBulkCreatePayload_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscription_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationBulkCreatePayload", + Object: "OrgSubscription", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { @@ -148011,8 +64482,8 @@ func (ec *executionContext) fieldContext_OrganizationBulkCreatePayload_organizat return fc, nil } -func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationConnection_edges(ctx, field) +func (ec *executionContext) _OrgSubscriptionConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -148034,32 +64505,32 @@ func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrganizationEdge) + res := resTmp.([]*generated.OrgSubscriptionEdge) fc.Result = res - return ec.marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, field.Selections, res) + return ec.marshalOOrgSubscriptionEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationConnection", + Object: "OrgSubscriptionConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_OrganizationEdge_node(ctx, field) + return ec.fieldContext_OrgSubscriptionEdge_node(ctx, field) case "cursor": - return ec.fieldContext_OrganizationEdge_cursor(ctx, field) + return ec.fieldContext_OrgSubscriptionEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrgSubscriptionConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -148089,9 +64560,9 @@ func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationConnection", + Object: "OrgSubscriptionConnection", Field: field, IsMethod: false, IsResolver: false, @@ -148112,8 +64583,8 @@ func (ec *executionContext) fieldContext_OrganizationConnection_pageInfo(_ conte return fc, nil } -func (ec *executionContext) _OrganizationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationConnection_totalCount(ctx, field) +func (ec *executionContext) _OrgSubscriptionConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -148143,9 +64614,9 @@ func (ec *executionContext) _OrganizationConnection_totalCount(ctx context.Conte return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationConnection", + Object: "OrgSubscriptionConnection", Field: field, IsMethod: false, IsResolver: false, @@ -148156,8 +64627,8 @@ func (ec *executionContext) fieldContext_OrganizationConnection_totalCount(_ con return fc, nil } -func (ec *executionContext) _OrganizationCreatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *OrganizationCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationCreatePayload_organization(ctx, field) +func (ec *executionContext) _OrgSubscriptionEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -148170,146 +64641,73 @@ func (ec *executionContext) _OrganizationCreatePayload_organization(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization, nil + 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.(*generated.Organization) + res := resTmp.(*generated.OrgSubscription) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationCreatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationCreatePayload", + Object: "OrgSubscriptionEdge", 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) + return ec.fieldContext_OrgSubscription_id(ctx, field) case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) + return ec.fieldContext_OrgSubscription_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) + return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) + return ec.fieldContext_OrgSubscription_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) + return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Organization_tags(ctx, field) + return ec.fieldContext_OrgSubscription_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) + return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscription_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscription_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscription_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscription_features(ctx, field) + case "owner": + return ec.fieldContext_OrgSubscription_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrganizationDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OrgSubscriptionEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -148322,7 +64720,7 @@ func (ec *executionContext) _OrganizationDeletePayload_deletedID(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -148334,26 +64732,26 @@ func (ec *executionContext) _OrganizationDeletePayload_deletedID(ctx context.Con } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationDeletePayload", + Object: "OrgSubscriptionEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationEdge_node(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -148366,143 +64764,38 @@ func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + 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.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationEdge", + Object: "OrgSubscriptionHistory", 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationEdge_cursor(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -148515,7 +64808,7 @@ func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -148527,26 +64820,26 @@ func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationEdge", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_id(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -148559,38 +64852,35 @@ func (ec *executionContext) _OrganizationHistory_id(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_historyTime(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -148603,7 +64893,7 @@ func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -148615,26 +64905,26 @@ func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNOrgSubscriptionHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type OrgSubscriptionHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_ref(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -148647,7 +64937,7 @@ func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -148656,26 +64946,26 @@ func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_operation(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -148688,38 +64978,35 @@ func (ec *executionContext) _OrganizationHistory_operation(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + 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.(history.OpType) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationHistoryOpType does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_createdAt(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -148732,7 +65019,7 @@ func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -148741,26 +65028,26 @@ func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -148773,7 +65060,7 @@ func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -148782,26 +65069,26 @@ func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_createdBy(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -148814,7 +65101,7 @@ func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -148823,14 +65110,14 @@ func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -148841,8 +65128,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_createdBy(_ context return fc, nil } -func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -148855,7 +65142,7 @@ func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -148864,26 +65151,26 @@ func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_tags(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -148896,7 +65183,7 @@ func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -148905,14 +65192,14 @@ func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -148923,8 +65210,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_tags(_ context.Cont return fc, nil } -func (ec *executionContext) _OrganizationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -148937,7 +65224,7 @@ func (ec *executionContext) _OrganizationHistory_deletedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -148946,26 +65233,26 @@ func (ec *executionContext) _OrganizationHistory_deletedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_stripeSubscriptionID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionID(ctx, field) if err != nil { return graphql.Null } @@ -148978,7 +65265,7 @@ func (ec *executionContext) _OrganizationHistory_deletedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.StripeSubscriptionID, nil }) if err != nil { ec.Error(ctx, err) @@ -148992,9 +65279,9 @@ func (ec *executionContext) _OrganizationHistory_deletedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeSubscriptionID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -149005,8 +65292,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_deletedBy(_ context return fc, nil } -func (ec *executionContext) _OrganizationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_name(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_productTier(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_productTier(ctx, field) if err != nil { return graphql.Null } @@ -149019,26 +65306,23 @@ func (ec *executionContext) _OrganizationHistory_name(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.ProductTier, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_productTier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -149049,8 +65333,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_name(_ context.Cont return fc, nil } -func (ec *executionContext) _OrganizationHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_displayName(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_stripeProductTierID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeProductTierID(ctx, field) if err != nil { return graphql.Null } @@ -149063,26 +65347,23 @@ func (ec *executionContext) _OrganizationHistory_displayName(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.StripeProductTierID, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeProductTierID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -149093,8 +65374,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_displayName(_ conte return fc, nil } -func (ec *executionContext) _OrganizationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_description(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_stripeSubscriptionStatus(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionStatus(ctx, field) if err != nil { return graphql.Null } @@ -149107,7 +65388,7 @@ func (ec *executionContext) _OrganizationHistory_description(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.StripeSubscriptionStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -149121,9 +65402,9 @@ func (ec *executionContext) _OrganizationHistory_description(ctx context.Context return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeSubscriptionStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -149134,8 +65415,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_description(_ conte return fc, nil } -func (ec *executionContext) _OrganizationHistory_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_active(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_active(ctx, field) if err != nil { return graphql.Null } @@ -149148,23 +65429,26 @@ func (ec *executionContext) _OrganizationHistory_personalOrg(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalOrg, nil + 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.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -149175,8 +65459,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_personalOrg(_ conte return fc, nil } -func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_stripeCustomerID(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_stripeCustomerID(ctx, field) if err != nil { return graphql.Null } @@ -149189,7 +65473,7 @@ func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil + return obj.StripeCustomerID, nil }) if err != nil { ec.Error(ctx, err) @@ -149198,14 +65482,14 @@ func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_stripeCustomerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", Field: field, IsMethod: false, IsResolver: false, @@ -149216,8 +65500,8 @@ func (ec *executionContext) fieldContext_OrganizationHistory_avatarRemoteURL(_ c return fc, nil } -func (ec *executionContext) _OrganizationHistory_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistory_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_expiresAt(ctx, field) if err != nil { return graphql.Null } @@ -149230,38 +65514,76 @@ func (ec *executionContext) _OrganizationHistory_dedicatedDb(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DedicatedDb, nil + 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.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscriptionHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgSubscriptionHistory_features(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistory_features(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Features, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(bool) + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistory_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistory_features(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistory", + Object: "OrgSubscriptionHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -149283,32 +65605,32 @@ func (ec *executionContext) _OrganizationHistoryConnection_edges(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrganizationHistoryEdge) + res := resTmp.([]*generated.OrgSubscriptionHistoryEdge) fc.Result = res - return ec.marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOrgSubscriptionHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryConnection", + Object: "OrgSubscriptionHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) + return ec.fieldContext_OrgSubscriptionHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) + return ec.fieldContext_OrgSubscriptionHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -149338,9 +65660,9 @@ func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context. return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryConnection", + Object: "OrgSubscriptionHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -149361,8 +65683,8 @@ func (ec *executionContext) fieldContext_OrganizationHistoryConnection_pageInfo( return fc, nil } -func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -149392,9 +65714,9 @@ func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx contex return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryConnection", + Object: "OrgSubscriptionHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -149405,8 +65727,8 @@ func (ec *executionContext) fieldContext_OrganizationHistoryConnection_totalCoun return fc, nil } -func (ec *executionContext) _OrganizationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -149428,62 +65750,68 @@ func (ec *executionContext) _OrganizationHistoryEdge_node(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrganizationHistory) + res := resTmp.(*generated.OrgSubscriptionHistory) fc.Result = res - return ec.marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistory(ctx, field.Selections, res) + return ec.marshalOOrgSubscriptionHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryEdge", + Object: "OrgSubscriptionHistoryEdge", 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_OrganizationHistory_id(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_OrganizationHistory_historyTime(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_OrganizationHistory_ref(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_ref(ctx, field) case "operation": - return ec.fieldContext_OrganizationHistory_operation(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_OrganizationHistory_createdAt(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OrganizationHistory_createdBy(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_updatedBy(ctx, field) case "tags": - return ec.fieldContext_OrganizationHistory_tags(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_tags(ctx, field) case "deletedAt": - return ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) - case "name": - return ec.fieldContext_OrganizationHistory_name(ctx, field) - case "displayName": - return ec.fieldContext_OrganizationHistory_displayName(ctx, field) - case "description": - return ec.fieldContext_OrganizationHistory_description(ctx, field) - case "personalOrg": - return ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) + return ec.fieldContext_OrgSubscriptionHistory_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscriptionHistory_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscriptionHistory_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscriptionHistory_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscriptionHistory_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscriptionHistory_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscriptionHistory_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscriptionHistory_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscriptionHistory_features(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _OrgSubscriptionHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrgSubscriptionHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -149513,9 +65841,9 @@ func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrgSubscriptionHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationHistoryEdge", + Object: "OrgSubscriptionHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -149526,8 +65854,8 @@ func (ec *executionContext) fieldContext_OrganizationHistoryEdge_cursor(_ contex return fc, nil } -func (ec *executionContext) _OrganizationSearchResult_organizations(ctx context.Context, field graphql.CollectedField, obj *OrganizationSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) +func (ec *executionContext) _Organization_id(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_id(ctx, field) if err != nil { return graphql.Null } @@ -149540,143 +65868,202 @@ func (ec *executionContext) _OrganizationSearchResult_organizations(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organizations, nil + 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.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSearchResult_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSearchResult", + Object: "Organization", 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_id(ctx, field) +func (ec *executionContext) _Organization_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐ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 Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Organization_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐ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 Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Organization_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Organization_createdBy(_ 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_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_updatedBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UpdatedBy, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Organization_updatedBy(_ 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_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_tags(ctx, field) if err != nil { return graphql.Null } @@ -149689,38 +66076,35 @@ func (ec *executionContext) _OrganizationSetting_id(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_createdAt(ctx, field) +func (ec *executionContext) _Organization_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -149733,7 +66117,7 @@ func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -149747,9 +66131,9 @@ func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -149760,8 +66144,8 @@ func (ec *executionContext) fieldContext_OrganizationSetting_createdAt(_ context return fc, nil } -func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) +func (ec *executionContext) _Organization_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -149774,7 +66158,7 @@ func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -149783,26 +66167,26 @@ func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_createdBy(ctx, field) +func (ec *executionContext) _Organization_name(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_name(ctx, field) if err != nil { return graphql.Null } @@ -149815,23 +66199,26 @@ func (ec *executionContext) _OrganizationSetting_createdBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -149842,8 +66229,8 @@ func (ec *executionContext) fieldContext_OrganizationSetting_createdBy(_ context return fc, nil } -func (ec *executionContext) _OrganizationSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) +func (ec *executionContext) _Organization_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_displayName(ctx, field) if err != nil { return graphql.Null } @@ -149856,23 +66243,26 @@ func (ec *executionContext) _OrganizationSetting_updatedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -149883,8 +66273,8 @@ func (ec *executionContext) fieldContext_OrganizationSetting_updatedBy(_ context return fc, nil } -func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_tags(ctx, field) +func (ec *executionContext) _Organization_description(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_description(ctx, field) if err != nil { return graphql.Null } @@ -149897,7 +66287,7 @@ func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -149906,14 +66296,14 @@ func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -149924,8 +66314,8 @@ func (ec *executionContext) fieldContext_OrganizationSetting_tags(_ context.Cont return fc, nil } -func (ec *executionContext) _OrganizationSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) +func (ec *executionContext) _Organization_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_personalOrg(ctx, field) if err != nil { return graphql.Null } @@ -149938,7 +66328,7 @@ func (ec *executionContext) _OrganizationSetting_deletedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.PersonalOrg, nil }) if err != nil { ec.Error(ctx, err) @@ -149947,26 +66337,26 @@ func (ec *executionContext) _OrganizationSetting_deletedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(bool) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + 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 Time does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) +func (ec *executionContext) _Organization_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_avatarRemoteURL(ctx, field) if err != nil { return graphql.Null } @@ -149979,7 +66369,7 @@ func (ec *executionContext) _OrganizationSetting_deletedBy(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.AvatarRemoteURL, nil }) if err != nil { ec.Error(ctx, err) @@ -149988,14 +66378,14 @@ func (ec *executionContext) _OrganizationSetting_deletedBy(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, IsMethod: false, IsResolver: false, @@ -150006,8 +66396,8 @@ func (ec *executionContext) fieldContext_OrganizationSetting_deletedBy(_ context return fc, nil } -func (ec *executionContext) _OrganizationSetting_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_domains(ctx, field) +func (ec *executionContext) _Organization_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_dedicatedDb(ctx, field) if err != nil { return graphql.Null } @@ -150020,35 +66410,38 @@ func (ec *executionContext) _OrganizationSetting_domains(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Domains, nil + return obj.DedicatedDb, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingContact(ctx, field) +func (ec *executionContext) _Organization_controlCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_controlCreators(ctx, field) if err != nil { return graphql.Null } @@ -150061,7 +66454,7 @@ func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingContact, nil + return obj.ControlCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150070,26 +66463,128 @@ func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_controlCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) +func (ec *executionContext) _Organization_controlObjectiveCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) if err != nil { return graphql.Null } @@ -150102,7 +66597,7 @@ func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingEmail, nil + return obj.ControlObjectiveCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150111,26 +66606,128 @@ func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_controlObjectiveCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) +func (ec *executionContext) _Organization_groupCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_groupCreators(ctx, field) if err != nil { return graphql.Null } @@ -150143,7 +66740,7 @@ func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingPhone, nil + return obj.GroupCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150152,26 +66749,128 @@ func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_groupCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) +func (ec *executionContext) _Organization_internalPolicyCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_internalPolicyCreators(ctx, field) if err != nil { return graphql.Null } @@ -150184,7 +66883,7 @@ func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingAddress, nil + return obj.InternalPolicyCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150193,26 +66892,128 @@ func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_internalPolicyCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) +func (ec *executionContext) _Organization_narrativeCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_narrativeCreators(ctx, field) if err != nil { return graphql.Null } @@ -150225,7 +67026,7 @@ func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TaxIdentifier, nil + return obj.NarrativeCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150234,26 +67035,128 @@ func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_narrativeCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) +func (ec *executionContext) _Organization_procedureCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_procedureCreators(ctx, field) if err != nil { return graphql.Null } @@ -150266,7 +67169,7 @@ func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GeoLocation, nil + return obj.ProcedureCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150275,26 +67178,128 @@ func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(enums.Region) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_procedureCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationSettingRegion does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_organizationID(ctx, field) +func (ec *executionContext) _Organization_programCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_programCreators(ctx, field) if err != nil { return graphql.Null } @@ -150307,7 +67312,7 @@ func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.ProgramCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150316,26 +67321,271 @@ func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_programCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _Organization_riskCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_riskCreators(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.RiskCreators(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Organization_riskCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Organization", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_stripeID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_stripeID(ctx, field) +func (ec *executionContext) _Organization_templateCreators(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_templateCreators(ctx, field) if err != nil { return graphql.Null } @@ -150348,7 +67598,7 @@ func (ec *executionContext) _OrganizationSetting_stripeID(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeID, nil + return obj.TemplateCreators(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150357,26 +67607,128 @@ func (ec *executionContext) _OrganizationSetting_stripeID(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_stripeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_templateCreators(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSetting_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_organization(ctx, field) +func (ec *executionContext) _Organization_parent(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_parent(ctx, field) if err != nil { return graphql.Null } @@ -150389,7 +67741,7 @@ func (ec *executionContext) _OrganizationSetting_organization(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + return obj.Parent(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150403,9 +67755,9 @@ func (ec *executionContext) _OrganizationSetting_organization(ctx context.Contex return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_parent(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, IsMethod: true, IsResolver: false, @@ -150524,8 +67876,8 @@ func (ec *executionContext) fieldContext_OrganizationSetting_organization(_ cont return fc, nil } -func (ec *executionContext) _OrganizationSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSetting_files(ctx, field) +func (ec *executionContext) _Organization_children(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_children(ctx, field) if err != nil { return graphql.Null } @@ -150538,101 +67890,57 @@ func (ec *executionContext) _OrganizationSetting_files(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.Children(ctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(*generated.OrganizationConnection) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_children(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSetting", + Object: "Organization", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) + case "edges": + return ec.fieldContext_OrganizationConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + 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_Organization_children_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _OrganizationSettingBulkCreatePayload_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) +func (ec *executionContext) _Organization_groups(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_groups(ctx, field) if err != nil { return graphql.Null } @@ -150645,7 +67953,7 @@ func (ec *executionContext) _OrganizationSettingBulkCreatePayload_organizationSe }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationSettings, nil + return obj.Groups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150654,66 +67962,128 @@ func (ec *executionContext) _OrganizationSettingBulkCreatePayload_organizationSe if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrganizationSetting) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingBulkCreatePayload", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) +func (ec *executionContext) _Organization_templates(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_templates(ctx, field) if err != nil { return graphql.Null } @@ -150726,7 +68096,7 @@ func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Templates(ctx) }) if err != nil { ec.Error(ctx, err) @@ -150735,32 +68105,62 @@ func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrganizationSettingEdge) + res := resTmp.([]*generated.Template) fc.Result = res - return ec.marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, field.Selections, res) + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_OrganizationSettingEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) +func (ec *executionContext) _Organization_integrations(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_integrations(ctx, field) if err != nil { return graphql.Null } @@ -150773,92 +68173,67 @@ func (ec *executionContext) _OrganizationSettingConnection_pageInfo(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Integrations(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.Integration) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingConnection_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil - }) - if err != nil { - ec.Error(ctx, 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_OrganizationSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingConnection", - 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 nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingCreatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) +func (ec *executionContext) _Organization_setting(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_setting(ctx, field) if err != nil { return graphql.Null } @@ -150871,28 +68246,25 @@ func (ec *executionContext) _OrganizationSettingCreatePayload_organizationSettin }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationSetting, nil + return obj.Setting(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) + return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingCreatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingCreatePayload", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { @@ -150941,52 +68313,8 @@ func (ec *executionContext) fieldContext_OrganizationSettingCreatePayload_organi return fc, nil } -func (ec *executionContext) _OrganizationSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingDeletePayload", - 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) _OrganizationSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingEdge_node(ctx, field) +func (ec *executionContext) _Organization_documentData(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_documentData(ctx, field) if err != nil { return graphql.Null } @@ -150999,7 +68327,7 @@ func (ec *executionContext) _OrganizationSettingEdge_node(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.DocumentData(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151008,154 +68336,58 @@ func (ec *executionContext) _OrganizationSettingEdge_node(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrganizationSetting) + res := resTmp.([]*generated.DocumentData) fc.Result = res - return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingEdge", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) + return ec.fieldContext_DocumentData_id(ctx, field) case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + return ec.fieldContext_DocumentData_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + return ec.fieldContext_DocumentData_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + return ec.fieldContext_DocumentData_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + return ec.fieldContext_DocumentData_updatedBy(ctx, field) case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) + return ec.fieldContext_DocumentData_tags(ctx, field) case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + return ec.fieldContext_DocumentData_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + return ec.fieldContext_DocumentData_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingEdge_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) (interface{}, 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.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _OrganizationSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_OrganizationSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", - 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 nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) +func (ec *executionContext) _Organization_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_orgSubscriptions(ctx, field) if err != nil { return graphql.Null } @@ -151168,38 +68400,73 @@ func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.OrgSubscriptions(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.OrgSubscription) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_orgSubscriptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrgSubscription_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgSubscription_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgSubscription_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrgSubscription_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscription_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscription_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscription_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscription_features(ctx, field) + case "owner": + return ec.fieldContext_OrgSubscription_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) +func (ec *executionContext) _Organization_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -151212,7 +68479,7 @@ func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.PersonalAccessTokens(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151221,26 +68488,62 @@ func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) +func (ec *executionContext) _Organization_apiTokens(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_apiTokens(ctx, field) if err != nil { return graphql.Null } @@ -151253,38 +68556,69 @@ func (ec *executionContext) _OrganizationSettingHistory_operation(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.APITokens(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.([]*generated.APIToken) fc.Result = res - return ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationSettingHistoryOpType does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) +func (ec *executionContext) _Organization_users(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_users(ctx, field) if err != nil { return graphql.Null } @@ -151297,7 +68631,7 @@ func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Users(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151306,26 +68640,100 @@ func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) +func (ec *executionContext) _Organization_invites(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_invites(ctx, field) if err != nil { return graphql.Null } @@ -151338,7 +68746,7 @@ func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Invites(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151347,26 +68755,60 @@ func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Invite) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) +func (ec *executionContext) _Organization_subscribers(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_subscribers(ctx, field) if err != nil { return graphql.Null } @@ -151379,7 +68821,7 @@ func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Subscribers(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151388,26 +68830,60 @@ func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Subscriber) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) +func (ec *executionContext) _Organization_events(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_events(ctx, field) if err != nil { return graphql.Null } @@ -151420,7 +68896,7 @@ func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151429,26 +68905,70 @@ func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) +func (ec *executionContext) _Organization_secrets(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_secrets(ctx, field) if err != nil { return graphql.Null } @@ -151461,7 +68981,7 @@ func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Secrets(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151470,26 +68990,56 @@ func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.Hush) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_secrets(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) +func (ec *executionContext) _Organization_files(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_files(ctx, field) if err != nil { return graphql.Null } @@ -151502,7 +69052,7 @@ func (ec *executionContext) _OrganizationSettingHistory_deletedAt(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151511,26 +69061,92 @@ func (ec *executionContext) _OrganizationSettingHistory_deletedAt(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) +func (ec *executionContext) _Organization_entities(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_entities(ctx, field) if err != nil { return graphql.Null } @@ -151543,7 +69159,7 @@ func (ec *executionContext) _OrganizationSettingHistory_deletedBy(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Entities(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151552,26 +69168,70 @@ func (ec *executionContext) _OrganizationSettingHistory_deletedBy(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Entity) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) +func (ec *executionContext) _Organization_entityTypes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_entityTypes(ctx, field) if err != nil { return graphql.Null } @@ -151584,7 +69244,7 @@ func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Domains, nil + return obj.EntityTypes(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151593,26 +69253,52 @@ func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.([]*generated.EntityType) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) +func (ec *executionContext) _Organization_contacts(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_contacts(ctx, field) if err != nil { return graphql.Null } @@ -151625,7 +69311,7 @@ func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingContact, nil + return obj.Contacts(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151634,26 +69320,66 @@ func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Contact) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) +func (ec *executionContext) _Organization_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_notes(ctx, field) if err != nil { return graphql.Null } @@ -151666,7 +69392,7 @@ func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingEmail, nil + return obj.Notes(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151675,26 +69401,56 @@ func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Note) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Note_id(ctx, field) + case "createdAt": + return ec.fieldContext_Note_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Note_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Note_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Note_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Note_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + case "program": + return ec.fieldContext_Note_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) +func (ec *executionContext) _Organization_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_tasks(ctx, field) if err != nil { return graphql.Null } @@ -151707,7 +69463,7 @@ func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingPhone, nil + return obj.Tasks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151716,26 +69472,76 @@ func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Task_id(ctx, field) + case "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) +func (ec *executionContext) _Organization_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_programs(ctx, field) if err != nil { return graphql.Null } @@ -151748,7 +69554,7 @@ func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BillingAddress, nil + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151757,26 +69563,98 @@ func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) +func (ec *executionContext) _Organization_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_procedures(ctx, field) if err != nil { return graphql.Null } @@ -151789,7 +69667,7 @@ func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TaxIdentifier, nil + return obj.Procedures(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151798,26 +69676,82 @@ func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) +func (ec *executionContext) _Organization_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_internalPolicies(ctx, field) if err != nil { return graphql.Null } @@ -151830,7 +69764,7 @@ func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GeoLocation, nil + return obj.InternalPolicies(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151839,26 +69773,80 @@ func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(enums.Region) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type OrganizationSettingHistoryRegion does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) +func (ec *executionContext) _Organization_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_risks(ctx, field) if err != nil { return graphql.Null } @@ -151871,7 +69859,7 @@ func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationID, nil + return obj.Risks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151880,26 +69868,82 @@ func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistory_stripeID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistory_stripeID(ctx, field) +func (ec *executionContext) _Organization_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_controlObjectives(ctx, field) if err != nil { return graphql.Null } @@ -151912,7 +69956,7 @@ func (ec *executionContext) _OrganizationSettingHistory_stripeID(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StripeID, nil + return obj.ControlObjectives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151921,26 +69965,94 @@ func (ec *executionContext) _OrganizationSettingHistory_stripeID(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistory_stripeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistory", + Object: "Organization", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Organization_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_narratives(ctx, field) if err != nil { return graphql.Null } @@ -151953,7 +70065,7 @@ func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Narratives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -151962,32 +70074,72 @@ func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.OrganizationSettingHistoryEdge) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Organization_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_controls(ctx, field) if err != nil { return graphql.Null } @@ -152000,48 +70152,105 @@ func (ec *executionContext) _OrganizationSettingHistoryConnection_pageInfo(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Controls(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Organization_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -152054,38 +70263,99 @@ func (ec *executionContext) _OrganizationSettingHistoryConnection_totalCount(ctx }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryConnection", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) +func (ec *executionContext) _Organization_members(ctx context.Context, field graphql.CollectedField, obj *generated.Organization) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Organization_members(ctx, field) if err != nil { return graphql.Null } @@ -152098,7 +70368,7 @@ func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Members(ctx) }) if err != nil { ec.Error(ctx, err) @@ -152107,68 +70377,54 @@ func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.OrganizationSettingHistory) + res := resTmp.([]*generated.OrgMembership) fc.Result = res - return ec.marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistory(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Organization_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryEdge", + Object: "Organization", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_OrganizationSettingHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) + return ec.fieldContext_OrgMembership_id(ctx, field) case "createdAt": - return ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) + return ec.fieldContext_OrgMembership_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) + return ec.fieldContext_OrgMembership_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) case "organizationID": - return ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSettingHistory_stripeID(ctx, field) + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _OrganizationConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -152181,38 +70437,41 @@ func (ec *executionContext) _OrganizationSettingHistoryEdge_cursor(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + 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.(entgql.Cursor[string]) + res := resTmp.([]*generated.OrganizationEdge) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOOrganizationEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingHistoryEdge", + Object: "OrganizationConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_OrganizationEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrganizationEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingSearchResult_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) +func (ec *executionContext) _OrganizationConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -152225,75 +70484,48 @@ func (ec *executionContext) _OrganizationSettingSearchResult_organizationSetting }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationSettings, nil + 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.([]*generated.OrganizationSetting) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingSearchResult_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingSearchResult", + Object: "OrganizationConnection", 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_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + 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 OrganizationSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _OrganizationSettingUpdatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *OrganizationSettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) +func (ec *executionContext) _OrganizationConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -152306,7 +70538,7 @@ func (ec *executionContext) _OrganizationSettingUpdatePayload_organizationSettin }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrganizationSetting, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -152318,66 +70550,26 @@ func (ec *executionContext) _OrganizationSettingUpdatePayload_organizationSettin } return graphql.Null } - res := resTmp.(*generated.OrganizationSetting) + res := resTmp.(int) fc.Result = res - return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationSettingUpdatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationSettingUpdatePayload", + Object: "OrganizationConnection", 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_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _OrganizationUpdatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *OrganizationUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_OrganizationUpdatePayload_organization(ctx, field) +func (ec *executionContext) _OrganizationEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -152390,26 +70582,23 @@ func (ec *executionContext) _OrganizationUpdatePayload_organization(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization, nil + 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.(*generated.Organization) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_OrganizationUpdatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "OrganizationUpdatePayload", + Object: "OrganizationEdge", Field: field, IsMethod: false, IsResolver: false, @@ -152528,8 +70717,8 @@ func (ec *executionContext) fieldContext_OrganizationUpdatePayload_organization( return fc, nil } -func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field) +func (ec *executionContext) _OrganizationEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -152542,7 +70731,7 @@ func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HasNextPage, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -152554,26 +70743,26 @@ func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PageInfo", + 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 Boolean does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) +func (ec *executionContext) _OrganizationHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -152586,7 +70775,7 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HasPreviousPage, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -152598,26 +70787,26 @@ func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PageInfo", + Object: "OrganizationHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field) +func (ec *executionContext) _OrganizationHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -152630,35 +70819,38 @@ func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StartCursor, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*entgql.Cursor[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PageInfo", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field) +func (ec *executionContext) _OrganizationHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -152671,7 +70863,7 @@ func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EndCursor, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -152680,26 +70872,26 @@ func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PageInfo", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_id(ctx, field) +func (ec *executionContext) _OrganizationHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -152712,7 +70904,7 @@ func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -152724,26 +70916,26 @@ func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field g } return graphql.Null } - res := resTmp.(string) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNOrganizationHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", 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 nil, errors.New("field of type OrganizationHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) +func (ec *executionContext) _OrganizationHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -152770,9 +70962,9 @@ func (ec *executionContext) _PersonalAccessToken_createdAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -152783,8 +70975,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_createdAt(_ context return fc, nil } -func (ec *executionContext) _PersonalAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) +func (ec *executionContext) _OrganizationHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -152811,9 +71003,9 @@ func (ec *executionContext) _PersonalAccessToken_updatedAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -152824,8 +71016,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_updatedAt(_ context return fc, nil } -func (ec *executionContext) _PersonalAccessToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) +func (ec *executionContext) _OrganizationHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -152852,9 +71044,9 @@ func (ec *executionContext) _PersonalAccessToken_createdBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -152865,8 +71057,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_createdBy(_ context return fc, nil } -func (ec *executionContext) _PersonalAccessToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) +func (ec *executionContext) _OrganizationHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -152893,9 +71085,9 @@ func (ec *executionContext) _PersonalAccessToken_updatedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -152906,8 +71098,49 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_updatedBy(_ context return fc, nil } -func (ec *executionContext) _PersonalAccessToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) +func (ec *executionContext) _OrganizationHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_tags(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tags, 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_OrganizationHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationHistory", + 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) _OrganizationHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -152934,9 +71167,9 @@ func (ec *executionContext) _PersonalAccessToken_deletedAt(ctx context.Context, return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -152947,8 +71180,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_deletedAt(_ context return fc, nil } -func (ec *executionContext) _PersonalAccessToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) +func (ec *executionContext) _OrganizationHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -152975,9 +71208,9 @@ func (ec *executionContext) _PersonalAccessToken_deletedBy(ctx context.Context, return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -152988,8 +71221,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_deletedBy(_ context return fc, nil } -func (ec *executionContext) _PersonalAccessToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_tags(ctx, field) +func (ec *executionContext) _OrganizationHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -153002,23 +71235,26 @@ func (ec *executionContext) _PersonalAccessToken_tags(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -153029,8 +71265,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_tags(_ context.Cont return fc, nil } -func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_name(ctx, field) +func (ec *executionContext) _OrganizationHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_displayName(ctx, field) if err != nil { return graphql.Null } @@ -153043,7 +71279,7 @@ func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -153060,9 +71296,9 @@ func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -153073,8 +71309,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_name(_ context.Cont return fc, nil } -func (ec *executionContext) _PersonalAccessToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_token(ctx, field) +func (ec *executionContext) _OrganizationHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -153087,26 +71323,23 @@ func (ec *executionContext) _PersonalAccessToken_token(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Token, nil + 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -153117,8 +71350,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_token(_ context.Con return fc, nil } -func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) +func (ec *executionContext) _OrganizationHistory_personalOrg(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) if err != nil { return graphql.Null } @@ -153131,7 +71364,7 @@ func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ExpiresAt, nil + return obj.PersonalOrg, nil }) if err != nil { ec.Error(ctx, err) @@ -153140,26 +71373,26 @@ func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(bool) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_personalOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_description(ctx, field) +func (ec *executionContext) _OrganizationHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) if err != nil { return graphql.Null } @@ -153172,7 +71405,7 @@ func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.AvatarRemoteURL, nil }) if err != nil { ec.Error(ctx, err) @@ -153186,9 +71419,9 @@ func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", Field: field, IsMethod: false, IsResolver: false, @@ -153199,8 +71432,8 @@ func (ec *executionContext) fieldContext_PersonalAccessToken_description(_ conte return fc, nil } -func (ec *executionContext) _PersonalAccessToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_scopes(ctx, field) +func (ec *executionContext) _OrganizationHistory_dedicatedDb(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) if err != nil { return graphql.Null } @@ -153213,35 +71446,38 @@ func (ec *executionContext) _PersonalAccessToken_scopes(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Scopes, nil + return obj.DedicatedDb, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistory_dedicatedDb(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistory", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) +func (ec *executionContext) _OrganizationHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -153254,7 +71490,7 @@ func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastUsedAt, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -153263,26 +71499,32 @@ func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.([]*generated.OrganizationHistoryEdge) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrganizationHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_OrganizationHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_owner(ctx, field) +func (ec *executionContext) _OrganizationHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -153295,7 +71537,7 @@ func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -153307,100 +71549,36 @@ func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistoryConnection", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + 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 User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_organizations(ctx, field) +func (ec *executionContext) _OrganizationHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -153413,143 +71591,115 @@ func (ec *executionContext) _PersonalAccessToken_organizations(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organizations(ctx) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(int) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistoryConnection", Field: field, - IsMethod: true, + 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) _OrganizationHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryEdge_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.(*generated.OrganizationHistory) + fc.Result = res + return ec.marshalOOrganizationHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistory(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationHistoryEdge", + 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) + return ec.fieldContext_OrganizationHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_OrganizationHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_OrganizationHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_OrganizationHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) + return ec.fieldContext_OrganizationHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) + return ec.fieldContext_OrganizationHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) + return ec.fieldContext_OrganizationHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) + return ec.fieldContext_OrganizationHistory_updatedBy(ctx, field) case "tags": - return ec.fieldContext_Organization_tags(ctx, field) + return ec.fieldContext_OrganizationHistory_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) + return ec.fieldContext_OrganizationHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) + return ec.fieldContext_OrganizationHistory_deletedBy(ctx, field) case "name": - return ec.fieldContext_Organization_name(ctx, field) + return ec.fieldContext_OrganizationHistory_name(ctx, field) case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) + return ec.fieldContext_OrganizationHistory_displayName(ctx, field) case "description": - return ec.fieldContext_Organization_description(ctx, field) + return ec.fieldContext_OrganizationHistory_description(ctx, field) case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_OrganizationHistory_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_OrganizationHistory_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_OrganizationHistory_dedicatedDb(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessToken_events(ctx, field) +func (ec *executionContext) _OrganizationHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -153562,79 +71712,38 @@ func (ec *executionContext) _PersonalAccessToken_events(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + 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.([]*generated.Event) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessToken_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessToken", + Object: "OrganizationHistoryEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) +func (ec *executionContext) _OrganizationSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_id(ctx, field) if err != nil { return graphql.Null } @@ -153647,71 +71756,38 @@ func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload_personalAccess }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens, nil + 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.([]*generated.PersonalAccessToken) + res := resTmp.(string) fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenBulkCreatePayload", + Object: "OrganizationSetting", 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_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) +func (ec *executionContext) _OrganizationSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -153724,7 +71800,7 @@ func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -153733,32 +71809,26 @@ func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.PersonalAccessTokenEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenConnection", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrganizationSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -153771,48 +71841,35 @@ func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + 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.(entgql.PageInfo[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenConnection", + Object: "OrganizationSetting", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) +func (ec *executionContext) _OrganizationSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -153825,38 +71882,35 @@ func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenConnection", + Object: "OrganizationSetting", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenCreatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) +func (ec *executionContext) _OrganizationSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -153869,74 +71923,35 @@ func (ec *executionContext) _PersonalAccessTokenCreatePayload_personalAccessToke }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessToken, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.PersonalAccessToken) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenCreatePayload", + Object: "OrganizationSetting", 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_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OrganizationSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_tags(ctx, field) if err != nil { return graphql.Null } @@ -153949,38 +71964,35 @@ func (ec *executionContext) _PersonalAccessTokenDeletePayload_deletedID(ctx cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenDeletePayload", + Object: "OrganizationSetting", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) +func (ec *executionContext) _OrganizationSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -153993,7 +72005,7 @@ func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -154002,62 +72014,26 @@ func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.PersonalAccessToken) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenEdge", + Object: "OrganizationSetting", 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_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) +func (ec *executionContext) _OrganizationSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -154070,38 +72046,35 @@ func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenEdge", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenSearchResult_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) +func (ec *executionContext) _OrganizationSetting_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_domains(ctx, field) if err != nil { return graphql.Null } @@ -154114,7 +72087,7 @@ func (ec *executionContext) _PersonalAccessTokenSearchResult_personalAccessToken }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens, nil + return obj.Domains, nil }) if err != nil { ec.Error(ctx, err) @@ -154123,62 +72096,26 @@ func (ec *executionContext) _PersonalAccessTokenSearchResult_personalAccessToken if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.PersonalAccessToken) + res := resTmp.([]string) fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenSearchResult", + Object: "OrganizationSetting", 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_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _PersonalAccessTokenUpdatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *PersonalAccessTokenUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingContact(ctx, field) if err != nil { return graphql.Null } @@ -154191,74 +72128,35 @@ func (ec *executionContext) _PersonalAccessTokenUpdatePayload_personalAccessToke }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessToken, nil + return obj.BillingContact, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.PersonalAccessToken) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "PersonalAccessTokenUpdatePayload", + Object: "OrganizationSetting", 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_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_id(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_id(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) if err != nil { return graphql.Null } @@ -154271,38 +72169,35 @@ func (ec *executionContext) _Procedure_id(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.BillingEmail, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_createdAt(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) if err != nil { return graphql.Null } @@ -154315,7 +72210,7 @@ func (ec *executionContext) _Procedure_createdAt(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.BillingPhone, nil }) if err != nil { ec.Error(ctx, err) @@ -154324,26 +72219,26 @@ func (ec *executionContext) _Procedure_createdAt(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_updatedAt(ctx, field) +func (ec *executionContext) _OrganizationSetting_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) if err != nil { return graphql.Null } @@ -154356,7 +72251,7 @@ func (ec *executionContext) _Procedure_updatedAt(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.BillingAddress, nil }) if err != nil { ec.Error(ctx, err) @@ -154365,26 +72260,26 @@ func (ec *executionContext) _Procedure_updatedAt(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_createdBy(ctx, field) +func (ec *executionContext) _OrganizationSetting_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -154397,7 +72292,7 @@ func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.TaxIdentifier, nil }) if err != nil { ec.Error(ctx, err) @@ -154411,9 +72306,9 @@ func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field grap return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -154424,8 +72319,8 @@ func (ec *executionContext) fieldContext_Procedure_createdBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Procedure_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_updatedBy(ctx, field) +func (ec *executionContext) _OrganizationSetting_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) if err != nil { return graphql.Null } @@ -154438,7 +72333,7 @@ func (ec *executionContext) _Procedure_updatedBy(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.GeoLocation, nil }) if err != nil { ec.Error(ctx, err) @@ -154447,26 +72342,26 @@ func (ec *executionContext) _Procedure_updatedBy(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.Region) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", 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 nil, errors.New("field of type OrganizationSettingRegion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_deletedAt(ctx, field) +func (ec *executionContext) _OrganizationSetting_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -154479,7 +72374,7 @@ func (ec *executionContext) _Procedure_deletedAt(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, err) @@ -154488,26 +72383,26 @@ func (ec *executionContext) _Procedure_deletedAt(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_deletedBy(ctx, field) +func (ec *executionContext) _OrganizationSetting_stripeID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_stripeID(ctx, field) if err != nil { return graphql.Null } @@ -154520,7 +72415,7 @@ func (ec *executionContext) _Procedure_deletedBy(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.StripeID, nil }) if err != nil { ec.Error(ctx, err) @@ -154534,9 +72429,9 @@ func (ec *executionContext) _Procedure_deletedBy(ctx context.Context, field grap return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_stripeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", Field: field, IsMethod: false, IsResolver: false, @@ -154547,8 +72442,8 @@ func (ec *executionContext) fieldContext_Procedure_deletedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Procedure_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_tags(ctx, field) +func (ec *executionContext) _OrganizationSetting_organization(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_organization(ctx, field) if err != nil { return graphql.Null } @@ -154561,7 +72456,7 @@ func (ec *executionContext) _Procedure_tags(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) @@ -154570,26 +72465,288 @@ func (ec *executionContext) _Procedure_tags(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSetting_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSetting", + Field: field, + IsMethod: true, + 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 "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSetting_files(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Files(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSetting", + Field: field, + IsMethod: true, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingConnection_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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.([]*generated.OrganizationSettingEdge) + fc.Result = res + return ec.marshalOOrganizationSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingEdge(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_OrganizationSettingEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Procedure_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_ownerID(ctx, field) +func (ec *executionContext) _OrganizationSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -154602,35 +72759,48 @@ func (ec *executionContext) _Procedure_ownerID(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingConnection", 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") + 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) _Procedure_name(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_name(ctx, field) +func (ec *executionContext) _OrganizationSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -154643,7 +72813,7 @@ func (ec *executionContext) _Procedure_name(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -154655,26 +72825,26 @@ func (ec *executionContext) _Procedure_name(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_description(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_description(ctx, field) +func (ec *executionContext) _OrganizationSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -154687,7 +72857,7 @@ func (ec *executionContext) _Procedure_description(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -154696,26 +72866,66 @@ func (ec *executionContext) _Procedure_description(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _Procedure_status(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_status(ctx, field) +func (ec *executionContext) _OrganizationSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -154728,35 +72938,38 @@ func (ec *executionContext) _Procedure_status(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_procedureType(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_procedureType(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -154769,35 +72982,38 @@ func (ec *executionContext) _Procedure_procedureType(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProcedureType, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_procedureType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_version(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_version(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -154810,35 +73026,38 @@ func (ec *executionContext) _Procedure_version(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_purposeAndScope(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -154851,7 +73070,7 @@ func (ec *executionContext) _Procedure_purposeAndScope(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PurposeAndScope, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -154865,9 +73084,9 @@ func (ec *executionContext) _Procedure_purposeAndScope(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -154878,8 +73097,8 @@ func (ec *executionContext) fieldContext_Procedure_purposeAndScope(_ context.Con return fc, nil } -func (ec *executionContext) _Procedure_background(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_background(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -154892,35 +73111,38 @@ func (ec *executionContext) _Procedure_background(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Background, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganizationSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", 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 nil, errors.New("field of type OrganizationSettingHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_satisfies(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -154933,7 +73155,7 @@ func (ec *executionContext) _Procedure_satisfies(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Satisfies, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -154942,26 +73164,26 @@ func (ec *executionContext) _Procedure_satisfies(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_details(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_details(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -154974,7 +73196,7 @@ func (ec *executionContext) _Procedure_details(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -154983,26 +73205,26 @@ func (ec *executionContext) _Procedure_details(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_owner(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -155015,7 +73237,7 @@ func (ec *executionContext) _Procedure_owner(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -155024,134 +73246,26 @@ func (ec *executionContext) _Procedure_owner(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_blockedGroups(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -155164,7 +73278,7 @@ func (ec *executionContext) _Procedure_blockedGroups(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BlockedGroups(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -155173,128 +73287,26 @@ func (ec *executionContext) _Procedure_blockedGroups(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_editors(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -155307,7 +73319,7 @@ func (ec *executionContext) _Procedure_editors(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Editors(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -155316,128 +73328,26 @@ func (ec *executionContext) _Procedure_editors(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.([]string) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_controls(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -155450,7 +73360,7 @@ func (ec *executionContext) _Procedure_controls(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Controls(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -155459,96 +73369,26 @@ func (ec *executionContext) _Procedure_controls(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Control) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_internalPolicies(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -155561,7 +73401,7 @@ func (ec *executionContext) _Procedure_internalPolicies(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicies(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -155570,80 +73410,26 @@ func (ec *executionContext) _Procedure_internalPolicies(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.(string) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_narratives(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_domains(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) if err != nil { return graphql.Null } @@ -155656,7 +73442,7 @@ func (ec *executionContext) _Procedure_narratives(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Narratives(ctx) + return obj.Domains, nil }) if err != nil { ec.Error(ctx, err) @@ -155665,72 +73451,26 @@ func (ec *executionContext) _Procedure_narratives(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Narrative) + res := resTmp.([]string) fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_domains(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_risks(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_billingContact(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) if err != nil { return graphql.Null } @@ -155743,7 +73483,7 @@ func (ec *executionContext) _Procedure_risks(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Risks(ctx) + return obj.BillingContact, nil }) if err != nil { ec.Error(ctx, err) @@ -155752,82 +73492,26 @@ func (ec *executionContext) _Procedure_risks(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Risk) + res := resTmp.(string) fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingContact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_tasks(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_billingEmail(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) if err != nil { return graphql.Null } @@ -155840,7 +73524,7 @@ func (ec *executionContext) _Procedure_tasks(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tasks(ctx) + return obj.BillingEmail, nil }) if err != nil { ec.Error(ctx, err) @@ -155849,76 +73533,26 @@ func (ec *executionContext) _Procedure_tasks(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Task) + res := resTmp.(string) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Procedure_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Procedure_programs(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_billingPhone(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) if err != nil { return graphql.Null } @@ -155931,7 +73565,7 @@ func (ec *executionContext) _Procedure_programs(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) + return obj.BillingPhone, nil }) if err != nil { ec.Error(ctx, err) @@ -155940,98 +73574,26 @@ func (ec *executionContext) _Procedure_programs(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Procedure_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Procedure", + Object: "OrganizationSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureBulkCreatePayload_procedures(ctx context.Context, field graphql.CollectedField, obj *ProcedureBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_billingAddress(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) if err != nil { return graphql.Null } @@ -156044,7 +73606,7 @@ func (ec *executionContext) _ProcedureBulkCreatePayload_procedures(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedures, nil + return obj.BillingAddress, nil }) if err != nil { ec.Error(ctx, err) @@ -156053,82 +73615,26 @@ func (ec *executionContext) _ProcedureBulkCreatePayload_procedures(ctx context.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(string) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureBulkCreatePayload_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_billingAddress(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureBulkCreatePayload", + Object: "OrganizationSettingHistory", 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_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureConnection_edges(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_taxIdentifier(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) if err != nil { return graphql.Null } @@ -156141,7 +73647,7 @@ func (ec *executionContext) _ProcedureConnection_edges(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.TaxIdentifier, nil }) if err != nil { ec.Error(ctx, err) @@ -156150,32 +73656,26 @@ func (ec *executionContext) _ProcedureConnection_edges(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ProcedureEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOProcedureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_taxIdentifier(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureConnection", + Object: "OrganizationSettingHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ProcedureEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ProcedureEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_geoLocation(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) if err != nil { return graphql.Null } @@ -156188,48 +73688,35 @@ func (ec *executionContext) _ProcedureConnection_pageInfo(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.GeoLocation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(enums.Region) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_geoLocation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureConnection", + Object: "OrganizationSettingHistory", 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 nil, errors.New("field of type OrganizationSettingHistoryRegion does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureConnection_totalCount(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_organizationID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) if err != nil { return graphql.Null } @@ -156242,38 +73729,35 @@ func (ec *executionContext) _ProcedureConnection_totalCount(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.OrganizationID, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_organizationID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureConnection", + Object: "OrganizationSettingHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureCreatePayload_procedure(ctx context.Context, field graphql.CollectedField, obj *ProcedureCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureCreatePayload_procedure(ctx, field) +func (ec *executionContext) _OrganizationSettingHistory_stripeID(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistory_stripeID(ctx, field) if err != nil { return graphql.Null } @@ -156286,94 +73770,35 @@ func (ec *executionContext) _ProcedureCreatePayload_procedure(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedure, nil + return obj.StripeID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Procedure) + res := resTmp.(string) fc.Result = res - return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureCreatePayload_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistory_stripeID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureCreatePayload", + Object: "OrganizationSettingHistory", 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_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ProcedureDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -156386,38 +73811,41 @@ func (ec *executionContext) _ProcedureDeletePayload_deletedID(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + 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.(string) + res := resTmp.([]*generated.OrganizationSettingHistoryEdge) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureDeletePayload", + Object: "OrganizationSettingHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureEdge_node(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -156430,91 +73858,48 @@ func (ec *executionContext) _ProcedureEdge_node(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + 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.(*generated.Procedure) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureEdge", + Object: "OrganizationSettingHistoryConnection", 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_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) + 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 Procedure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureEdge_cursor(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -156527,7 +73912,7 @@ func (ec *executionContext) _ProcedureEdge_cursor(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -156539,26 +73924,26 @@ func (ec *executionContext) _ProcedureEdge_cursor(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(int) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureEdge", + Object: "OrganizationSettingHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_id(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -156571,38 +73956,77 @@ func (ec *executionContext) _ProcedureHistory_id(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + 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.(string) + res := resTmp.(*generated.OrganizationSettingHistory) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "OrganizationSettingHistoryEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSettingHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_OrganizationSettingHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_OrganizationSettingHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_OrganizationSettingHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSettingHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSettingHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSettingHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSettingHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSettingHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSettingHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSettingHistory_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSettingHistory_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSettingHistory_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSettingHistory_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSettingHistory_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSettingHistory_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSettingHistory_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSettingHistory_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSettingHistory_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSettingHistory_stripeID(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_historyTime(ctx, field) +func (ec *executionContext) _OrganizationSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.OrganizationSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -156615,7 +74039,7 @@ func (ec *executionContext) _ProcedureHistory_historyTime(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -156627,26 +74051,26 @@ func (ec *executionContext) _ProcedureHistory_historyTime(ctx context.Context, f } return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_OrganizationSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "OrganizationSettingHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_ref(ctx, field) +func (ec *executionContext) _PageInfo_hasNextPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_hasNextPage(ctx, field) if err != nil { return graphql.Null } @@ -156659,35 +74083,38 @@ func (ec *executionContext) _ProcedureHistory_ref(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + 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.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_hasNextPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + 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 String does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_operation(ctx, field) +func (ec *executionContext) _PageInfo_hasPreviousPage(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_hasPreviousPage(ctx, field) if err != nil { return graphql.Null } @@ -156700,7 +74127,7 @@ func (ec *executionContext) _ProcedureHistory_operation(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.HasPreviousPage, nil }) if err != nil { ec.Error(ctx, err) @@ -156712,26 +74139,26 @@ func (ec *executionContext) _ProcedureHistory_operation(ctx context.Context, fie } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(bool) fc.Result = res - return ec.marshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_hasPreviousPage(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + 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 ProcedureHistoryOpType does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_createdAt(ctx, field) +func (ec *executionContext) _PageInfo_startCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_startCursor(ctx, field) if err != nil { return graphql.Null } @@ -156744,7 +74171,7 @@ func (ec *executionContext) _ProcedureHistory_createdAt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.StartCursor, nil }) if err != nil { ec.Error(ctx, err) @@ -156753,26 +74180,26 @@ func (ec *executionContext) _ProcedureHistory_createdAt(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*entgql.Cursor[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_startCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + 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 Time does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) +func (ec *executionContext) _PageInfo_endCursor(ctx context.Context, field graphql.CollectedField, obj *entgql.PageInfo[string]) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PageInfo_endCursor(ctx, field) if err != nil { return graphql.Null } @@ -156785,7 +74212,7 @@ func (ec *executionContext) _ProcedureHistory_updatedAt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.EndCursor, nil }) if err != nil { ec.Error(ctx, err) @@ -156794,26 +74221,26 @@ func (ec *executionContext) _ProcedureHistory_updatedAt(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*entgql.Cursor[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOCursor2ᚖentgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PageInfo_endCursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + 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 Time does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_createdBy(ctx, field) +func (ec *executionContext) _PersonalAccessToken_id(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_id(ctx, field) if err != nil { return graphql.Null } @@ -156826,35 +74253,38 @@ func (ec *executionContext) _ProcedureHistory_createdBy(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) +func (ec *executionContext) _PersonalAccessToken_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -156867,7 +74297,7 @@ func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -156876,26 +74306,26 @@ func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_deletedAt(ctx, field) +func (ec *executionContext) _PersonalAccessToken_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -156908,7 +74338,7 @@ func (ec *executionContext) _ProcedureHistory_deletedAt(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -156922,9 +74352,9 @@ func (ec *executionContext) _ProcedureHistory_deletedAt(ctx context.Context, fie return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -156935,8 +74365,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_deletedAt(_ context.Co return fc, nil } -func (ec *executionContext) _ProcedureHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_deletedBy(ctx, field) +func (ec *executionContext) _PersonalAccessToken_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -156949,7 +74379,7 @@ func (ec *executionContext) _ProcedureHistory_deletedBy(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -156963,9 +74393,9 @@ func (ec *executionContext) _ProcedureHistory_deletedBy(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -156976,8 +74406,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_deletedBy(_ context.Co return fc, nil } -func (ec *executionContext) _ProcedureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_tags(ctx, field) +func (ec *executionContext) _PersonalAccessToken_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -156990,7 +74420,7 @@ func (ec *executionContext) _ProcedureHistory_tags(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -156999,14 +74429,14 @@ func (ec *executionContext) _ProcedureHistory_tags(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -157017,8 +74447,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_tags(_ context.Context return fc, nil } -func (ec *executionContext) _ProcedureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_ownerID(ctx, field) +func (ec *executionContext) _PersonalAccessToken_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -157031,7 +74461,7 @@ func (ec *executionContext) _ProcedureHistory_ownerID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -157040,26 +74470,26 @@ func (ec *executionContext) _ProcedureHistory_ownerID(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_name(ctx, field) +func (ec *executionContext) _PersonalAccessToken_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -157072,26 +74502,23 @@ func (ec *executionContext) _ProcedureHistory_name(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -157102,8 +74529,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_name(_ context.Context return fc, nil } -func (ec *executionContext) _ProcedureHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_description(ctx, field) +func (ec *executionContext) _PersonalAccessToken_tags(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_tags(ctx, field) if err != nil { return graphql.Null } @@ -157116,7 +74543,7 @@ func (ec *executionContext) _ProcedureHistory_description(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -157125,14 +74552,14 @@ func (ec *executionContext) _ProcedureHistory_description(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -157143,8 +74570,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_description(_ context. return fc, nil } -func (ec *executionContext) _ProcedureHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_status(ctx, field) +func (ec *executionContext) _PersonalAccessToken_name(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_name(ctx, field) if err != nil { return graphql.Null } @@ -157157,23 +74584,26 @@ func (ec *executionContext) _ProcedureHistory_status(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -157184,8 +74614,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_status(_ context.Conte return fc, nil } -func (ec *executionContext) _ProcedureHistory_procedureType(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_procedureType(ctx, field) +func (ec *executionContext) _PersonalAccessToken_token(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_token(ctx, field) if err != nil { return graphql.Null } @@ -157198,23 +74628,26 @@ func (ec *executionContext) _ProcedureHistory_procedureType(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProcedureType, nil + return obj.Token, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_procedureType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_token(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -157225,8 +74658,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_procedureType(_ contex return fc, nil } -func (ec *executionContext) _ProcedureHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_version(ctx, field) +func (ec *executionContext) _PersonalAccessToken_expiresAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) if err != nil { return graphql.Null } @@ -157239,7 +74672,7 @@ func (ec *executionContext) _ProcedureHistory_version(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.ExpiresAt, nil }) if err != nil { ec.Error(ctx, err) @@ -157248,26 +74681,26 @@ func (ec *executionContext) _ProcedureHistory_version(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_expiresAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_purposeAndScope(ctx, field) +func (ec *executionContext) _PersonalAccessToken_description(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_description(ctx, field) if err != nil { return graphql.Null } @@ -157280,7 +74713,7 @@ func (ec *executionContext) _ProcedureHistory_purposeAndScope(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PurposeAndScope, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -157289,14 +74722,14 @@ func (ec *executionContext) _ProcedureHistory_purposeAndScope(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -157307,8 +74740,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_purposeAndScope(_ cont return fc, nil } -func (ec *executionContext) _ProcedureHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_background(ctx, field) +func (ec *executionContext) _PersonalAccessToken_scopes(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_scopes(ctx, field) if err != nil { return graphql.Null } @@ -157321,7 +74754,7 @@ func (ec *executionContext) _ProcedureHistory_background(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Background, nil + return obj.Scopes, nil }) if err != nil { ec.Error(ctx, err) @@ -157330,14 +74763,14 @@ func (ec *executionContext) _ProcedureHistory_background(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_scopes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, IsMethod: false, IsResolver: false, @@ -157348,8 +74781,8 @@ func (ec *executionContext) fieldContext_ProcedureHistory_background(_ context.C return fc, nil } -func (ec *executionContext) _ProcedureHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_satisfies(ctx, field) +func (ec *executionContext) _PersonalAccessToken_lastUsedAt(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) if err != nil { return graphql.Null } @@ -157362,7 +74795,7 @@ func (ec *executionContext) _ProcedureHistory_satisfies(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Satisfies, nil + return obj.LastUsedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -157371,26 +74804,26 @@ func (ec *executionContext) _ProcedureHistory_satisfies(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_lastUsedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistory_details(ctx, field) +func (ec *executionContext) _PersonalAccessToken_owner(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_owner(ctx, field) if err != nil { return graphql.Null } @@ -157403,35 +74836,112 @@ func (ec *executionContext) _ProcedureHistory_details(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistory", + Object: "PersonalAccessToken", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) +func (ec *executionContext) _PersonalAccessToken_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_organizations(ctx, field) if err != nil { return graphql.Null } @@ -157444,7 +74954,7 @@ func (ec *executionContext) _ProcedureHistoryConnection_edges(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Organizations(ctx) }) if err != nil { ec.Error(ctx, err) @@ -157453,32 +74963,134 @@ func (ec *executionContext) _ProcedureHistoryConnection_edges(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ProcedureHistoryEdge) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOProcedureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryEdge(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryConnection", + Object: "PersonalAccessToken", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProcedureHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _PersonalAccessToken_events(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessToken) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessToken_events(ctx, field) if err != nil { return graphql.Null } @@ -157491,48 +75103,79 @@ func (ec *executionContext) _ProcedureHistoryConnection_pageInfo(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessToken_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryConnection", + Object: "PersonalAccessToken", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _PersonalAccessTokenConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -157545,38 +75188,41 @@ func (ec *executionContext) _ProcedureHistoryConnection_totalCount(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.([]*generated.PersonalAccessTokenEdge) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOPersonalAccessTokenEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryConnection", + Object: "PersonalAccessTokenConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) +func (ec *executionContext) _PersonalAccessTokenConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -157589,79 +75235,48 @@ func (ec *executionContext) _ProcedureHistoryEdge_node(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + 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.(*generated.ProcedureHistory) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOProcedureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistory(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryEdge", + Object: "PersonalAccessTokenConnection", 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_ProcedureHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_ProcedureHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_ProcedureHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_ProcedureHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_ProcedureHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProcedureHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProcedureHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProcedureHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ProcedureHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ProcedureHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_ProcedureHistory_name(ctx, field) - case "description": - return ec.fieldContext_ProcedureHistory_description(ctx, field) - case "status": - return ec.fieldContext_ProcedureHistory_status(ctx, field) - case "procedureType": - return ec.fieldContext_ProcedureHistory_procedureType(ctx, field) - case "version": - return ec.fieldContext_ProcedureHistory_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_ProcedureHistory_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_ProcedureHistory_background(ctx, field) - case "satisfies": - return ec.fieldContext_ProcedureHistory_satisfies(ctx, field) - case "details": - return ec.fieldContext_ProcedureHistory_details(ctx, field) + 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 ProcedureHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _PersonalAccessTokenConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -157674,7 +75289,7 @@ func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -157686,26 +75301,26 @@ func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, fi } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(int) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureHistoryEdge", + Object: "PersonalAccessTokenConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProcedureSearchResult_procedures(ctx context.Context, field graphql.CollectedField, obj *ProcedureSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureSearchResult_procedures(ctx, field) +func (ec *executionContext) _PersonalAccessTokenEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -157718,7 +75333,7 @@ func (ec *executionContext) _ProcedureSearchResult_procedures(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedures, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -157727,82 +75342,62 @@ func (ec *executionContext) _ProcedureSearchResult_procedures(ctx context.Contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureSearchResult_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureSearchResult", + Object: "PersonalAccessTokenEdge", 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_Procedure_id(ctx, field) + return ec.fieldContext_PersonalAccessToken_id(ctx, field) case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) case "name": - return ec.fieldContext_Procedure_name(ctx, field) + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProcedureUpdatePayload_procedure(ctx context.Context, field graphql.CollectedField, obj *ProcedureUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProcedureUpdatePayload_procedure(ctx, field) +func (ec *executionContext) _PersonalAccessTokenEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.PersonalAccessTokenEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -157815,7 +75410,7 @@ func (ec *executionContext) _ProcedureUpdatePayload_procedure(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedure, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -157827,82 +75422,26 @@ func (ec *executionContext) _ProcedureUpdatePayload_procedure(ctx context.Contex } return graphql.Null } - res := resTmp.(*generated.Procedure) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProcedureUpdatePayload_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_PersonalAccessTokenEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProcedureUpdatePayload", + Object: "PersonalAccessTokenEdge", 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_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Program_id(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_id(ctx, field) +func (ec *executionContext) _Procedure_id(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_id(ctx, field) if err != nil { return graphql.Null } @@ -157932,9 +75471,9 @@ func (ec *executionContext) _Program_id(ctx context.Context, field graphql.Colle return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -157945,8 +75484,8 @@ func (ec *executionContext) fieldContext_Program_id(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Program_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_createdAt(ctx, field) +func (ec *executionContext) _Procedure_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -157973,9 +75512,9 @@ func (ec *executionContext) _Program_createdAt(ctx context.Context, field graphq return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -157986,8 +75525,8 @@ func (ec *executionContext) fieldContext_Program_createdAt(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Program_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_updatedAt(ctx, field) +func (ec *executionContext) _Procedure_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -158014,9 +75553,9 @@ func (ec *executionContext) _Program_updatedAt(ctx context.Context, field graphq return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158027,8 +75566,8 @@ func (ec *executionContext) fieldContext_Program_updatedAt(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Program_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_createdBy(ctx, field) +func (ec *executionContext) _Procedure_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -158055,9 +75594,9 @@ func (ec *executionContext) _Program_createdBy(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158068,8 +75607,8 @@ func (ec *executionContext) fieldContext_Program_createdBy(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Program_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_updatedBy(ctx, field) +func (ec *executionContext) _Procedure_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -158096,9 +75635,9 @@ func (ec *executionContext) _Program_updatedBy(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158109,8 +75648,8 @@ func (ec *executionContext) fieldContext_Program_updatedBy(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Program_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_deletedAt(ctx, field) +func (ec *executionContext) _Procedure_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -158137,9 +75676,9 @@ func (ec *executionContext) _Program_deletedAt(ctx context.Context, field graphq return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158150,8 +75689,8 @@ func (ec *executionContext) fieldContext_Program_deletedAt(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Program_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_deletedBy(ctx, field) +func (ec *executionContext) _Procedure_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -158178,9 +75717,9 @@ func (ec *executionContext) _Program_deletedBy(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158191,8 +75730,8 @@ func (ec *executionContext) fieldContext_Program_deletedBy(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Program_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_tags(ctx, field) +func (ec *executionContext) _Procedure_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_tags(ctx, field) if err != nil { return graphql.Null } @@ -158219,9 +75758,9 @@ func (ec *executionContext) _Program_tags(ctx context.Context, field graphql.Col return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158232,8 +75771,8 @@ func (ec *executionContext) fieldContext_Program_tags(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Program_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_ownerID(ctx, field) +func (ec *executionContext) _Procedure_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -158260,9 +75799,9 @@ func (ec *executionContext) _Program_ownerID(ctx context.Context, field graphql. return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158273,8 +75812,8 @@ func (ec *executionContext) fieldContext_Program_ownerID(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Program_name(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_name(ctx, field) +func (ec *executionContext) _Procedure_name(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_name(ctx, field) if err != nil { return graphql.Null } @@ -158304,9 +75843,9 @@ func (ec *executionContext) _Program_name(ctx context.Context, field graphql.Col return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158317,8 +75856,8 @@ func (ec *executionContext) fieldContext_Program_name(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Program_description(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_description(ctx, field) +func (ec *executionContext) _Procedure_description(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_description(ctx, field) if err != nil { return graphql.Null } @@ -158345,9 +75884,9 @@ func (ec *executionContext) _Program_description(ctx context.Context, field grap return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, @@ -158358,8 +75897,8 @@ func (ec *executionContext) fieldContext_Program_description(_ context.Context, return fc, nil } -func (ec *executionContext) _Program_status(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_status(ctx, field) +func (ec *executionContext) _Procedure_status(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_status(ctx, field) if err != nil { return graphql.Null } @@ -158379,31 +75918,28 @@ func (ec *executionContext) _Program_status(ctx context.Context, field graphql.C return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.ProgramStatus) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐProgramStatus(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProgramProgramStatus does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Program_startDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_startDate(ctx, field) +func (ec *executionContext) _Procedure_procedureType(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_procedureType(ctx, field) if err != nil { return graphql.Null } @@ -158416,7 +75952,7 @@ func (ec *executionContext) _Program_startDate(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StartDate, nil + return obj.ProcedureType, nil }) if err != nil { ec.Error(ctx, err) @@ -158425,26 +75961,26 @@ func (ec *executionContext) _Program_startDate(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_procedureType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Program_endDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_endDate(ctx, field) +func (ec *executionContext) _Procedure_version(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_version(ctx, field) if err != nil { return graphql.Null } @@ -158457,7 +75993,7 @@ func (ec *executionContext) _Program_endDate(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EndDate, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -158466,26 +76002,26 @@ func (ec *executionContext) _Program_endDate(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Program_auditorReady(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_auditorReady(ctx, field) +func (ec *executionContext) _Procedure_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -158498,38 +76034,35 @@ func (ec *executionContext) _Program_auditorReady(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuditorReady, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Program_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_auditorWriteComments(ctx, field) +func (ec *executionContext) _Procedure_background(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_background(ctx, field) if err != nil { return graphql.Null } @@ -158542,38 +76075,35 @@ func (ec *executionContext) _Program_auditorWriteComments(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuditorWriteComments, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Program_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_auditorReadComments(ctx, field) +func (ec *executionContext) _Procedure_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -158586,38 +76116,76 @@ func (ec *executionContext) _Program_auditorReadComments(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuditorReadComments, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Procedure_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Procedure", + 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) _Procedure_details(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(bool) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Program_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_owner(ctx, field) +func (ec *executionContext) _Procedure_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_owner(ctx, field) if err != nil { return graphql.Null } @@ -158644,9 +76212,9 @@ func (ec *executionContext) _Program_owner(ctx context.Context, field graphql.Co return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, @@ -158765,8 +76333,8 @@ func (ec *executionContext) fieldContext_Program_owner(_ context.Context, field return fc, nil } -func (ec *executionContext) _Program_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_blockedGroups(ctx, field) +func (ec *executionContext) _Procedure_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_blockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -158793,9 +76361,9 @@ func (ec *executionContext) _Program_blockedGroups(ctx context.Context, field gr return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, @@ -158908,8 +76476,8 @@ func (ec *executionContext) fieldContext_Program_blockedGroups(_ context.Context return fc, nil } -func (ec *executionContext) _Program_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_editors(ctx, field) +func (ec *executionContext) _Procedure_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_editors(ctx, field) if err != nil { return graphql.Null } @@ -158936,152 +76504,9 @@ func (ec *executionContext) _Program_editors(ctx context.Context, field graphql. return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_viewers(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Viewers(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Group) - fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, @@ -159194,8 +76619,8 @@ func (ec *executionContext) fieldContext_Program_viewers(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Program_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_controls(ctx, field) +func (ec *executionContext) _Procedure_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_controls(ctx, field) if err != nil { return graphql.Null } @@ -159222,9 +76647,9 @@ func (ec *executionContext) _Program_controls(ctx context.Context, field graphql return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, @@ -159295,232 +76720,18 @@ func (ec *executionContext) fieldContext_Program_controls(_ context.Context, fie case "actionPlans": return ec.fieldContext_Control_actionPlans(ctx, field) case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_subcontrols(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subcontrols(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Subcontrol) - fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_controlObjectives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ControlObjectives(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ControlObjective) - fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) + return ec.fieldContext_Control_tasks(ctx, field) case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _Program_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_internalPolicies(ctx, field) +func (ec *executionContext) _Procedure_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_internalPolicies(ctx, field) if err != nil { return graphql.Null } @@ -159547,9 +76758,9 @@ func (ec *executionContext) _Program_internalPolicies(ctx context.Context, field return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, @@ -159614,8 +76825,8 @@ func (ec *executionContext) fieldContext_Program_internalPolicies(_ context.Cont return fc, nil } -func (ec *executionContext) _Program_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_procedures(ctx, field) +func (ec *executionContext) _Procedure_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_narratives(ctx, field) if err != nil { return graphql.Null } @@ -159628,7 +76839,7 @@ func (ec *executionContext) _Program_procedures(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedures(ctx) + return obj.Narratives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -159637,82 +76848,72 @@ func (ec *executionContext) _Program_procedures(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Procedure_id(ctx, field) + return ec.fieldContext_Narrative_id(ctx, field) case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) + return ec.fieldContext_Narrative_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) + return ec.fieldContext_Narrative_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) + return ec.fieldContext_Narrative_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) + return ec.fieldContext_Narrative_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) + return ec.fieldContext_Narrative_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) + return ec.fieldContext_Narrative_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) + return ec.fieldContext_Narrative_tags(ctx, field) case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) + return ec.fieldContext_Narrative_ownerID(ctx, field) case "name": - return ec.fieldContext_Procedure_name(ctx, field) + return ec.fieldContext_Narrative_name(ctx, field) case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) + return ec.fieldContext_Narrative_description(ctx, field) case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) + return ec.fieldContext_Narrative_satisfies(ctx, field) case "details": - return ec.fieldContext_Procedure_details(ctx, field) + return ec.fieldContext_Narrative_details(ctx, field) case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) + return ec.fieldContext_Narrative_owner(ctx, field) case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) + return ec.fieldContext_Narrative_blockedGroups(ctx, field) case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) + return ec.fieldContext_Narrative_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _Program_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_risks(ctx, field) +func (ec *executionContext) _Procedure_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_risks(ctx, field) if err != nil { return graphql.Null } @@ -159739,9 +76940,9 @@ func (ec *executionContext) _Program_risks(ctx context.Context, field graphql.Co return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, @@ -159808,8 +77009,8 @@ func (ec *executionContext) fieldContext_Program_risks(_ context.Context, field return fc, nil } -func (ec *executionContext) _Program_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_tasks(ctx, field) +func (ec *executionContext) _Procedure_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_tasks(ctx, field) if err != nil { return graphql.Null } @@ -159836,9 +77037,9 @@ func (ec *executionContext) _Program_tasks(ctx context.Context, field graphql.Co return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Program_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Program", + Object: "Procedure", Field: field, IsMethod: true, IsResolver: false, @@ -159899,627 +77100,8 @@ func (ec *executionContext) fieldContext_Program_tasks(_ context.Context, field return fc, nil } -func (ec *executionContext) _Program_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Notes(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Note) - fc.Result = res - return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) - case "subcontrols": - return ec.fieldContext_Note_subcontrols(ctx, field) - case "program": - return ec.fieldContext_Note_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_files(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_files(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.File) - fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_narratives(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Narratives(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Narrative) - fc.Result = res - return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_actionPlans(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ActionPlans(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ActionPlan) - fc.Result = res - return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_standards(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_standards(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standards(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Standard) - fc.Result = res - return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_users(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Users(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.User) - fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Program_members(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Program_members(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Members(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ProgramMembership) - fc.Result = res - return ec.marshalOProgramMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Program_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Program", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ProgramMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembership_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembership_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembership_userID(ctx, field) - case "program": - return ec.fieldContext_ProgramMembership_program(ctx, field) - case "user": - return ec.fieldContext_ProgramMembership_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProgramBulkCreatePayload_programs(ctx context.Context, field graphql.CollectedField, obj *ProgramBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramBulkCreatePayload_programs(ctx, field) +func (ec *executionContext) _Procedure_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Procedure) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Procedure_programs(ctx, field) if err != nil { return graphql.Null } @@ -160532,7 +77114,7 @@ func (ec *executionContext) _ProgramBulkCreatePayload_programs(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs, nil + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, err) @@ -160546,11 +77128,11 @@ func (ec *executionContext) _ProgramBulkCreatePayload_programs(ctx context.Conte return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramBulkCreatePayload_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Procedure_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramBulkCreatePayload", + Object: "Procedure", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { @@ -160631,8 +77213,8 @@ func (ec *executionContext) fieldContext_ProgramBulkCreatePayload_programs(_ con return fc, nil } -func (ec *executionContext) _ProgramConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramConnection_edges(ctx, field) +func (ec *executionContext) _ProcedureConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -160654,32 +77236,32 @@ func (ec *executionContext) _ProgramConnection_edges(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ProgramEdge) + res := resTmp.([]*generated.ProcedureEdge) fc.Result = res - return ec.marshalOProgramEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramEdge(ctx, field.Selections, res) + return ec.marshalOProcedureEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramConnection", + Object: "ProcedureConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_ProgramEdge_node(ctx, field) + return ec.fieldContext_ProcedureEdge_node(ctx, field) case "cursor": - return ec.fieldContext_ProgramEdge_cursor(ctx, field) + return ec.fieldContext_ProcedureEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProcedureEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramConnection_pageInfo(ctx, field) +func (ec *executionContext) _ProcedureConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -160709,9 +77291,9 @@ func (ec *executionContext) _ProgramConnection_pageInfo(ctx context.Context, fie return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramConnection", + Object: "ProcedureConnection", Field: field, IsMethod: false, IsResolver: false, @@ -160732,8 +77314,8 @@ func (ec *executionContext) fieldContext_ProgramConnection_pageInfo(_ context.Co return fc, nil } -func (ec *executionContext) _ProgramConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramConnection_totalCount(ctx, field) +func (ec *executionContext) _ProcedureConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -160763,9 +77345,9 @@ func (ec *executionContext) _ProgramConnection_totalCount(ctx context.Context, f return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramConnection", + Object: "ProcedureConnection", Field: field, IsMethod: false, IsResolver: false, @@ -160776,168 +77358,8 @@ func (ec *executionContext) fieldContext_ProgramConnection_totalCount(_ context. return fc, nil } -func (ec *executionContext) _ProgramCreatePayload_program(ctx context.Context, field graphql.CollectedField, obj *ProgramCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramCreatePayload_program(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Program, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Program) - fc.Result = res - return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ProgramCreatePayload_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramCreatePayload", - 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_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProgramDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ProgramDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ProgramDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramDeletePayload", - 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) _ProgramEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramEdge_node(ctx, field) +func (ec *executionContext) _ProcedureEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -160959,98 +77381,82 @@ func (ec *executionContext) _ProgramEdge_node(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Program) + res := resTmp.(*generated.Procedure) fc.Result = res - return ec.marshalOProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramEdge", + Object: "ProcedureEdge", 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_Program_id(ctx, field) + return ec.fieldContext_Procedure_id(ctx, field) case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) + return ec.fieldContext_Procedure_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) + return ec.fieldContext_Procedure_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Program_tags(ctx, field) + return ec.fieldContext_Procedure_tags(ctx, field) case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) + return ec.fieldContext_Procedure_ownerID(ctx, field) case "name": - return ec.fieldContext_Program_name(ctx, field) + return ec.fieldContext_Procedure_name(ctx, field) case "description": - return ec.fieldContext_Program_description(ctx, field) + return ec.fieldContext_Procedure_description(ctx, field) case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) case "owner": - return ec.fieldContext_Program_owner(ctx, field) + return ec.fieldContext_Procedure_owner(ctx, field) case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) + return ec.fieldContext_Procedure_blockedGroups(ctx, field) case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) + return ec.fieldContext_Procedure_editors(ctx, field) case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) + return ec.fieldContext_Procedure_controls(ctx, field) case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) case "risks": - return ec.fieldContext_Program_risks(ctx, field) + return ec.fieldContext_Procedure_risks(ctx, field) case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramEdge_cursor(ctx, field) +func (ec *executionContext) _ProcedureEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -161080,9 +77486,9 @@ func (ec *executionContext) _ProgramEdge_cursor(ctx context.Context, field graph return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramEdge", + Object: "ProcedureEdge", Field: field, IsMethod: false, IsResolver: false, @@ -161093,8 +77499,8 @@ func (ec *executionContext) fieldContext_ProgramEdge_cursor(_ context.Context, f return fc, nil } -func (ec *executionContext) _ProgramHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_id(ctx, field) +func (ec *executionContext) _ProcedureHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -161124,9 +77530,9 @@ func (ec *executionContext) _ProgramHistory_id(ctx context.Context, field graphq return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161137,8 +77543,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_id(_ context.Context, fi return fc, nil } -func (ec *executionContext) _ProgramHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_historyTime(ctx, field) +func (ec *executionContext) _ProcedureHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -161168,9 +77574,9 @@ func (ec *executionContext) _ProgramHistory_historyTime(ctx context.Context, fie return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161181,8 +77587,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_historyTime(_ context.Co return fc, nil } -func (ec *executionContext) _ProgramHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_ref(ctx, field) +func (ec *executionContext) _ProcedureHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -161209,9 +77615,9 @@ func (ec *executionContext) _ProgramHistory_ref(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161222,8 +77628,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_ref(_ context.Context, f return fc, nil } -func (ec *executionContext) _ProgramHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_operation(ctx, field) +func (ec *executionContext) _ProcedureHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -161250,24 +77656,24 @@ func (ec *executionContext) _ProgramHistory_operation(ctx context.Context, field } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNProgramHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNProcedureHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProgramHistoryOpType does not have child fields") + return nil, errors.New("field of type ProcedureHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_createdAt(ctx, field) +func (ec *executionContext) _ProcedureHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -161294,9 +77700,9 @@ func (ec *executionContext) _ProgramHistory_createdAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161307,8 +77713,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_createdAt(_ context.Cont return fc, nil } -func (ec *executionContext) _ProgramHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_updatedAt(ctx, field) +func (ec *executionContext) _ProcedureHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -161335,9 +77741,9 @@ func (ec *executionContext) _ProgramHistory_updatedAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161348,8 +77754,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_updatedAt(_ context.Cont return fc, nil } -func (ec *executionContext) _ProgramHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_createdBy(ctx, field) +func (ec *executionContext) _ProcedureHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -161376,9 +77782,9 @@ func (ec *executionContext) _ProgramHistory_createdBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161389,8 +77795,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_createdBy(_ context.Cont return fc, nil } -func (ec *executionContext) _ProgramHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_updatedBy(ctx, field) +func (ec *executionContext) _ProcedureHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -161417,9 +77823,9 @@ func (ec *executionContext) _ProgramHistory_updatedBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161430,8 +77836,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_updatedBy(_ context.Cont return fc, nil } -func (ec *executionContext) _ProgramHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_deletedAt(ctx, field) +func (ec *executionContext) _ProcedureHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -161458,9 +77864,9 @@ func (ec *executionContext) _ProgramHistory_deletedAt(ctx context.Context, field return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161471,8 +77877,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_deletedAt(_ context.Cont return fc, nil } -func (ec *executionContext) _ProgramHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_deletedBy(ctx, field) +func (ec *executionContext) _ProcedureHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -161499,9 +77905,9 @@ func (ec *executionContext) _ProgramHistory_deletedBy(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161512,8 +77918,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_deletedBy(_ context.Cont return fc, nil } -func (ec *executionContext) _ProgramHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_tags(ctx, field) +func (ec *executionContext) _ProcedureHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -161540,9 +77946,9 @@ func (ec *executionContext) _ProgramHistory_tags(ctx context.Context, field grap return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161553,8 +77959,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _ProgramHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_ownerID(ctx, field) +func (ec *executionContext) _ProcedureHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -161581,9 +77987,9 @@ func (ec *executionContext) _ProgramHistory_ownerID(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161594,8 +78000,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_ownerID(_ context.Contex return fc, nil } -func (ec *executionContext) _ProgramHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_name(ctx, field) +func (ec *executionContext) _ProcedureHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -161625,9 +78031,9 @@ func (ec *executionContext) _ProgramHistory_name(ctx context.Context, field grap return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161638,8 +78044,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_name(_ context.Context, return fc, nil } -func (ec *executionContext) _ProgramHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_description(ctx, field) +func (ec *executionContext) _ProcedureHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -161666,9 +78072,9 @@ func (ec *executionContext) _ProgramHistory_description(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, @@ -161679,8 +78085,8 @@ func (ec *executionContext) fieldContext_ProgramHistory_description(_ context.Co return fc, nil } -func (ec *executionContext) _ProgramHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_status(ctx, field) +func (ec *executionContext) _ProcedureHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -161700,31 +78106,28 @@ func (ec *executionContext) _ProgramHistory_status(ctx context.Context, field gr return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.ProgramStatus) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramHistoryProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐProgramStatus(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProgramHistoryProgramStatus does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramHistory_startDate(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_startDate(ctx, field) +func (ec *executionContext) _ProcedureHistory_procedureType(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_procedureType(ctx, field) if err != nil { return graphql.Null } @@ -161737,7 +78140,7 @@ func (ec *executionContext) _ProgramHistory_startDate(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StartDate, nil + return obj.ProcedureType, nil }) if err != nil { ec.Error(ctx, err) @@ -161746,26 +78149,26 @@ func (ec *executionContext) _ProgramHistory_startDate(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_procedureType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramHistory_endDate(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_endDate(ctx, field) +func (ec *executionContext) _ProcedureHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -161778,7 +78181,7 @@ func (ec *executionContext) _ProgramHistory_endDate(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EndDate, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -161787,26 +78190,26 @@ func (ec *executionContext) _ProgramHistory_endDate(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramHistory_auditorReady(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_auditorReady(ctx, field) +func (ec *executionContext) _ProcedureHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -161819,38 +78222,35 @@ func (ec *executionContext) _ProgramHistory_auditorReady(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuditorReady, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramHistory_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_auditorWriteComments(ctx, field) +func (ec *executionContext) _ProcedureHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_background(ctx, field) if err != nil { return graphql.Null } @@ -161863,38 +78263,35 @@ func (ec *executionContext) _ProgramHistory_auditorWriteComments(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuditorWriteComments, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramHistory_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistory_auditorReadComments(ctx, field) +func (ec *executionContext) _ProcedureHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -161907,38 +78304,76 @@ func (ec *executionContext) _ProgramHistory_auditorReadComments(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuditorReadComments, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedureHistory", + 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) _ProcedureHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistory_details(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Details, nil + }) + if err != nil { + ec.Error(ctx, err) return graphql.Null } - res := resTmp.(bool) + if resTmp == nil { + return graphql.Null + } + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistory_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistory", + Object: "ProcedureHistory", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistoryConnection_edges(ctx, field) +func (ec *executionContext) _ProcedureHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -161960,32 +78395,32 @@ func (ec *executionContext) _ProgramHistoryConnection_edges(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ProgramHistoryEdge) + res := resTmp.([]*generated.ProcedureHistoryEdge) fc.Result = res - return ec.marshalOProgramHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistoryEdge(ctx, field.Selections, res) + return ec.marshalOProcedureHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryConnection", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_ProgramHistoryEdge_node(ctx, field) + return ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_ProgramHistoryEdge_cursor(ctx, field) + return ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProcedureHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _ProcedureHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -162015,9 +78450,9 @@ func (ec *executionContext) _ProgramHistoryConnection_pageInfo(ctx context.Conte return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryConnection", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -162038,8 +78473,8 @@ func (ec *executionContext) fieldContext_ProgramHistoryConnection_pageInfo(_ con return fc, nil } -func (ec *executionContext) _ProgramHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _ProcedureHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -162069,9 +78504,9 @@ func (ec *executionContext) _ProgramHistoryConnection_totalCount(ctx context.Con return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryConnection", + Object: "ProcedureHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -162082,8 +78517,8 @@ func (ec *executionContext) fieldContext_ProgramHistoryConnection_totalCount(_ c return fc, nil } -func (ec *executionContext) _ProgramHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistoryEdge_node(ctx, field) +func (ec *executionContext) _ProcedureHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -162105,68 +78540,70 @@ func (ec *executionContext) _ProgramHistoryEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.ProgramHistory) + res := resTmp.(*generated.ProcedureHistory) fc.Result = res - return ec.marshalOProgramHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistory(ctx, field.Selections, res) + return ec.marshalOProcedureHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryEdge", + Object: "ProcedureHistoryEdge", 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_ProgramHistory_id(ctx, field) + return ec.fieldContext_ProcedureHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_ProgramHistory_historyTime(ctx, field) + return ec.fieldContext_ProcedureHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_ProgramHistory_ref(ctx, field) + return ec.fieldContext_ProcedureHistory_ref(ctx, field) case "operation": - return ec.fieldContext_ProgramHistory_operation(ctx, field) + return ec.fieldContext_ProcedureHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_ProgramHistory_createdAt(ctx, field) + return ec.fieldContext_ProcedureHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ProgramHistory_updatedAt(ctx, field) + return ec.fieldContext_ProcedureHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ProgramHistory_createdBy(ctx, field) + return ec.fieldContext_ProcedureHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ProgramHistory_updatedBy(ctx, field) + return ec.fieldContext_ProcedureHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_ProgramHistory_deletedAt(ctx, field) + return ec.fieldContext_ProcedureHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ProgramHistory_deletedBy(ctx, field) + return ec.fieldContext_ProcedureHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_ProgramHistory_tags(ctx, field) + return ec.fieldContext_ProcedureHistory_tags(ctx, field) case "ownerID": - return ec.fieldContext_ProgramHistory_ownerID(ctx, field) + return ec.fieldContext_ProcedureHistory_ownerID(ctx, field) case "name": - return ec.fieldContext_ProgramHistory_name(ctx, field) + return ec.fieldContext_ProcedureHistory_name(ctx, field) case "description": - return ec.fieldContext_ProgramHistory_description(ctx, field) + return ec.fieldContext_ProcedureHistory_description(ctx, field) case "status": - return ec.fieldContext_ProgramHistory_status(ctx, field) - case "startDate": - return ec.fieldContext_ProgramHistory_startDate(ctx, field) - case "endDate": - return ec.fieldContext_ProgramHistory_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_ProgramHistory_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_ProgramHistory_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_ProgramHistory_auditorReadComments(ctx, field) + return ec.fieldContext_ProcedureHistory_status(ctx, field) + case "procedureType": + return ec.fieldContext_ProcedureHistory_procedureType(ctx, field) + case "version": + return ec.fieldContext_ProcedureHistory_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_ProcedureHistory_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_ProcedureHistory_background(ctx, field) + case "satisfies": + return ec.fieldContext_ProcedureHistory_satisfies(ctx, field) + case "details": + return ec.fieldContext_ProcedureHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProcedureHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _ProcedureHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProcedureHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -162196,9 +78633,9 @@ func (ec *executionContext) _ProgramHistoryEdge_cursor(ctx context.Context, fiel return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProcedureHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramHistoryEdge", + Object: "ProcedureHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -162209,8 +78646,8 @@ func (ec *executionContext) fieldContext_ProgramHistoryEdge_cursor(_ context.Con return fc, nil } -func (ec *executionContext) _ProgramMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_id(ctx, field) +func (ec *executionContext) _Program_id(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_id(ctx, field) if err != nil { return graphql.Null } @@ -162240,9 +78677,9 @@ func (ec *executionContext) _ProgramMembership_id(ctx context.Context, field gra return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162253,8 +78690,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_id(_ context.Context, return fc, nil } -func (ec *executionContext) _ProgramMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_createdAt(ctx, field) +func (ec *executionContext) _Program_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -162281,9 +78718,9 @@ func (ec *executionContext) _ProgramMembership_createdAt(ctx context.Context, fi return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162294,8 +78731,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_createdAt(_ context.C return fc, nil } -func (ec *executionContext) _ProgramMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_updatedAt(ctx, field) +func (ec *executionContext) _Program_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -162322,9 +78759,9 @@ func (ec *executionContext) _ProgramMembership_updatedAt(ctx context.Context, fi return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162335,8 +78772,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_updatedAt(_ context.C return fc, nil } -func (ec *executionContext) _ProgramMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_createdBy(ctx, field) +func (ec *executionContext) _Program_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -162363,9 +78800,9 @@ func (ec *executionContext) _ProgramMembership_createdBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162376,8 +78813,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_createdBy(_ context.C return fc, nil } -func (ec *executionContext) _ProgramMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_updatedBy(ctx, field) +func (ec *executionContext) _Program_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -162404,9 +78841,9 @@ func (ec *executionContext) _ProgramMembership_updatedBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162417,8 +78854,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_updatedBy(_ context.C return fc, nil } -func (ec *executionContext) _ProgramMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_deletedAt(ctx, field) +func (ec *executionContext) _Program_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -162445,9 +78882,9 @@ func (ec *executionContext) _ProgramMembership_deletedAt(ctx context.Context, fi return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162458,8 +78895,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_deletedAt(_ context.C return fc, nil } -func (ec *executionContext) _ProgramMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_deletedBy(ctx, field) +func (ec *executionContext) _Program_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -162486,9 +78923,9 @@ func (ec *executionContext) _ProgramMembership_deletedBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162499,8 +78936,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_deletedBy(_ context.C return fc, nil } -func (ec *executionContext) _ProgramMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_role(ctx, field) +func (ec *executionContext) _Program_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_tags(ctx, field) if err != nil { return graphql.Null } @@ -162513,38 +78950,35 @@ func (ec *executionContext) _ProgramMembership_role(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.([]string) fc.Result = res - return ec.marshalNProgramMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProgramMembershipRole does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembership_programID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_programID(ctx, field) +func (ec *executionContext) _Program_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -162557,26 +78991,23 @@ func (ec *executionContext) _ProgramMembership_programID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramID, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, @@ -162587,8 +79018,8 @@ func (ec *executionContext) fieldContext_ProgramMembership_programID(_ context.C return fc, nil } -func (ec *executionContext) _ProgramMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_userID(ctx, field) +func (ec *executionContext) _Program_name(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_name(ctx, field) if err != nil { return graphql.Null } @@ -162601,7 +79032,7 @@ func (ec *executionContext) _ProgramMembership_userID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -162615,24 +79046,24 @@ func (ec *executionContext) _ProgramMembership_userID(ctx context.Context, field } res := resTmp.(string) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembership_program(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_program(ctx, field) +func (ec *executionContext) _Program_description(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_description(ctx, field) if err != nil { return graphql.Null } @@ -162645,110 +79076,35 @@ func (ec *executionContext) _ProgramMembership_program(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Program(ctx) + 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.(*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembership_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembership", + Object: "Program", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembership_user(ctx, field) +func (ec *executionContext) _Program_status(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_status(ctx, field) if err != nil { return graphql.Null } @@ -162761,7 +79117,7 @@ func (ec *executionContext) _ProgramMembership_user(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -162773,167 +79129,26 @@ func (ec *executionContext) _ProgramMembership_user(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.User) - fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_ProgramMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "ProgramMembership", - Field: field, - IsMethod: true, - 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _ProgramMembershipBulkCreatePayload_programMemberships(ctx context.Context, field graphql.CollectedField, obj *ProgramMembershipBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ProgramMemberships, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.ProgramMembership) + res := resTmp.(enums.ProgramStatus) fc.Result = res - return ec.marshalOProgramMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipᚄ(ctx, field.Selections, res) + return ec.marshalNProgramProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐProgramStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipBulkCreatePayload", + Object: "Program", 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_ProgramMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembership_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembership_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembership_userID(ctx, field) - case "program": - return ec.fieldContext_ProgramMembership_program(ctx, field) - case "user": - return ec.fieldContext_ProgramMembership_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + return nil, errors.New("field of type ProgramProgramStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipConnection_edges(ctx, field) +func (ec *executionContext) _Program_startDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_startDate(ctx, field) if err != nil { return graphql.Null } @@ -162946,7 +79161,7 @@ func (ec *executionContext) _ProgramMembershipConnection_edges(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.StartDate, nil }) if err != nil { ec.Error(ctx, err) @@ -162955,32 +79170,26 @@ func (ec *executionContext) _ProgramMembershipConnection_edges(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ProgramMembershipEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOProgramMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipConnection", + Object: "Program", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_ProgramMembershipEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ProgramMembershipEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipConnection_pageInfo(ctx, field) +func (ec *executionContext) _Program_endDate(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_endDate(ctx, field) if err != nil { return graphql.Null } @@ -162993,48 +79202,35 @@ func (ec *executionContext) _ProgramMembershipConnection_pageInfo(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.EndDate, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipConnection", + Object: "Program", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipConnection_totalCount(ctx, field) +func (ec *executionContext) _Program_auditorReady(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_auditorReady(ctx, field) if err != nil { return graphql.Null } @@ -163047,7 +79243,7 @@ func (ec *executionContext) _ProgramMembershipConnection_totalCount(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.AuditorReady, nil }) if err != nil { ec.Error(ctx, err) @@ -163059,26 +79255,26 @@ func (ec *executionContext) _ProgramMembershipConnection_totalCount(ctx context. } return graphql.Null } - res := resTmp.(int) + res := resTmp.(bool) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipConnection", + Object: "Program", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipCreatePayload_programMembership(ctx context.Context, field graphql.CollectedField, obj *ProgramMembershipCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipCreatePayload_programMembership(ctx, field) +func (ec *executionContext) _Program_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_auditorWriteComments(ctx, field) if err != nil { return graphql.Null } @@ -163091,7 +79287,7 @@ func (ec *executionContext) _ProgramMembershipCreatePayload_programMembership(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramMembership, nil + return obj.AuditorWriteComments, nil }) if err != nil { ec.Error(ctx, err) @@ -163103,52 +79299,26 @@ func (ec *executionContext) _ProgramMembershipCreatePayload_programMembership(ct } return graphql.Null } - res := resTmp.(*generated.ProgramMembership) + res := resTmp.(bool) fc.Result = res - return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipCreatePayload_programMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipCreatePayload", + Object: "Program", 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_ProgramMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembership_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembership_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembership_userID(ctx, field) - case "program": - return ec.fieldContext_ProgramMembership_program(ctx, field) - case "user": - return ec.fieldContext_ProgramMembership_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *ProgramMembershipDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Program_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_auditorReadComments(ctx, field) if err != nil { return graphql.Null } @@ -163161,7 +79331,7 @@ func (ec *executionContext) _ProgramMembershipDeletePayload_deletedID(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.AuditorReadComments, nil }) if err != nil { ec.Error(ctx, err) @@ -163173,26 +79343,26 @@ func (ec *executionContext) _ProgramMembershipDeletePayload_deletedID(ctx contex } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipDeletePayload", + Object: "Program", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipEdge_node(ctx, field) +func (ec *executionContext) _Program_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_owner(ctx, field) if err != nil { return graphql.Null } @@ -163205,7 +79375,7 @@ func (ec *executionContext) _ProgramMembershipEdge_node(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163214,52 +79384,134 @@ func (ec *executionContext) _ProgramMembershipEdge_node(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.ProgramMembership) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipEdge", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_ProgramMembership_id(ctx, field) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembership_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembership_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembership_userID(ctx, field) - case "program": - return ec.fieldContext_ProgramMembership_program(ctx, field) - case "user": - return ec.fieldContext_ProgramMembership_user(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipEdge_cursor(ctx, field) +func (ec *executionContext) _Program_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_blockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -163272,38 +79524,137 @@ func (ec *executionContext) _ProgramMembershipEdge_cursor(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.BlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipEdge", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_id(ctx, field) +func (ec *executionContext) _Program_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_editors(ctx, field) if err != nil { return graphql.Null } @@ -163316,38 +79667,137 @@ func (ec *executionContext) _ProgramMembershipHistory_id(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Editors(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_historyTime(ctx, field) +func (ec *executionContext) _Program_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_viewers(ctx, field) if err != nil { return graphql.Null } @@ -163360,38 +79810,137 @@ func (ec *executionContext) _ProgramMembershipHistory_historyTime(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.Viewers(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_ref(ctx, field) +func (ec *executionContext) _Program_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_controls(ctx, field) if err != nil { return graphql.Null } @@ -163404,7 +79953,7 @@ func (ec *executionContext) _ProgramMembershipHistory_ref(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Controls(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163413,26 +79962,96 @@ func (ec *executionContext) _ProgramMembershipHistory_ref(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_operation(ctx, field) +func (ec *executionContext) _Program_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -163445,38 +80064,99 @@ func (ec *executionContext) _ProgramMembershipHistory_operation(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalNProgramMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProgramMembershipHistoryOpType does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_createdAt(ctx, field) +func (ec *executionContext) _Program_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_controlObjectives(ctx, field) if err != nil { return graphql.Null } @@ -163489,7 +80169,7 @@ func (ec *executionContext) _ProgramMembershipHistory_createdAt(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.ControlObjectives(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163498,26 +80178,94 @@ func (ec *executionContext) _ProgramMembershipHistory_createdAt(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_updatedAt(ctx, field) +func (ec *executionContext) _Program_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_internalPolicies(ctx, field) if err != nil { return graphql.Null } @@ -163530,7 +80278,7 @@ func (ec *executionContext) _ProgramMembershipHistory_updatedAt(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.InternalPolicies(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163539,26 +80287,80 @@ func (ec *executionContext) _ProgramMembershipHistory_updatedAt(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_createdBy(ctx, field) +func (ec *executionContext) _Program_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_procedures(ctx, field) if err != nil { return graphql.Null } @@ -163571,7 +80373,7 @@ func (ec *executionContext) _ProgramMembershipHistory_createdBy(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Procedures(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163580,26 +80382,82 @@ func (ec *executionContext) _ProgramMembershipHistory_createdBy(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_updatedBy(ctx, field) +func (ec *executionContext) _Program_risks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_risks(ctx, field) if err != nil { return graphql.Null } @@ -163612,7 +80470,7 @@ func (ec *executionContext) _ProgramMembershipHistory_updatedBy(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Risks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163621,26 +80479,82 @@ func (ec *executionContext) _ProgramMembershipHistory_updatedBy(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Risk) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Risk_id(ctx, field) + case "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_deletedAt(ctx, field) +func (ec *executionContext) _Program_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_tasks(ctx, field) if err != nil { return graphql.Null } @@ -163653,7 +80567,7 @@ func (ec *executionContext) _ProgramMembershipHistory_deletedAt(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Tasks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163662,26 +80576,76 @@ func (ec *executionContext) _ProgramMembershipHistory_deletedAt(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Task_id(ctx, field) + case "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_deletedBy(ctx, field) +func (ec *executionContext) _Program_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_notes(ctx, field) if err != nil { return graphql.Null } @@ -163694,7 +80658,7 @@ func (ec *executionContext) _ProgramMembershipHistory_deletedBy(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Notes(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163703,26 +80667,56 @@ func (ec *executionContext) _ProgramMembershipHistory_deletedBy(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Note) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalONote2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Note_id(ctx, field) + case "createdAt": + return ec.fieldContext_Note_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Note_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Note_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Note_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Note_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + case "program": + return ec.fieldContext_Note_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_role(ctx, field) +func (ec *executionContext) _Program_files(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_files(ctx, field) if err != nil { return graphql.Null } @@ -163735,38 +80729,101 @@ func (ec *executionContext) _ProgramMembershipHistory_role(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalNProgramMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ProgramMembershipHistoryRole does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_programID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_programID(ctx, field) +func (ec *executionContext) _Program_narratives(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_narratives(ctx, field) if err != nil { return graphql.Null } @@ -163779,38 +80836,81 @@ func (ec *executionContext) _ProgramMembershipHistory_programID(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramID, nil + return obj.Narratives(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Narrative) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistory_userID(ctx, field) +func (ec *executionContext) _Program_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_actionPlans(ctx, field) if err != nil { return graphql.Null } @@ -163823,38 +80923,77 @@ func (ec *executionContext) _ProgramMembershipHistory_userID(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.ActionPlans(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.ActionPlan) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistory", + Object: "Program", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Program_standards(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_standards(ctx, field) if err != nil { return graphql.Null } @@ -163867,7 +81006,7 @@ func (ec *executionContext) _ProgramMembershipHistoryConnection_edges(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Standards(ctx) }) if err != nil { ec.Error(ctx, err) @@ -163876,32 +81015,74 @@ func (ec *executionContext) _ProgramMembershipHistoryConnection_edges(ctx contex if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ProgramMembershipHistoryEdge) + res := resTmp.([]*generated.Standard) fc.Result = res - return ec.marshalOProgramMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistoryEdge(ctx, field.Selections, res) + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryConnection", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_ProgramMembershipHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_ProgramMembershipHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Program_users(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_users(ctx, field) if err != nil { return graphql.Null } @@ -163914,48 +81095,109 @@ func (ec *executionContext) _ProgramMembershipHistoryConnection_pageInfo(ctx con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Users(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryConnection", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Program_members(ctx context.Context, field graphql.CollectedField, obj *generated.Program) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Program_members(ctx, field) if err != nil { return graphql.Null } @@ -163968,38 +81210,61 @@ func (ec *executionContext) _ProgramMembershipHistoryConnection_totalCount(ctx c }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Members(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.ProgramMembership) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOProgramMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Program_members(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryConnection", + Object: "Program", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_ProgramMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembership_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembership_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembership_userID(ctx, field) + case "program": + return ec.fieldContext_ProgramMembership_program(ctx, field) + case "user": + return ec.fieldContext_ProgramMembership_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistoryEdge_node(ctx, field) +func (ec *executionContext) _ProgramConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -164012,7 +81277,7 @@ func (ec *executionContext) _ProgramMembershipHistoryEdge_node(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -164021,54 +81286,32 @@ func (ec *executionContext) _ProgramMembershipHistoryEdge_node(ctx context.Conte if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.ProgramMembershipHistory) + res := resTmp.([]*generated.ProgramEdge) fc.Result = res - return ec.marshalOProgramMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistory(ctx, field.Selections, res) + return ec.marshalOProgramEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryEdge", + Object: "ProgramConnection", 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_ProgramMembershipHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_ProgramMembershipHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_ProgramMembershipHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_ProgramMembershipHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_ProgramMembershipHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProgramMembershipHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProgramMembershipHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProgramMembershipHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProgramMembershipHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProgramMembershipHistory_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembershipHistory_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembershipHistory_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembershipHistory_userID(ctx, field) + case "node": + return ec.fieldContext_ProgramEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ProgramEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _ProgramMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _ProgramConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -164081,7 +81324,7 @@ func (ec *executionContext) _ProgramMembershipHistoryEdge_cursor(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -164093,26 +81336,36 @@ func (ec *executionContext) _ProgramMembershipHistoryEdge_cursor(ctx context.Con } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipHistoryEdge", + Object: "ProgramConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + 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) _ProgramMembershipUpdatePayload_programMembership(ctx context.Context, field graphql.CollectedField, obj *ProgramMembershipUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramMembershipUpdatePayload_programMembership(ctx, field) +func (ec *executionContext) _ProgramConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -164125,7 +81378,7 @@ func (ec *executionContext) _ProgramMembershipUpdatePayload_programMembership(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramMembership, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -164137,52 +81390,26 @@ func (ec *executionContext) _ProgramMembershipUpdatePayload_programMembership(ct } return graphql.Null } - res := resTmp.(*generated.ProgramMembership) + res := resTmp.(int) fc.Result = res - return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramMembershipUpdatePayload_programMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramMembershipUpdatePayload", + Object: "ProgramConnection", 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_ProgramMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembership_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembership_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembership_userID(ctx, field) - case "program": - return ec.fieldContext_ProgramMembership_program(ctx, field) - case "user": - return ec.fieldContext_ProgramMembership_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _ProgramSearchResult_programs(ctx context.Context, field graphql.CollectedField, obj *ProgramSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramSearchResult_programs(ctx, field) +func (ec *executionContext) _ProgramEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -164195,7 +81422,7 @@ func (ec *executionContext) _ProgramSearchResult_programs(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -164204,14 +81431,14 @@ func (ec *executionContext) _ProgramSearchResult_programs(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(*generated.Program) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramSearchResult_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramSearchResult", + Object: "ProgramEdge", Field: field, IsMethod: false, IsResolver: false, @@ -164294,8 +81521,8 @@ func (ec *executionContext) fieldContext_ProgramSearchResult_programs(_ context. return fc, nil } -func (ec *executionContext) _ProgramUpdatePayload_program(ctx context.Context, field graphql.CollectedField, obj *ProgramUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_ProgramUpdatePayload_program(ctx, field) +func (ec *executionContext) _ProgramEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -164308,7 +81535,7 @@ func (ec *executionContext) _ProgramUpdatePayload_program(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Program, nil + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -164320,98 +81547,26 @@ func (ec *executionContext) _ProgramUpdatePayload_program(ctx context.Context, f } return graphql.Null } - res := resTmp.(*generated.Program) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_ProgramUpdatePayload_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "ProgramUpdatePayload", + Object: "ProgramEdge", 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_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } 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) +func (ec *executionContext) _ProgramHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -164424,46 +81579,38 @@ func (ec *executionContext) _Query_node(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Node(rctx, fc.Args["id"].(string)) + 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.(generated.Noder) + res := resTmp.(string) fc.Result = res - return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_node(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_node_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_nodes(ctx, field) +func (ec *executionContext) _ProgramHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -164476,7 +81623,7 @@ func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Nodes(rctx, fc.Args["ids"].([]string)) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -164488,37 +81635,26 @@ func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.([]generated.Noder) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_nodes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_nodes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_apiTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_apiTokens(ctx, field) +func (ec *executionContext) _ProgramHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -164531,57 +81667,35 @@ func (ec *executionContext) _Query_apiTokens(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().APITokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.APITokenWhereInput)) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.APITokenConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_apiTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_APITokenConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_APITokenConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_APITokenConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type APITokenConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_apiTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_actionPlans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_actionPlans(ctx, field) +func (ec *executionContext) _ProgramHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -164594,7 +81708,7 @@ func (ec *executionContext) _Query_actionPlans(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ActionPlans(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ActionPlanWhereInput)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -164606,45 +81720,26 @@ func (ec *executionContext) _Query_actionPlans(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*generated.ActionPlanConnection) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, field.Selections, res) + return ec.marshalNProgramHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ActionPlanConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ActionPlanConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ActionPlanConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanConnection", field.Name) + return nil, errors.New("field of type ProgramHistoryOpType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_actionPlanHistories(ctx, field) +func (ec *executionContext) _ProgramHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -164657,57 +81752,35 @@ func (ec *executionContext) _Query_actionPlanHistories(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ActionPlanHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ActionPlanHistoryWhereInput)) + 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.(*generated.ActionPlanHistoryConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNActionPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ActionPlanHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ActionPlanHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ActionPlanHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistoryConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_actionPlanHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_contacts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contacts(ctx, field) +func (ec *executionContext) _ProgramHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -164720,57 +81793,35 @@ func (ec *executionContext) _Query_contacts(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Contacts(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactWhereInput)) + 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.(*generated.ContactConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ContactConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ContactConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ContactConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_contactHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contactHistories(ctx, field) +func (ec *executionContext) _ProgramHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -164783,57 +81834,35 @@ func (ec *executionContext) _Query_contactHistories(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ContactHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactHistoryWhereInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.ContactHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNContactHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_contactHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ContactHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ContactHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contactHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_controls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_controls(ctx, field) +func (ec *executionContext) _ProgramHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -164846,57 +81875,35 @@ func (ec *executionContext) _Query_controls(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Controls(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlWhereInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.ControlConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ControlConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ControlConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_controlHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_controlHistories(ctx, field) +func (ec *executionContext) _ProgramHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -164909,57 +81916,35 @@ func (ec *executionContext) _Query_controlHistories(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ControlHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlHistoryWhereInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.ControlHistoryConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNControlHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_controlHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ControlHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ControlHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlHistoryConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_controlObjectives(ctx, field) +func (ec *executionContext) _ProgramHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -164972,57 +81957,35 @@ func (ec *executionContext) _Query_controlObjectives(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ControlObjectives(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.ControlObjectiveConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ControlObjectiveConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlObjectiveConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ControlObjectiveConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_controlObjectiveHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_controlObjectiveHistories(ctx, field) +func (ec *executionContext) _ProgramHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -165035,57 +81998,76 @@ func (ec *executionContext) _Query_controlObjectiveHistories(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ControlObjectiveHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlObjectiveHistoryWhereInput)) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.ControlObjectiveHistoryConnection) + res := resTmp.([]string) fc.Result = res - return ec.marshalNControlObjectiveHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryConnection(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_controlObjectiveHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ControlObjectiveHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ControlObjectiveHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ControlObjectiveHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _ProgramHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_ownerID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlObjectiveHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OwnerID, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramHistory", + 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) _Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentDataSlice(ctx, field) +func (ec *executionContext) _ProgramHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -165098,7 +82080,7 @@ func (ec *executionContext) _Query_documentDataSlice(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentDataSlice(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataWhereInput)) + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -165110,45 +82092,67 @@ func (ec *executionContext) _Query_documentDataSlice(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.DocumentDataConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentDataConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentDataConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DocumentDataConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _ProgramHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_description(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentDataSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Description, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(string) + fc.Result = res + return ec.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramHistory", + 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) _Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentDataHistories(ctx, field) +func (ec *executionContext) _ProgramHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -165161,7 +82165,7 @@ func (ec *executionContext) _Query_documentDataHistories(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentDataHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataHistoryWhereInput)) + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -165173,45 +82177,26 @@ func (ec *executionContext) _Query_documentDataHistories(ctx context.Context, fi } return graphql.Null } - res := resTmp.(*generated.DocumentDataHistoryConnection) + res := resTmp.(enums.ProgramStatus) fc.Result = res - return ec.marshalNDocumentDataHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx, field.Selections, res) + return ec.marshalNProgramHistoryProgramStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐProgramStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_DocumentDataHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryConnection", field.Name) + return nil, errors.New("field of type ProgramHistoryProgramStatus does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentDataHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entities(ctx, field) +func (ec *executionContext) _ProgramHistory_startDate(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_startDate(ctx, field) if err != nil { return graphql.Null } @@ -165224,57 +82209,76 @@ func (ec *executionContext) _Query_entities(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Entities(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) + return obj.StartDate, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.EntityConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_startDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } + return fc, nil +} + +func (ec *executionContext) _ProgramHistory_endDate(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_endDate(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EndDate, nil + }) + if err != nil { ec.Error(ctx, err) - return fc, err + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(time.Time) + fc.Result = res + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramHistory_endDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Time does not have child fields") + }, } return fc, nil } -func (ec *executionContext) _Query_entityHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityHistories(ctx, field) +func (ec *executionContext) _ProgramHistory_auditorReady(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_auditorReady(ctx, field) if err != nil { return graphql.Null } @@ -165287,7 +82291,7 @@ func (ec *executionContext) _Query_entityHistories(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityHistoryOrder), fc.Args["where"].(*generated.EntityHistoryWhereInput)) + return obj.AuditorReady, nil }) if err != nil { ec.Error(ctx, err) @@ -165299,45 +82303,26 @@ func (ec *executionContext) _Query_entityHistories(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*generated.EntityHistoryConnection) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEntityHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entityHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_auditorReady(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityHistoryConnection", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityTypes(ctx, field) +func (ec *executionContext) _ProgramHistory_auditorWriteComments(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_auditorWriteComments(ctx, field) if err != nil { return graphql.Null } @@ -165350,7 +82335,7 @@ func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityTypes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) + return obj.AuditorWriteComments, nil }) if err != nil { ec.Error(ctx, err) @@ -165362,45 +82347,26 @@ func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*generated.EntityTypeConnection) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entityTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_auditorWriteComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityTypeConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeConnection", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityTypeHistories(ctx, field) +func (ec *executionContext) _ProgramHistory_auditorReadComments(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistory_auditorReadComments(ctx, field) if err != nil { return graphql.Null } @@ -165413,7 +82379,7 @@ func (ec *executionContext) _Query_entityTypeHistories(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityTypeHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeHistoryOrder), fc.Args["where"].(*generated.EntityTypeHistoryWhereInput)) + return obj.AuditorReadComments, nil }) if err != nil { ec.Error(ctx, err) @@ -165425,45 +82391,26 @@ func (ec *executionContext) _Query_entityTypeHistories(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*generated.EntityTypeHistoryConnection) + res := resTmp.(bool) fc.Result = res - return ec.marshalNEntityTypeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistory_auditorReadComments(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryConnection", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityTypeHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } - -func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_events(ctx, field) + +func (ec *executionContext) _ProgramHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -165476,57 +82423,41 @@ func (ec *executionContext) _Query_events(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Events(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventWhereInput)) + 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.(*generated.EventConnection) + res := resTmp.([]*generated.ProgramHistoryEdge) fc.Result = res - return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, field.Selections, res) + return ec.marshalOProgramHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_EventConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EventConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EventConnection_totalCount(ctx, field) + case "node": + return ec.fieldContext_ProgramHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ProgramHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramHistoryEdge", 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_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_eventHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_eventHistories(ctx, field) +func (ec *executionContext) _ProgramHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -165539,7 +82470,7 @@ func (ec *executionContext) _Query_eventHistories(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EventHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventHistoryWhereInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -165551,45 +82482,36 @@ func (ec *executionContext) _Query_eventHistories(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*generated.EventHistoryConnection) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNEventHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_eventHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_EventHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) + 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 EventHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_eventHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_files(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_files(ctx, field) +func (ec *executionContext) _ProgramHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -165602,7 +82524,7 @@ func (ec *executionContext) _Query_files(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Files(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileWhereInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -165614,45 +82536,26 @@ func (ec *executionContext) _Query_files(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(*generated.FileConnection) + res := resTmp.(int) fc.Result = res - return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_FileConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_FileConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_FileConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type FileConnection", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_fileHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_fileHistories(ctx, field) +func (ec *executionContext) _ProgramHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -165665,57 +82568,77 @@ func (ec *executionContext) _Query_fileHistories(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FileHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileHistoryWhereInput)) + 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.(*generated.FileHistoryConnection) + res := resTmp.(*generated.ProgramHistory) fc.Result = res - return ec.marshalNFileHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx, field.Selections, res) + return ec.marshalOProgramHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_fileHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_FileHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) + case "id": + return ec.fieldContext_ProgramHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ProgramHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ProgramHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ProgramHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ProgramHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ProgramHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_ProgramHistory_name(ctx, field) + case "description": + return ec.fieldContext_ProgramHistory_description(ctx, field) + case "status": + return ec.fieldContext_ProgramHistory_status(ctx, field) + case "startDate": + return ec.fieldContext_ProgramHistory_startDate(ctx, field) + case "endDate": + return ec.fieldContext_ProgramHistory_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_ProgramHistory_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_ProgramHistory_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_ProgramHistory_auditorReadComments(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FileHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramHistory", 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_fileHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groups(ctx, field) +func (ec *executionContext) _ProgramHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -165728,7 +82651,7 @@ func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Groups(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -165740,45 +82663,26 @@ func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(*generated.GroupConnection) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupConnection", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_groupHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupHistories(ctx, field) +func (ec *executionContext) _ProgramMembership_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_id(ctx, field) if err != nil { return graphql.Null } @@ -165791,7 +82695,7 @@ func (ec *executionContext) _Query_groupHistories(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupHistoryOrder), fc.Args["where"].(*generated.GroupHistoryWhereInput)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -165803,45 +82707,26 @@ func (ec *executionContext) _Query_groupHistories(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*generated.GroupHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupHistoryConnection", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupMemberships(ctx, field) +func (ec *executionContext) _ProgramMembership_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -165854,57 +82739,35 @@ func (ec *executionContext) _Query_groupMemberships(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipWhereInput)) + 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.(*generated.GroupMembershipConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupMembershipConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupMembershipHistories(ctx, field) +func (ec *executionContext) _ProgramMembership_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -165917,57 +82780,35 @@ func (ec *executionContext) _Query_groupMembershipHistories(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipHistoryWhereInput)) + 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.(*generated.GroupMembershipHistoryConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNGroupMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_groupSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSettings(ctx, field) +func (ec *executionContext) _ProgramMembership_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -165980,57 +82821,35 @@ func (ec *executionContext) _Query_groupSettings(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingWhereInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.GroupSettingConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupSettingConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSettingHistories(ctx, field) +func (ec *executionContext) _ProgramMembership_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -166043,57 +82862,35 @@ func (ec *executionContext) _Query_groupSettingHistories(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingHistoryWhereInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.GroupSettingHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNGroupSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_hushes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_hushes(ctx, field) +func (ec *executionContext) _ProgramMembership_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -166106,57 +82903,35 @@ func (ec *executionContext) _Query_hushes(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Hushes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.HushConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_hushes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_HushConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_HushConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_HushConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_hushes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_hushHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_hushHistories(ctx, field) +func (ec *executionContext) _ProgramMembership_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -166169,57 +82944,35 @@ func (ec *executionContext) _Query_hushHistories(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().HushHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushHistoryOrder), fc.Args["where"].(*generated.HushHistoryWhereInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.HushHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNHushHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_hushHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_HushHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type HushHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_hushHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_integrations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integrations(ctx, field) +func (ec *executionContext) _ProgramMembership_role(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_role(ctx, field) if err != nil { return graphql.Null } @@ -166232,7 +82985,7 @@ func (ec *executionContext) _Query_integrations(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Integrations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -166244,45 +82997,26 @@ func (ec *executionContext) _Query_integrations(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(*generated.IntegrationConnection) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, field.Selections, res) + return ec.marshalNProgramMembershipRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_IntegrationConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_IntegrationConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationConnection", field.Name) + return nil, errors.New("field of type ProgramMembershipRole does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integrationHistories(ctx, field) +func (ec *executionContext) _ProgramMembership_programID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_programID(ctx, field) if err != nil { return graphql.Null } @@ -166295,7 +83029,7 @@ func (ec *executionContext) _Query_integrationHistories(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IntegrationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationHistoryOrder), fc.Args["where"].(*generated.IntegrationHistoryWhereInput)) + return obj.ProgramID, nil }) if err != nil { ec.Error(ctx, err) @@ -166307,45 +83041,26 @@ func (ec *executionContext) _Query_integrationHistories(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*generated.IntegrationHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNIntegrationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryConnection", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integrationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_internalPolicies(ctx, field) +func (ec *executionContext) _ProgramMembership_userID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_userID(ctx, field) if err != nil { return graphql.Null } @@ -166358,7 +83073,7 @@ func (ec *executionContext) _Query_internalPolicies(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().InternalPolicies(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InternalPolicyWhereInput)) + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) @@ -166370,45 +83085,26 @@ func (ec *executionContext) _Query_internalPolicies(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.InternalPolicyConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_InternalPolicyConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_InternalPolicyConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_InternalPolicyConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyConnection", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_internalPolicyHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_internalPolicyHistories(ctx, field) +func (ec *executionContext) _ProgramMembership_program(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_program(ctx, field) if err != nil { return graphql.Null } @@ -166421,7 +83117,7 @@ func (ec *executionContext) _Query_internalPolicyHistories(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().InternalPolicyHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InternalPolicyHistoryWhereInput)) + return obj.Program(ctx) }) if err != nil { ec.Error(ctx, err) @@ -166433,45 +83129,98 @@ func (ec *executionContext) _Query_internalPolicyHistories(ctx context.Context, } return graphql.Null } - res := resTmp.(*generated.InternalPolicyHistoryConnection) + res := resTmp.(*generated.Program) fc.Result = res - return ec.marshalNInternalPolicyHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryConnection(ctx, field.Selections, res) + return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_internalPolicyHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Program", 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_internalPolicyHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_invites(ctx, field) +func (ec *executionContext) _ProgramMembership_user(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembership) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembership_user(ctx, field) if err != nil { return graphql.Null } @@ -166484,7 +83233,7 @@ func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Invites(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InviteWhereInput)) + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) @@ -166496,45 +83245,100 @@ func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(*generated.InviteConnection) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_invites(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembership_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembership", Field: field, IsMethod: true, - IsResolver: true, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_InviteConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_InviteConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_InviteConnection_totalCount(ctx, field) + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InviteConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", 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_invites_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_narratives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_narratives(ctx, field) +func (ec *executionContext) _ProgramMembershipConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -166547,57 +83351,41 @@ func (ec *executionContext) _Query_narratives(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Narratives(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NarrativeWhereInput)) + 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.(*generated.NarrativeConnection) + res := resTmp.([]*generated.ProgramMembershipEdge) fc.Result = res - return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, field.Selections, res) + return ec.marshalOProgramMembershipEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_NarrativeConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NarrativeConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NarrativeConnection_totalCount(ctx, field) + case "node": + return ec.fieldContext_ProgramMembershipEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ProgramMembershipEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NarrativeConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipEdge", 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_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_narrativeHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_narrativeHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -166610,7 +83398,7 @@ func (ec *executionContext) _Query_narrativeHistories(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().NarrativeHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NarrativeHistoryWhereInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -166622,45 +83410,36 @@ func (ec *executionContext) _Query_narrativeHistories(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.NarrativeHistoryConnection) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNNarrativeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryConnection(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_narrativeHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) + 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 NarrativeHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_narrativeHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_notes(ctx, field) +func (ec *executionContext) _ProgramMembershipConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -166673,7 +83452,7 @@ func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Notes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteWhereInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -166685,45 +83464,26 @@ func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(*generated.NoteConnection) + res := resTmp.(int) fc.Result = res - return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_NoteConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NoteConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NoteConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type NoteConnection", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_noteHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_noteHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -166736,57 +83496,61 @@ func (ec *executionContext) _Query_noteHistories(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().NoteHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteHistoryWhereInput)) + 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.(*generated.NoteHistoryConnection) + res := resTmp.(*generated.ProgramMembership) fc.Result = res - return ec.marshalNNoteHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx, field.Selections, res) + return ec.marshalOProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_noteHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_NoteHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) + case "id": + return ec.fieldContext_ProgramMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembership_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembership_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembership_userID(ctx, field) + case "program": + return ec.fieldContext_ProgramMembership_program(ctx, field) + case "user": + return ec.fieldContext_ProgramMembership_user(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NoteHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", 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_noteHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgMemberships(ctx, field) +func (ec *executionContext) _ProgramMembershipEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -166799,7 +83563,7 @@ func (ec *executionContext) _Query_orgMemberships(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipWhereInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -166811,45 +83575,26 @@ func (ec *executionContext) _Query_orgMemberships(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*generated.OrgMembershipConnection) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrgMembershipConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipConnection", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgMembershipHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -166862,7 +83607,7 @@ func (ec *executionContext) _Query_orgMembershipHistories(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipHistoryWhereInput)) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -166874,45 +83619,26 @@ func (ec *executionContext) _Query_orgMembershipHistories(ctx context.Context, f } return graphql.Null } - res := resTmp.(*generated.OrgMembershipHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryConnection", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_orgSubscriptions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgSubscriptions(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -166925,7 +83651,7 @@ func (ec *executionContext) _Query_orgSubscriptions(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgSubscriptions(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgSubscriptionWhereInput)) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) @@ -166937,45 +83663,26 @@ func (ec *executionContext) _Query_orgSubscriptions(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.OrgSubscriptionConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrgSubscriptionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionConnection(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_orgSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrgSubscriptionConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrgSubscriptionConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrgSubscriptionConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgSubscriptions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_orgSubscriptionHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgSubscriptionHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -166988,57 +83695,35 @@ func (ec *executionContext) _Query_orgSubscriptionHistories(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgSubscriptionHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgSubscriptionHistoryWhereInput)) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.OrgSubscriptionHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrgSubscriptionHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_orgSubscriptionHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrgSubscriptionHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrgSubscriptionHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrgSubscriptionHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgSubscriptionHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_organizations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizations(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -167051,7 +83736,7 @@ func (ec *executionContext) _Query_organizations(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Organizations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -167063,45 +83748,26 @@ func (ec *executionContext) _Query_organizations(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*generated.OrganizationConnection) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) + return ec.marshalNProgramMembershipHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, 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) - case "totalCount": - return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name) + return nil, errors.New("field of type ProgramMembershipHistoryOpType does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -167114,57 +83780,35 @@ func (ec *executionContext) _Query_organizationHistories(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationHistoryOrder), fc.Args["where"].(*generated.OrganizationHistoryWhereInput)) + 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.(*generated.OrganizationHistoryConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrganizationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSettings(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -167177,57 +83821,35 @@ func (ec *executionContext) _Query_organizationSettings(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingWhereInput)) + 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.(*generated.OrganizationSettingConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_organizationSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSettingHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -167240,57 +83862,35 @@ func (ec *executionContext) _Query_organizationSettingHistories(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingHistoryWhereInput)) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.OrganizationSettingHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNOrganizationSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organizationSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_personalAccessTokens(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -167303,57 +83903,35 @@ func (ec *executionContext) _Query_personalAccessTokens(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PersonalAccessTokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.PersonalAccessTokenConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_procedures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_procedures(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -167366,57 +83944,35 @@ func (ec *executionContext) _Query_procedures(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Procedures(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProcedureWhereInput)) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.ProcedureConnection) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ProcedureConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ProcedureConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureConnection", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_procedureHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_procedureHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -167429,57 +83985,35 @@ func (ec *executionContext) _Query_procedureHistories(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ProcedureHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProcedureHistoryWhereInput)) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.ProcedureHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNProcedureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryConnection(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_procedureHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProcedureHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_procedureHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_programs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_programs(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_role(ctx, field) if err != nil { return graphql.Null } @@ -167492,7 +84026,7 @@ func (ec *executionContext) _Query_programs(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Programs(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramWhereInput)) + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -167504,45 +84038,26 @@ func (ec *executionContext) _Query_programs(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(*generated.ProgramConnection) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, field.Selections, res) + return ec.marshalNProgramMembershipHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ProgramConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProgramConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ProgramConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramConnection", field.Name) + return nil, errors.New("field of type ProgramMembershipHistoryRole does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_programHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_programHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_programID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_programID(ctx, field) if err != nil { return graphql.Null } @@ -167555,7 +84070,7 @@ func (ec *executionContext) _Query_programHistories(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ProgramHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramHistoryWhereInput)) + return obj.ProgramID, nil }) if err != nil { ec.Error(ctx, err) @@ -167567,45 +84082,26 @@ func (ec *executionContext) _Query_programHistories(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.ProgramHistoryConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistoryConnection(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_programHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_programID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ProgramHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProgramHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ProgramHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramHistoryConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_programHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_programMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_programMemberships(ctx, field) +func (ec *executionContext) _ProgramMembershipHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistory_userID(ctx, field) if err != nil { return graphql.Null } @@ -167618,7 +84114,7 @@ func (ec *executionContext) _Query_programMemberships(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ProgramMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) @@ -167630,45 +84126,26 @@ func (ec *executionContext) _Query_programMemberships(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.ProgramMembershipConnection) + res := resTmp.(string) fc.Result = res - return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_programMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistory", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_ProgramMembershipConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProgramMembershipConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ProgramMembershipConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipConnection", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_programMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_programMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_programMembershipHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -167681,57 +84158,41 @@ func (ec *executionContext) _Query_programMembershipHistories(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ProgramMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramMembershipHistoryWhereInput)) + 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.(*generated.ProgramMembershipHistoryConnection) + res := resTmp.([]*generated.ProgramMembershipHistoryEdge) fc.Result = res - return ec.marshalNProgramMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistoryConnection(ctx, field.Selections, res) + return ec.marshalOProgramMembershipHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_programMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_ProgramMembershipHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_ProgramMembershipHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_ProgramMembershipHistoryConnection_totalCount(ctx, field) + case "node": + return ec.fieldContext_ProgramMembershipHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_ProgramMembershipHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipHistoryEdge", 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_programMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_risks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_risks(ctx, field) +func (ec *executionContext) _ProgramMembershipHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -167744,7 +84205,7 @@ func (ec *executionContext) _Query_risks(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Risks(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.RiskWhereInput)) + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -167756,45 +84217,36 @@ func (ec *executionContext) _Query_risks(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(*generated.RiskConnection) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_RiskConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_RiskConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_RiskConnection_totalCount(ctx, field) + 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 RiskConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_riskHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_riskHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -167807,7 +84259,7 @@ func (ec *executionContext) _Query_riskHistories(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().RiskHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.RiskHistoryWhereInput)) + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -167819,45 +84271,26 @@ func (ec *executionContext) _Query_riskHistories(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*generated.RiskHistoryConnection) + res := resTmp.(int) fc.Result = res - return ec.marshalNRiskHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryConnection(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_riskHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistoryConnection", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_RiskHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_RiskHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_RiskHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type RiskHistoryConnection", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_riskHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_standards(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_standards(ctx, field) +func (ec *executionContext) _ProgramMembershipHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -167870,57 +84303,63 @@ func (ec *executionContext) _Query_standards(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Standards(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.StandardWhereInput)) + 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.(*generated.StandardConnection) + res := resTmp.(*generated.ProgramMembershipHistory) fc.Result = res - return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, field.Selections, res) + return ec.marshalOProgramMembershipHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_standards(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "edges": - return ec.fieldContext_StandardConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_StandardConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_StandardConnection_totalCount(ctx, field) + case "id": + return ec.fieldContext_ProgramMembershipHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_ProgramMembershipHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_ProgramMembershipHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_ProgramMembershipHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembershipHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembershipHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembershipHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembershipHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembershipHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembershipHistory_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembershipHistory_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembershipHistory_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembershipHistory_userID(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type StandardConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipHistory", 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_standards_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_standardHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_standardHistories(ctx, field) +func (ec *executionContext) _ProgramMembershipHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.ProgramMembershipHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -167933,7 +84372,7 @@ func (ec *executionContext) _Query_standardHistories(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().StandardHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.StandardHistoryWhereInput)) + return obj.Cursor, nil }) if err != nil { ec.Error(ctx, err) @@ -167945,45 +84384,26 @@ func (ec *executionContext) _Query_standardHistories(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.StandardHistoryConnection) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalNStandardHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryConnection(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_standardHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_ProgramMembershipHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Query", + Object: "ProgramMembershipHistoryEdge", Field: field, - IsMethod: true, - IsResolver: true, + IsMethod: false, + IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "edges": - return ec.fieldContext_StandardHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_StandardHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_StandardHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type StandardHistoryConnection", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } - defer func() { - if r := recover(); r != nil { - err = ec.Recover(ctx, r) - ec.Error(ctx, err) - } - }() - ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_standardHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { - ec.Error(ctx, err) - return fc, err - } return fc, nil } -func (ec *executionContext) _Query_subcontrols(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subcontrols(ctx, field) +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 } @@ -167996,39 +84416,28 @@ func (ec *executionContext) _Query_subcontrols(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Subcontrols(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubcontrolWhereInput)) + return ec.resolvers.Query().Node(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.SubcontrolConnection) + res := resTmp.(generated.Noder) fc.Result = res - return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, field.Selections, res) + return ec.marshalONode2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +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) { - switch field.Name { - case "edges": - return ec.fieldContext_SubcontrolConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolConnection", field.Name) + return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") }, } defer func() { @@ -168038,15 +84447,15 @@ func (ec *executionContext) fieldContext_Query_subcontrols(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + 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_subcontrolHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subcontrolHistories(ctx, field) +func (ec *executionContext) _Query_nodes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_nodes(ctx, field) if err != nil { return graphql.Null } @@ -168059,7 +84468,7 @@ func (ec *executionContext) _Query_subcontrolHistories(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SubcontrolHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubcontrolHistoryWhereInput)) + return ec.resolvers.Query().Nodes(rctx, fc.Args["ids"].([]string)) }) if err != nil { ec.Error(ctx, err) @@ -168071,27 +84480,19 @@ func (ec *executionContext) _Query_subcontrolHistories(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*generated.SubcontrolHistoryConnection) + res := resTmp.([]generated.Noder) fc.Result = res - return ec.marshalNSubcontrolHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryConnection(ctx, field.Selections, res) + return ec.marshalNNode2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoder(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_subcontrolHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_nodes(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) { - switch field.Name { - case "edges": - return ec.fieldContext_SubcontrolHistoryConnection_edges(ctx, field) - case "pageInfo": - return ec.fieldContext_SubcontrolHistoryConnection_pageInfo(ctx, field) - case "totalCount": - return ec.fieldContext_SubcontrolHistoryConnection_totalCount(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistoryConnection", field.Name) + return nil, errors.New("FieldContext.Child cannot be called on type INTERFACE") }, } defer func() { @@ -168101,15 +84502,15 @@ func (ec *executionContext) fieldContext_Query_subcontrolHistories(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subcontrolHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_nodes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subscribers(ctx, field) +func (ec *executionContext) _Query_apiTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_apiTokens(ctx, field) if err != nil { return graphql.Null } @@ -168122,7 +84523,7 @@ func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Subscribers(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubscriberWhereInput)) + return ec.resolvers.Query().APITokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.APITokenWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168134,12 +84535,12 @@ func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*generated.SubscriberConnection) + res := resTmp.(*generated.APITokenConnection) fc.Result = res - return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, field.Selections, res) + return ec.marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_apiTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168148,13 +84549,13 @@ func (ec *executionContext) fieldContext_Query_subscribers(ctx context.Context, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_SubscriberConnection_edges(ctx, field) + return ec.fieldContext_APITokenConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) + return ec.fieldContext_APITokenConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_SubscriberConnection_totalCount(ctx, field) + return ec.fieldContext_APITokenConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubscriberConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type APITokenConnection", field.Name) }, } defer func() { @@ -168164,15 +84565,15 @@ func (ec *executionContext) fieldContext_Query_subscribers(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_apiTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_tfaSettings(ctx, field) +func (ec *executionContext) _Query_actionPlans(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlans(ctx, field) if err != nil { return graphql.Null } @@ -168185,7 +84586,7 @@ func (ec *executionContext) _Query_tfaSettings(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TfaSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TFASettingWhereInput)) + return ec.resolvers.Query().ActionPlans(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ActionPlanWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168197,12 +84598,12 @@ func (ec *executionContext) _Query_tfaSettings(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*generated.TFASettingConnection) + res := resTmp.(*generated.ActionPlanConnection) fc.Result = res - return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, field.Selections, res) + return ec.marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlans(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168211,13 +84612,13 @@ func (ec *executionContext) fieldContext_Query_tfaSettings(ctx context.Context, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_TFASettingConnection_edges(ctx, field) + return ec.fieldContext_ActionPlanConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) + return ec.fieldContext_ActionPlanConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_TFASettingConnection_totalCount(ctx, field) + return ec.fieldContext_ActionPlanConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TFASettingConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlanConnection", field.Name) }, } defer func() { @@ -168227,15 +84628,15 @@ func (ec *executionContext) fieldContext_Query_tfaSettings(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tfaSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_actionPlans_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_tasks(ctx, field) +func (ec *executionContext) _Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlanHistories(ctx, field) if err != nil { return graphql.Null } @@ -168248,7 +84649,7 @@ func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Tasks(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TaskWhereInput)) + return ec.resolvers.Query().ActionPlanHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ActionPlanHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168260,12 +84661,12 @@ func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(*generated.TaskConnection) + res := resTmp.(*generated.ActionPlanHistoryConnection) fc.Result = res - return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, field.Selections, res) + return ec.marshalNActionPlanHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlanHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168274,13 +84675,13 @@ func (ec *executionContext) fieldContext_Query_tasks(ctx context.Context, field Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_TaskConnection_edges(ctx, field) + return ec.fieldContext_ActionPlanHistoryConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_TaskConnection_pageInfo(ctx, field) + return ec.fieldContext_ActionPlanHistoryConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_TaskConnection_totalCount(ctx, field) + return ec.fieldContext_ActionPlanHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlanHistoryConnection", field.Name) }, } defer func() { @@ -168290,15 +84691,15 @@ func (ec *executionContext) fieldContext_Query_tasks(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_actionPlanHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_taskHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_taskHistories(ctx, field) +func (ec *executionContext) _Query_contacts(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contacts(ctx, field) if err != nil { return graphql.Null } @@ -168311,7 +84712,7 @@ func (ec *executionContext) _Query_taskHistories(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TaskHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TaskHistoryWhereInput)) + return ec.resolvers.Query().Contacts(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168323,12 +84724,12 @@ func (ec *executionContext) _Query_taskHistories(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*generated.TaskHistoryConnection) + res := resTmp.(*generated.ContactConnection) fc.Result = res - return ec.marshalNTaskHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistoryConnection(ctx, field.Selections, res) + return ec.marshalNContactConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_taskHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contacts(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168337,13 +84738,13 @@ func (ec *executionContext) fieldContext_Query_taskHistories(ctx context.Context Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_TaskHistoryConnection_edges(ctx, field) + return ec.fieldContext_ContactConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_TaskHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ContactConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_TaskHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ContactConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactConnection", field.Name) }, } defer func() { @@ -168353,15 +84754,15 @@ func (ec *executionContext) fieldContext_Query_taskHistories(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_taskHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_contacts_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_templates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_templates(ctx, field) +func (ec *executionContext) _Query_contactHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contactHistories(ctx, field) if err != nil { return graphql.Null } @@ -168374,7 +84775,7 @@ func (ec *executionContext) _Query_templates(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Templates(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) + return ec.resolvers.Query().ContactHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ContactHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168386,12 +84787,12 @@ func (ec *executionContext) _Query_templates(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(*generated.TemplateConnection) + res := resTmp.(*generated.ContactHistoryConnection) fc.Result = res - return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, field.Selections, res) + return ec.marshalNContactHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_templates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contactHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168400,13 +84801,13 @@ func (ec *executionContext) fieldContext_Query_templates(ctx context.Context, fi Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_TemplateConnection_edges(ctx, field) + return ec.fieldContext_ContactHistoryConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_TemplateConnection_pageInfo(ctx, field) + return ec.fieldContext_ContactHistoryConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_TemplateConnection_totalCount(ctx, field) + return ec.fieldContext_ContactHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TemplateConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactHistoryConnection", field.Name) }, } defer func() { @@ -168416,15 +84817,15 @@ func (ec *executionContext) fieldContext_Query_templates(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_contactHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_templateHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_templateHistories(ctx, field) +func (ec *executionContext) _Query_controls(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controls(ctx, field) if err != nil { return graphql.Null } @@ -168437,7 +84838,7 @@ func (ec *executionContext) _Query_templateHistories(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TemplateHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateHistoryOrder), fc.Args["where"].(*generated.TemplateHistoryWhereInput)) + return ec.resolvers.Query().Controls(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168449,12 +84850,12 @@ func (ec *executionContext) _Query_templateHistories(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.TemplateHistoryConnection) + res := resTmp.(*generated.ControlConnection) fc.Result = res - return ec.marshalNTemplateHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx, field.Selections, res) + return ec.marshalNControlConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_templateHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controls(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168463,13 +84864,13 @@ func (ec *executionContext) fieldContext_Query_templateHistories(ctx context.Con Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) + return ec.fieldContext_ControlConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ControlConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlConnection", field.Name) }, } defer func() { @@ -168479,15 +84880,15 @@ func (ec *executionContext) fieldContext_Query_templateHistories(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_templateHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controls_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_users(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_users(ctx, field) +func (ec *executionContext) _Query_controlHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlHistories(ctx, field) if err != nil { return graphql.Null } @@ -168500,7 +84901,7 @@ func (ec *executionContext) _Query_users(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Users(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) + return ec.resolvers.Query().ControlHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168512,12 +84913,12 @@ func (ec *executionContext) _Query_users(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(*generated.UserConnection) + res := resTmp.(*generated.ControlHistoryConnection) fc.Result = res - return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, field.Selections, res) + return ec.marshalNControlHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168526,13 +84927,13 @@ func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_UserConnection_edges(ctx, field) + return ec.fieldContext_ControlHistoryConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_UserConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlHistoryConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_UserConnection_totalCount(ctx, field) + return ec.fieldContext_ControlHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlHistoryConnection", field.Name) }, } defer func() { @@ -168542,15 +84943,15 @@ func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_userHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userHistories(ctx, field) +func (ec *executionContext) _Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjectives(ctx, field) if err != nil { return graphql.Null } @@ -168563,7 +84964,7 @@ func (ec *executionContext) _Query_userHistories(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserHistoryOrder), fc.Args["where"].(*generated.UserHistoryWhereInput)) + return ec.resolvers.Query().ControlObjectives(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlObjectiveWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168575,12 +84976,12 @@ func (ec *executionContext) _Query_userHistories(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*generated.UserHistoryConnection) + res := resTmp.(*generated.ControlObjectiveConnection) fc.Result = res - return ec.marshalNUserHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx, field.Selections, res) + return ec.marshalNControlObjectiveConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_userHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjectives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168589,13 +84990,13 @@ func (ec *executionContext) fieldContext_Query_userHistories(ctx context.Context Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_UserHistoryConnection_edges(ctx, field) + return ec.fieldContext_ControlObjectiveConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlObjectiveConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_ControlObjectiveConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveConnection", field.Name) }, } defer func() { @@ -168605,15 +85006,15 @@ func (ec *executionContext) fieldContext_Query_userHistories(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlObjectives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_userSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSettings(ctx, field) +func (ec *executionContext) _Query_controlObjectiveHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjectiveHistories(ctx, field) if err != nil { return graphql.Null } @@ -168626,7 +85027,7 @@ func (ec *executionContext) _Query_userSettings(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingWhereInput)) + return ec.resolvers.Query().ControlObjectiveHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ControlObjectiveHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168638,12 +85039,12 @@ func (ec *executionContext) _Query_userSettings(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(*generated.UserSettingConnection) + res := resTmp.(*generated.ControlObjectiveHistoryConnection) fc.Result = res - return ec.marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx, field.Selections, res) + return ec.marshalNControlObjectiveHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_userSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjectiveHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168652,13 +85053,13 @@ func (ec *executionContext) fieldContext_Query_userSettings(ctx context.Context, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_UserSettingConnection_edges(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_UserSettingConnection_totalCount(ctx, field) + return ec.fieldContext_ControlObjectiveHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSettingConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveHistoryConnection", field.Name) }, } defer func() { @@ -168668,15 +85069,15 @@ func (ec *executionContext) fieldContext_Query_userSettings(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlObjectiveHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSettingHistories(ctx, field) +func (ec *executionContext) _Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentDataSlice(ctx, field) if err != nil { return graphql.Null } @@ -168689,7 +85090,7 @@ func (ec *executionContext) _Query_userSettingHistories(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingHistoryWhereInput)) + return ec.resolvers.Query().DocumentDataSlice(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168701,12 +85102,12 @@ func (ec *executionContext) _Query_userSettingHistories(ctx context.Context, fie } return graphql.Null } - res := resTmp.(*generated.UserSettingHistoryConnection) + res := resTmp.(*generated.DocumentDataConnection) fc.Result = res - return ec.marshalNUserSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx, field.Selections, res) + return ec.marshalNDocumentDataConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentDataSlice(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168715,13 +85116,13 @@ func (ec *executionContext) fieldContext_Query_userSettingHistories(ctx context. Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) + return ec.fieldContext_DocumentDataConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) + return ec.fieldContext_DocumentDataConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) + return ec.fieldContext_DocumentDataConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentDataConnection", field.Name) }, } defer func() { @@ -168731,15 +85132,15 @@ func (ec *executionContext) fieldContext_Query_userSettingHistories(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_documentDataSlice_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_actionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_actionPlan(ctx, field) +func (ec *executionContext) _Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentDataHistories(ctx, field) if err != nil { return graphql.Null } @@ -168752,7 +85153,7 @@ func (ec *executionContext) _Query_actionPlan(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ActionPlan(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().DocumentDataHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.DocumentDataHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -168764,12 +85165,12 @@ func (ec *executionContext) _Query_actionPlan(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(*generated.ActionPlan) + res := resTmp.(*generated.DocumentDataHistoryConnection) fc.Result = res - return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) + return ec.marshalNDocumentDataHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_actionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentDataHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168777,48 +85178,14 @@ func (ec *executionContext) fieldContext_Query_actionPlan(ctx context.Context, f IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) + case "edges": + return ec.fieldContext_DocumentDataHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_DocumentDataHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_DocumentDataHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentDataHistoryConnection", field.Name) }, } defer func() { @@ -168828,15 +85195,15 @@ func (ec *executionContext) fieldContext_Query_actionPlan(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_actionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_documentDataHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminAPITokenSearch(ctx, field) +func (ec *executionContext) _Query_entities(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entities(ctx, field) if err != nil { return graphql.Null } @@ -168849,21 +85216,24 @@ func (ec *executionContext) _Query_adminAPITokenSearch(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminAPITokenSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Entities(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityOrder), fc.Args["where"].(*generated.EntityWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*APITokenSearchResult) + res := resTmp.(*generated.EntityConnection) fc.Result = res - return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx, field.Selections, res) + return ec.marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entities(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168871,10 +85241,14 @@ func (ec *executionContext) fieldContext_Query_adminAPITokenSearch(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "apiTokens": - return ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) + case "edges": + return ec.fieldContext_EntityConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APITokenSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityConnection", field.Name) }, } defer func() { @@ -168884,15 +85258,15 @@ func (ec *executionContext) fieldContext_Query_adminAPITokenSearch(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminAPITokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_entities_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminActionPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminActionPlanSearch(ctx, field) +func (ec *executionContext) _Query_entityHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityHistories(ctx, field) if err != nil { return graphql.Null } @@ -168905,21 +85279,24 @@ func (ec *executionContext) _Query_adminActionPlanSearch(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminActionPlanSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().EntityHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityHistoryOrder), fc.Args["where"].(*generated.EntityHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*ActionPlanSearchResult) + res := resTmp.(*generated.EntityHistoryConnection) fc.Result = res - return ec.marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanSearchResult(ctx, field.Selections, res) + return ec.marshalNEntityHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminActionPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168927,10 +85304,14 @@ func (ec *executionContext) fieldContext_Query_adminActionPlanSearch(ctx context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "actionPlans": - return ec.fieldContext_ActionPlanSearchResult_actionPlans(ctx, field) + case "edges": + return ec.fieldContext_EntityHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlanSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityHistoryConnection", field.Name) }, } defer func() { @@ -168940,15 +85321,15 @@ func (ec *executionContext) fieldContext_Query_adminActionPlanSearch(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminActionPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_entityHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminContactSearch(ctx, field) +func (ec *executionContext) _Query_entityTypes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityTypes(ctx, field) if err != nil { return graphql.Null } @@ -168961,21 +85342,24 @@ func (ec *executionContext) _Query_adminContactSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminContactSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().EntityTypes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeOrder), fc.Args["where"].(*generated.EntityTypeWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*ContactSearchResult) + res := resTmp.(*generated.EntityTypeConnection) fc.Result = res - return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx, field.Selections, res) + return ec.marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityTypes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -168983,10 +85367,14 @@ func (ec *executionContext) fieldContext_Query_adminContactSearch(ctx context.Co IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "contacts": - return ec.fieldContext_ContactSearchResult_contacts(ctx, field) + case "edges": + return ec.fieldContext_EntityTypeConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityTypeConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityTypeConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ContactSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityTypeConnection", field.Name) }, } defer func() { @@ -168996,15 +85384,15 @@ func (ec *executionContext) fieldContext_Query_adminContactSearch(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminContactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_entityTypes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminControlSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminControlSearch(ctx, field) +func (ec *executionContext) _Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityTypeHistories(ctx, field) if err != nil { return graphql.Null } @@ -169017,21 +85405,24 @@ func (ec *executionContext) _Query_adminControlSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminControlSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().EntityTypeHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.EntityTypeHistoryOrder), fc.Args["where"].(*generated.EntityTypeHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*ControlSearchResult) + res := resTmp.(*generated.EntityTypeHistoryConnection) fc.Result = res - return ec.marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlSearchResult(ctx, field.Selections, res) + return ec.marshalNEntityTypeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminControlSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityTypeHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169039,10 +85430,14 @@ func (ec *executionContext) fieldContext_Query_adminControlSearch(ctx context.Co IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "controls": - return ec.fieldContext_ControlSearchResult_controls(ctx, field) + case "edges": + return ec.fieldContext_EntityTypeHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EntityTypeHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EntityTypeHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityTypeHistoryConnection", field.Name) }, } defer func() { @@ -169052,15 +85447,15 @@ func (ec *executionContext) fieldContext_Query_adminControlSearch(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminControlSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_entityTypeHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminControlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminControlObjectiveSearch(ctx, field) +func (ec *executionContext) _Query_events(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_events(ctx, field) if err != nil { return graphql.Null } @@ -169073,21 +85468,24 @@ func (ec *executionContext) _Query_adminControlObjectiveSearch(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminControlObjectiveSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Events(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*ControlObjectiveSearchResult) + res := resTmp.(*generated.EventConnection) fc.Result = res - return ec.marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveSearchResult(ctx, field.Selections, res) + return ec.marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminControlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_events(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169095,10 +85493,14 @@ func (ec *executionContext) fieldContext_Query_adminControlObjectiveSearch(ctx c IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "controlObjectives": - return ec.fieldContext_ControlObjectiveSearchResult_controlObjectives(ctx, field) + case "edges": + return ec.fieldContext_EventConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EventConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EventConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EventConnection", field.Name) }, } defer func() { @@ -169108,15 +85510,15 @@ func (ec *executionContext) fieldContext_Query_adminControlObjectiveSearch(ctx c } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminControlObjectiveSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_events_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminDocumentDataSearch(ctx, field) +func (ec *executionContext) _Query_eventHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_eventHistories(ctx, field) if err != nil { return graphql.Null } @@ -169129,21 +85531,24 @@ func (ec *executionContext) _Query_adminDocumentDataSearch(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminDocumentDataSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().EventHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.EventHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*DocumentDataSearchResult) + res := resTmp.(*generated.EventHistoryConnection) fc.Result = res - return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx, field.Selections, res) + return ec.marshalNEventHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_eventHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169151,10 +85556,14 @@ func (ec *executionContext) fieldContext_Query_adminDocumentDataSearch(ctx conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "documentData": - return ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) + case "edges": + return ec.fieldContext_EventHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_EventHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_EventHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentDataSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EventHistoryConnection", field.Name) }, } defer func() { @@ -169164,15 +85573,15 @@ func (ec *executionContext) fieldContext_Query_adminDocumentDataSearch(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminDocumentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_eventHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEntitySearch(ctx, field) +func (ec *executionContext) _Query_files(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_files(ctx, field) if err != nil { return graphql.Null } @@ -169185,21 +85594,24 @@ func (ec *executionContext) _Query_adminEntitySearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEntitySearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Files(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*EntitySearchResult) + res := resTmp.(*generated.FileConnection) fc.Result = res - return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx, field.Selections, res) + return ec.marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_files(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169207,10 +85619,14 @@ func (ec *executionContext) fieldContext_Query_adminEntitySearch(ctx context.Con IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entities": - return ec.fieldContext_EntitySearchResult_entities(ctx, field) + case "edges": + return ec.fieldContext_FileConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_FileConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_FileConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntitySearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type FileConnection", field.Name) }, } defer func() { @@ -169220,15 +85636,15 @@ func (ec *executionContext) fieldContext_Query_adminEntitySearch(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminEntitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_files_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEntityTypeSearch(ctx, field) +func (ec *executionContext) _Query_fileHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_fileHistories(ctx, field) if err != nil { return graphql.Null } @@ -169241,21 +85657,24 @@ func (ec *executionContext) _Query_adminEntityTypeSearch(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEntityTypeSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().FileHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.FileHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*EntityTypeSearchResult) + res := resTmp.(*generated.FileHistoryConnection) fc.Result = res - return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx, field.Selections, res) + return ec.marshalNFileHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_fileHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169263,10 +85682,14 @@ func (ec *executionContext) fieldContext_Query_adminEntityTypeSearch(ctx context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "entityTypes": - return ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) + case "edges": + return ec.fieldContext_FileHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_FileHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_FileHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityTypeSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type FileHistoryConnection", field.Name) }, } defer func() { @@ -169276,15 +85699,15 @@ func (ec *executionContext) fieldContext_Query_adminEntityTypeSearch(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminEntityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_fileHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminEventSearch(ctx, field) +func (ec *executionContext) _Query_groups(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groups(ctx, field) if err != nil { return graphql.Null } @@ -169297,21 +85720,24 @@ func (ec *executionContext) _Query_adminEventSearch(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminEventSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Groups(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupOrder), fc.Args["where"].(*generated.GroupWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*EventSearchResult) + res := resTmp.(*generated.GroupConnection) fc.Result = res - return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx, field.Selections, res) + return ec.marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groups(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169319,10 +85745,14 @@ func (ec *executionContext) fieldContext_Query_adminEventSearch(ctx context.Cont IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "events": - return ec.fieldContext_EventSearchResult_events(ctx, field) + case "edges": + return ec.fieldContext_GroupConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EventSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupConnection", field.Name) }, } defer func() { @@ -169332,15 +85762,15 @@ func (ec *executionContext) fieldContext_Query_adminEventSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminEventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_groups_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminFileSearch(ctx, field) +func (ec *executionContext) _Query_groupHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupHistories(ctx, field) if err != nil { return graphql.Null } @@ -169353,21 +85783,24 @@ func (ec *executionContext) _Query_adminFileSearch(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminFileSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().GroupHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.GroupHistoryOrder), fc.Args["where"].(*generated.GroupHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*FileSearchResult) + res := resTmp.(*generated.GroupHistoryConnection) fc.Result = res - return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx, field.Selections, res) + return ec.marshalNGroupHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169375,10 +85808,14 @@ func (ec *executionContext) fieldContext_Query_adminFileSearch(ctx context.Conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "files": - return ec.fieldContext_FileSearchResult_files(ctx, field) + case "edges": + return ec.fieldContext_GroupHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type FileSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupHistoryConnection", field.Name) }, } defer func() { @@ -169388,15 +85825,15 @@ func (ec *executionContext) fieldContext_Query_adminFileSearch(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminFileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_groupHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminGroupSearch(ctx, field) +func (ec *executionContext) _Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupMemberships(ctx, field) if err != nil { return graphql.Null } @@ -169409,21 +85846,24 @@ func (ec *executionContext) _Query_adminGroupSearch(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminGroupSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().GroupMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*GroupSearchResult) + res := resTmp.(*generated.GroupMembershipConnection) fc.Result = res - return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx, field.Selections, res) + return ec.marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169431,10 +85871,14 @@ func (ec *executionContext) fieldContext_Query_adminGroupSearch(ctx context.Cont IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "groups": - return ec.fieldContext_GroupSearchResult_groups(ctx, field) + case "edges": + return ec.fieldContext_GroupMembershipConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupMembershipConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupMembershipConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipConnection", field.Name) }, } defer func() { @@ -169444,15 +85888,15 @@ func (ec *executionContext) fieldContext_Query_adminGroupSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminGroupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_groupMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminGroupSettingSearch(ctx, field) +func (ec *executionContext) _Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupMembershipHistories(ctx, field) if err != nil { return graphql.Null } @@ -169465,21 +85909,24 @@ func (ec *executionContext) _Query_adminGroupSettingSearch(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminGroupSettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().GroupMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupMembershipHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*GroupSettingSearchResult) + res := resTmp.(*generated.GroupMembershipHistoryConnection) fc.Result = res - return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx, field.Selections, res) + return ec.marshalNGroupMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169487,10 +85934,14 @@ func (ec *executionContext) fieldContext_Query_adminGroupSettingSearch(ctx conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "groupSettings": - return ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) + case "edges": + return ec.fieldContext_GroupMembershipHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupMembershipHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupMembershipHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSettingSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupMembershipHistoryConnection", field.Name) }, } defer func() { @@ -169500,15 +85951,15 @@ func (ec *executionContext) fieldContext_Query_adminGroupSettingSearch(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminGroupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_groupMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminIntegrationSearch(ctx, field) +func (ec *executionContext) _Query_groupSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSettings(ctx, field) if err != nil { return graphql.Null } @@ -169521,21 +85972,24 @@ func (ec *executionContext) _Query_adminIntegrationSearch(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminIntegrationSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().GroupSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*IntegrationSearchResult) + res := resTmp.(*generated.GroupSettingConnection) fc.Result = res - return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx, field.Selections, res) + return ec.marshalNGroupSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169543,10 +85997,14 @@ func (ec *executionContext) fieldContext_Query_adminIntegrationSearch(ctx contex IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "integrations": - return ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) + case "edges": + return ec.fieldContext_GroupSettingConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupSettingConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupSettingConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type IntegrationSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSettingConnection", field.Name) }, } defer func() { @@ -169556,15 +86014,15 @@ func (ec *executionContext) fieldContext_Query_adminIntegrationSearch(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminIntegrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_groupSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminInternalPolicySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminInternalPolicySearch(ctx, field) +func (ec *executionContext) _Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSettingHistories(ctx, field) if err != nil { return graphql.Null } @@ -169577,21 +86035,24 @@ func (ec *executionContext) _Query_adminInternalPolicySearch(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminInternalPolicySearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().GroupSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.GroupSettingHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*InternalPolicySearchResult) + res := resTmp.(*generated.GroupSettingHistoryConnection) fc.Result = res - return ec.marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicySearchResult(ctx, field.Selections, res) + return ec.marshalNGroupSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminInternalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169599,10 +86060,14 @@ func (ec *executionContext) fieldContext_Query_adminInternalPolicySearch(ctx con IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "internalPolicies": - return ec.fieldContext_InternalPolicySearchResult_internalPolicies(ctx, field) + case "edges": + return ec.fieldContext_GroupSettingHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_GroupSettingHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_GroupSettingHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicySearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSettingHistoryConnection", field.Name) }, } defer func() { @@ -169612,15 +86077,15 @@ func (ec *executionContext) fieldContext_Query_adminInternalPolicySearch(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminInternalPolicySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_groupSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminNarrativeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminNarrativeSearch(ctx, field) +func (ec *executionContext) _Query_hushes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_hushes(ctx, field) if err != nil { return graphql.Null } @@ -169633,21 +86098,24 @@ func (ec *executionContext) _Query_adminNarrativeSearch(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminNarrativeSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Hushes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushOrder), fc.Args["where"].(*generated.HushWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*NarrativeSearchResult) + res := resTmp.(*generated.HushConnection) fc.Result = res - return ec.marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeSearchResult(ctx, field.Selections, res) + return ec.marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminNarrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_hushes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169655,10 +86123,14 @@ func (ec *executionContext) fieldContext_Query_adminNarrativeSearch(ctx context. IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "narratives": - return ec.fieldContext_NarrativeSearchResult_narratives(ctx, field) + case "edges": + return ec.fieldContext_HushConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_HushConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_HushConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type NarrativeSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HushConnection", field.Name) }, } defer func() { @@ -169668,15 +86140,15 @@ func (ec *executionContext) fieldContext_Query_adminNarrativeSearch(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminNarrativeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_hushes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminOrgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminOrgSubscriptionSearch(ctx, field) +func (ec *executionContext) _Query_hushHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_hushHistories(ctx, field) if err != nil { return graphql.Null } @@ -169689,21 +86161,24 @@ func (ec *executionContext) _Query_adminOrgSubscriptionSearch(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminOrgSubscriptionSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().HushHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.HushHistoryOrder), fc.Args["where"].(*generated.HushHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*OrgSubscriptionSearchResult) + res := resTmp.(*generated.HushHistoryConnection) fc.Result = res - return ec.marshalOOrgSubscriptionSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionSearchResult(ctx, field.Selections, res) + return ec.marshalNHushHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminOrgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_hushHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169711,10 +86186,14 @@ func (ec *executionContext) fieldContext_Query_adminOrgSubscriptionSearch(ctx co IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "orgSubscriptions": - return ec.fieldContext_OrgSubscriptionSearchResult_orgSubscriptions(ctx, field) + case "edges": + return ec.fieldContext_HushHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_HushHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_HushHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type HushHistoryConnection", field.Name) }, } defer func() { @@ -169724,15 +86203,15 @@ func (ec *executionContext) fieldContext_Query_adminOrgSubscriptionSearch(ctx co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminOrgSubscriptionSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_hushHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminOrganizationSearch(ctx, field) +func (ec *executionContext) _Query_integrations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integrations(ctx, field) if err != nil { return graphql.Null } @@ -169745,21 +86224,24 @@ func (ec *executionContext) _Query_adminOrganizationSearch(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminOrganizationSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Integrations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationOrder), fc.Args["where"].(*generated.IntegrationWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*OrganizationSearchResult) + res := resTmp.(*generated.IntegrationConnection) fc.Result = res - return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx, field.Selections, res) + return ec.marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_integrations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169767,10 +86249,14 @@ func (ec *executionContext) fieldContext_Query_adminOrganizationSearch(ctx conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "organizations": - return ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) + case "edges": + return ec.fieldContext_IntegrationConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_IntegrationConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_IntegrationConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type IntegrationConnection", field.Name) }, } defer func() { @@ -169780,15 +86266,15 @@ func (ec *executionContext) fieldContext_Query_adminOrganizationSearch(ctx conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminOrganizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_integrations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminOrganizationSettingSearch(ctx, field) +func (ec *executionContext) _Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integrationHistories(ctx, field) if err != nil { return graphql.Null } @@ -169801,21 +86287,24 @@ func (ec *executionContext) _Query_adminOrganizationSettingSearch(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminOrganizationSettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().IntegrationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.IntegrationHistoryOrder), fc.Args["where"].(*generated.IntegrationHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*OrganizationSettingSearchResult) + res := resTmp.(*generated.IntegrationHistoryConnection) fc.Result = res - return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx, field.Selections, res) + return ec.marshalNIntegrationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_integrationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169823,10 +86312,14 @@ func (ec *executionContext) fieldContext_Query_adminOrganizationSettingSearch(ct IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "organizationSettings": - return ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) + case "edges": + return ec.fieldContext_IntegrationHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_IntegrationHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_IntegrationHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type IntegrationHistoryConnection", field.Name) }, } defer func() { @@ -169836,15 +86329,15 @@ func (ec *executionContext) fieldContext_Query_adminOrganizationSettingSearch(ct } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminOrganizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_integrationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminPersonalAccessTokenSearch(ctx, field) +func (ec *executionContext) _Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicies(ctx, field) if err != nil { return graphql.Null } @@ -169857,21 +86350,24 @@ func (ec *executionContext) _Query_adminPersonalAccessTokenSearch(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminPersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().InternalPolicies(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InternalPolicyWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*PersonalAccessTokenSearchResult) + res := resTmp.(*generated.InternalPolicyConnection) fc.Result = res - return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) + return ec.marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicies(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169879,10 +86375,14 @@ func (ec *executionContext) fieldContext_Query_adminPersonalAccessTokenSearch(ct IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "personalAccessTokens": - return ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) + case "edges": + return ec.fieldContext_InternalPolicyConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_InternalPolicyConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_InternalPolicyConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyConnection", field.Name) }, } defer func() { @@ -169892,15 +86392,15 @@ func (ec *executionContext) fieldContext_Query_adminPersonalAccessTokenSearch(ct } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminPersonalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_internalPolicies_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminProcedureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminProcedureSearch(ctx, field) +func (ec *executionContext) _Query_internalPolicyHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicyHistories(ctx, field) if err != nil { return graphql.Null } @@ -169913,21 +86413,24 @@ func (ec *executionContext) _Query_adminProcedureSearch(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminProcedureSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().InternalPolicyHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InternalPolicyHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*ProcedureSearchResult) + res := resTmp.(*generated.InternalPolicyHistoryConnection) fc.Result = res - return ec.marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureSearchResult(ctx, field.Selections, res) + return ec.marshalNInternalPolicyHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminProcedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicyHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169935,10 +86438,14 @@ func (ec *executionContext) fieldContext_Query_adminProcedureSearch(ctx context. IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "procedures": - return ec.fieldContext_ProcedureSearchResult_procedures(ctx, field) + case "edges": + return ec.fieldContext_InternalPolicyHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_InternalPolicyHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_InternalPolicyHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProcedureSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InternalPolicyHistoryConnection", field.Name) }, } defer func() { @@ -169948,15 +86455,15 @@ func (ec *executionContext) fieldContext_Query_adminProcedureSearch(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminProcedureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_internalPolicyHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminProgramSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminProgramSearch(ctx, field) +func (ec *executionContext) _Query_invites(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_invites(ctx, field) if err != nil { return graphql.Null } @@ -169969,21 +86476,24 @@ func (ec *executionContext) _Query_adminProgramSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminProgramSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Invites(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.InviteWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*ProgramSearchResult) + res := resTmp.(*generated.InviteConnection) fc.Result = res - return ec.marshalOProgramSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramSearchResult(ctx, field.Selections, res) + return ec.marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminProgramSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_invites(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -169991,10 +86501,14 @@ func (ec *executionContext) fieldContext_Query_adminProgramSearch(ctx context.Co IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "programs": - return ec.fieldContext_ProgramSearchResult_programs(ctx, field) + case "edges": + return ec.fieldContext_InviteConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_InviteConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_InviteConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InviteConnection", field.Name) }, } defer func() { @@ -170004,15 +86518,15 @@ func (ec *executionContext) fieldContext_Query_adminProgramSearch(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminProgramSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_invites_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminRiskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminRiskSearch(ctx, field) +func (ec *executionContext) _Query_narratives(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narratives(ctx, field) if err != nil { return graphql.Null } @@ -170025,21 +86539,24 @@ func (ec *executionContext) _Query_adminRiskSearch(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminRiskSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Narratives(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NarrativeWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*RiskSearchResult) + res := resTmp.(*generated.NarrativeConnection) fc.Result = res - return ec.marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskSearchResult(ctx, field.Selections, res) + return ec.marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminRiskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narratives(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170047,10 +86564,14 @@ func (ec *executionContext) fieldContext_Query_adminRiskSearch(ctx context.Conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "risks": - return ec.fieldContext_RiskSearchResult_risks(ctx, field) + case "edges": + return ec.fieldContext_NarrativeConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NarrativeConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NarrativeConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RiskSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NarrativeConnection", field.Name) }, } defer func() { @@ -170060,15 +86581,15 @@ func (ec *executionContext) fieldContext_Query_adminRiskSearch(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminRiskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_narratives_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminStandardSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminStandardSearch(ctx, field) +func (ec *executionContext) _Query_narrativeHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narrativeHistories(ctx, field) if err != nil { return graphql.Null } @@ -170081,21 +86602,24 @@ func (ec *executionContext) _Query_adminStandardSearch(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminStandardSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().NarrativeHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NarrativeHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*StandardSearchResult) + res := resTmp.(*generated.NarrativeHistoryConnection) fc.Result = res - return ec.marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardSearchResult(ctx, field.Selections, res) + return ec.marshalNNarrativeHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminStandardSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narrativeHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170103,10 +86627,14 @@ func (ec *executionContext) fieldContext_Query_adminStandardSearch(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "standards": - return ec.fieldContext_StandardSearchResult_standards(ctx, field) + case "edges": + return ec.fieldContext_NarrativeHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NarrativeHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NarrativeHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type StandardSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NarrativeHistoryConnection", field.Name) }, } defer func() { @@ -170116,15 +86644,15 @@ func (ec *executionContext) fieldContext_Query_adminStandardSearch(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminStandardSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_narrativeHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminSubcontrolSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminSubcontrolSearch(ctx, field) +func (ec *executionContext) _Query_notes(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_notes(ctx, field) if err != nil { return graphql.Null } @@ -170137,21 +86665,24 @@ func (ec *executionContext) _Query_adminSubcontrolSearch(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminSubcontrolSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Notes(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*SubcontrolSearchResult) + res := resTmp.(*generated.NoteConnection) fc.Result = res - return ec.marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolSearchResult(ctx, field.Selections, res) + return ec.marshalNNoteConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminSubcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_notes(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170159,10 +86690,14 @@ func (ec *executionContext) fieldContext_Query_adminSubcontrolSearch(ctx context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "subcontrols": - return ec.fieldContext_SubcontrolSearchResult_subcontrols(ctx, field) + case "edges": + return ec.fieldContext_NoteConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NoteConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NoteConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NoteConnection", field.Name) }, } defer func() { @@ -170172,15 +86707,15 @@ func (ec *executionContext) fieldContext_Query_adminSubcontrolSearch(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminSubcontrolSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_notes_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminSubscriberSearch(ctx, field) +func (ec *executionContext) _Query_noteHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_noteHistories(ctx, field) if err != nil { return graphql.Null } @@ -170193,21 +86728,24 @@ func (ec *executionContext) _Query_adminSubscriberSearch(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminSubscriberSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().NoteHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.NoteHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*SubscriberSearchResult) + res := resTmp.(*generated.NoteHistoryConnection) fc.Result = res - return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberSearchResult(ctx, field.Selections, res) + return ec.marshalNNoteHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNoteHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_noteHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170215,10 +86753,14 @@ func (ec *executionContext) fieldContext_Query_adminSubscriberSearch(ctx context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "subscribers": - return ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) + case "edges": + return ec.fieldContext_NoteHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_NoteHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_NoteHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubscriberSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type NoteHistoryConnection", field.Name) }, } defer func() { @@ -170228,15 +86770,15 @@ func (ec *executionContext) fieldContext_Query_adminSubscriberSearch(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminSubscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_noteHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminTFASettingSearch(ctx, field) +func (ec *executionContext) _Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgMemberships(ctx, field) if err != nil { return graphql.Null } @@ -170249,21 +86791,24 @@ func (ec *executionContext) _Query_adminTFASettingSearch(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminTFASettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().OrgMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*TFASettingSearchResult) + res := resTmp.(*generated.OrgMembershipConnection) fc.Result = res - return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingSearchResult(ctx, field.Selections, res) + return ec.marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170271,10 +86816,14 @@ func (ec *executionContext) fieldContext_Query_adminTFASettingSearch(ctx context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "tFASettings": - return ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) + case "edges": + return ec.fieldContext_OrgMembershipConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrgMembershipConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrgMembershipConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TFASettingSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipConnection", field.Name) }, } defer func() { @@ -170284,15 +86833,15 @@ func (ec *executionContext) fieldContext_Query_adminTFASettingSearch(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminTFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_orgMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminTaskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminTaskSearch(ctx, field) +func (ec *executionContext) _Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgMembershipHistories(ctx, field) if err != nil { return graphql.Null } @@ -170305,21 +86854,24 @@ func (ec *executionContext) _Query_adminTaskSearch(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminTaskSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().OrgMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgMembershipHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*TaskSearchResult) + res := resTmp.(*generated.OrgMembershipHistoryConnection) fc.Result = res - return ec.marshalOTaskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskSearchResult(ctx, field.Selections, res) + return ec.marshalNOrgMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminTaskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170327,10 +86879,14 @@ func (ec *executionContext) fieldContext_Query_adminTaskSearch(ctx context.Conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "tasks": - return ec.fieldContext_TaskSearchResult_tasks(ctx, field) + case "edges": + return ec.fieldContext_OrgMembershipHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrgMembershipHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrgMembershipHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgMembershipHistoryConnection", field.Name) }, } defer func() { @@ -170340,15 +86896,15 @@ func (ec *executionContext) fieldContext_Query_adminTaskSearch(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminTaskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_orgMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminTemplateSearch(ctx, field) +func (ec *executionContext) _Query_orgSubscriptions(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgSubscriptions(ctx, field) if err != nil { return graphql.Null } @@ -170361,21 +86917,24 @@ func (ec *executionContext) _Query_adminTemplateSearch(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminTemplateSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().OrgSubscriptions(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgSubscriptionWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*TemplateSearchResult) + res := resTmp.(*generated.OrgSubscriptionConnection) fc.Result = res - return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateSearchResult(ctx, field.Selections, res) + return ec.marshalNOrgSubscriptionConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgSubscriptions(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170383,10 +86942,14 @@ func (ec *executionContext) fieldContext_Query_adminTemplateSearch(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "templates": - return ec.fieldContext_TemplateSearchResult_templates(ctx, field) + case "edges": + return ec.fieldContext_OrgSubscriptionConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrgSubscriptionConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrgSubscriptionConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TemplateSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionConnection", field.Name) }, } defer func() { @@ -170396,15 +86959,15 @@ func (ec *executionContext) fieldContext_Query_adminTemplateSearch(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_orgSubscriptions_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminUserSearch(ctx, field) +func (ec *executionContext) _Query_orgSubscriptionHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgSubscriptionHistories(ctx, field) if err != nil { return graphql.Null } @@ -170417,21 +86980,24 @@ func (ec *executionContext) _Query_adminUserSearch(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminUserSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().OrgSubscriptionHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrgSubscriptionHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*UserSearchResult) + res := resTmp.(*generated.OrgSubscriptionHistoryConnection) fc.Result = res - return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSearchResult(ctx, field.Selections, res) + return ec.marshalNOrgSubscriptionHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgSubscriptionHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170439,10 +87005,14 @@ func (ec *executionContext) fieldContext_Query_adminUserSearch(ctx context.Conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "users": - return ec.fieldContext_UserSearchResult_users(ctx, field) + case "edges": + return ec.fieldContext_OrgSubscriptionHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrgSubscriptionHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrgSubscriptionHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionHistoryConnection", field.Name) }, } defer func() { @@ -170452,15 +87022,15 @@ func (ec *executionContext) fieldContext_Query_adminUserSearch(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminUserSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_orgSubscriptionHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminUserSettingSearch(ctx, field) +func (ec *executionContext) _Query_organizations(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizations(ctx, field) if err != nil { return graphql.Null } @@ -170473,21 +87043,24 @@ func (ec *executionContext) _Query_adminUserSettingSearch(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminUserSettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().Organizations(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationOrder), fc.Args["where"].(*generated.OrganizationWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*UserSettingSearchResult) + res := resTmp.(*generated.OrganizationConnection) fc.Result = res - return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingSearchResult(ctx, field.Selections, res) + return ec.marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizations(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170495,10 +87068,14 @@ func (ec *executionContext) fieldContext_Query_adminUserSettingSearch(ctx contex IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "userSettings": - return ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) + case "edges": + return ec.fieldContext_OrganizationConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSettingSearchResult", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationConnection", field.Name) }, } defer func() { @@ -170508,15 +87085,15 @@ func (ec *executionContext) fieldContext_Query_adminUserSettingSearch(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminUserSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_organizations_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_apiToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_apiToken(ctx, field) +func (ec *executionContext) _Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationHistories(ctx, field) if err != nil { return graphql.Null } @@ -170529,7 +87106,7 @@ func (ec *executionContext) _Query_apiToken(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().APIToken(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().OrganizationHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.OrganizationHistoryOrder), fc.Args["where"].(*generated.OrganizationHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -170541,12 +87118,12 @@ func (ec *executionContext) _Query_apiToken(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(*generated.APIToken) + res := resTmp.(*generated.OrganizationHistoryConnection) fc.Result = res - return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) + return ec.marshalNOrganizationHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_apiToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170554,40 +87131,14 @@ func (ec *executionContext) fieldContext_Query_apiToken(ctx context.Context, fie IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_APIToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_APIToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_APIToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_APIToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_APIToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_APIToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_APIToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_APIToken_tags(ctx, field) - case "ownerID": - return ec.fieldContext_APIToken_ownerID(ctx, field) - case "name": - return ec.fieldContext_APIToken_name(ctx, field) - case "token": - return ec.fieldContext_APIToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_APIToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_APIToken_description(ctx, field) - case "scopes": - return ec.fieldContext_APIToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_APIToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_APIToken_owner(ctx, field) + case "edges": + return ec.fieldContext_OrganizationHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationHistoryConnection", field.Name) }, } defer func() { @@ -170597,15 +87148,15 @@ func (ec *executionContext) fieldContext_Query_apiToken(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_apiToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_organizationHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_auditLogs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_auditLogs(ctx, field) +func (ec *executionContext) _Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSettings(ctx, field) if err != nil { return graphql.Null } @@ -170618,7 +87169,7 @@ func (ec *executionContext) _Query_auditLogs(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AuditLogs(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*AuditLogWhereInput)) + return ec.resolvers.Query().OrganizationSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -170630,12 +87181,12 @@ func (ec *executionContext) _Query_auditLogs(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(*AuditLogConnection) + res := resTmp.(*generated.OrganizationSettingConnection) fc.Result = res - return ec.marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx, field.Selections, res) + return ec.marshalNOrganizationSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_auditLogs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170644,13 +87195,13 @@ func (ec *executionContext) fieldContext_Query_auditLogs(ctx context.Context, fi Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "edges": - return ec.fieldContext_AuditLogConnection_edges(ctx, field) + return ec.fieldContext_OrganizationSettingConnection_edges(ctx, field) case "pageInfo": - return ec.fieldContext_AuditLogConnection_pageInfo(ctx, field) + return ec.fieldContext_OrganizationSettingConnection_pageInfo(ctx, field) case "totalCount": - return ec.fieldContext_AuditLogConnection_totalCount(ctx, field) + return ec.fieldContext_OrganizationSettingConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type AuditLogConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingConnection", field.Name) }, } defer func() { @@ -170660,15 +87211,15 @@ func (ec *executionContext) fieldContext_Query_auditLogs(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_auditLogs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_organizationSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_contact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contact(ctx, field) +func (ec *executionContext) _Query_organizationSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSettingHistories(ctx, field) if err != nil { return graphql.Null } @@ -170681,7 +87232,7 @@ func (ec *executionContext) _Query_contact(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Contact(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().OrganizationSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.OrganizationSettingHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -170692,60 +87243,28 @@ func (ec *executionContext) _Query_contact(ctx context.Context, field graphql.Co ec.Errorf(ctx, "must not be null") } return graphql.Null - } - res := resTmp.(*generated.Contact) - fc.Result = res - return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Query_contact(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) { - switch field.Name { - case "id": - return ec.fieldContext_Contact_id(ctx, field) - case "createdAt": - return ec.fieldContext_Contact_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Contact_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Contact_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Contact_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Contact_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Contact_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Contact_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Contact_ownerID(ctx, field) - case "fullName": - return ec.fieldContext_Contact_fullName(ctx, field) - case "title": - return ec.fieldContext_Contact_title(ctx, field) - case "company": - return ec.fieldContext_Contact_company(ctx, field) - case "email": - return ec.fieldContext_Contact_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Contact_phoneNumber(ctx, field) - case "address": - return ec.fieldContext_Contact_address(ctx, field) - case "status": - return ec.fieldContext_Contact_status(ctx, field) - case "owner": - return ec.fieldContext_Contact_owner(ctx, field) - case "entities": - return ec.fieldContext_Contact_entities(ctx, field) - case "files": - return ec.fieldContext_Contact_files(ctx, field) + } + res := resTmp.(*generated.OrganizationSettingHistoryConnection) + fc.Result = res + return ec.marshalNOrganizationSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Query_organizationSettingHistories(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) { + switch field.Name { + case "edges": + return ec.fieldContext_OrganizationSettingHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_OrganizationSettingHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_OrganizationSettingHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingHistoryConnection", field.Name) }, } defer func() { @@ -170755,15 +87274,15 @@ func (ec *executionContext) fieldContext_Query_contact(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_organizationSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_control(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_control(ctx, field) +func (ec *executionContext) _Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -170776,7 +87295,7 @@ func (ec *executionContext) _Query_control(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Control(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().PersonalAccessTokens(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.PersonalAccessTokenWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -170788,12 +87307,12 @@ func (ec *executionContext) _Query_control(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(*generated.Control) + res := resTmp.(*generated.PersonalAccessTokenConnection) fc.Result = res - return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) + return ec.marshalNPersonalAccessTokenConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_control(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_personalAccessTokens(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170801,76 +87320,14 @@ func (ec *executionContext) fieldContext_Query_control(ctx context.Context, fiel IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Control_id(ctx, field) - case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) + case "edges": + return ec.fieldContext_PersonalAccessTokenConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_PersonalAccessTokenConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_PersonalAccessTokenConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenConnection", field.Name) }, } defer func() { @@ -170880,15 +87337,15 @@ func (ec *executionContext) fieldContext_Query_control(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_control_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_personalAccessTokens_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_controlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_controlObjective(ctx, field) +func (ec *executionContext) _Query_procedures(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedures(ctx, field) if err != nil { return graphql.Null } @@ -170901,7 +87358,7 @@ func (ec *executionContext) _Query_controlObjective(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ControlObjective(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Procedures(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProcedureWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -170913,12 +87370,12 @@ func (ec *executionContext) _Query_controlObjective(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.ControlObjective) + res := resTmp.(*generated.ProcedureConnection) fc.Result = res - return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) + return ec.marshalNProcedureConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_controlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedures(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -170926,74 +87383,14 @@ func (ec *executionContext) fieldContext_Query_controlObjective(ctx context.Cont IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) + case "edges": + return ec.fieldContext_ProcedureConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProcedureConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProcedureConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProcedureConnection", field.Name) }, } defer func() { @@ -171003,15 +87400,15 @@ func (ec *executionContext) fieldContext_Query_controlObjective(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_procedures_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_documentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentData(ctx, field) +func (ec *executionContext) _Query_procedureHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedureHistories(ctx, field) if err != nil { return graphql.Null } @@ -171024,7 +87421,7 @@ func (ec *executionContext) _Query_documentData(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentData(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().ProcedureHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProcedureHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171036,12 +87433,12 @@ func (ec *executionContext) _Query_documentData(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(*generated.DocumentData) + res := resTmp.(*generated.ProcedureHistoryConnection) fc.Result = res - return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) + return ec.marshalNProcedureHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_documentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedureHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171049,38 +87446,14 @@ func (ec *executionContext) fieldContext_Query_documentData(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_DocumentData_id(ctx, field) - case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) - case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) - case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + case "edges": + return ec.fieldContext_ProcedureHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProcedureHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProcedureHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProcedureHistoryConnection", field.Name) }, } defer func() { @@ -171090,15 +87463,15 @@ func (ec *executionContext) fieldContext_Query_documentData(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_procedureHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_entity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entity(ctx, field) +func (ec *executionContext) _Query_programs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_programs(ctx, field) if err != nil { return graphql.Null } @@ -171111,7 +87484,7 @@ func (ec *executionContext) _Query_entity(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Entity(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Programs(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171123,12 +87496,12 @@ func (ec *executionContext) _Query_entity(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(*generated.Entity) + res := resTmp.(*generated.ProgramConnection) fc.Result = res - return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) + return ec.marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_programs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171136,50 +87509,14 @@ func (ec *executionContext) fieldContext_Query_entity(ctx context.Context, field IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Entity_id(ctx, field) - case "createdAt": - return ec.fieldContext_Entity_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Entity_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Entity_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Entity_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Entity_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Entity_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Entity_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Entity_ownerID(ctx, field) - case "name": - return ec.fieldContext_Entity_name(ctx, field) - case "displayName": - return ec.fieldContext_Entity_displayName(ctx, field) - case "description": - return ec.fieldContext_Entity_description(ctx, field) - case "domains": - return ec.fieldContext_Entity_domains(ctx, field) - case "entityTypeID": - return ec.fieldContext_Entity_entityTypeID(ctx, field) - case "status": - return ec.fieldContext_Entity_status(ctx, field) - case "owner": - return ec.fieldContext_Entity_owner(ctx, field) - case "contacts": - return ec.fieldContext_Entity_contacts(ctx, field) - case "documents": - return ec.fieldContext_Entity_documents(ctx, field) - case "notes": - return ec.fieldContext_Entity_notes(ctx, field) - case "files": - return ec.fieldContext_Entity_files(ctx, field) - case "entityType": - return ec.fieldContext_Entity_entityType(ctx, field) + case "edges": + return ec.fieldContext_ProgramConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProgramConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProgramConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramConnection", field.Name) }, } defer func() { @@ -171189,15 +87526,15 @@ func (ec *executionContext) fieldContext_Query_entity(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_programs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_entityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityType(ctx, field) +func (ec *executionContext) _Query_programHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_programHistories(ctx, field) if err != nil { return graphql.Null } @@ -171210,7 +87547,7 @@ func (ec *executionContext) _Query_entityType(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityType(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().ProgramHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171222,12 +87559,12 @@ func (ec *executionContext) _Query_entityType(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(*generated.EntityType) + res := resTmp.(*generated.ProgramHistoryConnection) fc.Result = res - return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) + return ec.marshalNProgramHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_programHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171235,32 +87572,14 @@ func (ec *executionContext) fieldContext_Query_entityType(ctx context.Context, f IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_EntityType_id(ctx, field) - case "createdAt": - return ec.fieldContext_EntityType_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_EntityType_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_EntityType_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_EntityType_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_EntityType_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_EntityType_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_EntityType_tags(ctx, field) - case "ownerID": - return ec.fieldContext_EntityType_ownerID(ctx, field) - case "name": - return ec.fieldContext_EntityType_name(ctx, field) - case "owner": - return ec.fieldContext_EntityType_owner(ctx, field) - case "entities": - return ec.fieldContext_EntityType_entities(ctx, field) + case "edges": + return ec.fieldContext_ProgramHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProgramHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProgramHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramHistoryConnection", field.Name) }, } defer func() { @@ -171270,15 +87589,15 @@ func (ec *executionContext) fieldContext_Query_entityType(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_programHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_event(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_event(ctx, field) +func (ec *executionContext) _Query_programMemberships(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_programMemberships(ctx, field) if err != nil { return graphql.Null } @@ -171291,7 +87610,7 @@ func (ec *executionContext) _Query_event(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Event(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().ProgramMemberships(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramMembershipWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171303,12 +87622,12 @@ func (ec *executionContext) _Query_event(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(*generated.Event) + res := resTmp.(*generated.ProgramMembershipConnection) fc.Result = res - return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) + return ec.marshalNProgramMembershipConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_event(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_programMemberships(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171316,50 +87635,14 @@ func (ec *executionContext) fieldContext_Query_event(ctx context.Context, field IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) + case "edges": + return ec.fieldContext_ProgramMembershipConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProgramMembershipConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProgramMembershipConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipConnection", field.Name) }, } defer func() { @@ -171369,15 +87652,15 @@ func (ec *executionContext) fieldContext_Query_event(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_event_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_programMemberships_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_file(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_file(ctx, field) +func (ec *executionContext) _Query_programMembershipHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_programMembershipHistories(ctx, field) if err != nil { return graphql.Null } @@ -171390,7 +87673,7 @@ func (ec *executionContext) _Query_file(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().File(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().ProgramMembershipHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.ProgramMembershipHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171402,12 +87685,12 @@ func (ec *executionContext) _Query_file(ctx context.Context, field graphql.Colle } return graphql.Null } - res := resTmp.(*generated.File) + res := resTmp.(*generated.ProgramMembershipHistoryConnection) fc.Result = res - return ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) + return ec.marshalNProgramMembershipHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_file(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_programMembershipHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171415,72 +87698,14 @@ func (ec *executionContext) fieldContext_Query_file(ctx context.Context, field g IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) + case "edges": + return ec.fieldContext_ProgramMembershipHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_ProgramMembershipHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_ProgramMembershipHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ProgramMembershipHistoryConnection", field.Name) }, } defer func() { @@ -171490,15 +87715,15 @@ func (ec *executionContext) fieldContext_Query_file(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_file_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_programMembershipHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_group(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_group(ctx, field) +func (ec *executionContext) _Query_risks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_risks(ctx, field) if err != nil { return graphql.Null } @@ -171511,7 +87736,7 @@ func (ec *executionContext) _Query_group(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Group(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Risks(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.RiskWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171523,12 +87748,12 @@ func (ec *executionContext) _Query_group(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(*generated.Group) + res := resTmp.(*generated.RiskConnection) fc.Result = res - return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) + return ec.marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_risks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171536,108 +87761,14 @@ func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "edges": + return ec.fieldContext_RiskConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_RiskConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_RiskConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskConnection", field.Name) }, } defer func() { @@ -171647,15 +87778,15 @@ func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_group_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_risks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_groupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupMembership(ctx, field) +func (ec *executionContext) _Query_riskHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_riskHistories(ctx, field) if err != nil { return graphql.Null } @@ -171668,7 +87799,7 @@ func (ec *executionContext) _Query_groupMembership(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupMembership(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().RiskHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.RiskHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171680,12 +87811,12 @@ func (ec *executionContext) _Query_groupMembership(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*generated.GroupMembership) + res := resTmp.(*generated.RiskHistoryConnection) fc.Result = res - return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) + return ec.marshalNRiskHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_riskHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171693,34 +87824,14 @@ func (ec *executionContext) fieldContext_Query_groupMembership(ctx context.Conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) + case "edges": + return ec.fieldContext_RiskHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_RiskHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_RiskHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskHistoryConnection", field.Name) }, } defer func() { @@ -171730,15 +87841,15 @@ func (ec *executionContext) fieldContext_Query_groupMembership(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_riskHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_groupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSetting(ctx, field) +func (ec *executionContext) _Query_standards(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standards(ctx, field) if err != nil { return graphql.Null } @@ -171751,7 +87862,7 @@ func (ec *executionContext) _Query_groupSetting(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSetting(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Standards(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.StandardWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171763,12 +87874,12 @@ func (ec *executionContext) _Query_groupSetting(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(*generated.GroupSetting) + res := resTmp.(*generated.StandardConnection) fc.Result = res - return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) + return ec.marshalNStandardConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standards(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171776,36 +87887,14 @@ func (ec *executionContext) fieldContext_Query_groupSetting(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_GroupSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_GroupSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupSetting_deletedBy(ctx, field) - case "visibility": - return ec.fieldContext_GroupSetting_visibility(ctx, field) - case "joinPolicy": - return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) - case "syncToSlack": - return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) - case "syncToGithub": - return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) - case "groupID": - return ec.fieldContext_GroupSetting_groupID(ctx, field) - case "group": - return ec.fieldContext_GroupSetting_group(ctx, field) + case "edges": + return ec.fieldContext_StandardConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_StandardConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_StandardConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type StandardConnection", field.Name) }, } defer func() { @@ -171815,15 +87904,15 @@ func (ec *executionContext) fieldContext_Query_groupSetting(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_standards_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_hush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_hush(ctx, field) +func (ec *executionContext) _Query_standardHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standardHistories(ctx, field) if err != nil { return graphql.Null } @@ -171836,7 +87925,7 @@ func (ec *executionContext) _Query_hush(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Hush(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().StandardHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.StandardHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171848,12 +87937,12 @@ func (ec *executionContext) _Query_hush(ctx context.Context, field graphql.Colle } return graphql.Null } - res := resTmp.(*generated.Hush) + res := resTmp.(*generated.StandardHistoryConnection) fc.Result = res - return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) + return ec.marshalNStandardHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_hush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standardHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171861,36 +87950,14 @@ func (ec *executionContext) fieldContext_Query_hush(ctx context.Context, field g IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Hush_id(ctx, field) - case "createdAt": - return ec.fieldContext_Hush_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Hush_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Hush_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Hush_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Hush_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Hush_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Hush_name(ctx, field) - case "description": - return ec.fieldContext_Hush_description(ctx, field) - case "kind": - return ec.fieldContext_Hush_kind(ctx, field) - case "secretName": - return ec.fieldContext_Hush_secretName(ctx, field) - case "integrations": - return ec.fieldContext_Hush_integrations(ctx, field) - case "organization": - return ec.fieldContext_Hush_organization(ctx, field) - case "events": - return ec.fieldContext_Hush_events(ctx, field) + case "edges": + return ec.fieldContext_StandardHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_StandardHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_StandardHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + return nil, fmt.Errorf("no field named %q was found under type StandardHistoryConnection", field.Name) }, } defer func() { @@ -171900,15 +87967,15 @@ func (ec *executionContext) fieldContext_Query_hush(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_hush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_standardHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_integration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integration(ctx, field) +func (ec *executionContext) _Query_subcontrols(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -171921,7 +87988,7 @@ func (ec *executionContext) _Query_integration(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Integration(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Subcontrols(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubcontrolWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -171933,12 +88000,12 @@ func (ec *executionContext) _Query_integration(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*generated.Integration) + res := resTmp.(*generated.SubcontrolConnection) fc.Result = res - return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) + return ec.marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_integration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrols(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -171946,38 +88013,14 @@ func (ec *executionContext) fieldContext_Query_integration(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Integration_id(ctx, field) - case "createdAt": - return ec.fieldContext_Integration_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Integration_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Integration_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Integration_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Integration_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Integration_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Integration_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Integration_ownerID(ctx, field) - case "name": - return ec.fieldContext_Integration_name(ctx, field) - case "description": - return ec.fieldContext_Integration_description(ctx, field) - case "kind": - return ec.fieldContext_Integration_kind(ctx, field) - case "owner": - return ec.fieldContext_Integration_owner(ctx, field) - case "secrets": - return ec.fieldContext_Integration_secrets(ctx, field) - case "events": - return ec.fieldContext_Integration_events(ctx, field) + case "edges": + return ec.fieldContext_SubcontrolConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolConnection", field.Name) }, } defer func() { @@ -171987,15 +88030,15 @@ func (ec *executionContext) fieldContext_Query_integration(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_subcontrols_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_internalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_internalPolicy(ctx, field) +func (ec *executionContext) _Query_subcontrolHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrolHistories(ctx, field) if err != nil { return graphql.Null } @@ -172008,7 +88051,7 @@ func (ec *executionContext) _Query_internalPolicy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().InternalPolicy(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().SubcontrolHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubcontrolHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172020,12 +88063,12 @@ func (ec *executionContext) _Query_internalPolicy(ctx context.Context, field gra } return graphql.Null } - res := resTmp.(*generated.InternalPolicy) + res := resTmp.(*generated.SubcontrolHistoryConnection) fc.Result = res - return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) + return ec.marshalNSubcontrolHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_internalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrolHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172033,60 +88076,14 @@ func (ec *executionContext) fieldContext_Query_internalPolicy(ctx context.Contex IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) + case "edges": + return ec.fieldContext_SubcontrolHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_SubcontrolHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_SubcontrolHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistoryConnection", field.Name) }, } defer func() { @@ -172096,15 +88093,15 @@ func (ec *executionContext) fieldContext_Query_internalPolicy(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_internalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_subcontrolHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_invite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_invite(ctx, field) +func (ec *executionContext) _Query_subscribers(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subscribers(ctx, field) if err != nil { return graphql.Null } @@ -172117,7 +88114,7 @@ func (ec *executionContext) _Query_invite(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Invite(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Subscribers(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.SubscriberWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172129,12 +88126,12 @@ func (ec *executionContext) _Query_invite(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(*generated.Invite) + res := resTmp.(*generated.SubscriberConnection) fc.Result = res - return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) + return ec.marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_invite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subscribers(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172142,40 +88139,14 @@ func (ec *executionContext) fieldContext_Query_invite(ctx context.Context, field IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Invite_id(ctx, field) - case "createdAt": - return ec.fieldContext_Invite_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Invite_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Invite_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Invite_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Invite_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Invite_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Invite_ownerID(ctx, field) - case "expires": - return ec.fieldContext_Invite_expires(ctx, field) - case "recipient": - return ec.fieldContext_Invite_recipient(ctx, field) - case "status": - return ec.fieldContext_Invite_status(ctx, field) - case "role": - return ec.fieldContext_Invite_role(ctx, field) - case "sendAttempts": - return ec.fieldContext_Invite_sendAttempts(ctx, field) - case "requestorID": - return ec.fieldContext_Invite_requestorID(ctx, field) - case "owner": - return ec.fieldContext_Invite_owner(ctx, field) - case "events": - return ec.fieldContext_Invite_events(ctx, field) + case "edges": + return ec.fieldContext_SubscriberConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_SubscriberConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubscriberConnection", field.Name) }, } defer func() { @@ -172185,15 +88156,15 @@ func (ec *executionContext) fieldContext_Query_invite(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_invite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_subscribers_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_narrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_narrative(ctx, field) +func (ec *executionContext) _Query_tfaSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_tfaSettings(ctx, field) if err != nil { return graphql.Null } @@ -172206,7 +88177,7 @@ func (ec *executionContext) _Query_narrative(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Narrative(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().TfaSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TFASettingWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172218,65 +88189,27 @@ func (ec *executionContext) _Query_narrative(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(*generated.Narrative) + res := resTmp.(*generated.TFASettingConnection) fc.Result = res - return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) + return ec.marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_narrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tfaSettings(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) { - switch field.Name { - case "id": - return ec.fieldContext_Narrative_id(ctx, field) - case "createdAt": - return ec.fieldContext_Narrative_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Narrative_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Narrative_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Narrative_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Narrative_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Narrative_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Narrative_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Narrative_ownerID(ctx, field) - case "name": - return ec.fieldContext_Narrative_name(ctx, field) - case "description": - return ec.fieldContext_Narrative_description(ctx, field) - case "satisfies": - return ec.fieldContext_Narrative_satisfies(ctx, field) - case "details": - return ec.fieldContext_Narrative_details(ctx, field) - case "owner": - return ec.fieldContext_Narrative_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Narrative_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Narrative_editors(ctx, field) - case "viewers": - return ec.fieldContext_Narrative_viewers(ctx, field) - case "internalPolicy": - return ec.fieldContext_Narrative_internalPolicy(ctx, field) - case "control": - return ec.fieldContext_Narrative_control(ctx, field) - case "procedure": - return ec.fieldContext_Narrative_procedure(ctx, field) - case "controlObjective": - return ec.fieldContext_Narrative_controlObjective(ctx, field) - case "programs": - return ec.fieldContext_Narrative_programs(ctx, field) + IsMethod: true, + IsResolver: true, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + switch field.Name { + case "edges": + return ec.fieldContext_TFASettingConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TFASettingConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASettingConnection", field.Name) }, } defer func() { @@ -172286,15 +88219,15 @@ func (ec *executionContext) fieldContext_Query_narrative(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_narrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_tfaSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_organization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organization(ctx, field) +func (ec *executionContext) _Query_tasks(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_tasks(ctx, field) if err != nil { return graphql.Null } @@ -172307,7 +88240,7 @@ func (ec *executionContext) _Query_organization(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Organization(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Tasks(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TaskWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172319,12 +88252,12 @@ func (ec *executionContext) _Query_organization(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(*generated.TaskConnection) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tasks(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172332,114 +88265,14 @@ func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + case "edges": + return ec.fieldContext_TaskConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TaskConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TaskConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TaskConnection", field.Name) }, } defer func() { @@ -172449,15 +88282,15 @@ func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_tasks_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSetting(ctx, field) +func (ec *executionContext) _Query_taskHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_taskHistories(ctx, field) if err != nil { return graphql.Null } @@ -172470,7 +88303,7 @@ func (ec *executionContext) _Query_organizationSetting(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSetting(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().TaskHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.TaskHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172482,12 +88315,12 @@ func (ec *executionContext) _Query_organizationSetting(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*generated.OrganizationSetting) + res := resTmp.(*generated.TaskHistoryConnection) fc.Result = res - return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) + return ec.marshalNTaskHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_taskHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172495,46 +88328,14 @@ func (ec *executionContext) fieldContext_Query_organizationSetting(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_OrganizationSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrganizationSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) - case "domains": - return ec.fieldContext_OrganizationSetting_domains(ctx, field) - case "billingContact": - return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) - case "billingEmail": - return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) - case "billingPhone": - return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) - case "billingAddress": - return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) - case "taxIdentifier": - return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) - case "geoLocation": - return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) - case "organizationID": - return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) - case "stripeID": - return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) - case "organization": - return ec.fieldContext_OrganizationSetting_organization(ctx, field) - case "files": - return ec.fieldContext_OrganizationSetting_files(ctx, field) + case "edges": + return ec.fieldContext_TaskHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TaskHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TaskHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TaskHistoryConnection", field.Name) }, } defer func() { @@ -172544,15 +88345,15 @@ func (ec *executionContext) fieldContext_Query_organizationSetting(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_taskHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_orgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgMembership(ctx, field) +func (ec *executionContext) _Query_templates(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_templates(ctx, field) if err != nil { return graphql.Null } @@ -172565,7 +88366,7 @@ func (ec *executionContext) _Query_orgMembership(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgMembership(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Templates(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateOrder), fc.Args["where"].(*generated.TemplateWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172577,12 +88378,12 @@ func (ec *executionContext) _Query_orgMembership(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(*generated.OrgMembership) + res := resTmp.(*generated.TemplateConnection) fc.Result = res - return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) + return ec.marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_orgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_templates(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172590,34 +88391,14 @@ func (ec *executionContext) fieldContext_Query_orgMembership(ctx context.Context IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) + case "edges": + return ec.fieldContext_TemplateConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TemplateConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TemplateConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateConnection", field.Name) }, } defer func() { @@ -172627,15 +88408,15 @@ func (ec *executionContext) fieldContext_Query_orgMembership(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_templates_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_orgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgSubscription(ctx, field) +func (ec *executionContext) _Query_templateHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_templateHistories(ctx, field) if err != nil { return graphql.Null } @@ -172648,7 +88429,7 @@ func (ec *executionContext) _Query_orgSubscription(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgSubscription(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().TemplateHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.TemplateHistoryOrder), fc.Args["where"].(*generated.TemplateHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172660,12 +88441,12 @@ func (ec *executionContext) _Query_orgSubscription(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(*generated.OrgSubscription) + res := resTmp.(*generated.TemplateHistoryConnection) fc.Result = res - return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) + return ec.marshalNTemplateHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_orgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_templateHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172673,44 +88454,14 @@ func (ec *executionContext) fieldContext_Query_orgSubscription(ctx context.Conte IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_OrgSubscription_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgSubscription_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgSubscription_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_OrgSubscription_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_OrgSubscription_ownerID(ctx, field) - case "stripeSubscriptionID": - return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) - case "productTier": - return ec.fieldContext_OrgSubscription_productTier(ctx, field) - case "stripeProductTierID": - return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) - case "stripeSubscriptionStatus": - return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) - case "active": - return ec.fieldContext_OrgSubscription_active(ctx, field) - case "stripeCustomerID": - return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) - case "expiresAt": - return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) - case "features": - return ec.fieldContext_OrgSubscription_features(ctx, field) - case "owner": - return ec.fieldContext_OrgSubscription_owner(ctx, field) + case "edges": + return ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryConnection", field.Name) }, } defer func() { @@ -172720,15 +88471,15 @@ func (ec *executionContext) fieldContext_Query_orgSubscription(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_templateHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_personalAccessToken(ctx, field) +func (ec *executionContext) _Query_users(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_users(ctx, field) if err != nil { return graphql.Null } @@ -172741,7 +88492,7 @@ func (ec *executionContext) _Query_personalAccessToken(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PersonalAccessToken(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Users(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserOrder), fc.Args["where"].(*generated.UserWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172753,12 +88504,12 @@ func (ec *executionContext) _Query_personalAccessToken(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(*generated.PersonalAccessToken) + res := resTmp.(*generated.UserConnection) fc.Result = res - return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) + return ec.marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_users(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172766,42 +88517,14 @@ func (ec *executionContext) fieldContext_Query_personalAccessToken(ctx context.C IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) - case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) - case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) - case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) - case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + case "edges": + return ec.fieldContext_UserConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserConnection", field.Name) }, } defer func() { @@ -172811,15 +88534,15 @@ func (ec *executionContext) fieldContext_Query_personalAccessToken(ctx context.C } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_personalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_users_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_procedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_procedure(ctx, field) +func (ec *executionContext) _Query_userHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userHistories(ctx, field) if err != nil { return graphql.Null } @@ -172832,7 +88555,7 @@ func (ec *executionContext) _Query_procedure(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Procedure(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().UserHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["orderBy"].(*generated.UserHistoryOrder), fc.Args["where"].(*generated.UserHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172844,12 +88567,12 @@ func (ec *executionContext) _Query_procedure(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(*generated.Procedure) + res := resTmp.(*generated.UserHistoryConnection) fc.Result = res - return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) + return ec.marshalNUserHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172857,62 +88580,14 @@ func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, fi IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) + case "edges": + return ec.fieldContext_UserHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserHistoryConnection", field.Name) }, } defer func() { @@ -172922,15 +88597,15 @@ func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, fi } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_procedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_userHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_program(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_program(ctx, field) +func (ec *executionContext) _Query_userSettings(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSettings(ctx, field) if err != nil { return graphql.Null } @@ -172943,7 +88618,7 @@ func (ec *executionContext) _Query_program(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Program(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().UserSettings(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -172955,12 +88630,12 @@ func (ec *executionContext) _Query_program(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(*generated.Program) + res := resTmp.(*generated.UserSettingConnection) fc.Result = res - return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) + return ec.marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_program(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSettings(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -172968,78 +88643,14 @@ func (ec *executionContext) fieldContext_Query_program(ctx context.Context, fiel IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) + case "edges": + return ec.fieldContext_UserSettingConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserSettingConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingConnection", field.Name) }, } defer func() { @@ -173049,15 +88660,15 @@ func (ec *executionContext) fieldContext_Query_program(ctx context.Context, fiel } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_program_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_userSettings_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_programMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_programMembership(ctx, field) +func (ec *executionContext) _Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSettingHistories(ctx, field) if err != nil { return graphql.Null } @@ -173070,7 +88681,7 @@ func (ec *executionContext) _Query_programMembership(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ProgramMembership(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().UserSettingHistories(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*generated.UserSettingHistoryWhereInput)) }) if err != nil { ec.Error(ctx, err) @@ -173082,12 +88693,12 @@ func (ec *executionContext) _Query_programMembership(ctx context.Context, field } return graphql.Null } - res := resTmp.(*generated.ProgramMembership) + res := resTmp.(*generated.UserSettingHistoryConnection) fc.Result = res - return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) + return ec.marshalNUserSettingHistoryConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_programMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSettingHistories(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173095,32 +88706,14 @@ func (ec *executionContext) fieldContext_Query_programMembership(ctx context.Con IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_ProgramMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembership_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembership_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembership_userID(ctx, field) - case "program": - return ec.fieldContext_ProgramMembership_program(ctx, field) - case "user": - return ec.fieldContext_ProgramMembership_user(ctx, field) + case "edges": + return ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryConnection", field.Name) }, } defer func() { @@ -173130,15 +88723,15 @@ func (ec *executionContext) fieldContext_Query_programMembership(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_programMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_userSettingHistories_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_risk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_risk(ctx, field) +func (ec *executionContext) _Query_actionPlan(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlan(ctx, field) if err != nil { return graphql.Null } @@ -173151,7 +88744,7 @@ func (ec *executionContext) _Query_risk(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Risk(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().ActionPlan(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173163,12 +88756,12 @@ func (ec *executionContext) _Query_risk(ctx context.Context, field graphql.Colle } return graphql.Null } - res := resTmp.(*generated.Risk) + res := resTmp.(*generated.ActionPlan) fc.Result = res - return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) + return ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_risk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlan(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173177,61 +88770,47 @@ func (ec *executionContext) fieldContext_Query_risk(ctx context.Context, field g Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Risk_id(ctx, field) + return ec.fieldContext_ActionPlan_id(ctx, field) case "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) + return ec.fieldContext_ActionPlan_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) + return ec.fieldContext_ActionPlan_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) + return ec.fieldContext_ActionPlan_tags(ctx, field) case "name": - return ec.fieldContext_Risk_name(ctx, field) + return ec.fieldContext_ActionPlan_name(ctx, field) case "description": - return ec.fieldContext_Risk_description(ctx, field) + return ec.fieldContext_ActionPlan_description(ctx, field) case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } defer func() { @@ -173241,15 +88820,15 @@ func (ec *executionContext) fieldContext_Query_risk(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_risk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_actionPlan_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_apiTokenSearch(ctx, field) +func (ec *executionContext) _Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminAPITokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -173262,7 +88841,7 @@ func (ec *executionContext) _Query_apiTokenSearch(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().APITokenSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminAPITokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173271,12 +88850,12 @@ func (ec *executionContext) _Query_apiTokenSearch(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*APITokenSearchResult) + res := resTmp.(*model.APITokenSearchResult) fc.Result = res - return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx, field.Selections, res) + return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminAPITokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173297,15 +88876,15 @@ func (ec *executionContext) fieldContext_Query_apiTokenSearch(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_apiTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminAPITokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_actionPlanSearch(ctx, field) +func (ec *executionContext) _Query_adminActionPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminActionPlanSearch(ctx, field) if err != nil { return graphql.Null } @@ -173318,7 +88897,7 @@ func (ec *executionContext) _Query_actionPlanSearch(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ActionPlanSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminActionPlanSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173327,12 +88906,12 @@ func (ec *executionContext) _Query_actionPlanSearch(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*ActionPlanSearchResult) + res := resTmp.(*model.ActionPlanSearchResult) fc.Result = res - return ec.marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanSearchResult(ctx, field.Selections, res) + return ec.marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminActionPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173353,15 +88932,15 @@ func (ec *executionContext) fieldContext_Query_actionPlanSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_actionPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminActionPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_contactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_contactSearch(ctx, field) +func (ec *executionContext) _Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminContactSearch(ctx, field) if err != nil { return graphql.Null } @@ -173374,7 +88953,7 @@ func (ec *executionContext) _Query_contactSearch(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ContactSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminContactSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173383,12 +88962,12 @@ func (ec *executionContext) _Query_contactSearch(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*ContactSearchResult) + res := resTmp.(*model.ContactSearchResult) fc.Result = res - return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx, field.Selections, res) + return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_contactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminContactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173409,15 +88988,15 @@ func (ec *executionContext) fieldContext_Query_contactSearch(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_contactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminContactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_controlSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_controlSearch(ctx, field) +func (ec *executionContext) _Query_adminControlSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminControlSearch(ctx, field) if err != nil { return graphql.Null } @@ -173430,7 +89009,7 @@ func (ec *executionContext) _Query_controlSearch(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ControlSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminControlSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173439,12 +89018,12 @@ func (ec *executionContext) _Query_controlSearch(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*ControlSearchResult) + res := resTmp.(*model.ControlSearchResult) fc.Result = res - return ec.marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlSearchResult(ctx, field.Selections, res) + return ec.marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_controlSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminControlSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173465,15 +89044,15 @@ func (ec *executionContext) fieldContext_Query_controlSearch(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminControlSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_controlObjectiveSearch(ctx, field) +func (ec *executionContext) _Query_adminControlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminControlObjectiveSearch(ctx, field) if err != nil { return graphql.Null } @@ -173486,7 +89065,7 @@ func (ec *executionContext) _Query_controlObjectiveSearch(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ControlObjectiveSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminControlObjectiveSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173495,12 +89074,12 @@ func (ec *executionContext) _Query_controlObjectiveSearch(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(*ControlObjectiveSearchResult) + res := resTmp.(*model.ControlObjectiveSearchResult) fc.Result = res - return ec.marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveSearchResult(ctx, field.Selections, res) + return ec.marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminControlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173521,15 +89100,15 @@ func (ec *executionContext) fieldContext_Query_controlObjectiveSearch(ctx contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_controlObjectiveSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminControlObjectiveSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_documentDataSearch(ctx, field) +func (ec *executionContext) _Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminDocumentDataSearch(ctx, field) if err != nil { return graphql.Null } @@ -173542,7 +89121,7 @@ func (ec *executionContext) _Query_documentDataSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().DocumentDataSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminDocumentDataSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173551,12 +89130,12 @@ func (ec *executionContext) _Query_documentDataSearch(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*DocumentDataSearchResult) + res := resTmp.(*model.DocumentDataSearchResult) fc.Result = res - return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx, field.Selections, res) + return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminDocumentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173577,15 +89156,15 @@ func (ec *executionContext) fieldContext_Query_documentDataSearch(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_documentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminDocumentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_entitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entitySearch(ctx, field) +func (ec *executionContext) _Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEntitySearch(ctx, field) if err != nil { return graphql.Null } @@ -173598,7 +89177,7 @@ func (ec *executionContext) _Query_entitySearch(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntitySearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminEntitySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173607,12 +89186,12 @@ func (ec *executionContext) _Query_entitySearch(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*EntitySearchResult) + res := resTmp.(*model.EntitySearchResult) fc.Result = res - return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx, field.Selections, res) + return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntitySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEntitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173633,15 +89212,15 @@ func (ec *executionContext) fieldContext_Query_entitySearch(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminEntitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_entityTypeSearch(ctx, field) +func (ec *executionContext) _Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEntityTypeSearch(ctx, field) if err != nil { return graphql.Null } @@ -173654,7 +89233,7 @@ func (ec *executionContext) _Query_entityTypeSearch(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EntityTypeSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminEntityTypeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173663,12 +89242,12 @@ func (ec *executionContext) _Query_entityTypeSearch(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*EntityTypeSearchResult) + res := resTmp.(*model.EntityTypeSearchResult) fc.Result = res - return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx, field.Selections, res) + return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEntityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173689,15 +89268,15 @@ func (ec *executionContext) fieldContext_Query_entityTypeSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_entityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminEntityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_eventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_eventSearch(ctx, field) +func (ec *executionContext) _Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminEventSearch(ctx, field) if err != nil { return graphql.Null } @@ -173710,7 +89289,7 @@ func (ec *executionContext) _Query_eventSearch(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().EventSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminEventSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173719,12 +89298,12 @@ func (ec *executionContext) _Query_eventSearch(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*EventSearchResult) + res := resTmp.(*model.EventSearchResult) fc.Result = res - return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx, field.Selections, res) + return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_eventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminEventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173745,15 +89324,15 @@ func (ec *executionContext) fieldContext_Query_eventSearch(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_eventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminEventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_fileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_fileSearch(ctx, field) +func (ec *executionContext) _Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminFileSearch(ctx, field) if err != nil { return graphql.Null } @@ -173766,7 +89345,7 @@ func (ec *executionContext) _Query_fileSearch(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().FileSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminFileSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173775,12 +89354,12 @@ func (ec *executionContext) _Query_fileSearch(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*FileSearchResult) + res := resTmp.(*model.FileSearchResult) fc.Result = res - return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx, field.Selections, res) + return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐFileSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_fileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminFileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173801,15 +89380,15 @@ func (ec *executionContext) fieldContext_Query_fileSearch(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_fileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminFileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_groupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSearch(ctx, field) +func (ec *executionContext) _Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminGroupSearch(ctx, field) if err != nil { return graphql.Null } @@ -173822,7 +89401,7 @@ func (ec *executionContext) _Query_groupSearch(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminGroupSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173831,12 +89410,12 @@ func (ec *executionContext) _Query_groupSearch(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*GroupSearchResult) + res := resTmp.(*model.GroupSearchResult) fc.Result = res - return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx, field.Selections, res) + return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminGroupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173857,15 +89436,15 @@ func (ec *executionContext) fieldContext_Query_groupSearch(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminGroupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_groupSettingSearch(ctx, field) +func (ec *executionContext) _Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminGroupSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -173878,7 +89457,7 @@ func (ec *executionContext) _Query_groupSettingSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().GroupSettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminGroupSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173887,12 +89466,12 @@ func (ec *executionContext) _Query_groupSettingSearch(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*GroupSettingSearchResult) + res := resTmp.(*model.GroupSettingSearchResult) fc.Result = res - return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx, field.Selections, res) + return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminGroupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173913,15 +89492,15 @@ func (ec *executionContext) fieldContext_Query_groupSettingSearch(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_groupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminGroupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_integrationSearch(ctx, field) +func (ec *executionContext) _Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminIntegrationSearch(ctx, field) if err != nil { return graphql.Null } @@ -173934,7 +89513,7 @@ func (ec *executionContext) _Query_integrationSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().IntegrationSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminIntegrationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173943,12 +89522,12 @@ func (ec *executionContext) _Query_integrationSearch(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*IntegrationSearchResult) + res := resTmp.(*model.IntegrationSearchResult) fc.Result = res - return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx, field.Selections, res) + return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminIntegrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -173969,15 +89548,15 @@ func (ec *executionContext) fieldContext_Query_integrationSearch(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_integrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminIntegrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_internalPolicySearch(ctx, field) +func (ec *executionContext) _Query_adminInternalPolicySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminInternalPolicySearch(ctx, field) if err != nil { return graphql.Null } @@ -173990,7 +89569,7 @@ func (ec *executionContext) _Query_internalPolicySearch(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().InternalPolicySearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminInternalPolicySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -173999,12 +89578,12 @@ func (ec *executionContext) _Query_internalPolicySearch(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*InternalPolicySearchResult) + res := resTmp.(*model.InternalPolicySearchResult) fc.Result = res - return ec.marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicySearchResult(ctx, field.Selections, res) + return ec.marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminInternalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174025,15 +89604,15 @@ func (ec *executionContext) fieldContext_Query_internalPolicySearch(ctx context. } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_internalPolicySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminInternalPolicySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_narrativeSearch(ctx, field) +func (ec *executionContext) _Query_adminNarrativeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminNarrativeSearch(ctx, field) if err != nil { return graphql.Null } @@ -174046,7 +89625,7 @@ func (ec *executionContext) _Query_narrativeSearch(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().NarrativeSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminNarrativeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174055,12 +89634,12 @@ func (ec *executionContext) _Query_narrativeSearch(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*NarrativeSearchResult) + res := resTmp.(*model.NarrativeSearchResult) fc.Result = res - return ec.marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeSearchResult(ctx, field.Selections, res) + return ec.marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminNarrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174081,15 +89660,15 @@ func (ec *executionContext) fieldContext_Query_narrativeSearch(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_narrativeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminNarrativeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_orgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_orgSubscriptionSearch(ctx, field) +func (ec *executionContext) _Query_adminOrgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminOrgSubscriptionSearch(ctx, field) if err != nil { return graphql.Null } @@ -174102,7 +89681,7 @@ func (ec *executionContext) _Query_orgSubscriptionSearch(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrgSubscriptionSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminOrgSubscriptionSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174111,12 +89690,12 @@ func (ec *executionContext) _Query_orgSubscriptionSearch(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*OrgSubscriptionSearchResult) + res := resTmp.(*model.OrgSubscriptionSearchResult) fc.Result = res - return ec.marshalOOrgSubscriptionSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionSearchResult(ctx, field.Selections, res) + return ec.marshalOOrgSubscriptionSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_orgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminOrgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174137,15 +89716,15 @@ func (ec *executionContext) fieldContext_Query_orgSubscriptionSearch(ctx context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_orgSubscriptionSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminOrgSubscriptionSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSearch(ctx, field) +func (ec *executionContext) _Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminOrganizationSearch(ctx, field) if err != nil { return graphql.Null } @@ -174158,7 +89737,7 @@ func (ec *executionContext) _Query_organizationSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminOrganizationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174167,12 +89746,12 @@ func (ec *executionContext) _Query_organizationSearch(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*OrganizationSearchResult) + res := resTmp.(*model.OrganizationSearchResult) fc.Result = res - return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx, field.Selections, res) + return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminOrganizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174193,15 +89772,15 @@ func (ec *executionContext) fieldContext_Query_organizationSearch(ctx context.Co } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminOrganizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_organizationSettingSearch(ctx, field) +func (ec *executionContext) _Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminOrganizationSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -174214,7 +89793,7 @@ func (ec *executionContext) _Query_organizationSettingSearch(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().OrganizationSettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminOrganizationSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174223,12 +89802,12 @@ func (ec *executionContext) _Query_organizationSettingSearch(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*OrganizationSettingSearchResult) + res := resTmp.(*model.OrganizationSettingSearchResult) fc.Result = res - return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminOrganizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174249,15 +89828,15 @@ func (ec *executionContext) fieldContext_Query_organizationSettingSearch(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_organizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminOrganizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_personalAccessTokenSearch(ctx, field) +func (ec *executionContext) _Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminPersonalAccessTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -174270,7 +89849,7 @@ func (ec *executionContext) _Query_personalAccessTokenSearch(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().PersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminPersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174279,12 +89858,12 @@ func (ec *executionContext) _Query_personalAccessTokenSearch(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(*PersonalAccessTokenSearchResult) + res := resTmp.(*model.PersonalAccessTokenSearchResult) fc.Result = res - return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) + return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminPersonalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174305,15 +89884,15 @@ func (ec *executionContext) fieldContext_Query_personalAccessTokenSearch(ctx con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_personalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminPersonalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_procedureSearch(ctx, field) +func (ec *executionContext) _Query_adminProcedureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminProcedureSearch(ctx, field) if err != nil { return graphql.Null } @@ -174326,7 +89905,7 @@ func (ec *executionContext) _Query_procedureSearch(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ProcedureSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminProcedureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174335,12 +89914,12 @@ func (ec *executionContext) _Query_procedureSearch(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*ProcedureSearchResult) + res := resTmp.(*model.ProcedureSearchResult) fc.Result = res - return ec.marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureSearchResult(ctx, field.Selections, res) + return ec.marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminProcedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174361,15 +89940,15 @@ func (ec *executionContext) fieldContext_Query_procedureSearch(ctx context.Conte } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_procedureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminProcedureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_programSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_programSearch(ctx, field) +func (ec *executionContext) _Query_adminProgramSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminProgramSearch(ctx, field) if err != nil { return graphql.Null } @@ -174382,7 +89961,7 @@ func (ec *executionContext) _Query_programSearch(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().ProgramSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminProgramSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174391,12 +89970,12 @@ func (ec *executionContext) _Query_programSearch(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*ProgramSearchResult) + res := resTmp.(*model.ProgramSearchResult) fc.Result = res - return ec.marshalOProgramSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramSearchResult(ctx, field.Selections, res) + return ec.marshalOProgramSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_programSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminProgramSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174417,15 +89996,15 @@ func (ec *executionContext) fieldContext_Query_programSearch(ctx context.Context } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_programSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminProgramSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_riskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_riskSearch(ctx, field) +func (ec *executionContext) _Query_adminRiskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminRiskSearch(ctx, field) if err != nil { return graphql.Null } @@ -174438,7 +90017,7 @@ func (ec *executionContext) _Query_riskSearch(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().RiskSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminRiskSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174447,12 +90026,12 @@ func (ec *executionContext) _Query_riskSearch(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*RiskSearchResult) + res := resTmp.(*model.RiskSearchResult) fc.Result = res - return ec.marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskSearchResult(ctx, field.Selections, res) + return ec.marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_riskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminRiskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174473,15 +90052,15 @@ func (ec *executionContext) fieldContext_Query_riskSearch(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_riskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminRiskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_standardSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_standardSearch(ctx, field) +func (ec *executionContext) _Query_adminStandardSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminStandardSearch(ctx, field) if err != nil { return graphql.Null } @@ -174494,7 +90073,7 @@ func (ec *executionContext) _Query_standardSearch(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().StandardSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminStandardSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174503,12 +90082,12 @@ func (ec *executionContext) _Query_standardSearch(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*StandardSearchResult) + res := resTmp.(*model.StandardSearchResult) fc.Result = res - return ec.marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardSearchResult(ctx, field.Selections, res) + return ec.marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_standardSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminStandardSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174529,15 +90108,15 @@ func (ec *executionContext) fieldContext_Query_standardSearch(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_standardSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminStandardSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subcontrolSearch(ctx, field) +func (ec *executionContext) _Query_adminSubcontrolSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminSubcontrolSearch(ctx, field) if err != nil { return graphql.Null } @@ -174550,7 +90129,7 @@ func (ec *executionContext) _Query_subcontrolSearch(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SubcontrolSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminSubcontrolSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174559,12 +90138,12 @@ func (ec *executionContext) _Query_subcontrolSearch(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*SubcontrolSearchResult) + res := resTmp.(*model.SubcontrolSearchResult) fc.Result = res - return ec.marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolSearchResult(ctx, field.Selections, res) + return ec.marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminSubcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174585,15 +90164,15 @@ func (ec *executionContext) fieldContext_Query_subcontrolSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subcontrolSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminSubcontrolSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subscriberSearch(ctx, field) +func (ec *executionContext) _Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminSubscriberSearch(ctx, field) if err != nil { return graphql.Null } @@ -174606,7 +90185,7 @@ func (ec *executionContext) _Query_subscriberSearch(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().SubscriberSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminSubscriberSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174615,12 +90194,12 @@ func (ec *executionContext) _Query_subscriberSearch(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*SubscriberSearchResult) + res := resTmp.(*model.SubscriberSearchResult) fc.Result = res - return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberSearchResult(ctx, field.Selections, res) + return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminSubscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174641,15 +90220,15 @@ func (ec *executionContext) fieldContext_Query_subscriberSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminSubscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_tFASettingSearch(ctx, field) +func (ec *executionContext) _Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminTFASettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -174662,7 +90241,7 @@ func (ec *executionContext) _Query_tFASettingSearch(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TFASettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminTFASettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174671,12 +90250,12 @@ func (ec *executionContext) _Query_tFASettingSearch(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*TFASettingSearchResult) + res := resTmp.(*model.TFASettingSearchResult) fc.Result = res - return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingSearchResult(ctx, field.Selections, res) + return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminTFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174697,15 +90276,15 @@ func (ec *executionContext) fieldContext_Query_tFASettingSearch(ctx context.Cont } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminTFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_taskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_taskSearch(ctx, field) +func (ec *executionContext) _Query_adminTaskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminTaskSearch(ctx, field) if err != nil { return graphql.Null } @@ -174718,7 +90297,7 @@ func (ec *executionContext) _Query_taskSearch(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TaskSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminTaskSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174727,12 +90306,12 @@ func (ec *executionContext) _Query_taskSearch(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*TaskSearchResult) + res := resTmp.(*model.TaskSearchResult) fc.Result = res - return ec.marshalOTaskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskSearchResult(ctx, field.Selections, res) + return ec.marshalOTaskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_taskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminTaskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174753,15 +90332,15 @@ func (ec *executionContext) fieldContext_Query_taskSearch(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_taskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminTaskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_templateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_templateSearch(ctx, field) +func (ec *executionContext) _Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminTemplateSearch(ctx, field) if err != nil { return graphql.Null } @@ -174774,7 +90353,7 @@ func (ec *executionContext) _Query_templateSearch(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TemplateSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminTemplateSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174783,12 +90362,12 @@ func (ec *executionContext) _Query_templateSearch(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*TemplateSearchResult) + res := resTmp.(*model.TemplateSearchResult) fc.Result = res - return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateSearchResult(ctx, field.Selections, res) + return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_templateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminTemplateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174809,15 +90388,15 @@ func (ec *executionContext) fieldContext_Query_templateSearch(ctx context.Contex } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_templateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminTemplateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_userSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSearch(ctx, field) +func (ec *executionContext) _Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminUserSearch(ctx, field) if err != nil { return graphql.Null } @@ -174830,7 +90409,7 @@ func (ec *executionContext) _Query_userSearch(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminUserSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174839,12 +90418,12 @@ func (ec *executionContext) _Query_userSearch(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*UserSearchResult) + res := resTmp.(*model.UserSearchResult) fc.Result = res - return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSearchResult(ctx, field.Selections, res) + return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_userSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminUserSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174865,15 +90444,15 @@ func (ec *executionContext) fieldContext_Query_userSearch(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminUserSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSettingSearch(ctx, field) +func (ec *executionContext) _Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminUserSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -174886,7 +90465,7 @@ func (ec *executionContext) _Query_userSettingSearch(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSettingSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AdminUserSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -174895,12 +90474,12 @@ func (ec *executionContext) _Query_userSettingSearch(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*UserSettingSearchResult) + res := resTmp.(*model.UserSettingSearchResult) fc.Result = res - return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingSearchResult(ctx, field.Selections, res) + return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminUserSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174921,15 +90500,15 @@ func (ec *executionContext) fieldContext_Query_userSettingSearch(ctx context.Con } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_adminUserSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_search(ctx, field) +func (ec *executionContext) _Query_apiToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_apiToken(ctx, field) if err != nil { return graphql.Null } @@ -174942,21 +90521,24 @@ func (ec *executionContext) _Query_search(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Search(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().APIToken(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*SearchResultConnection) + res := resTmp.(*generated.APIToken) fc.Result = res - return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx, field.Selections, res) + return ec.marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPIToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_apiToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -174964,12 +90546,40 @@ func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "page": - return ec.fieldContext_SearchResultConnection_page(ctx, field) - case "nodes": - return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + case "id": + return ec.fieldContext_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) }, } defer func() { @@ -174979,15 +90589,15 @@ func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_apiToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_adminSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_adminSearch(ctx, field) +func (ec *executionContext) _Query_auditLogs(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_auditLogs(ctx, field) if err != nil { return graphql.Null } @@ -175000,21 +90610,24 @@ func (ec *executionContext) _Query_adminSearch(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().AdminSearch(rctx, fc.Args["query"].(string)) + return ec.resolvers.Query().AuditLogs(rctx, fc.Args["after"].(*entgql.Cursor[string]), fc.Args["first"].(*int), fc.Args["before"].(*entgql.Cursor[string]), fc.Args["last"].(*int), fc.Args["where"].(*model.AuditLogWhereInput)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(*SearchResultConnection) + res := resTmp.(*model.AuditLogConnection) fc.Result = res - return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx, field.Selections, res) + return ec.marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAuditLogConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_adminSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_auditLogs(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175022,12 +90635,14 @@ func (ec *executionContext) fieldContext_Query_adminSearch(ctx context.Context, IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "page": - return ec.fieldContext_SearchResultConnection_page(ctx, field) - case "nodes": - return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + case "edges": + return ec.fieldContext_AuditLogConnection_edges(ctx, field) + case "pageInfo": + return ec.fieldContext_AuditLogConnection_pageInfo(ctx, field) + case "totalCount": + return ec.fieldContext_AuditLogConnection_totalCount(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", field.Name) + return nil, fmt.Errorf("no field named %q was found under type AuditLogConnection", field.Name) }, } defer func() { @@ -175037,15 +90652,15 @@ func (ec *executionContext) fieldContext_Query_adminSearch(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_adminSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_auditLogs_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_standard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_standard(ctx, field) +func (ec *executionContext) _Query_contact(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contact(ctx, field) if err != nil { return graphql.Null } @@ -175058,7 +90673,7 @@ func (ec *executionContext) _Query_standard(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Standard(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Contact(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175070,12 +90685,12 @@ func (ec *executionContext) _Query_standard(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(*generated.Standard) + res := resTmp.(*generated.Contact) fc.Result = res - return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) + return ec.marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_standard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contact(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175084,53 +90699,45 @@ func (ec *executionContext) fieldContext_Query_standard(ctx context.Context, fie Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Standard_id(ctx, field) + return ec.fieldContext_Contact_id(ctx, field) case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) + return ec.fieldContext_Contact_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) + return ec.fieldContext_Contact_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) + return ec.fieldContext_Contact_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) + return ec.fieldContext_Contact_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) + return ec.fieldContext_Contact_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) + return ec.fieldContext_Contact_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) }, } defer func() { @@ -175140,15 +90747,15 @@ func (ec *executionContext) fieldContext_Query_standard(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_standard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_contact_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_subcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subcontrol(ctx, field) +func (ec *executionContext) _Query_control(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_control(ctx, field) if err != nil { return graphql.Null } @@ -175161,7 +90768,7 @@ func (ec *executionContext) _Query_subcontrol(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Subcontrol(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Control(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175173,12 +90780,12 @@ func (ec *executionContext) _Query_subcontrol(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(*generated.Subcontrol) + res := resTmp.(*generated.Control) fc.Result = res - return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) + return ec.marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControl(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_subcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_control(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175187,69 +90794,75 @@ func (ec *executionContext) fieldContext_Query_subcontrol(ctx context.Context, f Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) + return ec.fieldContext_Control_id(ctx, field) case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) + return ec.fieldContext_Control_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + return ec.fieldContext_Control_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) + return ec.fieldContext_Control_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + return ec.fieldContext_Control_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + return ec.fieldContext_Control_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + return ec.fieldContext_Control_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) + return ec.fieldContext_Control_tags(ctx, field) case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) + return ec.fieldContext_Control_ownerID(ctx, field) case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) + return ec.fieldContext_Control_name(ctx, field) case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) + return ec.fieldContext_Control_description(ctx, field) case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + return ec.fieldContext_Control_status(ctx, field) + case "controlType": + return ec.fieldContext_Control_controlType(ctx, field) case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) + return ec.fieldContext_Control_family(ctx, field) case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) + return ec.fieldContext_Control_class(ctx, field) case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + return ec.fieldContext_Control_mappedFrameworks(ctx, field) case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) + return ec.fieldContext_Control_details(ctx, field) case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) + return ec.fieldContext_Control_tasks(ctx, field) case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } defer func() { @@ -175259,15 +90872,15 @@ func (ec *executionContext) fieldContext_Query_subcontrol(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_control_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_subscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_subscriber(ctx, field) +func (ec *executionContext) _Query_controlObjective(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjective(ctx, field) if err != nil { return graphql.Null } @@ -175280,7 +90893,7 @@ func (ec *executionContext) _Query_subscriber(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Subscriber(rctx, fc.Args["email"].(string)) + return ec.resolvers.Query().ControlObjective(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175292,12 +90905,12 @@ func (ec *executionContext) _Query_subscriber(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(*generated.Subscriber) + res := resTmp.(*generated.ControlObjective) fc.Result = res - return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) + return ec.marshalNControlObjective2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjective(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_subscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjective(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175306,39 +90919,73 @@ func (ec *executionContext) fieldContext_Query_subscriber(ctx context.Context, f Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Subscriber_id(ctx, field) + return ec.fieldContext_ControlObjective_id(ctx, field) case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) + return ec.fieldContext_ControlObjective_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) + return ec.fieldContext_ControlObjective_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } defer func() { @@ -175348,15 +90995,15 @@ func (ec *executionContext) fieldContext_Query_subscriber(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_subscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_controlObjective_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_task(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_task(ctx, field) +func (ec *executionContext) _Query_documentData(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentData(ctx, field) if err != nil { return graphql.Null } @@ -175369,7 +91016,7 @@ func (ec *executionContext) _Query_task(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Task(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().DocumentData(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175381,12 +91028,12 @@ func (ec *executionContext) _Query_task(ctx context.Context, field graphql.Colle } return graphql.Null } - res := resTmp.(*generated.Task) + res := resTmp.(*generated.DocumentData) fc.Result = res - return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) + return ec.marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentData(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_task(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentData(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175395,55 +91042,37 @@ func (ec *executionContext) fieldContext_Query_task(ctx context.Context, field g Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Task_id(ctx, field) + return ec.fieldContext_DocumentData_id(ctx, field) case "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) + return ec.fieldContext_DocumentData_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) + return ec.fieldContext_DocumentData_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) + return ec.fieldContext_DocumentData_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) + return ec.fieldContext_DocumentData_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } defer func() { @@ -175453,15 +91082,15 @@ func (ec *executionContext) fieldContext_Query_task(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_task_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_documentData_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_template(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_template(ctx, field) +func (ec *executionContext) _Query_entity(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entity(ctx, field) if err != nil { return graphql.Null } @@ -175474,7 +91103,7 @@ func (ec *executionContext) _Query_template(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().Template(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Entity(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175486,12 +91115,12 @@ func (ec *executionContext) _Query_template(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(*generated.Template) + res := resTmp.(*generated.Entity) fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_template(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entity(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175500,41 +91129,49 @@ func (ec *executionContext) fieldContext_Query_template(ctx context.Context, fie Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Template_id(ctx, field) + return ec.fieldContext_Entity_id(ctx, field) case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) + return ec.fieldContext_Entity_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) + return ec.fieldContext_Entity_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) + return ec.fieldContext_Entity_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) + return ec.fieldContext_Entity_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) + return ec.fieldContext_Entity_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) + return ec.fieldContext_Entity_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Template_tags(ctx, field) + return ec.fieldContext_Entity_tags(ctx, field) case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) + return ec.fieldContext_Entity_ownerID(ctx, field) case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) case "owner": - return ec.fieldContext_Template_owner(ctx, field) + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) case "documents": - return ec.fieldContext_Template_documents(ctx, field) + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) case "files": - return ec.fieldContext_Template_files(ctx, field) + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) }, } defer func() { @@ -175544,15 +91181,15 @@ func (ec *executionContext) fieldContext_Query_template(ctx context.Context, fie } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_template_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_entity_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_tfaSetting(ctx, field) +func (ec *executionContext) _Query_entityType(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityType(ctx, field) if err != nil { return graphql.Null } @@ -175565,7 +91202,7 @@ func (ec *executionContext) _Query_tfaSetting(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().TfaSetting(rctx, fc.Args["id"].(*string)) + return ec.resolvers.Query().EntityType(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175577,12 +91214,12 @@ func (ec *executionContext) _Query_tfaSetting(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(*generated.TFASetting) + res := resTmp.(*generated.EntityType) fc.Result = res - return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) + return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityType(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175591,33 +91228,31 @@ func (ec *executionContext) fieldContext_Query_tfaSetting(ctx context.Context, f Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_TFASetting_id(ctx, field) + return ec.fieldContext_EntityType_id(ctx, field) case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) + return ec.fieldContext_EntityType_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) + return ec.fieldContext_EntityType_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) + return ec.fieldContext_EntityType_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) + return ec.fieldContext_EntityType_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) + return ec.fieldContext_EntityType_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) + return ec.fieldContext_EntityType_deletedBy(ctx, field) case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) }, } defer func() { @@ -175627,15 +91262,15 @@ func (ec *executionContext) fieldContext_Query_tfaSetting(ctx context.Context, f } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_tfaSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_entityType_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_user(ctx, field) +func (ec *executionContext) _Query_event(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_event(ctx, field) if err != nil { return graphql.Null } @@ -175648,7 +91283,7 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().User(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().Event(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175660,12 +91295,12 @@ func (ec *executionContext) _Query_user(ctx context.Context, field graphql.Colle } return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(*generated.Event) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_event(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175674,79 +91309,49 @@ func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field g Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_User_id(ctx, field) + return ec.fieldContext_Event_id(ctx, field) case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_Event_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_Event_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_Event_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) + return ec.fieldContext_Event_updatedBy(ctx, field) case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } defer func() { @@ -175756,15 +91361,15 @@ func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field g } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_event_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } return fc, nil } -func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Query_userSetting(ctx, field) +func (ec *executionContext) _Query_file(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_file(ctx, field) if err != nil { return graphql.Null } @@ -175777,7 +91382,7 @@ func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.resolvers.Query().UserSetting(rctx, fc.Args["id"].(string)) + return ec.resolvers.Query().File(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -175789,12 +91394,12 @@ func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(*generated.UserSetting) + res := resTmp.(*generated.File) fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) + return ec.marshalNFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query_userSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_file(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, @@ -175803,45 +91408,71 @@ func (ec *executionContext) fieldContext_Query_userSetting(ctx context.Context, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_UserSetting_id(ctx, field) + return ec.fieldContext_File_id(ctx, field) case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) + return ec.fieldContext_File_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) + return ec.fieldContext_File_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) + return ec.fieldContext_File_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) + return ec.fieldContext_File_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) + return ec.fieldContext_File_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } defer func() { @@ -175851,15 +91482,15 @@ func (ec *executionContext) fieldContext_Query_userSetting(ctx context.Context, } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query_userSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_file_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) return fc, err } 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) +func (ec *executionContext) _Query_group(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_group(ctx, field) if err != nil { return graphql.Null } @@ -175872,50 +91503,133 @@ func (ec *executionContext) _Query___type(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.introspectType(fc.Args["name"].(string)) + return ec.resolvers.Query().Group(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Group) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_group(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "kind": - return ec.fieldContext___Type_kind(ctx, field) + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) case "name": - return ec.fieldContext___Type_name(ctx, field) + return ec.fieldContext_Group_name(ctx, field) case "description": - return ec.fieldContext___Type_description(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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } defer func() { @@ -175925,15 +91639,15 @@ func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field } }() ctx = graphql.WithFieldContext(ctx, fc) - if fc.Args, err = ec.field_Query___type_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + if fc.Args, err = ec.field_Query_group_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) +func (ec *executionContext) _Query_groupMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupMembership(ctx, field) if err != nil { return graphql.Null } @@ -175946,175 +91660,77 @@ func (ec *executionContext) _Query___schema(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return ec.introspectSchema() + return ec.resolvers.Query().GroupMembership(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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.Schema) + res := resTmp.(*generated.GroupMembership) fc.Result = res - return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) + return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, 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) + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Schema", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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.(string) - fc.Result = res - return ec.marshalNID2string(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 nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.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 + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐ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 Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil - }) - if err != nil { + if fc.Args, err = ec.field_Query_groupMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(time.Time) - fc.Result = res - return ec.marshalOTime2timeᚐ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 Time does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _Risk_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_createdBy(ctx, field) +func (ec *executionContext) _Query_groupSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSetting(ctx, field) if err != nil { return graphql.Null } @@ -176127,35 +91743,79 @@ func (ec *executionContext) _Risk_createdBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().GroupSetting(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.GroupSetting) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", 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_groupSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_updatedBy(ctx, field) +func (ec *executionContext) _Query_hush(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_hush(ctx, field) if err != nil { return graphql.Null } @@ -176168,35 +91828,79 @@ func (ec *executionContext) _Risk_updatedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().Hush(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Hush) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_hush(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", 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_hush_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_deletedAt(ctx, field) +func (ec *executionContext) _Query_integration(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integration(ctx, field) if err != nil { return graphql.Null } @@ -176209,35 +91913,81 @@ func (ec *executionContext) _Risk_deletedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().Integration(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Integration) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_integration(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", 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_integration_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_deletedBy(ctx, field) +func (ec *executionContext) _Query_internalPolicy(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicy(ctx, field) if err != nil { return graphql.Null } @@ -176250,35 +92000,103 @@ func (ec *executionContext) _Risk_deletedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().InternalPolicy(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.InternalPolicy) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicy(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", 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_internalPolicy_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_tags(ctx, field) +func (ec *executionContext) _Query_invite(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_invite(ctx, field) if err != nil { return graphql.Null } @@ -176291,35 +92109,83 @@ func (ec *executionContext) _Risk_tags(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Query().Invite(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Invite) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_invite(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", 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_invite_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_ownerID(ctx, field) +func (ec *executionContext) _Query_narrative(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narrative(ctx, field) if err != nil { return graphql.Null } @@ -176332,7 +92198,7 @@ func (ec *executionContext) _Risk_ownerID(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return ec.resolvers.Query().Narrative(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -176344,26 +92210,83 @@ func (ec *executionContext) _Risk_ownerID(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Narrative) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narrative(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", 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_narrative_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_name(ctx, field) +func (ec *executionContext) _Query_organization(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organization(ctx, field) if err != nil { return graphql.Null } @@ -176376,7 +92299,7 @@ func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Query().Organization(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -176388,26 +92311,145 @@ func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.Collec } return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organization(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", 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_organization_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_description(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_description(ctx, field) +func (ec *executionContext) _Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSetting(ctx, field) if err != nil { return graphql.Null } @@ -176420,35 +92462,89 @@ func (ec *executionContext) _Risk_description(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return ec.resolvers.Query().OrganizationSetting(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.OrganizationSetting) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", 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_organizationSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_status(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_status(ctx, field) +func (ec *executionContext) _Query_orgMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgMembership(ctx, field) if err != nil { return graphql.Null } @@ -176461,35 +92557,77 @@ func (ec *executionContext) _Risk_status(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return ec.resolvers.Query().OrgMembership(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.OrgMembership) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", 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_orgMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_riskType(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_riskType(ctx, field) +func (ec *executionContext) _Query_orgSubscription(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgSubscription(ctx, field) if err != nil { return graphql.Null } @@ -176502,35 +92640,87 @@ func (ec *executionContext) _Risk_riskType(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RiskType, nil + return ec.resolvers.Query().OrgSubscription(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.OrgSubscription) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_riskType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgSubscription(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_OrgSubscription_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgSubscription_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgSubscription_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrgSubscription_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscription_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscription_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscription_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscription_features(ctx, field) + case "owner": + return ec.fieldContext_OrgSubscription_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", 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_orgSubscription_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_businessCosts(ctx, field) +func (ec *executionContext) _Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_personalAccessToken(ctx, field) if err != nil { return graphql.Null } @@ -176543,35 +92733,85 @@ func (ec *executionContext) _Risk_businessCosts(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BusinessCosts, nil + return ec.resolvers.Query().PersonalAccessToken(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_personalAccessToken(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", 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_personalAccessToken_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_impact(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_impact(ctx, field) +func (ec *executionContext) _Query_procedure(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedure(ctx, field) if err != nil { return graphql.Null } @@ -176584,35 +92824,105 @@ func (ec *executionContext) _Risk_impact(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Impact, nil + return ec.resolvers.Query().Procedure(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(enums.RiskImpact) + res := resTmp.(*generated.Procedure) fc.Result = res - return ec.marshalORiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, field.Selections, res) + return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedure(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RiskRiskImpact does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", 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_procedure_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_likelihood(ctx, field) +func (ec *executionContext) _Query_program(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_program(ctx, field) if err != nil { return graphql.Null } @@ -176625,76 +92935,121 @@ func (ec *executionContext) _Risk_likelihood(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Likelihood, nil + return ec.resolvers.Query().Program(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(enums.RiskLikelihood) + res := resTmp.(*generated.Program) fc.Result = res - return ec.marshalORiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, field.Selections, res) + return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_program(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RiskRiskLikelihood does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _Risk_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_mitigation(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Mitigation, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_program_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Risk_mitigation(_ 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, err } return fc, nil } -func (ec *executionContext) _Risk_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_satisfies(ctx, field) +func (ec *executionContext) _Query_programMembership(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_programMembership(ctx, field) if err != nil { return graphql.Null } @@ -176707,76 +93062,75 @@ func (ec *executionContext) _Risk_satisfies(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Satisfies, nil + return ec.resolvers.Query().ProgramMembership(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.ProgramMembership) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_programMembership(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_ProgramMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembership_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembership_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembership_userID(ctx, field) + case "program": + return ec.fieldContext_ProgramMembership_program(ctx, field) + case "user": + return ec.fieldContext_ProgramMembership_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) }, } - return fc, nil -} - -func (ec *executionContext) _Risk_details(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) defer func() { if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + err = ec.Recover(ctx, r) + ec.Error(ctx, err) } }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { + ctx = graphql.WithFieldContext(ctx, fc) + if fc.Args, err = ec.field_Query_programMembership_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(map[string]interface{}) - fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Risk_details(_ 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 Map does not have child fields") - }, + return fc, err } return fc, nil } -func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_owner(ctx, field) +func (ec *executionContext) _Query_risk(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_risk(ctx, field) if err != nil { return graphql.Null } @@ -176789,7 +93143,7 @@ func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return ec.resolvers.Query().Risk(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -176801,134 +93155,93 @@ func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.Colle } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(*generated.Risk) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_risk(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + 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) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) + return ec.fieldContext_Risk_name(ctx, field) case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_Risk_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", 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_risk_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_blockedGroups(ctx, field) +func (ec *executionContext) _Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_apiTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -176941,7 +93254,7 @@ func (ec *executionContext) _Risk_blockedGroups(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BlockedGroups(ctx) + return ec.resolvers.Query().APITokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -176950,128 +93263,41 @@ func (ec *executionContext) _Risk_blockedGroups(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*model.APITokenSearchResult) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_apiTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "apiTokens": + return ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type APITokenSearchResult", 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_apiTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_editors(ctx, field) +func (ec *executionContext) _Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_actionPlanSearch(ctx, field) if err != nil { return graphql.Null } @@ -177084,7 +93310,7 @@ func (ec *executionContext) _Risk_editors(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Editors(ctx) + return ec.resolvers.Query().ActionPlanSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177093,128 +93319,41 @@ func (ec *executionContext) _Risk_editors(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*model.ActionPlanSearchResult) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_actionPlanSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "actionPlans": + return ec.fieldContext_ActionPlanSearchResult_actionPlans(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlanSearchResult", 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_actionPlanSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_viewers(ctx, field) +func (ec *executionContext) _Query_contactSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_contactSearch(ctx, field) if err != nil { return graphql.Null } @@ -177227,7 +93366,7 @@ func (ec *executionContext) _Risk_viewers(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Viewers(ctx) + return ec.resolvers.Query().ContactSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177236,128 +93375,41 @@ func (ec *executionContext) _Risk_viewers(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(*model.ContactSearchResult) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_contactSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) + case "contacts": + return ec.fieldContext_ContactSearchResult_contacts(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ContactSearchResult", 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_contactSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_control(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_control(ctx, field) +func (ec *executionContext) _Query_controlSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlSearch(ctx, field) if err != nil { return graphql.Null } @@ -177370,7 +93422,7 @@ func (ec *executionContext) _Risk_control(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Control(ctx) + return ec.resolvers.Query().ControlSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177379,96 +93431,41 @@ func (ec *executionContext) _Risk_control(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Control) + res := resTmp.(*model.ControlSearchResult) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Control_id(ctx, field) - case "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) + case "controls": + return ec.fieldContext_ControlSearchResult_controls(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlSearchResult", 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_controlSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_procedure(ctx, field) +func (ec *executionContext) _Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_controlObjectiveSearch(ctx, field) if err != nil { return graphql.Null } @@ -177481,7 +93478,7 @@ func (ec *executionContext) _Risk_procedure(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedure(ctx) + return ec.resolvers.Query().ControlObjectiveSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177490,82 +93487,41 @@ func (ec *executionContext) _Risk_procedure(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(*model.ControlObjectiveSearchResult) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_controlObjectiveSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) + case "controlObjectives": + return ec.fieldContext_ControlObjectiveSearchResult_controlObjectives(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjectiveSearchResult", 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_controlObjectiveSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_actionPlans(ctx, field) +func (ec *executionContext) _Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_documentDataSearch(ctx, field) if err != nil { return graphql.Null } @@ -177578,7 +93534,7 @@ func (ec *executionContext) _Risk_actionPlans(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ActionPlans(ctx) + return ec.resolvers.Query().DocumentDataSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177587,68 +93543,41 @@ func (ec *executionContext) _Risk_actionPlans(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ActionPlan) + res := resTmp.(*model.DocumentDataSearchResult) fc.Result = res - return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) + return ec.marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_documentDataSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) + case "documentData": + return ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + return nil, fmt.Errorf("no field named %q was found under type DocumentDataSearchResult", 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_documentDataSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _Risk_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Risk_programs(ctx, field) +func (ec *executionContext) _Query_entitySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entitySearch(ctx, field) if err != nil { return graphql.Null } @@ -177661,7 +93590,7 @@ func (ec *executionContext) _Risk_programs(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) + return ec.resolvers.Query().EntitySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177670,98 +93599,41 @@ func (ec *executionContext) _Risk_programs(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(*model.EntitySearchResult) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntitySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Risk_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entitySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Risk", + Object: "Query", Field: field, IsMethod: true, - IsResolver: false, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) + switch field.Name { + case "entities": + return ec.fieldContext_EntitySearchResult_entities(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntitySearchResult", 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_entitySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskBulkCreatePayload_risks(ctx context.Context, field graphql.CollectedField, obj *RiskBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskBulkCreatePayload_risks(ctx, field) +func (ec *executionContext) _Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_entityTypeSearch(ctx, field) if err != nil { return graphql.Null } @@ -177774,7 +93646,7 @@ func (ec *executionContext) _RiskBulkCreatePayload_risks(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Risks, nil + return ec.resolvers.Query().EntityTypeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177783,82 +93655,41 @@ func (ec *executionContext) _RiskBulkCreatePayload_risks(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Risk) + res := resTmp.(*model.EntityTypeSearchResult) fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) + return ec.marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskBulkCreatePayload_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_entityTypeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskBulkCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Risk_id(ctx, field) - case "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) + case "entityTypes": + return ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EntityTypeSearchResult", 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_entityTypeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskConnection_edges(ctx, field) +func (ec *executionContext) _Query_eventSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_eventSearch(ctx, field) if err != nil { return graphql.Null } @@ -177871,7 +93702,7 @@ func (ec *executionContext) _RiskConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().EventSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -177880,32 +93711,41 @@ func (ec *executionContext) _RiskConnection_edges(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.RiskEdge) + res := resTmp.(*model.EventSearchResult) fc.Result = res - return ec.marshalORiskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx, field.Selections, res) + return ec.marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_eventSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_RiskEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_RiskEdge_cursor(ctx, field) + case "events": + return ec.fieldContext_EventSearchResult_events(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type EventSearchResult", 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_eventSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_fileSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_fileSearch(ctx, field) if err != nil { return graphql.Null } @@ -177918,48 +93758,50 @@ func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().FileSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*model.FileSearchResult) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐFileSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_fileSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, 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) + case "files": + return ec.fieldContext_FileSearchResult_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type FileSearchResult", 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_fileSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_groupSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSearch(ctx, field) if err != nil { return graphql.Null } @@ -177972,38 +93814,50 @@ func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().GroupSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*model.GroupSearchResult) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "groups": + return ec.fieldContext_GroupSearchResult_groups(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSearchResult", 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_groupSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskCreatePayload_risk(ctx context.Context, field graphql.CollectedField, obj *RiskCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskCreatePayload_risk(ctx, field) +func (ec *executionContext) _Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_groupSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -178016,94 +93870,50 @@ func (ec *executionContext) _RiskCreatePayload_risk(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Risk, nil + return ec.resolvers.Query().GroupSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Risk) + res := resTmp.(*model.GroupSettingSearchResult) fc.Result = res - return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) + return ec.marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskCreatePayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_groupSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskCreatePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Risk_id(ctx, field) - case "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) + case "groupSettings": + return ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, fmt.Errorf("no field named %q was found under type GroupSettingSearchResult", 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_groupSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *RiskDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_integrationSearch(ctx, field) if err != nil { return graphql.Null } @@ -178116,38 +93926,50 @@ func (ec *executionContext) _RiskDeletePayload_deletedID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return ec.resolvers.Query().IntegrationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*model.IntegrationSearchResult) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_integrationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskDeletePayload", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "integrations": + return ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type IntegrationSearchResult", 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_integrationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskEdge_node(ctx, field) +func (ec *executionContext) _Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_internalPolicySearch(ctx, field) if err != nil { return graphql.Null } @@ -178160,7 +93982,7 @@ func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.resolvers.Query().InternalPolicySearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178169,82 +93991,41 @@ func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Risk) + res := resTmp.(*model.InternalPolicySearchResult) fc.Result = res - return ec.marshalORisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) + return ec.marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicySearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_internalPolicySearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_Risk_id(ctx, field) - case "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) + case "internalPolicies": + return ec.fieldContext_InternalPolicySearchResult_internalPolicies(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InternalPolicySearchResult", 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_internalPolicySearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskEdge_cursor(ctx, field) +func (ec *executionContext) _Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_narrativeSearch(ctx, field) if err != nil { return graphql.Null } @@ -178257,38 +94038,50 @@ func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.resolvers.Query().NarrativeSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*model.NarrativeSearchResult) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_narrativeSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskEdge", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "narratives": + return ec.fieldContext_NarrativeSearchResult_narratives(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type NarrativeSearchResult", 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_narrativeSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_id(ctx, field) +func (ec *executionContext) _Query_orgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_orgSubscriptionSearch(ctx, field) if err != nil { return graphql.Null } @@ -178301,38 +94094,50 @@ func (ec *executionContext) _RiskHistory_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return ec.resolvers.Query().OrgSubscriptionSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*model.OrgSubscriptionSearchResult) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOOrgSubscriptionSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_orgSubscriptionSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type ID does not have child fields") + switch field.Name { + case "orgSubscriptions": + return ec.fieldContext_OrgSubscriptionSearchResult_orgSubscriptions(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscriptionSearchResult", 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_orgSubscriptionSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_historyTime(ctx, field) +func (ec *executionContext) _Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSearch(ctx, field) if err != nil { return graphql.Null } @@ -178345,38 +94150,50 @@ func (ec *executionContext) _RiskHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return ec.resolvers.Query().OrganizationSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*model.OrganizationSearchResult) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "organizations": + return ec.fieldContext_OrganizationSearchResult_organizations(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSearchResult", 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_organizationSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_ref(ctx, field) +func (ec *executionContext) _Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_organizationSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -178389,7 +94206,7 @@ func (ec *executionContext) _RiskHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return ec.resolvers.Query().OrganizationSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178398,26 +94215,41 @@ func (ec *executionContext) _RiskHistory_ref(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.OrganizationSettingSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_organizationSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "organizationSettings": + return ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSettingSearchResult", 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_organizationSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_operation(ctx, field) +func (ec *executionContext) _Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_personalAccessTokenSearch(ctx, field) if err != nil { return graphql.Null } @@ -178430,38 +94262,50 @@ func (ec *executionContext) _RiskHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return ec.resolvers.Query().PersonalAccessTokenSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(*model.PersonalAccessTokenSearchResult) fc.Result = res - return ec.marshalNRiskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_personalAccessTokenSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RiskHistoryOpType does not have child fields") + switch field.Name { + case "personalAccessTokens": + return ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessTokenSearchResult", 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_personalAccessTokenSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_createdAt(ctx, field) +func (ec *executionContext) _Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_procedureSearch(ctx, field) if err != nil { return graphql.Null } @@ -178474,7 +94318,7 @@ func (ec *executionContext) _RiskHistory_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return ec.resolvers.Query().ProcedureSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178483,26 +94327,41 @@ func (ec *executionContext) _RiskHistory_createdAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*model.ProcedureSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_procedureSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "procedures": + return ec.fieldContext_ProcedureSearchResult_procedures(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProcedureSearchResult", 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_procedureSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_updatedAt(ctx, field) +func (ec *executionContext) _Query_programSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_programSearch(ctx, field) if err != nil { return graphql.Null } @@ -178515,7 +94374,7 @@ func (ec *executionContext) _RiskHistory_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return ec.resolvers.Query().ProgramSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178524,26 +94383,41 @@ func (ec *executionContext) _RiskHistory_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*model.ProgramSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOProgramSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_programSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "programs": + return ec.fieldContext_ProgramSearchResult_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramSearchResult", 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_programSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_createdBy(ctx, field) +func (ec *executionContext) _Query_riskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_riskSearch(ctx, field) if err != nil { return graphql.Null } @@ -178556,7 +94430,7 @@ func (ec *executionContext) _RiskHistory_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return ec.resolvers.Query().RiskSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178565,26 +94439,41 @@ func (ec *executionContext) _RiskHistory_createdBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.RiskSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_riskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "risks": + return ec.fieldContext_RiskSearchResult_risks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type RiskSearchResult", 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_riskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_updatedBy(ctx, field) +func (ec *executionContext) _Query_standardSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standardSearch(ctx, field) if err != nil { return graphql.Null } @@ -178597,7 +94486,7 @@ func (ec *executionContext) _RiskHistory_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return ec.resolvers.Query().StandardSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178606,26 +94495,41 @@ func (ec *executionContext) _RiskHistory_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.StandardSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standardSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "standards": + return ec.fieldContext_StandardSearchResult_standards(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardSearchResult", 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_standardSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_deletedAt(ctx, field) +func (ec *executionContext) _Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrolSearch(ctx, field) if err != nil { return graphql.Null } @@ -178638,7 +94542,7 @@ func (ec *executionContext) _RiskHistory_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return ec.resolvers.Query().SubcontrolSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178647,26 +94551,41 @@ func (ec *executionContext) _RiskHistory_deletedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*model.SubcontrolSearchResult) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrolSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "subcontrols": + return ec.fieldContext_SubcontrolSearchResult_subcontrols(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolSearchResult", 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_subcontrolSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_deletedBy(ctx, field) +func (ec *executionContext) _Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subscriberSearch(ctx, field) if err != nil { return graphql.Null } @@ -178679,7 +94598,7 @@ func (ec *executionContext) _RiskHistory_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return ec.resolvers.Query().SubscriberSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178688,26 +94607,41 @@ func (ec *executionContext) _RiskHistory_deletedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.SubscriberSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subscriberSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "subscribers": + return ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubscriberSearchResult", 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_subscriberSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_tags(ctx, field) +func (ec *executionContext) _Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_tFASettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -178720,7 +94654,7 @@ func (ec *executionContext) _RiskHistory_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return ec.resolvers.Query().TFASettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178729,26 +94663,41 @@ func (ec *executionContext) _RiskHistory_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*model.TFASettingSearchResult) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tFASettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "tFASettings": + return ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASettingSearchResult", 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_tFASettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_ownerID(ctx, field) +func (ec *executionContext) _Query_taskSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_taskSearch(ctx, field) if err != nil { return graphql.Null } @@ -178761,38 +94710,50 @@ func (ec *executionContext) _RiskHistory_ownerID(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return ec.resolvers.Query().TaskSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*model.TaskSearchResult) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTaskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_taskSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "tasks": + return ec.fieldContext_TaskSearchResult_tasks(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaskSearchResult", 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_taskSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_name(ctx, field) +func (ec *executionContext) _Query_templateSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_templateSearch(ctx, field) if err != nil { return graphql.Null } @@ -178805,38 +94766,50 @@ func (ec *executionContext) _RiskHistory_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return ec.resolvers.Query().TemplateSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*model.TemplateSearchResult) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_templateSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "templates": + return ec.fieldContext_TemplateSearchResult_templates(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateSearchResult", 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_templateSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_description(ctx, field) +func (ec *executionContext) _Query_userSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSearch(ctx, field) if err != nil { return graphql.Null } @@ -178849,7 +94822,7 @@ func (ec *executionContext) _RiskHistory_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return ec.resolvers.Query().UserSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178858,26 +94831,41 @@ func (ec *executionContext) _RiskHistory_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.UserSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "users": + return ec.fieldContext_UserSearchResult_users(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSearchResult", 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_userSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_status(ctx, field) +func (ec *executionContext) _Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSettingSearch(ctx, field) if err != nil { return graphql.Null } @@ -178890,7 +94878,7 @@ func (ec *executionContext) _RiskHistory_status(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return ec.resolvers.Query().UserSettingSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178899,26 +94887,41 @@ func (ec *executionContext) _RiskHistory_status(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.UserSettingSearchResult) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingSearchResult(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSettingSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "userSettings": + return ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingSearchResult", 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_userSettingSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_riskType(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_riskType(ctx, field) +func (ec *executionContext) _Query_search(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_search(ctx, field) if err != nil { return graphql.Null } @@ -178931,7 +94934,7 @@ func (ec *executionContext) _RiskHistory_riskType(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RiskType, nil + return ec.resolvers.Query().Search(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178940,26 +94943,43 @@ func (ec *executionContext) _RiskHistory_riskType(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.SearchResultConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResultConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_riskType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_search(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "page": + return ec.fieldContext_SearchResultConnection_page(ctx, field) + case "nodes": + return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", 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_search_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_businessCosts(ctx, field) +func (ec *executionContext) _Query_adminSearch(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_adminSearch(ctx, field) if err != nil { return graphql.Null } @@ -178972,7 +94992,7 @@ func (ec *executionContext) _RiskHistory_businessCosts(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.BusinessCosts, nil + return ec.resolvers.Query().AdminSearch(rctx, fc.Args["query"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -178981,26 +95001,43 @@ func (ec *executionContext) _RiskHistory_businessCosts(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*model.SearchResultConnection) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResultConnection(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_adminSearch(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "page": + return ec.fieldContext_SearchResultConnection_page(ctx, field) + case "nodes": + return ec.fieldContext_SearchResultConnection_nodes(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SearchResultConnection", 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_adminSearch_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_impact(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_impact(ctx, field) +func (ec *executionContext) _Query_standard(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_standard(ctx, field) if err != nil { return graphql.Null } @@ -179013,35 +95050,97 @@ func (ec *executionContext) _RiskHistory_impact(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Impact, nil + return ec.resolvers.Query().Standard(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(enums.RiskImpact) + res := resTmp.(*generated.Standard) fc.Result = res - return ec.marshalORiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, field.Selections, res) + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_standard(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RiskHistoryRiskImpact does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", 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_standard_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_likelihood(ctx, field) +func (ec *executionContext) _Query_subcontrol(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subcontrol(ctx, field) if err != nil { return graphql.Null } @@ -179054,35 +95153,113 @@ func (ec *executionContext) _RiskHistory_likelihood(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Likelihood, nil + return ec.resolvers.Query().Subcontrol(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(enums.RiskLikelihood) + res := resTmp.(*generated.Subcontrol) fc.Result = res - return ec.marshalORiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, field.Selections, res) + return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subcontrol(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type RiskHistoryRiskLikelihood does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", 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_subcontrol_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_mitigation(ctx, field) +func (ec *executionContext) _Query_subscriber(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_subscriber(ctx, field) if err != nil { return graphql.Null } @@ -179095,35 +95272,83 @@ func (ec *executionContext) _RiskHistory_mitigation(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Mitigation, nil + return ec.resolvers.Query().Subscriber(rctx, fc.Args["email"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Subscriber) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_mitigation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_subscriber(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", 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_subscriber_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_satisfies(ctx, field) +func (ec *executionContext) _Query_task(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_task(ctx, field) if err != nil { return graphql.Null } @@ -179136,35 +95361,99 @@ func (ec *executionContext) _RiskHistory_satisfies(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Satisfies, nil + return ec.resolvers.Query().Task(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Task) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_task(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Task_id(ctx, field) + case "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", 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_task_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistory_details(ctx, field) +func (ec *executionContext) _Query_template(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_template(ctx, field) if err != nil { return graphql.Null } @@ -179177,35 +95466,85 @@ func (ec *executionContext) _RiskHistory_details(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + return ec.resolvers.Query().Template(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*generated.Template) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_template(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistory", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", 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_template_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistoryConnection_edges(ctx, field) +func (ec *executionContext) _Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_tfaSetting(ctx, field) if err != nil { return graphql.Null } @@ -179218,41 +95557,77 @@ func (ec *executionContext) _RiskHistoryConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return ec.resolvers.Query().TfaSetting(rctx, fc.Args["id"].(*string)) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.RiskHistoryEdge) + res := resTmp.(*generated.TFASetting) fc.Result = res - return ec.marshalORiskHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryEdge(ctx, field.Selections, res) + return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_tfaSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_RiskHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_RiskHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RiskHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASetting", 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_tfaSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Query_user(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_user(ctx, field) if err != nil { return graphql.Null } @@ -179265,7 +95640,7 @@ func (ec *executionContext) _RiskHistoryConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return ec.resolvers.Query().User(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -179277,36 +95652,111 @@ func (ec *executionContext) _RiskHistoryConnection_pageInfo(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_user(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + IsMethod: true, + IsResolver: true, 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) + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type User", 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_user_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Query_userSetting(ctx context.Context, field graphql.CollectedField) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Query_userSetting(ctx, field) if err != nil { return graphql.Null } @@ -179319,7 +95769,7 @@ func (ec *executionContext) _RiskHistoryConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return ec.resolvers.Query().UserSetting(rctx, fc.Args["id"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -179331,26 +95781,77 @@ func (ec *executionContext) _RiskHistoryConnection_totalCount(ctx context.Contex } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query_userSetting(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistoryConnection", + Object: "Query", Field: field, - IsMethod: false, - IsResolver: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", 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_userSetting_args(ctx, field.ArgumentMap(ec.Variables)); err != nil { + ec.Error(ctx, err) + return fc, err + } return fc, nil } -func (ec *executionContext) _RiskHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistoryEdge_node(ctx, field) +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 } @@ -179363,7 +95864,7 @@ func (ec *executionContext) _RiskHistoryEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return ec.introspectType(fc.Args["name"].(string)) }) if err != nil { ec.Error(ctx, err) @@ -179372,72 +95873,59 @@ func (ec *executionContext) _RiskHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.RiskHistory) + res := resTmp.(*introspection.Type) fc.Result = res - return ec.marshalORiskHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistory(ctx, field.Selections, res) + return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___type(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "id": - return ec.fieldContext_RiskHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_RiskHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_RiskHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_RiskHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_RiskHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_RiskHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_RiskHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_RiskHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_RiskHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_RiskHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_RiskHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_RiskHistory_ownerID(ctx, field) + case "kind": + return ec.fieldContext___Type_kind(ctx, field) case "name": - return ec.fieldContext_RiskHistory_name(ctx, field) + return ec.fieldContext___Type_name(ctx, field) case "description": - return ec.fieldContext_RiskHistory_description(ctx, field) - case "status": - return ec.fieldContext_RiskHistory_status(ctx, field) - case "riskType": - return ec.fieldContext_RiskHistory_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_RiskHistory_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_RiskHistory_impact(ctx, field) - case "likelihood": - return ec.fieldContext_RiskHistory_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_RiskHistory_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_RiskHistory_satisfies(ctx, field) - case "details": - return ec.fieldContext_RiskHistory_details(ctx, field) + return ec.fieldContext___Type_description(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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type RiskHistory", field.Name) + 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) _RiskHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskHistoryEdge_cursor(ctx, field) +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 } @@ -179450,38 +95938,49 @@ func (ec *executionContext) _RiskHistoryEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return ec.introspectSchema() }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*introspection.Schema) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalO__Schema2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐSchema(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Query___schema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskHistoryEdge", + Object: "Query", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + 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) _RiskSearchResult_risks(ctx context.Context, field graphql.CollectedField, obj *RiskSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskSearchResult_risks(ctx, field) +func (ec *executionContext) _Risk_id(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_id(ctx, field) if err != nil { return graphql.Null } @@ -179494,91 +95993,38 @@ func (ec *executionContext) _RiskSearchResult_risks(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Risks, nil + 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.([]*generated.Risk) + res := resTmp.(string) fc.Result = res - return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskSearchResult_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskSearchResult", + Object: "Risk", 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _RiskUpdatePayload_risk(ctx context.Context, field graphql.CollectedField, obj *RiskUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_RiskUpdatePayload_risk(ctx, field) +func (ec *executionContext) _Risk_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -179591,94 +96037,35 @@ func (ec *executionContext) _RiskUpdatePayload_risk(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Risk, nil + 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.(*generated.Risk) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_RiskUpdatePayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "RiskUpdatePayload", + Object: "Risk", 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 "createdAt": - return ec.fieldContext_Risk_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Risk_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Risk_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Risk_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Risk_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Risk_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Risk_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Risk_ownerID(ctx, field) - case "name": - return ec.fieldContext_Risk_name(ctx, field) - case "description": - return ec.fieldContext_Risk_description(ctx, field) - case "status": - return ec.fieldContext_Risk_status(ctx, field) - case "riskType": - return ec.fieldContext_Risk_riskType(ctx, field) - case "businessCosts": - return ec.fieldContext_Risk_businessCosts(ctx, field) - case "impact": - return ec.fieldContext_Risk_impact(ctx, field) - case "likelihood": - return ec.fieldContext_Risk_likelihood(ctx, field) - case "mitigation": - return ec.fieldContext_Risk_mitigation(ctx, field) - case "satisfies": - return ec.fieldContext_Risk_satisfies(ctx, field) - case "details": - return ec.fieldContext_Risk_details(ctx, field) - case "owner": - return ec.fieldContext_Risk_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Risk_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Risk_editors(ctx, field) - case "viewers": - return ec.fieldContext_Risk_viewers(ctx, field) - case "control": - return ec.fieldContext_Risk_control(ctx, field) - case "procedure": - return ec.fieldContext_Risk_procedure(ctx, field) - case "actionPlans": - return ec.fieldContext_Risk_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Risk_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SearchResultConnection_page(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SearchResultConnection_page(ctx, field) +func (ec *executionContext) _Risk_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -179691,48 +96078,35 @@ func (ec *executionContext) _SearchResultConnection_page(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Page, nil + 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.(*entgql.PageInfo[string]) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SearchResultConnection_page(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SearchResultConnection", + Object: "Risk", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SearchResultConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *SearchResultConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SearchResultConnection_nodes(ctx, field) +func (ec *executionContext) _Risk_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -179745,38 +96119,35 @@ func (ec *executionContext) _SearchResultConnection_nodes(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Nodes, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.([]SearchResult) + res := resTmp.(string) fc.Result = res - return ec.marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SearchResultConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SearchResultConnection", + 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 SearchResult does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_id(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_id(ctx, field) +func (ec *executionContext) _Risk_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -179789,38 +96160,35 @@ func (ec *executionContext) _Standard_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_createdAt(ctx, field) +func (ec *executionContext) _Risk_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -179833,7 +96201,7 @@ func (ec *executionContext) _Standard_createdAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -179847,9 +96215,9 @@ func (ec *executionContext) _Standard_createdAt(ctx context.Context, field graph return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -179860,8 +96228,8 @@ func (ec *executionContext) fieldContext_Standard_createdAt(_ context.Context, f return fc, nil } -func (ec *executionContext) _Standard_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_updatedAt(ctx, field) +func (ec *executionContext) _Risk_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -179874,7 +96242,7 @@ func (ec *executionContext) _Standard_updatedAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -179883,26 +96251,26 @@ func (ec *executionContext) _Standard_updatedAt(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_createdBy(ctx, field) +func (ec *executionContext) _Risk_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_tags(ctx, field) if err != nil { return graphql.Null } @@ -179915,7 +96283,7 @@ func (ec *executionContext) _Standard_createdBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -179924,14 +96292,14 @@ func (ec *executionContext) _Standard_createdBy(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -179942,8 +96310,8 @@ func (ec *executionContext) fieldContext_Standard_createdBy(_ context.Context, f return fc, nil } -func (ec *executionContext) _Standard_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_updatedBy(ctx, field) +func (ec *executionContext) _Risk_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -179956,35 +96324,38 @@ func (ec *executionContext) _Standard_updatedBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_deletedAt(ctx, field) +func (ec *executionContext) _Risk_name(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_name(ctx, field) if err != nil { return graphql.Null } @@ -179997,35 +96368,38 @@ func (ec *executionContext) _Standard_deletedAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + 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.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_deletedBy(ctx, field) +func (ec *executionContext) _Risk_description(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_description(ctx, field) if err != nil { return graphql.Null } @@ -180038,7 +96412,7 @@ func (ec *executionContext) _Standard_deletedBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -180052,9 +96426,9 @@ func (ec *executionContext) _Standard_deletedBy(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -180065,8 +96439,8 @@ func (ec *executionContext) fieldContext_Standard_deletedBy(_ context.Context, f return fc, nil } -func (ec *executionContext) _Standard_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_tags(ctx, field) +func (ec *executionContext) _Risk_status(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_status(ctx, field) if err != nil { return graphql.Null } @@ -180079,7 +96453,7 @@ func (ec *executionContext) _Standard_tags(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -180088,14 +96462,14 @@ func (ec *executionContext) _Standard_tags(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -180106,8 +96480,8 @@ func (ec *executionContext) fieldContext_Standard_tags(_ context.Context, field return fc, nil } -func (ec *executionContext) _Standard_name(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_name(ctx, field) +func (ec *executionContext) _Risk_riskType(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_riskType(ctx, field) if err != nil { return graphql.Null } @@ -180120,26 +96494,23 @@ func (ec *executionContext) _Standard_name(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.RiskType, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_riskType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -180150,8 +96521,8 @@ func (ec *executionContext) fieldContext_Standard_name(_ context.Context, field return fc, nil } -func (ec *executionContext) _Standard_description(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_description(ctx, field) +func (ec *executionContext) _Risk_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_businessCosts(ctx, field) if err != nil { return graphql.Null } @@ -180164,7 +96535,7 @@ func (ec *executionContext) _Standard_description(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.BusinessCosts, nil }) if err != nil { ec.Error(ctx, err) @@ -180178,9 +96549,9 @@ func (ec *executionContext) _Standard_description(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -180191,8 +96562,8 @@ func (ec *executionContext) fieldContext_Standard_description(_ context.Context, return fc, nil } -func (ec *executionContext) _Standard_family(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_family(ctx, field) +func (ec *executionContext) _Risk_impact(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_impact(ctx, field) if err != nil { return graphql.Null } @@ -180205,7 +96576,7 @@ func (ec *executionContext) _Standard_family(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Family, nil + return obj.Impact, nil }) if err != nil { ec.Error(ctx, err) @@ -180214,26 +96585,26 @@ func (ec *executionContext) _Standard_family(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.RiskImpact) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalORiskRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + 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 nil, errors.New("field of type RiskRiskImpact does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_status(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_status(ctx, field) +func (ec *executionContext) _Risk_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_likelihood(ctx, field) if err != nil { return graphql.Null } @@ -180246,7 +96617,7 @@ func (ec *executionContext) _Standard_status(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Likelihood, nil }) if err != nil { ec.Error(ctx, err) @@ -180255,26 +96626,26 @@ func (ec *executionContext) _Standard_status(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.RiskLikelihood) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalORiskRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + 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 nil, errors.New("field of type RiskRiskLikelihood does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_standardType(ctx, field) +func (ec *executionContext) _Risk_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_mitigation(ctx, field) if err != nil { return graphql.Null } @@ -180287,7 +96658,7 @@ func (ec *executionContext) _Standard_standardType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StandardType, nil + return obj.Mitigation, nil }) if err != nil { ec.Error(ctx, err) @@ -180301,9 +96672,9 @@ func (ec *executionContext) _Standard_standardType(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_mitigation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -180314,8 +96685,8 @@ func (ec *executionContext) fieldContext_Standard_standardType(_ context.Context return fc, nil } -func (ec *executionContext) _Standard_version(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_version(ctx, field) +func (ec *executionContext) _Risk_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -180328,7 +96699,7 @@ func (ec *executionContext) _Standard_version(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -180342,9 +96713,9 @@ func (ec *executionContext) _Standard_version(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: false, IsResolver: false, @@ -180355,8 +96726,8 @@ func (ec *executionContext) fieldContext_Standard_version(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Standard_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_purposeAndScope(ctx, field) +func (ec *executionContext) _Risk_details(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_details(ctx, field) if err != nil { return graphql.Null } @@ -180369,7 +96740,7 @@ func (ec *executionContext) _Standard_purposeAndScope(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PurposeAndScope, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -180378,26 +96749,26 @@ func (ec *executionContext) _Standard_purposeAndScope(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Standard_background(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_background(ctx, field) +func (ec *executionContext) _Risk_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_owner(ctx, field) if err != nil { return graphql.Null } @@ -180410,35 +96781,146 @@ func (ec *executionContext) _Standard_background(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Background, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _Standard_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_satisfies(ctx, field) +func (ec *executionContext) _Risk_blockedGroups(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_blockedGroups(ctx, field) if err != nil { return graphql.Null } @@ -180451,7 +96933,7 @@ func (ec *executionContext) _Standard_satisfies(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Satisfies, nil + return obj.BlockedGroups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -180460,26 +96942,128 @@ func (ec *executionContext) _Standard_satisfies(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_blockedGroups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Standard_details(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_details(ctx, field) +func (ec *executionContext) _Risk_editors(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_editors(ctx, field) if err != nil { return graphql.Null } @@ -180492,7 +97076,7 @@ func (ec *executionContext) _Standard_details(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + return obj.Editors(ctx) }) if err != nil { ec.Error(ctx, err) @@ -180501,26 +97085,128 @@ func (ec *executionContext) _Standard_details(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_editors(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Standard_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_controlObjectives(ctx, field) +func (ec *executionContext) _Risk_viewers(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_viewers(ctx, field) if err != nil { return graphql.Null } @@ -180533,7 +97219,7 @@ func (ec *executionContext) _Standard_controlObjectives(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjectives(ctx) + return obj.Viewers(ctx) }) if err != nil { ec.Error(ctx, err) @@ -180542,94 +97228,128 @@ func (ec *executionContext) _Standard_controlObjectives(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_viewers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) + return ec.fieldContext_Group_tags(ctx, field) case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) + return ec.fieldContext_Group_ownerID(ctx, field) case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) + return ec.fieldContext_Group_name(ctx, field) case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Standard_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_controls(ctx, field) +func (ec *executionContext) _Risk_control(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_control(ctx, field) if err != nil { return graphql.Null } @@ -180642,7 +97362,7 @@ func (ec *executionContext) _Standard_controls(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Controls(ctx) + return obj.Control(ctx) }) if err != nil { ec.Error(ctx, err) @@ -180656,9 +97376,9 @@ func (ec *executionContext) _Standard_controls(ctx context.Context, field graphq return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -180739,8 +97459,8 @@ func (ec *executionContext) fieldContext_Standard_controls(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Standard_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_procedures(ctx, field) +func (ec *executionContext) _Risk_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_procedure(ctx, field) if err != nil { return graphql.Null } @@ -180753,7 +97473,7 @@ func (ec *executionContext) _Standard_procedures(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedures(ctx) + return obj.Procedure(ctx) }) if err != nil { ec.Error(ctx, err) @@ -180767,9 +97487,9 @@ func (ec *executionContext) _Standard_procedures(ctx context.Context, field grap return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -180836,8 +97556,8 @@ func (ec *executionContext) fieldContext_Standard_procedures(_ context.Context, return fc, nil } -func (ec *executionContext) _Standard_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_actionPlans(ctx, field) +func (ec *executionContext) _Risk_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_actionPlans(ctx, field) if err != nil { return graphql.Null } @@ -180864,9 +97584,9 @@ func (ec *executionContext) _Standard_actionPlans(ctx context.Context, field gra return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -180919,8 +97639,8 @@ func (ec *executionContext) fieldContext_Standard_actionPlans(_ context.Context, return fc, nil } -func (ec *executionContext) _Standard_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Standard_programs(ctx, field) +func (ec *executionContext) _Risk_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Risk) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Risk_programs(ctx, field) if err != nil { return graphql.Null } @@ -180947,9 +97667,9 @@ func (ec *executionContext) _Standard_programs(ctx context.Context, field graphq return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Standard_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Risk_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Standard", + Object: "Risk", Field: field, IsMethod: true, IsResolver: false, @@ -181032,97 +97752,8 @@ func (ec *executionContext) fieldContext_Standard_programs(_ context.Context, fi return fc, nil } -func (ec *executionContext) _StandardBulkCreatePayload_standards(ctx context.Context, field graphql.CollectedField, obj *StandardBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standards, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Standard) - fc.Result = res - return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_StandardBulkCreatePayload_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StandardBulkCreatePayload", - 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_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StandardConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardConnection_edges(ctx, field) +func (ec *executionContext) _RiskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -181144,32 +97775,32 @@ func (ec *executionContext) _StandardConnection_edges(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.StandardEdge) + res := resTmp.([]*generated.RiskEdge) fc.Result = res - return ec.marshalOStandardEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx, field.Selections, res) + return ec.marshalORiskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_StandardEdge_node(ctx, field) + return ec.fieldContext_RiskEdge_node(ctx, field) case "cursor": - return ec.fieldContext_StandardEdge_cursor(ctx, field) + return ec.fieldContext_RiskEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type StandardEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _StandardConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardConnection_pageInfo(ctx, field) +func (ec *executionContext) _RiskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -181199,9 +97830,9 @@ func (ec *executionContext) _StandardConnection_pageInfo(ctx context.Context, fi return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, @@ -181222,8 +97853,8 @@ func (ec *executionContext) fieldContext_StandardConnection_pageInfo(_ context.C return fc, nil } -func (ec *executionContext) _StandardConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardConnection_totalCount(ctx, field) +func (ec *executionContext) _RiskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -181253,9 +97884,9 @@ func (ec *executionContext) _StandardConnection_totalCount(ctx context.Context, return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardConnection", + Object: "RiskConnection", Field: field, IsMethod: false, IsResolver: false, @@ -181266,144 +97897,8 @@ func (ec *executionContext) fieldContext_StandardConnection_totalCount(_ context return fc, nil } -func (ec *executionContext) _StandardCreatePayload_standard(ctx context.Context, field graphql.CollectedField, obj *StandardCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardCreatePayload_standard(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standard, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Standard) - fc.Result = res - return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_StandardCreatePayload_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StandardCreatePayload", - 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_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StandardDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *StandardDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_StandardDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StandardDeletePayload", - 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) _StandardEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardEdge_node(ctx, field) +func (ec *executionContext) _RiskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -181425,74 +97920,82 @@ func (ec *executionContext) _StandardEdge_node(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Standard) + res := resTmp.(*generated.Risk) fc.Result = res - return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) + return ec.marshalORisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardEdge", + 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_Standard_id(ctx, field) + return ec.fieldContext_Risk_id(ctx, field) case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) + return ec.fieldContext_Risk_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) + return ec.fieldContext_Risk_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) + return ec.fieldContext_Risk_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) + return ec.fieldContext_Risk_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) + return ec.fieldContext_Risk_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) + return ec.fieldContext_Risk_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Standard_tags(ctx, field) + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) case "name": - return ec.fieldContext_Standard_name(ctx, field) + return ec.fieldContext_Risk_name(ctx, field) case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) + return ec.fieldContext_Risk_description(ctx, field) case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) + return ec.fieldContext_Risk_satisfies(ctx, field) case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) + return ec.fieldContext_Risk_actionPlans(ctx, field) case "programs": - return ec.fieldContext_Standard_programs(ctx, field) + return ec.fieldContext_Risk_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) }, } return fc, nil } -func (ec *executionContext) _StandardEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardEdge_cursor(ctx, field) +func (ec *executionContext) _RiskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -181522,9 +98025,9 @@ func (ec *executionContext) _StandardEdge_cursor(ctx context.Context, field grap return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardEdge", + Object: "RiskEdge", Field: field, IsMethod: false, IsResolver: false, @@ -181535,8 +98038,8 @@ func (ec *executionContext) fieldContext_StandardEdge_cursor(_ context.Context, return fc, nil } -func (ec *executionContext) _StandardHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_id(ctx, field) +func (ec *executionContext) _RiskHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -181566,9 +98069,9 @@ func (ec *executionContext) _StandardHistory_id(ctx context.Context, field graph return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181579,8 +98082,8 @@ func (ec *executionContext) fieldContext_StandardHistory_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _StandardHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_historyTime(ctx, field) +func (ec *executionContext) _RiskHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -181610,9 +98113,9 @@ func (ec *executionContext) _StandardHistory_historyTime(ctx context.Context, fi return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181623,8 +98126,8 @@ func (ec *executionContext) fieldContext_StandardHistory_historyTime(_ context.C return fc, nil } -func (ec *executionContext) _StandardHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_ref(ctx, field) +func (ec *executionContext) _RiskHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -181651,9 +98154,9 @@ func (ec *executionContext) _StandardHistory_ref(ctx context.Context, field grap return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181664,8 +98167,8 @@ func (ec *executionContext) fieldContext_StandardHistory_ref(_ context.Context, return fc, nil } -func (ec *executionContext) _StandardHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_operation(ctx, field) +func (ec *executionContext) _RiskHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -181692,24 +98195,24 @@ func (ec *executionContext) _StandardHistory_operation(ctx context.Context, fiel } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNStandardHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNRiskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type StandardHistoryOpType does not have child fields") + return nil, errors.New("field of type RiskHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _StandardHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_createdAt(ctx, field) +func (ec *executionContext) _RiskHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -181736,9 +98239,9 @@ func (ec *executionContext) _StandardHistory_createdAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181749,8 +98252,8 @@ func (ec *executionContext) fieldContext_StandardHistory_createdAt(_ context.Con return fc, nil } -func (ec *executionContext) _StandardHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_updatedAt(ctx, field) +func (ec *executionContext) _RiskHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -181777,9 +98280,9 @@ func (ec *executionContext) _StandardHistory_updatedAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181790,8 +98293,8 @@ func (ec *executionContext) fieldContext_StandardHistory_updatedAt(_ context.Con return fc, nil } -func (ec *executionContext) _StandardHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_createdBy(ctx, field) +func (ec *executionContext) _RiskHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -181818,9 +98321,9 @@ func (ec *executionContext) _StandardHistory_createdBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181831,8 +98334,8 @@ func (ec *executionContext) fieldContext_StandardHistory_createdBy(_ context.Con return fc, nil } -func (ec *executionContext) _StandardHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_updatedBy(ctx, field) +func (ec *executionContext) _RiskHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -181859,9 +98362,9 @@ func (ec *executionContext) _StandardHistory_updatedBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181872,8 +98375,8 @@ func (ec *executionContext) fieldContext_StandardHistory_updatedBy(_ context.Con return fc, nil } -func (ec *executionContext) _StandardHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_deletedAt(ctx, field) +func (ec *executionContext) _RiskHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -181900,9 +98403,9 @@ func (ec *executionContext) _StandardHistory_deletedAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181913,8 +98416,8 @@ func (ec *executionContext) fieldContext_StandardHistory_deletedAt(_ context.Con return fc, nil } -func (ec *executionContext) _StandardHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_deletedBy(ctx, field) +func (ec *executionContext) _RiskHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -181941,9 +98444,9 @@ func (ec *executionContext) _StandardHistory_deletedBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181954,8 +98457,8 @@ func (ec *executionContext) fieldContext_StandardHistory_deletedBy(_ context.Con return fc, nil } -func (ec *executionContext) _StandardHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_tags(ctx, field) +func (ec *executionContext) _RiskHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -181982,9 +98485,9 @@ func (ec *executionContext) _StandardHistory_tags(ctx context.Context, field gra return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -181995,8 +98498,8 @@ func (ec *executionContext) fieldContext_StandardHistory_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _StandardHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_name(ctx, field) +func (ec *executionContext) _RiskHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -182009,7 +98512,7 @@ func (ec *executionContext) _StandardHistory_name(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -182026,9 +98529,9 @@ func (ec *executionContext) _StandardHistory_name(ctx context.Context, field gra return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182039,8 +98542,8 @@ func (ec *executionContext) fieldContext_StandardHistory_name(_ context.Context, return fc, nil } -func (ec *executionContext) _StandardHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_description(ctx, field) +func (ec *executionContext) _RiskHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -182053,23 +98556,26 @@ func (ec *executionContext) _StandardHistory_description(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182080,8 +98586,8 @@ func (ec *executionContext) fieldContext_StandardHistory_description(_ context.C return fc, nil } -func (ec *executionContext) _StandardHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_family(ctx, field) +func (ec *executionContext) _RiskHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -182094,7 +98600,7 @@ func (ec *executionContext) _StandardHistory_family(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Family, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -182108,9 +98614,9 @@ func (ec *executionContext) _StandardHistory_family(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182121,8 +98627,8 @@ func (ec *executionContext) fieldContext_StandardHistory_family(_ context.Contex return fc, nil } -func (ec *executionContext) _StandardHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_status(ctx, field) +func (ec *executionContext) _RiskHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -182149,9 +98655,9 @@ func (ec *executionContext) _StandardHistory_status(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182162,8 +98668,8 @@ func (ec *executionContext) fieldContext_StandardHistory_status(_ context.Contex return fc, nil } -func (ec *executionContext) _StandardHistory_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_standardType(ctx, field) +func (ec *executionContext) _RiskHistory_riskType(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_riskType(ctx, field) if err != nil { return graphql.Null } @@ -182176,7 +98682,7 @@ func (ec *executionContext) _StandardHistory_standardType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.StandardType, nil + return obj.RiskType, nil }) if err != nil { ec.Error(ctx, err) @@ -182190,9 +98696,9 @@ func (ec *executionContext) _StandardHistory_standardType(ctx context.Context, f return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_riskType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182203,8 +98709,8 @@ func (ec *executionContext) fieldContext_StandardHistory_standardType(_ context. return fc, nil } -func (ec *executionContext) _StandardHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_version(ctx, field) +func (ec *executionContext) _RiskHistory_businessCosts(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_businessCosts(ctx, field) if err != nil { return graphql.Null } @@ -182217,7 +98723,7 @@ func (ec *executionContext) _StandardHistory_version(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.BusinessCosts, nil }) if err != nil { ec.Error(ctx, err) @@ -182231,9 +98737,9 @@ func (ec *executionContext) _StandardHistory_version(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_businessCosts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182244,8 +98750,8 @@ func (ec *executionContext) fieldContext_StandardHistory_version(_ context.Conte return fc, nil } -func (ec *executionContext) _StandardHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_purposeAndScope(ctx, field) +func (ec *executionContext) _RiskHistory_impact(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_impact(ctx, field) if err != nil { return graphql.Null } @@ -182258,7 +98764,7 @@ func (ec *executionContext) _StandardHistory_purposeAndScope(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PurposeAndScope, nil + return obj.Impact, nil }) if err != nil { ec.Error(ctx, err) @@ -182267,26 +98773,26 @@ func (ec *executionContext) _StandardHistory_purposeAndScope(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.RiskImpact) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalORiskHistoryRiskImpact2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskImpact(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_impact(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", 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 nil, errors.New("field of type RiskHistoryRiskImpact does not have child fields") }, } return fc, nil } -func (ec *executionContext) _StandardHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_background(ctx, field) +func (ec *executionContext) _RiskHistory_likelihood(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_likelihood(ctx, field) if err != nil { return graphql.Null } @@ -182299,7 +98805,48 @@ func (ec *executionContext) _StandardHistory_background(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Background, nil + return obj.Likelihood, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(enums.RiskLikelihood) + fc.Result = res + return ec.marshalORiskHistoryRiskLikelihood2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRiskLikelihood(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskHistory_likelihood(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskHistory", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type RiskHistoryRiskLikelihood does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskHistory_mitigation(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_mitigation(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Mitigation, nil }) if err != nil { ec.Error(ctx, err) @@ -182313,9 +98860,9 @@ func (ec *executionContext) _StandardHistory_background(ctx context.Context, fie return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_mitigation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182326,8 +98873,8 @@ func (ec *executionContext) fieldContext_StandardHistory_background(_ context.Co return fc, nil } -func (ec *executionContext) _StandardHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_satisfies(ctx, field) +func (ec *executionContext) _RiskHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -182354,9 +98901,9 @@ func (ec *executionContext) _StandardHistory_satisfies(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182367,8 +98914,8 @@ func (ec *executionContext) fieldContext_StandardHistory_satisfies(_ context.Con return fc, nil } -func (ec *executionContext) _StandardHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistory_details(ctx, field) +func (ec *executionContext) _RiskHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -182395,9 +98942,9 @@ func (ec *executionContext) _StandardHistory_details(ctx context.Context, field return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistory", + Object: "RiskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -182408,8 +98955,8 @@ func (ec *executionContext) fieldContext_StandardHistory_details(_ context.Conte return fc, nil } -func (ec *executionContext) _StandardHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistoryConnection_edges(ctx, field) +func (ec *executionContext) _RiskHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -182431,32 +98978,32 @@ func (ec *executionContext) _StandardHistoryConnection_edges(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.StandardHistoryEdge) + res := resTmp.([]*generated.RiskHistoryEdge) fc.Result = res - return ec.marshalOStandardHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryEdge(ctx, field.Selections, res) + return ec.marshalORiskHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistoryConnection", + Object: "RiskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_StandardHistoryEdge_node(ctx, field) + return ec.fieldContext_RiskHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_StandardHistoryEdge_cursor(ctx, field) + return ec.fieldContext_RiskHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type StandardHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _StandardHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _RiskHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -182486,9 +99033,9 @@ func (ec *executionContext) _StandardHistoryConnection_pageInfo(ctx context.Cont return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistoryConnection", + Object: "RiskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -182509,8 +99056,8 @@ func (ec *executionContext) fieldContext_StandardHistoryConnection_pageInfo(_ co return fc, nil } -func (ec *executionContext) _StandardHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _RiskHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -182540,9 +99087,9 @@ func (ec *executionContext) _StandardHistoryConnection_totalCount(ctx context.Co return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistoryConnection", + Object: "RiskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -182553,8 +99100,8 @@ func (ec *executionContext) fieldContext_StandardHistoryConnection_totalCount(_ return fc, nil } -func (ec *executionContext) _StandardHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistoryEdge_node(ctx, field) +func (ec *executionContext) _RiskHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -182576,70 +99123,72 @@ func (ec *executionContext) _StandardHistoryEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.StandardHistory) + res := resTmp.(*generated.RiskHistory) fc.Result = res - return ec.marshalOStandardHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistory(ctx, field.Selections, res) + return ec.marshalORiskHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistoryEdge", + Object: "RiskHistoryEdge", 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_StandardHistory_id(ctx, field) + return ec.fieldContext_RiskHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_StandardHistory_historyTime(ctx, field) + return ec.fieldContext_RiskHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_StandardHistory_ref(ctx, field) + return ec.fieldContext_RiskHistory_ref(ctx, field) case "operation": - return ec.fieldContext_StandardHistory_operation(ctx, field) + return ec.fieldContext_RiskHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_StandardHistory_createdAt(ctx, field) + return ec.fieldContext_RiskHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_StandardHistory_updatedAt(ctx, field) + return ec.fieldContext_RiskHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_StandardHistory_createdBy(ctx, field) + return ec.fieldContext_RiskHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_StandardHistory_updatedBy(ctx, field) + return ec.fieldContext_RiskHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_StandardHistory_deletedAt(ctx, field) + return ec.fieldContext_RiskHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_StandardHistory_deletedBy(ctx, field) + return ec.fieldContext_RiskHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_StandardHistory_tags(ctx, field) + return ec.fieldContext_RiskHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_RiskHistory_ownerID(ctx, field) case "name": - return ec.fieldContext_StandardHistory_name(ctx, field) + return ec.fieldContext_RiskHistory_name(ctx, field) case "description": - return ec.fieldContext_StandardHistory_description(ctx, field) - case "family": - return ec.fieldContext_StandardHistory_family(ctx, field) + return ec.fieldContext_RiskHistory_description(ctx, field) case "status": - return ec.fieldContext_StandardHistory_status(ctx, field) - case "standardType": - return ec.fieldContext_StandardHistory_standardType(ctx, field) - case "version": - return ec.fieldContext_StandardHistory_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_StandardHistory_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_StandardHistory_background(ctx, field) + return ec.fieldContext_RiskHistory_status(ctx, field) + case "riskType": + return ec.fieldContext_RiskHistory_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_RiskHistory_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_RiskHistory_impact(ctx, field) + case "likelihood": + return ec.fieldContext_RiskHistory_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_RiskHistory_mitigation(ctx, field) case "satisfies": - return ec.fieldContext_StandardHistory_satisfies(ctx, field) + return ec.fieldContext_RiskHistory_satisfies(ctx, field) case "details": - return ec.fieldContext_StandardHistory_details(ctx, field) + return ec.fieldContext_RiskHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type StandardHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type RiskHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _StandardHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _RiskHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.RiskHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -182669,9 +99218,9 @@ func (ec *executionContext) _StandardHistoryEdge_cursor(ctx context.Context, fie return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_StandardHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_RiskHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "StandardHistoryEdge", + Object: "RiskHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -182682,189 +99231,8 @@ func (ec *executionContext) fieldContext_StandardHistoryEdge_cursor(_ context.Co return fc, nil } -func (ec *executionContext) _StandardSearchResult_standards(ctx context.Context, field graphql.CollectedField, obj *StandardSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardSearchResult_standards(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standards, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Standard) - fc.Result = res - return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_StandardSearchResult_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StandardSearchResult", - 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_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _StandardUpdatePayload_standard(ctx context.Context, field graphql.CollectedField, obj *StandardUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_StandardUpdatePayload_standard(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Standard, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Standard) - fc.Result = res - return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_StandardUpdatePayload_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "StandardUpdatePayload", - 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_Standard_id(ctx, field) - case "createdAt": - return ec.fieldContext_Standard_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Standard_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Standard_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Standard_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Standard_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Standard_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Standard_tags(ctx, field) - case "name": - return ec.fieldContext_Standard_name(ctx, field) - case "description": - return ec.fieldContext_Standard_description(ctx, field) - case "family": - return ec.fieldContext_Standard_family(ctx, field) - case "status": - return ec.fieldContext_Standard_status(ctx, field) - case "standardType": - return ec.fieldContext_Standard_standardType(ctx, field) - case "version": - return ec.fieldContext_Standard_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Standard_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Standard_background(ctx, field) - case "satisfies": - return ec.fieldContext_Standard_satisfies(ctx, field) - case "details": - return ec.fieldContext_Standard_details(ctx, field) - case "controlObjectives": - return ec.fieldContext_Standard_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_Standard_controls(ctx, field) - case "procedures": - return ec.fieldContext_Standard_procedures(ctx, field) - case "actionPlans": - return ec.fieldContext_Standard_actionPlans(ctx, field) - case "programs": - return ec.fieldContext_Standard_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Subcontrol_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_id(ctx, field) +func (ec *executionContext) _Standard_id(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_id(ctx, field) if err != nil { return graphql.Null } @@ -182894,9 +99262,9 @@ func (ec *executionContext) _Subcontrol_id(ctx context.Context, field graphql.Co return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -182907,8 +99275,8 @@ func (ec *executionContext) fieldContext_Subcontrol_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _Subcontrol_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_createdAt(ctx, field) +func (ec *executionContext) _Standard_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -182935,9 +99303,9 @@ func (ec *executionContext) _Subcontrol_createdAt(ctx context.Context, field gra return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -182948,8 +99316,8 @@ func (ec *executionContext) fieldContext_Subcontrol_createdAt(_ context.Context, return fc, nil } -func (ec *executionContext) _Subcontrol_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_updatedAt(ctx, field) +func (ec *executionContext) _Standard_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -182976,9 +99344,9 @@ func (ec *executionContext) _Subcontrol_updatedAt(ctx context.Context, field gra return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -182989,8 +99357,8 @@ func (ec *executionContext) fieldContext_Subcontrol_updatedAt(_ context.Context, return fc, nil } -func (ec *executionContext) _Subcontrol_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_createdBy(ctx, field) +func (ec *executionContext) _Standard_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -183017,9 +99385,9 @@ func (ec *executionContext) _Subcontrol_createdBy(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183030,8 +99398,8 @@ func (ec *executionContext) fieldContext_Subcontrol_createdBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Subcontrol_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_updatedBy(ctx, field) +func (ec *executionContext) _Standard_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -183058,9 +99426,9 @@ func (ec *executionContext) _Subcontrol_updatedBy(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183071,8 +99439,8 @@ func (ec *executionContext) fieldContext_Subcontrol_updatedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Subcontrol_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_deletedAt(ctx, field) +func (ec *executionContext) _Standard_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -183099,9 +99467,9 @@ func (ec *executionContext) _Subcontrol_deletedAt(ctx context.Context, field gra return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183112,8 +99480,8 @@ func (ec *executionContext) fieldContext_Subcontrol_deletedAt(_ context.Context, return fc, nil } -func (ec *executionContext) _Subcontrol_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_deletedBy(ctx, field) +func (ec *executionContext) _Standard_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -183140,9 +99508,9 @@ func (ec *executionContext) _Subcontrol_deletedBy(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183153,8 +99521,8 @@ func (ec *executionContext) fieldContext_Subcontrol_deletedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Subcontrol_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_tags(ctx, field) +func (ec *executionContext) _Standard_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_tags(ctx, field) if err != nil { return graphql.Null } @@ -183181,9 +99549,9 @@ func (ec *executionContext) _Subcontrol_tags(ctx context.Context, field graphql. return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183194,52 +99562,8 @@ func (ec *executionContext) fieldContext_Subcontrol_tags(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Subcontrol_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - 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) _Subcontrol_name(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_name(ctx, field) +func (ec *executionContext) _Standard_name(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_name(ctx, field) if err != nil { return graphql.Null } @@ -183269,9 +99593,9 @@ func (ec *executionContext) _Subcontrol_name(ctx context.Context, field graphql. return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183282,8 +99606,8 @@ func (ec *executionContext) fieldContext_Subcontrol_name(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Subcontrol_description(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_description(ctx, field) +func (ec *executionContext) _Standard_description(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_description(ctx, field) if err != nil { return graphql.Null } @@ -183310,173 +99634,9 @@ func (ec *executionContext) _Subcontrol_description(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - 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) _Subcontrol_status(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - 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) _Subcontrol_subcontrolType(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubcontrolType, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_subcontrolType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - 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) _Subcontrol_version(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_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) (interface{}, 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 { - return graphql.Null - } - res := resTmp.(string) - fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - 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) _Subcontrol_subcontrolNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.SubcontrolNumber, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_subcontrolNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183487,8 +99647,8 @@ func (ec *executionContext) fieldContext_Subcontrol_subcontrolNumber(_ context.C return fc, nil } -func (ec *executionContext) _Subcontrol_family(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_family(ctx, field) +func (ec *executionContext) _Standard_family(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_family(ctx, field) if err != nil { return graphql.Null } @@ -183515,9 +99675,9 @@ func (ec *executionContext) _Subcontrol_family(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183528,8 +99688,8 @@ func (ec *executionContext) fieldContext_Subcontrol_family(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Subcontrol_class(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_class(ctx, field) +func (ec *executionContext) _Standard_status(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_status(ctx, field) if err != nil { return graphql.Null } @@ -183542,7 +99702,7 @@ func (ec *executionContext) _Subcontrol_class(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Class, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -183556,9 +99716,9 @@ func (ec *executionContext) _Subcontrol_class(ctx context.Context, field graphql return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183569,8 +99729,8 @@ func (ec *executionContext) fieldContext_Subcontrol_class(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Subcontrol_source(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_source(ctx, field) +func (ec *executionContext) _Standard_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_standardType(ctx, field) if err != nil { return graphql.Null } @@ -183583,7 +99743,7 @@ func (ec *executionContext) _Subcontrol_source(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Source, nil + return obj.StandardType, nil }) if err != nil { ec.Error(ctx, err) @@ -183597,9 +99757,9 @@ func (ec *executionContext) _Subcontrol_source(ctx context.Context, field graphq return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183610,8 +99770,8 @@ func (ec *executionContext) fieldContext_Subcontrol_source(_ context.Context, fi return fc, nil } -func (ec *executionContext) _Subcontrol_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) +func (ec *executionContext) _Standard_version(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_version(ctx, field) if err != nil { return graphql.Null } @@ -183624,7 +99784,7 @@ func (ec *executionContext) _Subcontrol_mappedFrameworks(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MappedFrameworks, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -183638,9 +99798,9 @@ func (ec *executionContext) _Subcontrol_mappedFrameworks(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183651,8 +99811,8 @@ func (ec *executionContext) fieldContext_Subcontrol_mappedFrameworks(_ context.C return fc, nil } -func (ec *executionContext) _Subcontrol_implementationEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) +func (ec *executionContext) _Standard_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -183665,7 +99825,7 @@ func (ec *executionContext) _Subcontrol_implementationEvidence(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationEvidence, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -183679,9 +99839,9 @@ func (ec *executionContext) _Subcontrol_implementationEvidence(ctx context.Conte return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_implementationEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183692,8 +99852,8 @@ func (ec *executionContext) fieldContext_Subcontrol_implementationEvidence(_ con return fc, nil } -func (ec *executionContext) _Subcontrol_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_implementationStatus(ctx, field) +func (ec *executionContext) _Standard_background(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_background(ctx, field) if err != nil { return graphql.Null } @@ -183706,7 +99866,7 @@ func (ec *executionContext) _Subcontrol_implementationStatus(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationStatus, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -183720,9 +99880,9 @@ func (ec *executionContext) _Subcontrol_implementationStatus(ctx context.Context return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183733,49 +99893,8 @@ func (ec *executionContext) fieldContext_Subcontrol_implementationStatus(_ conte return fc, nil } -func (ec *executionContext) _Subcontrol_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_implementationDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ImplementationDate, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subcontrol_implementationVerification(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_implementationVerification(ctx, field) +func (ec *executionContext) _Standard_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -183788,7 +99907,7 @@ func (ec *executionContext) _Subcontrol_implementationVerification(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationVerification, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -183802,9 +99921,9 @@ func (ec *executionContext) _Subcontrol_implementationVerification(ctx context.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_implementationVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183815,49 +99934,8 @@ func (ec *executionContext) fieldContext_Subcontrol_implementationVerification(_ return fc, nil } -func (ec *executionContext) _Subcontrol_implementationVerificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.ImplementationVerificationDate, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_implementationVerificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _Subcontrol_details(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_details(ctx, field) +func (ec *executionContext) _Standard_details(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_details(ctx, field) if err != nil { return graphql.Null } @@ -183884,9 +99962,9 @@ func (ec *executionContext) _Subcontrol_details(ctx context.Context, field graph return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: false, IsResolver: false, @@ -183897,8 +99975,8 @@ func (ec *executionContext) fieldContext_Subcontrol_details(_ context.Context, f return fc, nil } -func (ec *executionContext) _Subcontrol_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_owner(ctx, field) +func (ec *executionContext) _Standard_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_controlObjectives(ctx, field) if err != nil { return graphql.Null } @@ -183911,146 +99989,103 @@ func (ec *executionContext) _Subcontrol_owner(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.ControlObjectives(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: true, 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) + return ec.fieldContext_ControlObjective_id(ctx, field) case "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) + return ec.fieldContext_ControlObjective_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) + return ec.fieldContext_ControlObjective_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) + return ec.fieldContext_ControlObjective_name(ctx, field) case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) case "controls": - return ec.fieldContext_Organization_controls(ctx, field) + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _Subcontrol_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_controls(ctx, field) +func (ec *executionContext) _Standard_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_controls(ctx, field) if err != nil { return graphql.Null } @@ -184070,19 +100105,16 @@ func (ec *executionContext) _Subcontrol_controls(ctx context.Context, field grap return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: true, IsResolver: false, @@ -184163,8 +100195,8 @@ func (ec *executionContext) fieldContext_Subcontrol_controls(_ context.Context, return fc, nil } -func (ec *executionContext) _Subcontrol_user(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_user(ctx, field) +func (ec *executionContext) _Standard_procedures(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_procedures(ctx, field) if err != nil { return graphql.Null } @@ -184177,7 +100209,7 @@ func (ec *executionContext) _Subcontrol_user(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.Procedures(ctx) }) if err != nil { ec.Error(ctx, err) @@ -184186,100 +100218,82 @@ func (ec *executionContext) _Subcontrol_user(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: true, 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) + return ec.fieldContext_Procedure_id(ctx, field) case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) + return ec.fieldContext_Procedure_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) + return ec.fieldContext_Procedure_deletedBy(ctx, field) case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + return ec.fieldContext_Procedure_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _Subcontrol_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_tasks(ctx, field) +func (ec *executionContext) _Standard_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_actionPlans(ctx, field) if err != nil { return graphql.Null } @@ -184292,7 +100306,7 @@ func (ec *executionContext) _Subcontrol_tasks(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tasks(ctx) + return obj.ActionPlans(ctx) }) if err != nil { ec.Error(ctx, err) @@ -184301,147 +100315,68 @@ func (ec *executionContext) _Subcontrol_tasks(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Task) + res := resTmp.([]*generated.ActionPlan) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: true, 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) + return ec.fieldContext_ActionPlan_id(ctx, field) case "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) + return ec.fieldContext_ActionPlan_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) + return ec.fieldContext_ActionPlan_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) + return ec.fieldContext_ActionPlan_description(ctx, field) case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _Subcontrol_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_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) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Notes(ctx) - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.(*generated.Note) - fc.Result = res - return ec.marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_Subcontrol_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "Subcontrol", - Field: field, - IsMethod: true, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Note_id(ctx, field) - case "createdAt": - return ec.fieldContext_Note_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Note_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Note_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Note_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Note_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Note_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Note_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Note_ownerID(ctx, field) - case "text": - return ec.fieldContext_Note_text(ctx, field) - case "owner": - return ec.fieldContext_Note_owner(ctx, field) - case "entity": - return ec.fieldContext_Note_entity(ctx, field) - case "subcontrols": - return ec.fieldContext_Note_subcontrols(ctx, field) + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) case "program": - return ec.fieldContext_Note_program(ctx, field) + return ec.fieldContext_ActionPlan_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _Subcontrol_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subcontrol_programs(ctx, field) +func (ec *executionContext) _Standard_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Standard) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Standard_programs(ctx, field) if err != nil { return graphql.Null } @@ -184468,9 +100403,9 @@ func (ec *executionContext) _Subcontrol_programs(ctx context.Context, field grap return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subcontrol_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Standard_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subcontrol", + Object: "Standard", Field: field, IsMethod: true, IsResolver: false, @@ -184553,113 +100488,8 @@ func (ec *executionContext) fieldContext_Subcontrol_programs(_ context.Context, return fc, nil } -func (ec *executionContext) _SubcontrolBulkCreatePayload_subcontrols(ctx context.Context, field graphql.CollectedField, obj *SubcontrolBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subcontrols, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Subcontrol) - fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubcontrolBulkCreatePayload_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubcontrolBulkCreatePayload", - 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_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubcontrolConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolConnection_edges(ctx, field) +func (ec *executionContext) _StandardConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -184681,32 +100511,32 @@ func (ec *executionContext) _SubcontrolConnection_edges(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.SubcontrolEdge) + res := resTmp.([]*generated.StandardEdge) fc.Result = res - return ec.marshalOSubcontrolEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx, field.Selections, res) + return ec.marshalOStandardEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolConnection", + Object: "StandardConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_SubcontrolEdge_node(ctx, field) + return ec.fieldContext_StandardEdge_node(ctx, field) case "cursor": - return ec.fieldContext_SubcontrolEdge_cursor(ctx, field) + return ec.fieldContext_StandardEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type StandardEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubcontrolConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) +func (ec *executionContext) _StandardConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -184736,9 +100566,9 @@ func (ec *executionContext) _SubcontrolConnection_pageInfo(ctx context.Context, return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolConnection", + Object: "StandardConnection", Field: field, IsMethod: false, IsResolver: false, @@ -184759,8 +100589,8 @@ func (ec *executionContext) fieldContext_SubcontrolConnection_pageInfo(_ context return fc, nil } -func (ec *executionContext) _SubcontrolConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) +func (ec *executionContext) _StandardConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -184790,9 +100620,9 @@ func (ec *executionContext) _SubcontrolConnection_totalCount(ctx context.Context return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolConnection", + Object: "StandardConnection", Field: field, IsMethod: false, IsResolver: false, @@ -184803,160 +100633,8 @@ func (ec *executionContext) fieldContext_SubcontrolConnection_totalCount(_ conte return fc, nil } -func (ec *executionContext) _SubcontrolCreatePayload_subcontrol(ctx context.Context, field graphql.CollectedField, obj *SubcontrolCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolCreatePayload_subcontrol(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Subcontrol, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Subcontrol) - fc.Result = res - return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubcontrolCreatePayload_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubcontrolCreatePayload", - 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_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _SubcontrolDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *SubcontrolDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolDeletePayload_deletedID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil - }) - if err != nil { - ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_SubcontrolDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubcontrolDeletePayload", - 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) _SubcontrolEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolEdge_node(ctx, field) +func (ec *executionContext) _StandardEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -184978,90 +100656,74 @@ func (ec *executionContext) _SubcontrolEdge_node(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Subcontrol) + res := resTmp.(*generated.Standard) fc.Result = res - return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) + return ec.marshalOStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolEdge", + Object: "StandardEdge", 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_Subcontrol_id(ctx, field) + return ec.fieldContext_Standard_id(ctx, field) case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) + return ec.fieldContext_Standard_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + return ec.fieldContext_Standard_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) + return ec.fieldContext_Standard_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + return ec.fieldContext_Standard_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + return ec.fieldContext_Standard_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + return ec.fieldContext_Standard_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) + return ec.fieldContext_Standard_tags(ctx, field) case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) + return ec.fieldContext_Standard_name(ctx, field) case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) + return ec.fieldContext_Standard_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubcontrolEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolEdge_cursor(ctx, field) +func (ec *executionContext) _StandardEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -185091,9 +100753,9 @@ func (ec *executionContext) _SubcontrolEdge_cursor(ctx context.Context, field gr return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolEdge", + Object: "StandardEdge", Field: field, IsMethod: false, IsResolver: false, @@ -185104,8 +100766,8 @@ func (ec *executionContext) fieldContext_SubcontrolEdge_cursor(_ context.Context return fc, nil } -func (ec *executionContext) _SubcontrolHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_id(ctx, field) +func (ec *executionContext) _StandardHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -185135,9 +100797,9 @@ func (ec *executionContext) _SubcontrolHistory_id(ctx context.Context, field gra return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185148,8 +100810,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_id(_ context.Context, return fc, nil } -func (ec *executionContext) _SubcontrolHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_historyTime(ctx, field) +func (ec *executionContext) _StandardHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -185179,9 +100841,9 @@ func (ec *executionContext) _SubcontrolHistory_historyTime(ctx context.Context, return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185192,8 +100854,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_historyTime(_ context return fc, nil } -func (ec *executionContext) _SubcontrolHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_ref(ctx, field) +func (ec *executionContext) _StandardHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -185220,9 +100882,9 @@ func (ec *executionContext) _SubcontrolHistory_ref(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185233,8 +100895,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_ref(_ context.Context return fc, nil } -func (ec *executionContext) _SubcontrolHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_operation(ctx, field) +func (ec *executionContext) _StandardHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -185261,24 +100923,24 @@ func (ec *executionContext) _SubcontrolHistory_operation(ctx context.Context, fi } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNSubcontrolHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNStandardHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type SubcontrolHistoryOpType does not have child fields") + return nil, errors.New("field of type StandardHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_createdAt(ctx, field) +func (ec *executionContext) _StandardHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -185305,9 +100967,9 @@ func (ec *executionContext) _SubcontrolHistory_createdAt(ctx context.Context, fi return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185318,8 +100980,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_createdAt(_ context.C return fc, nil } -func (ec *executionContext) _SubcontrolHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_updatedAt(ctx, field) +func (ec *executionContext) _StandardHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -185346,9 +101008,9 @@ func (ec *executionContext) _SubcontrolHistory_updatedAt(ctx context.Context, fi return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185359,8 +101021,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_updatedAt(_ context.C return fc, nil } -func (ec *executionContext) _SubcontrolHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_createdBy(ctx, field) +func (ec *executionContext) _StandardHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -185387,9 +101049,9 @@ func (ec *executionContext) _SubcontrolHistory_createdBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185400,8 +101062,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_createdBy(_ context.C return fc, nil } -func (ec *executionContext) _SubcontrolHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_updatedBy(ctx, field) +func (ec *executionContext) _StandardHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -185428,9 +101090,9 @@ func (ec *executionContext) _SubcontrolHistory_updatedBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185441,8 +101103,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_updatedBy(_ context.C return fc, nil } -func (ec *executionContext) _SubcontrolHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_deletedAt(ctx, field) +func (ec *executionContext) _StandardHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -185469,9 +101131,9 @@ func (ec *executionContext) _SubcontrolHistory_deletedAt(ctx context.Context, fi return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185482,8 +101144,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_deletedAt(_ context.C return fc, nil } -func (ec *executionContext) _SubcontrolHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_deletedBy(ctx, field) +func (ec *executionContext) _StandardHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -185510,138 +101172,9 @@ func (ec *executionContext) _SubcontrolHistory_deletedBy(ctx context.Context, fi return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", - 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) _SubcontrolHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_tags(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Tags, 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_SubcontrolHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", - 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) _SubcontrolHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_ownerID(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil - }) - if err != nil { - ec.Error(ctx, 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_SubcontrolHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", - 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) _SubcontrolHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_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) (interface{}, 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_SubcontrolHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185651,9 +101184,9 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_name(_ context.Contex } return fc, nil } - -func (ec *executionContext) _SubcontrolHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_description(ctx, field) + +func (ec *executionContext) _StandardHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -185666,7 +101199,7 @@ func (ec *executionContext) _SubcontrolHistory_description(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -185675,14 +101208,14 @@ func (ec *executionContext) _SubcontrolHistory_description(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185693,8 +101226,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_description(_ context return fc, nil } -func (ec *executionContext) _SubcontrolHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_status(ctx, field) +func (ec *executionContext) _StandardHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -185707,23 +101240,26 @@ func (ec *executionContext) _SubcontrolHistory_status(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185734,8 +101270,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_status(_ context.Cont return fc, nil } -func (ec *executionContext) _SubcontrolHistory_subcontrolType(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_subcontrolType(ctx, field) +func (ec *executionContext) _StandardHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -185748,7 +101284,7 @@ func (ec *executionContext) _SubcontrolHistory_subcontrolType(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubcontrolType, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -185762,9 +101298,9 @@ func (ec *executionContext) _SubcontrolHistory_subcontrolType(ctx context.Contex return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185775,8 +101311,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolType(_ cont return fc, nil } -func (ec *executionContext) _SubcontrolHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_version(ctx, field) +func (ec *executionContext) _StandardHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_family(ctx, field) if err != nil { return graphql.Null } @@ -185789,7 +101325,7 @@ func (ec *executionContext) _SubcontrolHistory_version(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Version, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -185803,9 +101339,9 @@ func (ec *executionContext) _SubcontrolHistory_version(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185816,8 +101352,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_version(_ context.Con return fc, nil } -func (ec *executionContext) _SubcontrolHistory_subcontrolNumber(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_subcontrolNumber(ctx, field) +func (ec *executionContext) _StandardHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -185830,7 +101366,7 @@ func (ec *executionContext) _SubcontrolHistory_subcontrolNumber(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubcontrolNumber, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -185844,9 +101380,9 @@ func (ec *executionContext) _SubcontrolHistory_subcontrolNumber(ctx context.Cont return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185857,8 +101393,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolNumber(_ co return fc, nil } -func (ec *executionContext) _SubcontrolHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_family(ctx, field) +func (ec *executionContext) _StandardHistory_standardType(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_standardType(ctx, field) if err != nil { return graphql.Null } @@ -185871,7 +101407,7 @@ func (ec *executionContext) _SubcontrolHistory_family(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Family, nil + return obj.StandardType, nil }) if err != nil { ec.Error(ctx, err) @@ -185885,9 +101421,9 @@ func (ec *executionContext) _SubcontrolHistory_family(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_standardType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185898,8 +101434,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_family(_ context.Cont return fc, nil } -func (ec *executionContext) _SubcontrolHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_class(ctx, field) +func (ec *executionContext) _StandardHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -185912,7 +101448,7 @@ func (ec *executionContext) _SubcontrolHistory_class(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Class, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -185926,9 +101462,9 @@ func (ec *executionContext) _SubcontrolHistory_class(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185939,8 +101475,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_class(_ context.Conte return fc, nil } -func (ec *executionContext) _SubcontrolHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_source(ctx, field) +func (ec *executionContext) _StandardHistory_purposeAndScope(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_purposeAndScope(ctx, field) if err != nil { return graphql.Null } @@ -185953,7 +101489,7 @@ func (ec *executionContext) _SubcontrolHistory_source(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Source, nil + return obj.PurposeAndScope, nil }) if err != nil { ec.Error(ctx, err) @@ -185967,9 +101503,9 @@ func (ec *executionContext) _SubcontrolHistory_source(ctx context.Context, field return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_purposeAndScope(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -185980,8 +101516,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_source(_ context.Cont return fc, nil } -func (ec *executionContext) _SubcontrolHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_mappedFrameworks(ctx, field) +func (ec *executionContext) _StandardHistory_background(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_background(ctx, field) if err != nil { return graphql.Null } @@ -185994,7 +101530,7 @@ func (ec *executionContext) _SubcontrolHistory_mappedFrameworks(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MappedFrameworks, nil + return obj.Background, nil }) if err != nil { ec.Error(ctx, err) @@ -186008,9 +101544,9 @@ func (ec *executionContext) _SubcontrolHistory_mappedFrameworks(ctx context.Cont return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_background(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -186021,8 +101557,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_mappedFrameworks(_ co return fc, nil } -func (ec *executionContext) _SubcontrolHistory_implementationEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_implementationEvidence(ctx, field) +func (ec *executionContext) _StandardHistory_satisfies(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_satisfies(ctx, field) if err != nil { return graphql.Null } @@ -186035,7 +101571,7 @@ func (ec *executionContext) _SubcontrolHistory_implementationEvidence(ctx contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationEvidence, nil + return obj.Satisfies, nil }) if err != nil { ec.Error(ctx, err) @@ -186049,9 +101585,9 @@ func (ec *executionContext) _SubcontrolHistory_implementationEvidence(ctx contex return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_implementationEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_satisfies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", Field: field, IsMethod: false, IsResolver: false, @@ -186062,8 +101598,8 @@ func (ec *executionContext) fieldContext_SubcontrolHistory_implementationEvidenc return fc, nil } -func (ec *executionContext) _SubcontrolHistory_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_implementationStatus(ctx, field) +func (ec *executionContext) _StandardHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -186076,7 +101612,7 @@ func (ec *executionContext) _SubcontrolHistory_implementationStatus(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationStatus, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -186085,26 +101621,26 @@ func (ec *executionContext) _SubcontrolHistory_implementationStatus(ctx context. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistory", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistory_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_implementationDate(ctx, field) +func (ec *executionContext) _StandardHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -186117,7 +101653,7 @@ func (ec *executionContext) _SubcontrolHistory_implementationDate(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationDate, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -186126,26 +101662,32 @@ func (ec *executionContext) _SubcontrolHistory_implementationDate(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.StandardHistoryEdge) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOStandardHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_StandardHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_StandardHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistory_implementationVerification(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_implementationVerification(ctx, field) +func (ec *executionContext) _StandardHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -186158,35 +101700,48 @@ func (ec *executionContext) _SubcontrolHistory_implementationVerification(ctx co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationVerification, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_implementationVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistoryConnection", 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") + 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) _SubcontrolHistory_implementationVerificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_implementationVerificationDate(ctx, field) +func (ec *executionContext) _StandardHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -186199,35 +101754,38 @@ func (ec *executionContext) _SubcontrolHistory_implementationVerificationDate(ct }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ImplementationVerificationDate, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_implementationVerificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistory_details(ctx, field) +func (ec *executionContext) _StandardHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -186240,7 +101798,7 @@ func (ec *executionContext) _SubcontrolHistory_details(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Details, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -186249,26 +101807,70 @@ func (ec *executionContext) _SubcontrolHistory_details(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(*generated.StandardHistory) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalOStandardHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistory", + Object: "StandardHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_StandardHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_StandardHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_StandardHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_StandardHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_StandardHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_StandardHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_StandardHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_StandardHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_StandardHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_StandardHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_StandardHistory_tags(ctx, field) + case "name": + return ec.fieldContext_StandardHistory_name(ctx, field) + case "description": + return ec.fieldContext_StandardHistory_description(ctx, field) + case "family": + return ec.fieldContext_StandardHistory_family(ctx, field) + case "status": + return ec.fieldContext_StandardHistory_status(ctx, field) + case "standardType": + return ec.fieldContext_StandardHistory_standardType(ctx, field) + case "version": + return ec.fieldContext_StandardHistory_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_StandardHistory_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_StandardHistory_background(ctx, field) + case "satisfies": + return ec.fieldContext_StandardHistory_satisfies(ctx, field) + case "details": + return ec.fieldContext_StandardHistory_details(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type StandardHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistoryConnection_edges(ctx, field) +func (ec *executionContext) _StandardHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.StandardHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -186281,41 +101883,38 @@ func (ec *executionContext) _SubcontrolHistoryConnection_edges(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*generated.SubcontrolHistoryEdge) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOSubcontrolHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryEdge(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_StandardHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistoryConnection", + Object: "StandardHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SubcontrolHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SubcontrolHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistoryEdge", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _Subcontrol_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_id(ctx, field) if err != nil { return graphql.Null } @@ -186328,7 +101927,7 @@ func (ec *executionContext) _SubcontrolHistoryConnection_pageInfo(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -186340,36 +101939,26 @@ func (ec *executionContext) _SubcontrolHistoryConnection_pageInfo(ctx context.Co } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistoryConnection", + Object: "Subcontrol", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _Subcontrol_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -186382,38 +101971,35 @@ func (ec *executionContext) _SubcontrolHistoryConnection_totalCount(ctx context. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistoryConnection", + Object: "Subcontrol", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistoryEdge_node(ctx, field) +func (ec *executionContext) _Subcontrol_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -186426,7 +102012,7 @@ func (ec *executionContext) _SubcontrolHistoryEdge_node(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -186435,84 +102021,26 @@ func (ec *executionContext) _SubcontrolHistoryEdge_node(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.SubcontrolHistory) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOSubcontrolHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistory(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistoryEdge", + Object: "Subcontrol", 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_SubcontrolHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_SubcontrolHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_SubcontrolHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_SubcontrolHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_SubcontrolHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_SubcontrolHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_SubcontrolHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_SubcontrolHistory_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_SubcontrolHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_SubcontrolHistory_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_SubcontrolHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_SubcontrolHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_SubcontrolHistory_name(ctx, field) - case "description": - return ec.fieldContext_SubcontrolHistory_description(ctx, field) - case "status": - return ec.fieldContext_SubcontrolHistory_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_SubcontrolHistory_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_SubcontrolHistory_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_SubcontrolHistory_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_SubcontrolHistory_family(ctx, field) - case "class": - return ec.fieldContext_SubcontrolHistory_class(ctx, field) - case "source": - return ec.fieldContext_SubcontrolHistory_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_SubcontrolHistory_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_SubcontrolHistory_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_SubcontrolHistory_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_SubcontrolHistory_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_SubcontrolHistory_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_SubcontrolHistory_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_SubcontrolHistory_details(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistory", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _Subcontrol_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -186525,38 +102053,35 @@ func (ec *executionContext) _SubcontrolHistoryEdge_cursor(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolHistoryEdge", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolSearchResult_subcontrols(ctx context.Context, field graphql.CollectedField, obj *SubcontrolSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolSearchResult_subcontrols(ctx, field) +func (ec *executionContext) _Subcontrol_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -186569,7 +102094,7 @@ func (ec *executionContext) _SubcontrolSearchResult_subcontrols(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subcontrols, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -186578,90 +102103,26 @@ func (ec *executionContext) _SubcontrolSearchResult_subcontrols(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subcontrol) + res := resTmp.(string) fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolSearchResult_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolSearchResult", + Object: "Subcontrol", 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_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubcontrolUpdatePayload_subcontrol(ctx context.Context, field graphql.CollectedField, obj *SubcontrolUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubcontrolUpdatePayload_subcontrol(ctx, field) +func (ec *executionContext) _Subcontrol_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -186674,102 +102135,35 @@ func (ec *executionContext) _SubcontrolUpdatePayload_subcontrol(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subcontrol, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Subcontrol) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubcontrolUpdatePayload_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubcontrolUpdatePayload", + Object: "Subcontrol", 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_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_id(ctx, field) +func (ec *executionContext) _Subcontrol_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -186782,38 +102176,35 @@ func (ec *executionContext) _Subscriber_id(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_createdAt(ctx, field) +func (ec *executionContext) _Subcontrol_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_tags(ctx, field) if err != nil { return graphql.Null } @@ -186826,7 +102217,7 @@ func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -186835,26 +102226,26 @@ func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_updatedAt(ctx, field) +func (ec *executionContext) _Subcontrol_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -186867,35 +102258,38 @@ func (ec *executionContext) _Subscriber_updatedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_createdBy(ctx, field) +func (ec *executionContext) _Subcontrol_name(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_name(ctx, field) if err != nil { return graphql.Null } @@ -186908,23 +102302,26 @@ func (ec *executionContext) _Subscriber_createdBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -186935,8 +102332,8 @@ func (ec *executionContext) fieldContext_Subscriber_createdBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_updatedBy(ctx, field) +func (ec *executionContext) _Subcontrol_description(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_description(ctx, field) if err != nil { return graphql.Null } @@ -186949,7 +102346,7 @@ func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -186963,9 +102360,9 @@ func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -186976,8 +102373,8 @@ func (ec *executionContext) fieldContext_Subscriber_updatedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_tags(ctx, field) +func (ec *executionContext) _Subcontrol_status(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_status(ctx, field) if err != nil { return graphql.Null } @@ -186990,7 +102387,7 @@ func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -186999,14 +102396,14 @@ func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -187017,8 +102414,8 @@ func (ec *executionContext) fieldContext_Subscriber_tags(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _Subscriber_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_deletedAt(ctx, field) +func (ec *executionContext) _Subcontrol_subcontrolType(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_subcontrolType(ctx, field) if err != nil { return graphql.Null } @@ -187031,7 +102428,7 @@ func (ec *executionContext) _Subscriber_deletedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.SubcontrolType, nil }) if err != nil { ec.Error(ctx, err) @@ -187040,26 +102437,26 @@ func (ec *executionContext) _Subscriber_deletedAt(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_subcontrolType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_deletedBy(ctx, field) +func (ec *executionContext) _Subcontrol_version(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_version(ctx, field) if err != nil { return graphql.Null } @@ -187072,7 +102469,7 @@ func (ec *executionContext) _Subscriber_deletedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Version, nil }) if err != nil { ec.Error(ctx, err) @@ -187086,9 +102483,9 @@ func (ec *executionContext) _Subscriber_deletedBy(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -187099,8 +102496,8 @@ func (ec *executionContext) fieldContext_Subscriber_deletedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_ownerID(ctx, field) +func (ec *executionContext) _Subcontrol_subcontrolNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) if err != nil { return graphql.Null } @@ -187113,7 +102510,7 @@ func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.SubcontrolNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -187124,24 +102521,24 @@ func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graph } res := resTmp.(string) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_subcontrolNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_email(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_email(ctx, field) +func (ec *executionContext) _Subcontrol_family(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_family(ctx, field) if err != nil { return graphql.Null } @@ -187154,26 +102551,23 @@ func (ec *executionContext) _Subscriber_email(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Email, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -187184,8 +102578,8 @@ func (ec *executionContext) fieldContext_Subscriber_email(_ context.Context, fie return fc, nil } -func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_phoneNumber(ctx, field) +func (ec *executionContext) _Subcontrol_class(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_class(ctx, field) if err != nil { return graphql.Null } @@ -187198,7 +102592,7 @@ func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PhoneNumber, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -187212,9 +102606,9 @@ func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, @@ -187225,8 +102619,8 @@ func (ec *executionContext) fieldContext_Subscriber_phoneNumber(_ context.Contex return fc, nil } -func (ec *executionContext) _Subscriber_verifiedEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_verifiedEmail(ctx, field) +func (ec *executionContext) _Subcontrol_source(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_source(ctx, field) if err != nil { return graphql.Null } @@ -187239,38 +102633,35 @@ func (ec *executionContext) _Subscriber_verifiedEmail(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VerifiedEmail, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_verifiedEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_verifiedPhone(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_verifiedPhone(ctx, field) +func (ec *executionContext) _Subcontrol_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -187283,38 +102674,35 @@ func (ec *executionContext) _Subscriber_verifiedPhone(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.VerifiedPhone, nil + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_verifiedPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_active(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_active(ctx, field) +func (ec *executionContext) _Subcontrol_implementationEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) if err != nil { return graphql.Null } @@ -187327,38 +102715,35 @@ func (ec *executionContext) _Subscriber_active(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Active, nil + return obj.ImplementationEvidence, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_owner(ctx, field) +func (ec *executionContext) _Subcontrol_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationStatus(ctx, field) if err != nil { return graphql.Null } @@ -187371,7 +102756,7 @@ func (ec *executionContext) _Subscriber_owner(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.ImplementationStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -187380,134 +102765,26 @@ func (ec *executionContext) _Subscriber_owner(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Subscriber_events(ctx, field) +func (ec *executionContext) _Subcontrol_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationDate(ctx, field) if err != nil { return graphql.Null } @@ -187520,7 +102797,7 @@ func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.ImplementationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -187529,70 +102806,26 @@ func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Subscriber_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Subscriber", + Object: "Subcontrol", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubscriberBulkCreatePayload_subscribers(ctx context.Context, field graphql.CollectedField, obj *SubscriberBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) +func (ec *executionContext) _Subcontrol_implementationVerification(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationVerification(ctx, field) if err != nil { return graphql.Null } @@ -187605,7 +102838,7 @@ func (ec *executionContext) _SubscriberBulkCreatePayload_subscribers(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subscribers, nil + return obj.ImplementationVerification, nil }) if err != nil { ec.Error(ctx, err) @@ -187614,60 +102847,26 @@ func (ec *executionContext) _SubscriberBulkCreatePayload_subscribers(ctx context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subscriber) + res := resTmp.(string) fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberBulkCreatePayload_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberBulkCreatePayload", + Object: "Subcontrol", 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_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberConnection_edges(ctx, field) +func (ec *executionContext) _Subcontrol_implementationVerificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) if err != nil { return graphql.Null } @@ -187680,7 +102879,7 @@ func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.ImplementationVerificationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -187689,32 +102888,26 @@ func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.SubscriberEdge) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOSubscriberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberEdge(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_implementationVerificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberConnection", + Object: "Subcontrol", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_SubscriberEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_SubscriberEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type SubscriberEdge", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubscriberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) +func (ec *executionContext) _Subcontrol_details(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_details(ctx, field) if err != nil { return graphql.Null } @@ -187727,48 +102920,35 @@ func (ec *executionContext) _SubscriberConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberConnection", + Object: "Subcontrol", 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberConnection_totalCount(ctx, field) +func (ec *executionContext) _Subcontrol_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_owner(ctx, field) if err != nil { return graphql.Null } @@ -187781,7 +102961,7 @@ func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -187793,26 +102973,134 @@ func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context } return graphql.Null } - res := resTmp.(int) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberConnection", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubscriberCreatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *SubscriberCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) +func (ec *executionContext) _Subcontrol_controls(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_controls(ctx, field) if err != nil { return graphql.Null } @@ -187825,7 +103113,7 @@ func (ec *executionContext) _SubscriberCreatePayload_subscriber(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subscriber, nil + return obj.Controls(ctx) }) if err != nil { ec.Error(ctx, err) @@ -187837,60 +103125,96 @@ func (ec *executionContext) _SubscriberCreatePayload_subscriber(ctx context.Cont } return graphql.Null } - res := resTmp.(*generated.Subscriber) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) + return ec.marshalNControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberCreatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberCreatePayload", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Subscriber_id(ctx, field) + return ec.fieldContext_Control_id(ctx, field) case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) + return ec.fieldContext_Control_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) + return ec.fieldContext_Control_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) + return ec.fieldContext_Control_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) + return ec.fieldContext_Control_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) + return ec.fieldContext_Control_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubscriberDeletePayload_email(ctx context.Context, field graphql.CollectedField, obj *SubscriberDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberDeletePayload_email(ctx, field) +func (ec *executionContext) _Subcontrol_user(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_user(ctx, field) if err != nil { return graphql.Null } @@ -187903,38 +103227,109 @@ func (ec *executionContext) _SubscriberDeletePayload_email(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Email, nil + return obj.User(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.User) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberDeletePayload_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberDeletePayload", + Object: "Subcontrol", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberEdge_node(ctx, field) +func (ec *executionContext) _Subcontrol_tasks(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_tasks(ctx, field) if err != nil { return graphql.Null } @@ -187947,7 +103342,7 @@ func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Tasks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -187956,60 +103351,76 @@ func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Subscriber) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberEdge", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Subscriber_id(ctx, field) + return ec.fieldContext_Task_id(ctx, field) case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) + return ec.fieldContext_Task_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) + return ec.fieldContext_Task_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) + return ec.fieldContext_Task_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) + return ec.fieldContext_Task_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) + return ec.fieldContext_Task_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubscriberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberEdge_cursor(ctx, field) +func (ec *executionContext) _Subcontrol_notes(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_notes(ctx, field) if err != nil { return graphql.Null } @@ -188022,38 +103433,65 @@ func (ec *executionContext) _SubscriberEdge_cursor(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.Notes(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*generated.Note) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalONote2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNote(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_notes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberEdge", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Note_id(ctx, field) + case "createdAt": + return ec.fieldContext_Note_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Note_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Note_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Note_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Note_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Note_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Note_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Note_ownerID(ctx, field) + case "text": + return ec.fieldContext_Note_text(ctx, field) + case "owner": + return ec.fieldContext_Note_owner(ctx, field) + case "entity": + return ec.fieldContext_Note_entity(ctx, field) + case "subcontrols": + return ec.fieldContext_Note_subcontrols(ctx, field) + case "program": + return ec.fieldContext_Note_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Note", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubscriberSearchResult_subscribers(ctx context.Context, field graphql.CollectedField, obj *SubscriberSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) +func (ec *executionContext) _Subcontrol_programs(ctx context.Context, field graphql.CollectedField, obj *generated.Subcontrol) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subcontrol_programs(ctx, field) if err != nil { return graphql.Null } @@ -188066,7 +103504,7 @@ func (ec *executionContext) _SubscriberSearchResult_subscribers(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subscribers, nil + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, err) @@ -188075,60 +103513,98 @@ func (ec *executionContext) _SubscriberSearchResult_subscribers(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subscriber) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberSearchResult_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subcontrol_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberSearchResult", + Object: "Subcontrol", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Subscriber_id(ctx, field) + return ec.fieldContext_Program_id(ctx, field) case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) + return ec.fieldContext_Program_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) + return ec.fieldContext_Program_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) + return ec.fieldContext_Program_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) + return ec.fieldContext_Program_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) + return ec.fieldContext_Program_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _SubscriberUpdatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *SubscriberUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) +func (ec *executionContext) _SubcontrolConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -188141,72 +103617,41 @@ func (ec *executionContext) _SubscriberUpdatePayload_subscriber(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subscriber, nil + 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.(*generated.Subscriber) + res := resTmp.([]*generated.SubcontrolEdge) fc.Result = res - return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) + return ec.marshalOSubcontrolEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_SubscriberUpdatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "SubscriberUpdatePayload", + Object: "SubcontrolConnection", 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_Subscriber_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subscriber_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subscriber_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subscriber_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subscriber_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Subscriber_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Subscriber_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subscriber_deletedBy(ctx, field) - case "ownerID": - return ec.fieldContext_Subscriber_ownerID(ctx, field) - case "email": - return ec.fieldContext_Subscriber_email(ctx, field) - case "phoneNumber": - return ec.fieldContext_Subscriber_phoneNumber(ctx, field) - case "verifiedEmail": - return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) - case "verifiedPhone": - return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) - case "active": - return ec.fieldContext_Subscriber_active(ctx, field) - case "owner": - return ec.fieldContext_Subscriber_owner(ctx, field) - case "events": - return ec.fieldContext_Subscriber_events(ctx, field) + case "node": + return ec.fieldContext_SubcontrolEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_SubcontrolEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_id(ctx, field) +func (ec *executionContext) _SubcontrolConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -188219,7 +103664,7 @@ func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -188231,26 +103676,36 @@ func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolConnection", 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") + 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) _TFASetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_createdAt(ctx, field) +func (ec *executionContext) _SubcontrolConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -188263,35 +103718,38 @@ func (ec *executionContext) _TFASetting_createdAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_updatedAt(ctx, field) +func (ec *executionContext) _SubcontrolEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -188304,7 +103762,7 @@ func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -188313,26 +103771,90 @@ func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.Subcontrol) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _TFASetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_createdBy(ctx, field) +func (ec *executionContext) _SubcontrolEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -188345,35 +103867,38 @@ func (ec *executionContext) _TFASetting_createdBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_updatedBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -188386,35 +103911,38 @@ func (ec *executionContext) _TFASetting_updatedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_deletedAt(ctx, field) +func (ec *executionContext) _SubcontrolHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -188427,23 +103955,26 @@ func (ec *executionContext) _TFASetting_deletedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, 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.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -188454,8 +103985,8 @@ func (ec *executionContext) fieldContext_TFASetting_deletedAt(_ context.Context, return fc, nil } -func (ec *executionContext) _TFASetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_deletedBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -188468,7 +103999,7 @@ func (ec *executionContext) _TFASetting_deletedBy(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -188482,9 +104013,9 @@ func (ec *executionContext) _TFASetting_deletedBy(ctx context.Context, field gra return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -188495,8 +104026,8 @@ func (ec *executionContext) fieldContext_TFASetting_deletedBy(_ context.Context, return fc, nil } -func (ec *executionContext) _TFASetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_tags(ctx, field) +func (ec *executionContext) _SubcontrolHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -188509,35 +104040,38 @@ func (ec *executionContext) _TFASetting_tags(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNSubcontrolHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type SubcontrolHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASetting_tfaSecret(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_tfaSecret(ctx, field) +func (ec *executionContext) _SubcontrolHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -188550,7 +104084,7 @@ func (ec *executionContext) _TFASetting_tfaSecret(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TfaSecret, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -188559,26 +104093,26 @@ func (ec *executionContext) _TFASetting_tfaSecret(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_tfaSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASetting_verified(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_verified(ctx, field) +func (ec *executionContext) _SubcontrolHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -188591,38 +104125,35 @@ func (ec *executionContext) _TFASetting_verified(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Verified, nil + 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.(bool) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASetting_recoveryCodes(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_recoveryCodes(ctx, field) +func (ec *executionContext) _SubcontrolHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -188635,7 +104166,7 @@ func (ec *executionContext) _TFASetting_recoveryCodes(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.RecoveryCodes, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -188644,14 +104175,14 @@ func (ec *executionContext) _TFASetting_recoveryCodes(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_recoveryCodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -188662,8 +104193,8 @@ func (ec *executionContext) fieldContext_TFASetting_recoveryCodes(_ context.Cont return fc, nil } -func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_totpAllowed(ctx, field) +func (ec *executionContext) _SubcontrolHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -188676,7 +104207,7 @@ func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotpAllowed, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -188685,26 +104216,26 @@ func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_totpAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASetting_owner(ctx, field) +func (ec *executionContext) _SubcontrolHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -188717,7 +104248,7 @@ func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -188726,100 +104257,26 @@ func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASetting_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASetting", + Object: "SubcontrolHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingConnection_edges(ctx, field) +func (ec *executionContext) _SubcontrolHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -188832,7 +104289,7 @@ func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -188841,32 +104298,26 @@ func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, fie if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.TFASettingEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TFASettingConnection", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_TFASettingEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_TFASettingEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASettingEdge", field.Name) +func (ec *executionContext) fieldContext_SubcontrolHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolHistory", + 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) _TFASettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) +func (ec *executionContext) _SubcontrolHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -188879,48 +104330,35 @@ func (ec *executionContext) _TFASettingConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASettingConnection", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingConnection_totalCount(ctx, field) +func (ec *executionContext) _SubcontrolHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -188933,7 +104371,7 @@ func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -188945,26 +104383,26 @@ func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context } return graphql.Null } - res := resTmp.(int) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASettingConnection", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASettingCreatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *TFASettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) +func (ec *executionContext) _SubcontrolHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -188977,7 +104415,7 @@ func (ec *executionContext) _TFASettingCreatePayload_tfaSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TfaSetting, nil + return obj.Name, nil }) if err != nil { ec.Error(ctx, err) @@ -188989,54 +104427,26 @@ func (ec *executionContext) _TFASettingCreatePayload_tfaSetting(ctx context.Cont } return graphql.Null } - res := resTmp.(*generated.TFASetting) + res := resTmp.(string) fc.Result = res - return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingCreatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASettingCreatePayload", + Object: "SubcontrolHistory", 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_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingEdge_node(ctx, field) +func (ec *executionContext) _SubcontrolHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -189049,7 +104459,7 @@ func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -189058,54 +104468,26 @@ func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.TFASetting) + res := resTmp.(string) fc.Result = res - return ec.marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASettingEdge", + Object: "SubcontrolHistory", 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_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingEdge_cursor(ctx, field) +func (ec *executionContext) _SubcontrolHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -189118,38 +104500,35 @@ func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + 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.(entgql.Cursor[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASettingEdge", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASettingSearchResult_tFASettings(ctx context.Context, field graphql.CollectedField, obj *TFASettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) +func (ec *executionContext) _SubcontrolHistory_subcontrolType(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_subcontrolType(ctx, field) if err != nil { return graphql.Null } @@ -189162,7 +104541,7 @@ func (ec *executionContext) _TFASettingSearchResult_tFASettings(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TFASettings, nil + return obj.SubcontrolType, nil }) if err != nil { ec.Error(ctx, err) @@ -189171,54 +104550,26 @@ func (ec *executionContext) _TFASettingSearchResult_tFASettings(ctx context.Cont if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.TFASetting) + res := resTmp.(string) fc.Result = res - return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingSearchResult_tFASettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASettingSearchResult", + Object: "SubcontrolHistory", 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_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TFASettingUpdatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *TFASettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) +func (ec *executionContext) _SubcontrolHistory_version(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_version(ctx, field) if err != nil { return graphql.Null } @@ -189231,66 +104582,35 @@ func (ec *executionContext) _TFASettingUpdatePayload_tfaSetting(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TfaSetting, nil + 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.(*generated.TFASetting) + res := resTmp.(string) fc.Result = res - return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TFASettingUpdatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_version(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TFASettingUpdatePayload", + Object: "SubcontrolHistory", 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_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_id(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_id(ctx, field) +func (ec *executionContext) _SubcontrolHistory_subcontrolNumber(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_subcontrolNumber(ctx, field) if err != nil { return graphql.Null } @@ -189303,38 +104623,35 @@ func (ec *executionContext) _Task_id(ctx context.Context, field graphql.Collecte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.SubcontrolNumber, nil }) if err != nil { ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_subcontrolNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_createdAt(ctx, field) +func (ec *executionContext) _SubcontrolHistory_family(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_family(ctx, field) if err != nil { return graphql.Null } @@ -189347,7 +104664,7 @@ func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Family, nil }) if err != nil { ec.Error(ctx, err) @@ -189356,26 +104673,26 @@ func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_family(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_updatedAt(ctx, field) +func (ec *executionContext) _SubcontrolHistory_class(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_class(ctx, field) if err != nil { return graphql.Null } @@ -189388,7 +104705,7 @@ func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Class, nil }) if err != nil { ec.Error(ctx, err) @@ -189397,26 +104714,26 @@ func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_class(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_createdBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_source(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_source(ctx, field) if err != nil { return graphql.Null } @@ -189429,7 +104746,7 @@ func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.Source, nil }) if err != nil { ec.Error(ctx, err) @@ -189443,9 +104760,9 @@ func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_source(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -189456,8 +104773,8 @@ func (ec *executionContext) fieldContext_Task_createdBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Task_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_updatedBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_mappedFrameworks(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_mappedFrameworks(ctx, field) if err != nil { return graphql.Null } @@ -189470,7 +104787,7 @@ func (ec *executionContext) _Task_updatedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.MappedFrameworks, nil }) if err != nil { ec.Error(ctx, err) @@ -189484,9 +104801,9 @@ func (ec *executionContext) _Task_updatedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_mappedFrameworks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -189497,8 +104814,8 @@ func (ec *executionContext) fieldContext_Task_updatedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Task_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_deletedAt(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationEvidence(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationEvidence(ctx, field) if err != nil { return graphql.Null } @@ -189511,7 +104828,7 @@ func (ec *executionContext) _Task_deletedAt(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.ImplementationEvidence, nil }) if err != nil { ec.Error(ctx, err) @@ -189520,26 +104837,26 @@ func (ec *executionContext) _Task_deletedAt(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationEvidence(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_deletedBy(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationStatus(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationStatus(ctx, field) if err != nil { return graphql.Null } @@ -189552,7 +104869,7 @@ func (ec *executionContext) _Task_deletedBy(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.ImplementationStatus, nil }) if err != nil { ec.Error(ctx, err) @@ -189566,9 +104883,9 @@ func (ec *executionContext) _Task_deletedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationStatus(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -189579,8 +104896,8 @@ func (ec *executionContext) fieldContext_Task_deletedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _Task_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_tags(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationDate(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationDate(ctx, field) if err != nil { return graphql.Null } @@ -189593,7 +104910,7 @@ func (ec *executionContext) _Task_tags(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.ImplementationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -189602,26 +104919,26 @@ func (ec *executionContext) _Task_tags(ctx context.Context, field graphql.Collec if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_title(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_title(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationVerification(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationVerification(ctx, field) if err != nil { return graphql.Null } @@ -189634,26 +104951,23 @@ func (ec *executionContext) _Task_title(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Title, nil + return obj.ImplementationVerification, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationVerification(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -189664,8 +104978,8 @@ func (ec *executionContext) fieldContext_Task_title(_ context.Context, field gra return fc, nil } -func (ec *executionContext) _Task_description(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_description(ctx, field) +func (ec *executionContext) _SubcontrolHistory_implementationVerificationDate(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_implementationVerificationDate(ctx, field) if err != nil { return graphql.Null } @@ -189678,7 +104992,7 @@ func (ec *executionContext) _Task_description(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.ImplementationVerificationDate, nil }) if err != nil { ec.Error(ctx, err) @@ -189687,26 +105001,26 @@ func (ec *executionContext) _Task_description(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_implementationVerificationDate(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_details(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_details(ctx, field) +func (ec *executionContext) _SubcontrolHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -189733,9 +105047,9 @@ func (ec *executionContext) _Task_details(ctx context.Context, field graphql.Col return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistory", Field: field, IsMethod: false, IsResolver: false, @@ -189746,8 +105060,8 @@ func (ec *executionContext) fieldContext_Task_details(_ context.Context, field g return fc, nil } -func (ec *executionContext) _Task_status(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_status(ctx, field) +func (ec *executionContext) _SubcontrolHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -189760,38 +105074,41 @@ func (ec *executionContext) _Task_status(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + 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.(enums.TaskStatus) + res := resTmp.([]*generated.SubcontrolHistoryEdge) fc.Result = res - return ec.marshalNTaskTaskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐTaskStatus(ctx, field.Selections, res) + return ec.marshalOSubcontrolHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskTaskStatus does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_SubcontrolHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_SubcontrolHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _Task_due(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_due(ctx, field) +func (ec *executionContext) _SubcontrolHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -189804,35 +105121,48 @@ func (ec *executionContext) _Task_due(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Due, nil + 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.(time.Time) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_due(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + 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) _Task_completed(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_completed(ctx, field) +func (ec *executionContext) _SubcontrolHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -189845,35 +105175,38 @@ func (ec *executionContext) _Task_completed(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Completed, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_completed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_assigner(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_assigner(ctx, field) +func (ec *executionContext) _SubcontrolHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -189886,112 +105219,93 @@ func (ec *executionContext) _Task_assigner(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Assigner(ctx) + 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.(*generated.User) + res := resTmp.(*generated.SubcontrolHistory) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalOSubcontrolHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_assigner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistoryEdge", Field: field, - IsMethod: true, + 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) + return ec.fieldContext_SubcontrolHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_SubcontrolHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_SubcontrolHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_SubcontrolHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_SubcontrolHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_SubcontrolHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_SubcontrolHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) + return ec.fieldContext_SubcontrolHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) + return ec.fieldContext_SubcontrolHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) + return ec.fieldContext_SubcontrolHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + return ec.fieldContext_SubcontrolHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_SubcontrolHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_SubcontrolHistory_name(ctx, field) + case "description": + return ec.fieldContext_SubcontrolHistory_description(ctx, field) + case "status": + return ec.fieldContext_SubcontrolHistory_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_SubcontrolHistory_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_SubcontrolHistory_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_SubcontrolHistory_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_SubcontrolHistory_family(ctx, field) + case "class": + return ec.fieldContext_SubcontrolHistory_class(ctx, field) + case "source": + return ec.fieldContext_SubcontrolHistory_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_SubcontrolHistory_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_SubcontrolHistory_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_SubcontrolHistory_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_SubcontrolHistory_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_SubcontrolHistory_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_SubcontrolHistory_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_SubcontrolHistory_details(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubcontrolHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _Task_assignee(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_assignee(ctx, field) +func (ec *executionContext) _SubcontrolHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubcontrolHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -190004,109 +105318,38 @@ func (ec *executionContext) _Task_assignee(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Assignee(ctx) + 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.(*generated.User) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_assignee(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubcontrolHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "SubcontrolHistoryEdge", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_organization(ctx, field) +func (ec *executionContext) _Subscriber_id(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_id(ctx, field) if err != nil { return graphql.Null } @@ -190119,143 +105362,38 @@ func (ec *executionContext) _Task_organization(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organization(ctx) + 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.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_group(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_group(ctx, field) +func (ec *executionContext) _Subscriber_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -190268,7 +105406,7 @@ func (ec *executionContext) _Task_group(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Group(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -190277,128 +105415,26 @@ func (ec *executionContext) _Task_group(ctx context.Context, field graphql.Colle if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_internalPolicy(ctx, field) +func (ec *executionContext) _Subscriber_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -190411,7 +105447,7 @@ func (ec *executionContext) _Task_internalPolicy(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.InternalPolicy(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -190420,80 +105456,67 @@ func (ec *executionContext) _Task_internalPolicy(ctx context.Context, field grap if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.InternalPolicy) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_InternalPolicy_id(ctx, field) - case "createdAt": - return ec.fieldContext_InternalPolicy_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_InternalPolicy_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_InternalPolicy_tags(ctx, field) - case "ownerID": - return ec.fieldContext_InternalPolicy_ownerID(ctx, field) - case "name": - return ec.fieldContext_InternalPolicy_name(ctx, field) - case "description": - return ec.fieldContext_InternalPolicy_description(ctx, field) - case "status": - return ec.fieldContext_InternalPolicy_status(ctx, field) - case "policyType": - return ec.fieldContext_InternalPolicy_policyType(ctx, field) - case "version": - return ec.fieldContext_InternalPolicy_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_InternalPolicy_background(ctx, field) - case "details": - return ec.fieldContext_InternalPolicy_details(ctx, field) - case "owner": - return ec.fieldContext_InternalPolicy_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_InternalPolicy_editors(ctx, field) - case "controlObjectives": - return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) - case "controls": - return ec.fieldContext_InternalPolicy_controls(ctx, field) - case "procedures": - return ec.fieldContext_InternalPolicy_procedures(ctx, field) - case "narratives": - return ec.fieldContext_InternalPolicy_narratives(ctx, field) - case "tasks": - return ec.fieldContext_InternalPolicy_tasks(ctx, field) - case "programs": - return ec.fieldContext_InternalPolicy_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + return nil, errors.New("field of type Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _Subscriber_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_createdBy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.CreatedBy, 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.marshalOString2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Subscriber_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Subscriber", + 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_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_procedure(ctx, field) +func (ec *executionContext) _Subscriber_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -190506,7 +105529,7 @@ func (ec *executionContext) _Task_procedure(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Procedure(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -190515,82 +105538,26 @@ func (ec *executionContext) _Task_procedure(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Procedure) + res := resTmp.(string) fc.Result = res - return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Procedure_id(ctx, field) - case "createdAt": - return ec.fieldContext_Procedure_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Procedure_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Procedure_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Procedure_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Procedure_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Procedure_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Procedure_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Procedure_ownerID(ctx, field) - case "name": - return ec.fieldContext_Procedure_name(ctx, field) - case "description": - return ec.fieldContext_Procedure_description(ctx, field) - case "status": - return ec.fieldContext_Procedure_status(ctx, field) - case "procedureType": - return ec.fieldContext_Procedure_procedureType(ctx, field) - case "version": - return ec.fieldContext_Procedure_version(ctx, field) - case "purposeAndScope": - return ec.fieldContext_Procedure_purposeAndScope(ctx, field) - case "background": - return ec.fieldContext_Procedure_background(ctx, field) - case "satisfies": - return ec.fieldContext_Procedure_satisfies(ctx, field) - case "details": - return ec.fieldContext_Procedure_details(ctx, field) - case "owner": - return ec.fieldContext_Procedure_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Procedure_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Procedure_editors(ctx, field) - case "controls": - return ec.fieldContext_Procedure_controls(ctx, field) - case "internalPolicies": - return ec.fieldContext_Procedure_internalPolicies(ctx, field) - case "narratives": - return ec.fieldContext_Procedure_narratives(ctx, field) - case "risks": - return ec.fieldContext_Procedure_risks(ctx, field) - case "tasks": - return ec.fieldContext_Procedure_tasks(ctx, field) - case "programs": - return ec.fieldContext_Procedure_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_control(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_control(ctx, field) +func (ec *executionContext) _Subscriber_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_tags(ctx, field) if err != nil { return graphql.Null } @@ -190603,7 +105570,7 @@ func (ec *executionContext) _Task_control(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Control(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -190612,96 +105579,26 @@ func (ec *executionContext) _Task_control(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Control) + res := resTmp.([]string) fc.Result = res - return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Control_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Control_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Control_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Control_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Control_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Control_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Control_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Control_ownerID(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 "controlType": - return ec.fieldContext_Control_controlType(ctx, field) - case "version": - return ec.fieldContext_Control_version(ctx, field) - case "controlNumber": - return ec.fieldContext_Control_controlNumber(ctx, field) - case "family": - return ec.fieldContext_Control_family(ctx, field) - case "class": - return ec.fieldContext_Control_class(ctx, field) - case "source": - return ec.fieldContext_Control_source(ctx, field) - case "satisfies": - return ec.fieldContext_Control_satisfies(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Control_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_Control_details(ctx, field) - case "owner": - return ec.fieldContext_Control_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Control_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Control_editors(ctx, field) - case "viewers": - return ec.fieldContext_Control_viewers(ctx, field) - case "procedures": - return ec.fieldContext_Control_procedures(ctx, field) - case "subcontrols": - return ec.fieldContext_Control_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Control_controlObjectives(ctx, field) - case "standard": - return ec.fieldContext_Control_standard(ctx, field) - case "narratives": - return ec.fieldContext_Control_narratives(ctx, field) - case "risks": - return ec.fieldContext_Control_risks(ctx, field) - case "actionPlans": - return ec.fieldContext_Control_actionPlans(ctx, field) - case "tasks": - return ec.fieldContext_Control_tasks(ctx, field) - case "programs": - return ec.fieldContext_Control_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_controlObjective(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_controlObjective(ctx, field) +func (ec *executionContext) _Subscriber_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -190714,7 +105611,7 @@ func (ec *executionContext) _Task_controlObjective(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ControlObjective(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -190723,94 +105620,26 @@ func (ec *executionContext) _Task_controlObjective(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ControlObjective) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ControlObjective_id(ctx, field) - case "createdAt": - return ec.fieldContext_ControlObjective_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ControlObjective_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ControlObjective_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ControlObjective_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ControlObjective_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ControlObjective_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ControlObjective_tags(ctx, field) - case "ownerID": - return ec.fieldContext_ControlObjective_ownerID(ctx, field) - case "name": - return ec.fieldContext_ControlObjective_name(ctx, field) - case "description": - return ec.fieldContext_ControlObjective_description(ctx, field) - case "status": - return ec.fieldContext_ControlObjective_status(ctx, field) - case "controlObjectiveType": - return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) - case "version": - return ec.fieldContext_ControlObjective_version(ctx, field) - case "controlNumber": - return ec.fieldContext_ControlObjective_controlNumber(ctx, field) - case "family": - return ec.fieldContext_ControlObjective_family(ctx, field) - case "class": - return ec.fieldContext_ControlObjective_class(ctx, field) - case "source": - return ec.fieldContext_ControlObjective_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) - case "details": - return ec.fieldContext_ControlObjective_details(ctx, field) - case "owner": - return ec.fieldContext_ControlObjective_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_ControlObjective_editors(ctx, field) - case "viewers": - return ec.fieldContext_ControlObjective_viewers(ctx, field) - case "internalPolicies": - return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) - case "controls": - return ec.fieldContext_ControlObjective_controls(ctx, field) - case "procedures": - return ec.fieldContext_ControlObjective_procedures(ctx, field) - case "risks": - return ec.fieldContext_ControlObjective_risks(ctx, field) - case "subcontrols": - return ec.fieldContext_ControlObjective_subcontrols(ctx, field) - case "standard": - return ec.fieldContext_ControlObjective_standard(ctx, field) - case "narratives": - return ec.fieldContext_ControlObjective_narratives(ctx, field) - case "tasks": - return ec.fieldContext_ControlObjective_tasks(ctx, field) - case "programs": - return ec.fieldContext_ControlObjective_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_subcontrol(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_subcontrol(ctx, field) +func (ec *executionContext) _Subscriber_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -190823,7 +105652,7 @@ func (ec *executionContext) _Task_subcontrol(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subcontrol(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -190832,90 +105661,26 @@ func (ec *executionContext) _Task_subcontrol(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subcontrol) + res := resTmp.(string) fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Task_program(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Task_program(ctx, field) +func (ec *executionContext) _Subscriber_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -190928,7 +105693,7 @@ func (ec *executionContext) _Task_program(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Program(ctx) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -190937,98 +105702,26 @@ func (ec *executionContext) _Task_program(ctx context.Context, field graphql.Col if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.(string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Task_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Task", + Object: "Subscriber", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskBulkCreatePayload_tasks(ctx context.Context, field graphql.CollectedField, obj *TaskBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskBulkCreatePayload_tasks(ctx, field) +func (ec *executionContext) _Subscriber_email(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_email(ctx, field) if err != nil { return graphql.Null } @@ -191041,85 +105734,38 @@ func (ec *executionContext) _TaskBulkCreatePayload_tasks(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tasks, nil + 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.([]*generated.Task) + res := resTmp.(string) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskBulkCreatePayload_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskBulkCreatePayload", + Object: "Subscriber", 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskConnection_edges(ctx, field) +func (ec *executionContext) _Subscriber_phoneNumber(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_phoneNumber(ctx, field) if err != nil { return graphql.Null } @@ -191132,7 +105778,7 @@ func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.PhoneNumber, nil }) if err != nil { ec.Error(ctx, err) @@ -191141,32 +105787,26 @@ func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.TaskEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOTaskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskEdge(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_phoneNumber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskConnection", + Object: "Subscriber", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_TaskEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_TaskEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TaskEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskConnection_pageInfo(ctx, field) +func (ec *executionContext) _Subscriber_verifiedEmail(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_verifiedEmail(ctx, field) if err != nil { return graphql.Null } @@ -191179,7 +105819,7 @@ func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.VerifiedEmail, nil }) if err != nil { ec.Error(ctx, err) @@ -191191,36 +105831,26 @@ func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(bool) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_verifiedEmail(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskConnection", + Object: "Subscriber", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskConnection_totalCount(ctx, field) +func (ec *executionContext) _Subscriber_verifiedPhone(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_verifiedPhone(ctx, field) if err != nil { return graphql.Null } @@ -191233,7 +105863,7 @@ func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.VerifiedPhone, nil }) if err != nil { ec.Error(ctx, err) @@ -191245,26 +105875,26 @@ func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, fiel } return graphql.Null } - res := resTmp.(int) + res := resTmp.(bool) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_verifiedPhone(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskConnection", + Object: "Subscriber", 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 nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskCreatePayload_task(ctx context.Context, field graphql.CollectedField, obj *TaskCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskCreatePayload_task(ctx, field) +func (ec *executionContext) _Subscriber_active(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_active(ctx, field) if err != nil { return graphql.Null } @@ -191277,7 +105907,7 @@ func (ec *executionContext) _TaskCreatePayload_task(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Task, nil + return obj.Active, nil }) if err != nil { ec.Error(ctx, err) @@ -191289,76 +105919,175 @@ func (ec *executionContext) _TaskCreatePayload_task(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.Task) + res := resTmp.(bool) fc.Result = res - return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskCreatePayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_active(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskCreatePayload", + Object: "Subscriber", 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) _Subscriber_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Owner(ctx) + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.(*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_Subscriber_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "Subscriber", + Field: field, + IsMethod: true, + 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) + return ec.fieldContext_Organization_id(ctx, field) case "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) + return ec.fieldContext_Organization_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) + return ec.fieldContext_Organization_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) + return ec.fieldContext_Organization_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) + return ec.fieldContext_Organization_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *TaskDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _Subscriber_events(ctx context.Context, field graphql.CollectedField, obj *generated.Subscriber) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Subscriber_events(ctx, field) if err != nil { return graphql.Null } @@ -191371,38 +106100,79 @@ func (ec *executionContext) _TaskDeletePayload_deletedID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Subscriber_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskDeletePayload", + Object: "Subscriber", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskEdge_node(ctx, field) +func (ec *executionContext) _SubscriberConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -191415,7 +106185,7 @@ func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -191424,76 +106194,32 @@ func (ec *executionContext) _TaskEdge_node(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Task) + res := resTmp.([]*generated.SubscriberEdge) fc.Result = res - return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) + return ec.marshalOSubscriberEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskEdge", + Object: "SubscriberConnection", 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) + case "node": + return ec.fieldContext_SubscriberEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_SubscriberEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, fmt.Errorf("no field named %q was found under type SubscriberEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskEdge_cursor(ctx, field) +func (ec *executionContext) _SubscriberConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -191506,7 +106232,7 @@ func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -191518,26 +106244,36 @@ func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql. } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskEdge", + Object: "SubscriberConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + 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) _TaskHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_id(ctx, field) +func (ec *executionContext) _SubscriberConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -191550,7 +106286,7 @@ func (ec *executionContext) _TaskHistory_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -191562,26 +106298,26 @@ func (ec *executionContext) _TaskHistory_id(ctx context.Context, field graphql.C } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "SubscriberConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_historyTime(ctx, field) +func (ec *executionContext) _SubscriberEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -191594,38 +106330,69 @@ func (ec *executionContext) _TaskHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + 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.(time.Time) + res := resTmp.(*generated.Subscriber) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "SubscriberEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_ref(ctx, field) +func (ec *executionContext) _SubscriberEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.SubscriberEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -191638,35 +106405,38 @@ func (ec *executionContext) _TaskHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_SubscriberEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "SubscriberEdge", 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_operation(ctx, field) +func (ec *executionContext) _TFASetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_id(ctx, field) if err != nil { return graphql.Null } @@ -191679,7 +106449,7 @@ func (ec *executionContext) _TaskHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -191691,26 +106461,26 @@ func (ec *executionContext) _TaskHistory_operation(ctx context.Context, field gr } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNTaskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskHistoryOpType does not have child fields") + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_createdAt(ctx, field) +func (ec *executionContext) _TFASetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -191737,9 +106507,9 @@ func (ec *executionContext) _TaskHistory_createdAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -191750,8 +106520,8 @@ func (ec *executionContext) fieldContext_TaskHistory_createdAt(_ context.Context return fc, nil } -func (ec *executionContext) _TaskHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_updatedAt(ctx, field) +func (ec *executionContext) _TFASetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -191778,9 +106548,9 @@ func (ec *executionContext) _TaskHistory_updatedAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -191791,8 +106561,8 @@ func (ec *executionContext) fieldContext_TaskHistory_updatedAt(_ context.Context return fc, nil } -func (ec *executionContext) _TaskHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_createdBy(ctx, field) +func (ec *executionContext) _TFASetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -191819,9 +106589,9 @@ func (ec *executionContext) _TaskHistory_createdBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -191832,8 +106602,8 @@ func (ec *executionContext) fieldContext_TaskHistory_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _TaskHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_updatedBy(ctx, field) +func (ec *executionContext) _TFASetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -191860,9 +106630,9 @@ func (ec *executionContext) _TaskHistory_updatedBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -191873,8 +106643,8 @@ func (ec *executionContext) fieldContext_TaskHistory_updatedBy(_ context.Context return fc, nil } -func (ec *executionContext) _TaskHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_deletedAt(ctx, field) +func (ec *executionContext) _TFASetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -191901,9 +106671,9 @@ func (ec *executionContext) _TaskHistory_deletedAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -191914,8 +106684,8 @@ func (ec *executionContext) fieldContext_TaskHistory_deletedAt(_ context.Context return fc, nil } -func (ec *executionContext) _TaskHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_deletedBy(ctx, field) +func (ec *executionContext) _TFASetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -191942,9 +106712,9 @@ func (ec *executionContext) _TaskHistory_deletedBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -191955,8 +106725,8 @@ func (ec *executionContext) fieldContext_TaskHistory_deletedBy(_ context.Context return fc, nil } -func (ec *executionContext) _TaskHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_tags(ctx, field) +func (ec *executionContext) _TFASetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_tags(ctx, field) if err != nil { return graphql.Null } @@ -191983,9 +106753,9 @@ func (ec *executionContext) _TaskHistory_tags(ctx context.Context, field graphql return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -191996,8 +106766,8 @@ func (ec *executionContext) fieldContext_TaskHistory_tags(_ context.Context, fie return fc, nil } -func (ec *executionContext) _TaskHistory_title(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_title(ctx, field) +func (ec *executionContext) _TFASetting_tfaSecret(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_tfaSecret(ctx, field) if err != nil { return graphql.Null } @@ -192010,26 +106780,23 @@ func (ec *executionContext) _TaskHistory_title(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Title, nil + return obj.TfaSecret, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_tfaSecret(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, @@ -192040,8 +106807,8 @@ func (ec *executionContext) fieldContext_TaskHistory_title(_ context.Context, fi return fc, nil } -func (ec *executionContext) _TaskHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_description(ctx, field) +func (ec *executionContext) _TFASetting_verified(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_verified(ctx, field) if err != nil { return graphql.Null } @@ -192054,76 +106821,38 @@ func (ec *executionContext) _TaskHistory_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Verified, 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.marshalOString2string(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TaskHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TaskHistory", - 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) _TaskHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_details(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Details, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { return graphql.Null } - res := resTmp.(map[string]interface{}) + res := resTmp.(bool) fc.Result = res - return ec.marshalOMap2map(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_verified(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Map does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_status(ctx, field) +func (ec *executionContext) _TFASetting_recoveryCodes(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_recoveryCodes(ctx, field) if err != nil { return graphql.Null } @@ -192136,38 +106865,35 @@ func (ec *executionContext) _TaskHistory_status(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.RecoveryCodes, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.TaskStatus) + res := resTmp.([]string) fc.Result = res - return ec.marshalNTaskHistoryTaskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐTaskStatus(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_recoveryCodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TaskHistoryTaskStatus does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskHistory_due(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_due(ctx, field) +func (ec *executionContext) _TFASetting_totpAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_totpAllowed(ctx, field) if err != nil { return graphql.Null } @@ -192180,7 +106906,7 @@ func (ec *executionContext) _TaskHistory_due(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Due, nil + return obj.TotpAllowed, nil }) if err != nil { ec.Error(ctx, err) @@ -192189,26 +106915,26 @@ func (ec *executionContext) _TaskHistory_due(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(bool) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_due(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_totpAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskHistory_completed(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistory_completed(ctx, field) +func (ec *executionContext) _TFASetting_owner(ctx context.Context, field graphql.CollectedField, obj *generated.TFASetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASetting_owner(ctx, field) if err != nil { return graphql.Null } @@ -192221,7 +106947,7 @@ func (ec *executionContext) _TaskHistory_completed(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Completed, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -192230,26 +106956,100 @@ func (ec *executionContext) _TaskHistory_completed(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistory_completed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASetting_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistory", + Object: "TFASetting", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistoryConnection_edges(ctx, field) +func (ec *executionContext) _TFASettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -192271,32 +107071,32 @@ func (ec *executionContext) _TaskHistoryConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.TaskHistoryEdge) + res := resTmp.([]*generated.TFASettingEdge) fc.Result = res - return ec.marshalOTaskHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistoryEdge(ctx, field.Selections, res) + return ec.marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistoryConnection", + Object: "TFASettingConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_TaskHistoryEdge_node(ctx, field) + return ec.fieldContext_TFASettingEdge_node(ctx, field) case "cursor": - return ec.fieldContext_TaskHistoryEdge_cursor(ctx, field) + return ec.fieldContext_TFASettingEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASettingEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _TFASettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -192326,9 +107126,9 @@ func (ec *executionContext) _TaskHistoryConnection_pageInfo(ctx context.Context, return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistoryConnection", + Object: "TFASettingConnection", Field: field, IsMethod: false, IsResolver: false, @@ -192349,8 +107149,8 @@ func (ec *executionContext) fieldContext_TaskHistoryConnection_pageInfo(_ contex return fc, nil } -func (ec *executionContext) _TaskHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _TFASettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -192380,9 +107180,9 @@ func (ec *executionContext) _TaskHistoryConnection_totalCount(ctx context.Contex return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistoryConnection", + Object: "TFASettingConnection", Field: field, IsMethod: false, IsResolver: false, @@ -192393,8 +107193,8 @@ func (ec *executionContext) fieldContext_TaskHistoryConnection_totalCount(_ cont return fc, nil } -func (ec *executionContext) _TaskHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistoryEdge_node(ctx, field) +func (ec *executionContext) _TFASettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -192416,62 +107216,54 @@ func (ec *executionContext) _TaskHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.TaskHistory) + res := resTmp.(*generated.TFASetting) fc.Result = res - return ec.marshalOTaskHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistory(ctx, field.Selections, res) + return ec.marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistoryEdge", + Object: "TFASettingEdge", 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_TaskHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_TaskHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_TaskHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_TaskHistory_operation(ctx, field) + return ec.fieldContext_TFASetting_id(ctx, field) case "createdAt": - return ec.fieldContext_TaskHistory_createdAt(ctx, field) + return ec.fieldContext_TFASetting_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_TaskHistory_updatedAt(ctx, field) + return ec.fieldContext_TFASetting_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_TaskHistory_createdBy(ctx, field) + return ec.fieldContext_TFASetting_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_TaskHistory_updatedBy(ctx, field) + return ec.fieldContext_TFASetting_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_TaskHistory_deletedAt(ctx, field) + return ec.fieldContext_TFASetting_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_TaskHistory_deletedBy(ctx, field) + return ec.fieldContext_TFASetting_deletedBy(ctx, field) case "tags": - return ec.fieldContext_TaskHistory_tags(ctx, field) - case "title": - return ec.fieldContext_TaskHistory_title(ctx, field) - case "description": - return ec.fieldContext_TaskHistory_description(ctx, field) - case "details": - return ec.fieldContext_TaskHistory_details(ctx, field) - case "status": - return ec.fieldContext_TaskHistory_status(ctx, field) - case "due": - return ec.fieldContext_TaskHistory_due(ctx, field) - case "completed": - return ec.fieldContext_TaskHistory_completed(ctx, field) + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TaskHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _TaskHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _TFASettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TFASettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -192501,9 +107293,9 @@ func (ec *executionContext) _TaskHistoryEdge_cursor(ctx context.Context, field g return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TFASettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskHistoryEdge", + Object: "TFASettingEdge", Field: field, IsMethod: false, IsResolver: false, @@ -192514,8 +107306,8 @@ func (ec *executionContext) fieldContext_TaskHistoryEdge_cursor(_ context.Contex return fc, nil } -func (ec *executionContext) _TaskSearchResult_tasks(ctx context.Context, field graphql.CollectedField, obj *TaskSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskSearchResult_tasks(ctx, field) +func (ec *executionContext) _Task_id(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_id(ctx, field) if err != nil { return graphql.Null } @@ -192528,85 +107320,38 @@ func (ec *executionContext) _TaskSearchResult_tasks(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tasks, nil + 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.([]*generated.Task) + res := resTmp.(string) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskSearchResult_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskSearchResult", + Object: "Task", 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TaskUpdatePayload_task(ctx context.Context, field graphql.CollectedField, obj *TaskUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TaskUpdatePayload_task(ctx, field) +func (ec *executionContext) _Task_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -192619,88 +107364,35 @@ func (ec *executionContext) _TaskUpdatePayload_task(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Task, nil + 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.(*generated.Task) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TaskUpdatePayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TaskUpdatePayload", + Object: "Task", 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_id(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_id(ctx, field) +func (ec *executionContext) _Task_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -192713,38 +107405,35 @@ func (ec *executionContext) _Template_id(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + 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.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_createdAt(ctx, field) +func (ec *executionContext) _Task_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -192757,7 +107446,7 @@ func (ec *executionContext) _Template_createdAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -192766,26 +107455,26 @@ func (ec *executionContext) _Template_createdAt(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_updatedAt(ctx, field) +func (ec *executionContext) _Task_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -192798,7 +107487,7 @@ func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -192807,26 +107496,26 @@ func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_createdBy(ctx, field) +func (ec *executionContext) _Task_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -192839,7 +107528,7 @@ func (ec *executionContext) _Template_createdBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -192848,26 +107537,26 @@ func (ec *executionContext) _Template_createdBy(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_updatedBy(ctx, field) +func (ec *executionContext) _Task_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -192880,7 +107569,7 @@ func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -192894,9 +107583,9 @@ func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graph return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, IsMethod: false, IsResolver: false, @@ -192907,8 +107596,8 @@ func (ec *executionContext) fieldContext_Template_updatedBy(_ context.Context, f return fc, nil } -func (ec *executionContext) _Template_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_deletedAt(ctx, field) +func (ec *executionContext) _Task_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_tags(ctx, field) if err != nil { return graphql.Null } @@ -192921,7 +107610,7 @@ func (ec *executionContext) _Template_deletedAt(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -192930,26 +107619,26 @@ func (ec *executionContext) _Template_deletedAt(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_deletedBy(ctx, field) +func (ec *executionContext) _Task_title(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_title(ctx, field) if err != nil { return graphql.Null } @@ -192962,23 +107651,26 @@ func (ec *executionContext) _Template_deletedBy(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, IsMethod: false, IsResolver: false, @@ -192989,8 +107681,8 @@ func (ec *executionContext) fieldContext_Template_deletedBy(_ context.Context, f return fc, nil } -func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_tags(ctx, field) +func (ec *executionContext) _Task_description(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_description(ctx, field) if err != nil { return graphql.Null } @@ -193003,7 +107695,7 @@ func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -193012,14 +107704,14 @@ func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, IsMethod: false, IsResolver: false, @@ -193030,8 +107722,8 @@ func (ec *executionContext) fieldContext_Template_tags(_ context.Context, field return fc, nil } -func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_ownerID(ctx, field) +func (ec *executionContext) _Task_details(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_details(ctx, field) if err != nil { return graphql.Null } @@ -193044,7 +107736,7 @@ func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) @@ -193053,26 +107745,26 @@ func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_name(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_name(ctx, field) +func (ec *executionContext) _Task_status(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_status(ctx, field) if err != nil { return graphql.Null } @@ -193085,7 +107777,7 @@ func (ec *executionContext) _Template_name(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -193097,26 +107789,26 @@ func (ec *executionContext) _Template_name(ctx context.Context, field graphql.Co } return graphql.Null } - res := resTmp.(string) + res := resTmp.(enums.TaskStatus) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNTaskTaskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐTaskStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 nil, errors.New("field of type TaskTaskStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_templateType(ctx, field) +func (ec *executionContext) _Task_due(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_due(ctx, field) if err != nil { return graphql.Null } @@ -193129,38 +107821,35 @@ func (ec *executionContext) _Template_templateType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TemplateType, nil + return obj.Due, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.DocumentType) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_due(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 TemplateDocumentType does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_description(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_description(ctx, field) +func (ec *executionContext) _Task_completed(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_completed(ctx, field) if err != nil { return graphql.Null } @@ -193173,7 +107862,7 @@ func (ec *executionContext) _Template_description(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + return obj.Completed, nil }) if err != nil { ec.Error(ctx, err) @@ -193182,26 +107871,26 @@ func (ec *executionContext) _Template_description(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_completed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_jsonconfig(ctx, field) +func (ec *executionContext) _Task_assigner(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_assigner(ctx, field) if err != nil { return graphql.Null } @@ -193214,7 +107903,7 @@ func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Jsonconfig, nil + return obj.Assigner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -193226,26 +107915,100 @@ func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field grap } return graphql.Null } - res := resTmp.(customtypes.JSONObject) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_assigner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _Template_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_uischema(ctx, field) +func (ec *executionContext) _Task_assignee(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_assignee(ctx, field) if err != nil { return graphql.Null } @@ -193258,7 +108021,7 @@ func (ec *executionContext) _Template_uischema(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Uischema, nil + return obj.Assignee(ctx) }) if err != nil { ec.Error(ctx, err) @@ -193267,26 +108030,100 @@ func (ec *executionContext) _Template_uischema(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(customtypes.JSONObject) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_assignee(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_owner(ctx, field) +func (ec *executionContext) _Task_organization(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_organization(ctx, field) if err != nil { return graphql.Null } @@ -193299,7 +108136,7 @@ func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Owner(ctx) + return obj.Organization(ctx) }) if err != nil { ec.Error(ctx, err) @@ -193308,14 +108145,14 @@ func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, @@ -193434,8 +108271,8 @@ func (ec *executionContext) fieldContext_Template_owner(_ context.Context, field return fc, nil } -func (ec *executionContext) _Template_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_documents(ctx, field) +func (ec *executionContext) _Task_group(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_group(ctx, field) if err != nil { return graphql.Null } @@ -193448,7 +108285,7 @@ func (ec *executionContext) _Template_documents(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Documents(ctx) + return obj.Group(ctx) }) if err != nil { ec.Error(ctx, err) @@ -193457,58 +108294,128 @@ func (ec *executionContext) _Template_documents(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.DocumentData) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_DocumentData_id(ctx, field) + return ec.fieldContext_Group_id(ctx, field) case "createdAt": - return ec.fieldContext_DocumentData_createdAt(ctx, field) + return ec.fieldContext_Group_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_DocumentData_updatedAt(ctx, field) + return ec.fieldContext_Group_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_DocumentData_createdBy(ctx, field) + return ec.fieldContext_Group_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_DocumentData_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_DocumentData_tags(ctx, field) + return ec.fieldContext_Group_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_DocumentData_deletedAt(ctx, field) + return ec.fieldContext_Group_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_DocumentData_deletedBy(ctx, field) + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) case "ownerID": - return ec.fieldContext_DocumentData_ownerID(ctx, field) - case "templateID": - return ec.fieldContext_DocumentData_templateID(ctx, field) - case "data": - return ec.fieldContext_DocumentData_data(ctx, field) + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) case "owner": - return ec.fieldContext_DocumentData_owner(ctx, field) - case "template": - return ec.fieldContext_DocumentData_template(ctx, field) - case "entity": - return ec.fieldContext_DocumentData_entity(ctx, field) + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) case "files": - return ec.fieldContext_DocumentData_files(ctx, field) + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _Template_files(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_Template_files(ctx, field) +func (ec *executionContext) _Task_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_internalPolicy(ctx, field) if err != nil { return graphql.Null } @@ -193521,7 +108428,7 @@ func (ec *executionContext) _Template_files(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.InternalPolicy(ctx) }) if err != nil { ec.Error(ctx, err) @@ -193530,92 +108437,80 @@ func (ec *executionContext) _Template_files(ctx context.Context, field graphql.C if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.([]*generated.InternalPolicy) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_Template_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "Template", + Object: "Task", Field: field, IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_File_id(ctx, field) + return ec.fieldContext_InternalPolicy_id(ctx, field) case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateBulkCreatePayload_templates(ctx context.Context, field graphql.CollectedField, obj *TemplateBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) +func (ec *executionContext) _Task_procedure(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_procedure(ctx, field) if err != nil { return graphql.Null } @@ -193628,7 +108523,7 @@ func (ec *executionContext) _TemplateBulkCreatePayload_templates(ctx context.Con }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Templates, nil + return obj.Procedure(ctx) }) if err != nil { ec.Error(ctx, err) @@ -193637,62 +108532,82 @@ func (ec *executionContext) _TemplateBulkCreatePayload_templates(ctx context.Con if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Template) + res := resTmp.([]*generated.Procedure) fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateBulkCreatePayload_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateBulkCreatePayload", + Object: "Task", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Template_id(ctx, field) + return ec.fieldContext_Procedure_id(ctx, field) case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) + return ec.fieldContext_Procedure_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) + return ec.fieldContext_Procedure_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) + return ec.fieldContext_Procedure_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) + return ec.fieldContext_Procedure_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) + return ec.fieldContext_Procedure_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) + return ec.fieldContext_Procedure_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Template_tags(ctx, field) + return ec.fieldContext_Procedure_tags(ctx, field) case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) + return ec.fieldContext_Procedure_ownerID(ctx, field) case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) + return ec.fieldContext_Procedure_name(ctx, field) case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateConnection_edges(ctx, field) +func (ec *executionContext) _Task_control(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_control(ctx, field) if err != nil { return graphql.Null } @@ -193705,7 +108620,7 @@ func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Control(ctx) }) if err != nil { ec.Error(ctx, err) @@ -193714,32 +108629,96 @@ func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.TemplateEdge) + res := resTmp.([]*generated.Control) fc.Result = res - return ec.marshalOTemplateEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateEdge(ctx, field.Selections, res) + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_control(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateConnection", + Object: "Task", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_TemplateEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_TemplateEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_Control_id(ctx, field) + case "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TemplateEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateConnection_pageInfo(ctx, field) +func (ec *executionContext) _Task_controlObjective(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_controlObjective(ctx, field) if err != nil { return graphql.Null } @@ -193752,48 +108731,103 @@ func (ec *executionContext) _TemplateConnection_pageInfo(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.ControlObjective(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.ControlObjective) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_controlObjective(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateConnection", + Object: "Task", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateConnection_totalCount(ctx, field) +func (ec *executionContext) _Task_subcontrol(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_subcontrol(ctx, field) if err != nil { return graphql.Null } @@ -193806,38 +108840,99 @@ func (ec *executionContext) _TemplateConnection_totalCount(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.Subcontrol(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateConnection", + Object: "Task", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateCreatePayload_template(ctx context.Context, field graphql.CollectedField, obj *TemplateCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateCreatePayload_template(ctx, field) +func (ec *executionContext) _Task_program(ctx context.Context, field graphql.CollectedField, obj *generated.Task) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Task_program(ctx, field) if err != nil { return graphql.Null } @@ -193850,74 +108945,154 @@ func (ec *executionContext) _TemplateCreatePayload_template(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Template, nil + return obj.Program(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.Template) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateCreatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Task_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateCreatePayload", + Object: "Task", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_Template_id(ctx, field) + return ec.fieldContext_Program_id(ctx, field) case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) + return ec.fieldContext_Program_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) + return ec.fieldContext_Program_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) + return ec.fieldContext_Program_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) + return ec.fieldContext_Program_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) + return ec.fieldContext_Program_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) + return ec.fieldContext_Program_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Template_tags(ctx, field) + return ec.fieldContext_Program_tags(ctx, field) case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) + return ec.fieldContext_Program_ownerID(ctx, field) case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) + return ec.fieldContext_Program_name(ctx, field) case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) case "files": - return ec.fieldContext_Template_files(ctx, field) + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, 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 { + return graphql.Null + } + res := resTmp.([]*generated.TaskEdge) + fc.Result = res + return ec.marshalOTaskEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐ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 "node": + return ec.fieldContext_TaskEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_TaskEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TaskEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *TemplateDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _TaskConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TaskConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -193930,7 +109105,7 @@ func (ec *executionContext) _TemplateDeletePayload_deletedID(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -193942,26 +109117,80 @@ func (ec *executionContext) _TemplateDeletePayload_deletedID(ctx context.Context } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateDeletePayload", + Object: "TaskConnection", 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") + 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) _TemplateEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateEdge_node(ctx, field) +func (ec *executionContext) _TaskConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TotalCount, nil + }) + if err != nil { + ec.Error(ctx, 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: 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) _TaskEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -193983,62 +109212,76 @@ func (ec *executionContext) _TemplateEdge_node(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Template) + res := resTmp.(*generated.Task) fc.Result = res - return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) + return ec.marshalOTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateEdge", + 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_Template_id(ctx, field) + return ec.fieldContext_Task_id(ctx, field) case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) + return ec.fieldContext_Task_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) + return ec.fieldContext_Task_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) + return ec.fieldContext_Task_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) + return ec.fieldContext_Task_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) + return ec.fieldContext_Task_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) + return ec.fieldContext_Task_deletedBy(ctx, field) case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateEdge_cursor(ctx, field) +func (ec *executionContext) _TaskEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TaskEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -194068,9 +109311,9 @@ func (ec *executionContext) _TemplateEdge_cursor(ctx context.Context, field grap return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateEdge", + Object: "TaskEdge", Field: field, IsMethod: false, IsResolver: false, @@ -194081,8 +109324,8 @@ func (ec *executionContext) fieldContext_TemplateEdge_cursor(_ context.Context, return fc, nil } -func (ec *executionContext) _TemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_id(ctx, field) +func (ec *executionContext) _TaskHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -194112,9 +109355,9 @@ func (ec *executionContext) _TemplateHistory_id(ctx context.Context, field graph return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194125,8 +109368,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_id(_ context.Context, f return fc, nil } -func (ec *executionContext) _TemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_historyTime(ctx, field) +func (ec *executionContext) _TaskHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -194156,9 +109399,9 @@ func (ec *executionContext) _TemplateHistory_historyTime(ctx context.Context, fi return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194169,8 +109412,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_historyTime(_ context.C return fc, nil } -func (ec *executionContext) _TemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_ref(ctx, field) +func (ec *executionContext) _TaskHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -194197,9 +109440,9 @@ func (ec *executionContext) _TemplateHistory_ref(ctx context.Context, field grap return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194210,8 +109453,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_ref(_ context.Context, return fc, nil } -func (ec *executionContext) _TemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_operation(ctx, field) +func (ec *executionContext) _TaskHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -194238,24 +109481,24 @@ func (ec *executionContext) _TemplateHistory_operation(ctx context.Context, fiel } res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNTaskHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TemplateHistoryOpType does not have child fields") + return nil, errors.New("field of type TaskHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_createdAt(ctx, field) +func (ec *executionContext) _TaskHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -194282,9 +109525,9 @@ func (ec *executionContext) _TemplateHistory_createdAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194295,8 +109538,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_createdAt(_ context.Con return fc, nil } -func (ec *executionContext) _TemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_updatedAt(ctx, field) +func (ec *executionContext) _TaskHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -194323,9 +109566,9 @@ func (ec *executionContext) _TemplateHistory_updatedAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194336,8 +109579,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_updatedAt(_ context.Con return fc, nil } -func (ec *executionContext) _TemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_createdBy(ctx, field) +func (ec *executionContext) _TaskHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -194364,9 +109607,9 @@ func (ec *executionContext) _TemplateHistory_createdBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194377,8 +109620,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_createdBy(_ context.Con return fc, nil } -func (ec *executionContext) _TemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_updatedBy(ctx, field) +func (ec *executionContext) _TaskHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -194405,9 +109648,9 @@ func (ec *executionContext) _TemplateHistory_updatedBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194418,8 +109661,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_updatedBy(_ context.Con return fc, nil } -func (ec *executionContext) _TemplateHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_deletedAt(ctx, field) +func (ec *executionContext) _TaskHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -194446,9 +109689,9 @@ func (ec *executionContext) _TemplateHistory_deletedAt(ctx context.Context, fiel return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194459,8 +109702,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_deletedAt(_ context.Con return fc, nil } -func (ec *executionContext) _TemplateHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_deletedBy(ctx, field) +func (ec *executionContext) _TaskHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -194487,9 +109730,9 @@ func (ec *executionContext) _TemplateHistory_deletedBy(ctx context.Context, fiel return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194500,8 +109743,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_deletedBy(_ context.Con return fc, nil } -func (ec *executionContext) _TemplateHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_tags(ctx, field) +func (ec *executionContext) _TaskHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -194528,9 +109771,9 @@ func (ec *executionContext) _TemplateHistory_tags(ctx context.Context, field gra return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194541,8 +109784,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_tags(_ context.Context, return fc, nil } -func (ec *executionContext) _TemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_ownerID(ctx, field) +func (ec *executionContext) _TaskHistory_title(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_title(ctx, field) if err != nil { return graphql.Null } @@ -194555,23 +109798,26 @@ func (ec *executionContext) _TemplateHistory_ownerID(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OwnerID, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_title(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194582,8 +109828,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_ownerID(_ context.Conte return fc, nil } -func (ec *executionContext) _TemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_name(ctx, field) +func (ec *executionContext) _TaskHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -194596,26 +109842,23 @@ func (ec *executionContext) _TemplateHistory_name(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, @@ -194626,8 +109869,8 @@ func (ec *executionContext) fieldContext_TemplateHistory_name(_ context.Context, return fc, nil } -func (ec *executionContext) _TemplateHistory_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_templateType(ctx, field) +func (ec *executionContext) _TaskHistory_details(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_details(ctx, field) if err != nil { return graphql.Null } @@ -194640,38 +109883,35 @@ func (ec *executionContext) _TemplateHistory_templateType(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TemplateType, nil + return obj.Details, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.DocumentType) + res := resTmp.(map[string]interface{}) fc.Result = res - return ec.marshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) + return ec.marshalOMap2map(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_details(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type TemplateHistoryDocumentType does not have child fields") + return nil, errors.New("field of type Map does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_description(ctx, field) +func (ec *executionContext) _TaskHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -194684,35 +109924,38 @@ func (ec *executionContext) _TemplateHistory_description(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description, nil + 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.(string) + res := resTmp.(enums.TaskStatus) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTaskHistoryTaskStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐTaskStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", 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 nil, errors.New("field of type TaskHistoryTaskStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TemplateHistory_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) +func (ec *executionContext) _TaskHistory_due(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_due(ctx, field) if err != nil { return graphql.Null } @@ -194725,38 +109968,35 @@ func (ec *executionContext) _TemplateHistory_jsonconfig(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Jsonconfig, nil + return obj.Due, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(customtypes.JSONObject) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_due(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TemplateHistory_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistory_uischema(ctx, field) +func (ec *executionContext) _TaskHistory_completed(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistory_completed(ctx, field) if err != nil { return graphql.Null } @@ -194769,7 +110009,7 @@ func (ec *executionContext) _TemplateHistory_uischema(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Uischema, nil + return obj.Completed, nil }) if err != nil { ec.Error(ctx, err) @@ -194778,26 +110018,26 @@ func (ec *executionContext) _TemplateHistory_uischema(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(customtypes.JSONObject) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistory_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistory_completed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistory", + Object: "TaskHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type JSON does not have child fields") + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _TemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) +func (ec *executionContext) _TaskHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -194819,32 +110059,32 @@ func (ec *executionContext) _TemplateHistoryConnection_edges(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.TemplateHistoryEdge) + res := resTmp.([]*generated.TaskHistoryEdge) fc.Result = res - return ec.marshalOTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryEdge(ctx, field.Selections, res) + return ec.marshalOTaskHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistoryConnection", + Object: "TaskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "node": - return ec.fieldContext_TemplateHistoryEdge_node(ctx, field) + return ec.fieldContext_TaskHistoryEdge_node(ctx, field) case "cursor": - return ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) + return ec.fieldContext_TaskHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TaskHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _TaskHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -194874,9 +110114,9 @@ func (ec *executionContext) _TemplateHistoryConnection_pageInfo(ctx context.Cont return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistoryConnection", + Object: "TaskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -194897,8 +110137,8 @@ func (ec *executionContext) fieldContext_TemplateHistoryConnection_pageInfo(_ co return fc, nil } -func (ec *executionContext) _TemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _TaskHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -194928,9 +110168,9 @@ func (ec *executionContext) _TemplateHistoryConnection_totalCount(ctx context.Co return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistoryConnection", + Object: "TaskHistoryConnection", Field: field, IsMethod: false, IsResolver: false, @@ -194941,8 +110181,8 @@ func (ec *executionContext) fieldContext_TemplateHistoryConnection_totalCount(_ return fc, nil } -func (ec *executionContext) _TemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryEdge_node(ctx, field) +func (ec *executionContext) _TaskHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -194964,62 +110204,62 @@ func (ec *executionContext) _TemplateHistoryEdge_node(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.TemplateHistory) + res := resTmp.(*generated.TaskHistory) fc.Result = res - return ec.marshalOTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistory(ctx, field.Selections, res) + return ec.marshalOTaskHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_TemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TaskHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "TemplateHistoryEdge", + Object: "TaskHistoryEdge", 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_TemplateHistory_id(ctx, field) + return ec.fieldContext_TaskHistory_id(ctx, field) case "historyTime": - return ec.fieldContext_TemplateHistory_historyTime(ctx, field) + return ec.fieldContext_TaskHistory_historyTime(ctx, field) case "ref": - return ec.fieldContext_TemplateHistory_ref(ctx, field) + return ec.fieldContext_TaskHistory_ref(ctx, field) case "operation": - return ec.fieldContext_TemplateHistory_operation(ctx, field) + return ec.fieldContext_TaskHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_TemplateHistory_createdAt(ctx, field) + return ec.fieldContext_TaskHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_TemplateHistory_updatedAt(ctx, field) + return ec.fieldContext_TaskHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_TemplateHistory_createdBy(ctx, field) + return ec.fieldContext_TaskHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_TemplateHistory_updatedBy(ctx, field) + return ec.fieldContext_TaskHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_TemplateHistory_deletedAt(ctx, field) + return ec.fieldContext_TaskHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_TemplateHistory_deletedBy(ctx, field) + return ec.fieldContext_TaskHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_TemplateHistory_tags(ctx, field) - case "ownerID": - return ec.fieldContext_TemplateHistory_ownerID(ctx, field) - case "name": - return ec.fieldContext_TemplateHistory_name(ctx, field) - case "templateType": - return ec.fieldContext_TemplateHistory_templateType(ctx, field) + return ec.fieldContext_TaskHistory_tags(ctx, field) + case "title": + return ec.fieldContext_TaskHistory_title(ctx, field) case "description": - return ec.fieldContext_TemplateHistory_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_TemplateHistory_uischema(ctx, field) + return ec.fieldContext_TaskHistory_description(ctx, field) + case "details": + return ec.fieldContext_TaskHistory_details(ctx, field) + case "status": + return ec.fieldContext_TaskHistory_status(ctx, field) + case "due": + return ec.fieldContext_TaskHistory_due(ctx, field) + case "completed": + return ec.fieldContext_TaskHistory_completed(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type TemplateHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TaskHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _TemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _TaskHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TaskHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -195038,189 +110278,32 @@ func (ec *executionContext) _TemplateHistoryEdge_cursor(ctx context.Context, fie ec.Error(ctx, err) return graphql.Null } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(entgql.Cursor[string]) - fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateHistoryEdge", - Field: field, - IsMethod: false, - IsResolver: false, - Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateSearchResult_templates(ctx context.Context, field graphql.CollectedField, obj *TemplateSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateSearchResult_templates(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Templates, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - return graphql.Null - } - res := resTmp.([]*generated.Template) - fc.Result = res - return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateSearchResult_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateSearchResult", - 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_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) - }, - } - return fc, nil -} - -func (ec *executionContext) _TemplateUpdatePayload_template(ctx context.Context, field graphql.CollectedField, obj *TemplateUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_TemplateUpdatePayload_template(ctx, field) - if err != nil { - return graphql.Null - } - ctx = graphql.WithFieldContext(ctx, fc) - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - ret = graphql.Null - } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { - ctx = rctx // use context from middleware stack in children - return obj.Template, nil - }) - if err != nil { - ec.Error(ctx, err) - return graphql.Null - } - if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } - return graphql.Null - } - res := resTmp.(*generated.Template) - fc.Result = res - return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) -} - -func (ec *executionContext) fieldContext_TemplateUpdatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { - fc = &graphql.FieldContext{ - Object: "TemplateUpdatePayload", - 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_Template_id(ctx, field) - case "createdAt": - return ec.fieldContext_Template_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Template_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Template_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Template_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Template_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Template_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Template_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Template_ownerID(ctx, field) - case "name": - return ec.fieldContext_Template_name(ctx, field) - case "templateType": - return ec.fieldContext_Template_templateType(ctx, field) - case "description": - return ec.fieldContext_Template_description(ctx, field) - case "jsonconfig": - return ec.fieldContext_Template_jsonconfig(ctx, field) - case "uischema": - return ec.fieldContext_Template_uischema(ctx, field) - case "owner": - return ec.fieldContext_Template_owner(ctx, field) - case "documents": - return ec.fieldContext_Template_documents(ctx, field) - case "files": - return ec.fieldContext_Template_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(entgql.Cursor[string]) + fc.Result = res + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskHistoryEdge", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_id(ctx, field) +func (ec *executionContext) _Template_id(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_id(ctx, field) if err != nil { return graphql.Null } @@ -195250,9 +110333,9 @@ func (ec *executionContext) _User_id(ctx context.Context, field graphql.Collecte return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195263,8 +110346,8 @@ func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphq return fc, nil } -func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_createdAt(ctx, field) +func (ec *executionContext) _Template_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -195291,9 +110374,9 @@ func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195304,8 +110387,8 @@ func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_updatedAt(ctx, field) +func (ec *executionContext) _Template_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -195332,9 +110415,9 @@ func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195345,8 +110428,8 @@ func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_createdBy(ctx, field) +func (ec *executionContext) _Template_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -195373,9 +110456,9 @@ func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195386,8 +110469,8 @@ func (ec *executionContext) fieldContext_User_createdBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_updatedBy(ctx, field) +func (ec *executionContext) _Template_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -195414,9 +110497,9 @@ func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195427,8 +110510,8 @@ func (ec *executionContext) fieldContext_User_updatedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _User_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_deletedAt(ctx, field) +func (ec *executionContext) _Template_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -195455,9 +110538,9 @@ func (ec *executionContext) _User_deletedAt(ctx context.Context, field graphql.C return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195468,8 +110551,8 @@ func (ec *executionContext) fieldContext_User_deletedAt(_ context.Context, field return fc, nil } -func (ec *executionContext) _User_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_deletedBy(ctx, field) +func (ec *executionContext) _Template_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -195496,9 +110579,9 @@ func (ec *executionContext) _User_deletedBy(ctx context.Context, field graphql.C return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195509,8 +110592,8 @@ func (ec *executionContext) fieldContext_User_deletedBy(_ context.Context, field return fc, nil } -func (ec *executionContext) _User_tags(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_tags(ctx, field) +func (ec *executionContext) _Template_tags(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_tags(ctx, field) if err != nil { return graphql.Null } @@ -195537,9 +110620,9 @@ func (ec *executionContext) _User_tags(ctx context.Context, field graphql.Collec return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195550,8 +110633,8 @@ func (ec *executionContext) fieldContext_User_tags(_ context.Context, field grap return fc, nil } -func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_email(ctx, field) +func (ec *executionContext) _Template_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -195564,38 +110647,35 @@ func (ec *executionContext) _User_email(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Email, nil + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_firstName(ctx, field) +func (ec *executionContext) _Template_name(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_name(ctx, field) if err != nil { return graphql.Null } @@ -195608,23 +110688,26 @@ func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FirstName, nil + 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.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195635,8 +110718,8 @@ func (ec *executionContext) fieldContext_User_firstName(_ context.Context, field return fc, nil } -func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_lastName(ctx, field) +func (ec *executionContext) _Template_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_templateType(ctx, field) if err != nil { return graphql.Null } @@ -195649,35 +110732,38 @@ func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastName, nil + return obj.TemplateType, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(enums.DocumentType) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", 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 nil, errors.New("field of type TemplateDocumentType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_displayName(ctx, field) +func (ec *executionContext) _Template_description(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_description(ctx, field) if err != nil { return graphql.Null } @@ -195690,26 +110776,23 @@ func (ec *executionContext) _User_displayName(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, IsMethod: false, IsResolver: false, @@ -195720,8 +110803,8 @@ func (ec *executionContext) fieldContext_User_displayName(_ context.Context, fie return fc, nil } -func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarRemoteURL(ctx, field) +func (ec *executionContext) _Template_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_jsonconfig(ctx, field) if err != nil { return graphql.Null } @@ -195734,35 +110817,38 @@ func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil + return obj.Jsonconfig, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", 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 nil, errors.New("field of type JSON does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarLocalFile(ctx, field) +func (ec *executionContext) _Template_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_uischema(ctx, field) if err != nil { return graphql.Null } @@ -195775,7 +110861,7 @@ func (ec *executionContext) _User_avatarLocalFile(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFile, nil + return obj.Uischema, nil }) if err != nil { ec.Error(ctx, err) @@ -195784,26 +110870,26 @@ func (ec *executionContext) _User_avatarLocalFile(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", 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 nil, errors.New("field of type JSON does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarLocalFileID(ctx, field) +func (ec *executionContext) _Template_owner(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_owner(ctx, field) if err != nil { return graphql.Null } @@ -195816,7 +110902,7 @@ func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFileID, nil + return obj.Owner(ctx) }) if err != nil { ec.Error(ctx, err) @@ -195825,26 +110911,134 @@ func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOID2ᚖstring(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_owner(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _User_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_avatarUpdatedAt(ctx, field) +func (ec *executionContext) _Template_documents(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_documents(ctx, field) if err != nil { return graphql.Null } @@ -195857,7 +111051,7 @@ func (ec *executionContext) _User_avatarUpdatedAt(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarUpdatedAt, nil + return obj.Documents(ctx) }) if err != nil { ec.Error(ctx, err) @@ -195866,26 +111060,58 @@ func (ec *executionContext) _User_avatarUpdatedAt(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.([]*generated.DocumentData) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_documents(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) }, } return fc, nil } -func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_lastSeen(ctx, field) +func (ec *executionContext) _Template_files(ctx context.Context, field graphql.CollectedField, obj *generated.Template) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_Template_files(ctx, field) if err != nil { return graphql.Null } @@ -195898,7 +111124,7 @@ func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastSeen, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -195907,26 +111133,92 @@ func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_Template_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "Template", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _User_sub(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_sub(ctx, field) +func (ec *executionContext) _TemplateConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -195939,7 +111231,7 @@ func (ec *executionContext) _User_sub(ctx context.Context, field graphql.Collect }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sub, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -195948,26 +111240,32 @@ func (ec *executionContext) _User_sub(ctx context.Context, field graphql.Collect if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.TemplateEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTemplateEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_TemplateEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_TemplateEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _User_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_authProvider(ctx, field) +func (ec *executionContext) _TemplateConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -195980,7 +111278,7 @@ func (ec *executionContext) _User_authProvider(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthProvider, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -195992,26 +111290,36 @@ func (ec *executionContext) _User_authProvider(ctx context.Context, field graphq } return graphql.Null } - res := resTmp.(enums.AuthProvider) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserAuthProvider does not have child fields") + 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) _User_role(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_role(ctx, field) +func (ec *executionContext) _TemplateConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -196024,35 +111332,38 @@ func (ec *executionContext) _User_role(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.(int) fc.Result = res - return ec.marshalOUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserRole does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_personalAccessTokens(ctx, field) +func (ec *executionContext) _TemplateEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -196065,7 +111376,7 @@ func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PersonalAccessTokens(ctx) + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -196074,62 +111385,62 @@ func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.PersonalAccessToken) + res := resTmp.(*generated.Template) fc.Result = res - return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) + return ec.marshalOTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_PersonalAccessToken_id(ctx, field) + return ec.fieldContext_Template_id(ctx, field) case "createdAt": - return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + return ec.fieldContext_Template_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + return ec.fieldContext_Template_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + return ec.fieldContext_Template_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + return ec.fieldContext_Template_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + return ec.fieldContext_Template_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + return ec.fieldContext_Template_deletedBy(ctx, field) case "tags": - return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) case "name": - return ec.fieldContext_PersonalAccessToken_name(ctx, field) - case "token": - return ec.fieldContext_PersonalAccessToken_token(ctx, field) - case "expiresAt": - return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) case "description": - return ec.fieldContext_PersonalAccessToken_description(ctx, field) - case "scopes": - return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) - case "lastUsedAt": - return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) case "owner": - return ec.fieldContext_PersonalAccessToken_owner(ctx, field) - case "organizations": - return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) - case "events": - return ec.fieldContext_PersonalAccessToken_events(ctx, field) + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) }, } return fc, nil } -func (ec *executionContext) _User_tfaSettings(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_tfaSettings(ctx, field) +func (ec *executionContext) _TemplateEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -196142,63 +111453,38 @@ func (ec *executionContext) _User_tfaSettings(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TfaSettings(ctx) + 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.([]*generated.TFASetting) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_tfaSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateEdge", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_TFASetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_TFASetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_TFASetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_TFASetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_TFASetting_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_TFASetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_TFASetting_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_TFASetting_tags(ctx, field) - case "tfaSecret": - return ec.fieldContext_TFASetting_tfaSecret(ctx, field) - case "verified": - return ec.fieldContext_TFASetting_verified(ctx, field) - case "recoveryCodes": - return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) - case "totpAllowed": - return ec.fieldContext_TFASetting_totpAllowed(ctx, field) - case "owner": - return ec.fieldContext_TFASetting_owner(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_setting(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_setting(ctx, field) +func (ec *executionContext) _TemplateHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -196211,7 +111497,7 @@ func (ec *executionContext) _User_setting(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Setting(ctx) + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -196223,66 +111509,26 @@ func (ec *executionContext) _User_setting(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(*generated.UserSetting) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_groups(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_groups(ctx, field) +func (ec *executionContext) _TemplateHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -196295,137 +111541,38 @@ func (ec *executionContext) _User_groups(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Groups(ctx) + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.Group) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Group_id(ctx, field) - case "createdAt": - return ec.fieldContext_Group_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Group_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Group_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Group_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Group_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Group_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Group_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Group_ownerID(ctx, field) - case "name": - return ec.fieldContext_Group_name(ctx, field) - case "description": - return ec.fieldContext_Group_description(ctx, field) - case "gravatarLogoURL": - return ec.fieldContext_Group_gravatarLogoURL(ctx, field) - case "logoURL": - return ec.fieldContext_Group_logoURL(ctx, field) - case "displayName": - return ec.fieldContext_Group_displayName(ctx, field) - case "owner": - return ec.fieldContext_Group_owner(ctx, field) - case "controlCreators": - return ec.fieldContext_Group_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Group_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Group_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Group_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Group_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Group_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Group_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Group_templateCreators(ctx, field) - case "procedureEditors": - return ec.fieldContext_Group_procedureEditors(ctx, field) - case "procedureBlockedGroups": - return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) - case "internalPolicyEditors": - return ec.fieldContext_Group_internalPolicyEditors(ctx, field) - case "internalPolicyBlockedGroups": - return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) - case "programEditors": - return ec.fieldContext_Group_programEditors(ctx, field) - case "programBlockedGroups": - return ec.fieldContext_Group_programBlockedGroups(ctx, field) - case "programViewers": - return ec.fieldContext_Group_programViewers(ctx, field) - case "riskEditors": - return ec.fieldContext_Group_riskEditors(ctx, field) - case "riskBlockedGroups": - return ec.fieldContext_Group_riskBlockedGroups(ctx, field) - case "riskViewers": - return ec.fieldContext_Group_riskViewers(ctx, field) - case "controlObjectiveEditors": - return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) - case "controlObjectiveBlockedGroups": - return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) - case "controlObjectiveViewers": - return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) - case "controlEditors": - return ec.fieldContext_Group_controlEditors(ctx, field) - case "controlBlockedGroups": - return ec.fieldContext_Group_controlBlockedGroups(ctx, field) - case "controlViewers": - return ec.fieldContext_Group_controlViewers(ctx, field) - case "narrativeEditors": - return ec.fieldContext_Group_narrativeEditors(ctx, field) - case "narrativeBlockedGroups": - return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) - case "narrativeViewers": - return ec.fieldContext_Group_narrativeViewers(ctx, field) - case "setting": - return ec.fieldContext_Group_setting(ctx, field) - case "users": - return ec.fieldContext_Group_users(ctx, field) - case "events": - return ec.fieldContext_Group_events(ctx, field) - case "integrations": - return ec.fieldContext_Group_integrations(ctx, field) - case "files": - return ec.fieldContext_Group_files(ctx, field) - case "tasks": - return ec.fieldContext_Group_tasks(ctx, field) - case "members": - return ec.fieldContext_Group_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_organizations(ctx, field) +func (ec *executionContext) _TemplateHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -196438,7 +111585,7 @@ func (ec *executionContext) _User_organizations(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Organizations(ctx) + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -196447,134 +111594,26 @@ func (ec *executionContext) _User_organizations(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Organization) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_files(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_files(ctx, field) +func (ec *executionContext) _TemplateHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -196587,101 +111626,38 @@ func (ec *executionContext) _User_files(ctx context.Context, field graphql.Colle }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalNTemplateHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type TemplateHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_file(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_file(ctx, field) +func (ec *executionContext) _TemplateHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -196694,7 +111670,7 @@ func (ec *executionContext) _User_file(ctx context.Context, field graphql.Collec }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.File(ctx) + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -196703,92 +111679,26 @@ func (ec *executionContext) _User_file(ctx context.Context, field graphql.Collec if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.File) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_events(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_events(ctx, field) +func (ec *executionContext) _TemplateHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -196801,7 +111711,7 @@ func (ec *executionContext) _User_events(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Events(ctx) + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -196810,70 +111720,26 @@ func (ec *executionContext) _User_events(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Event) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Event_id(ctx, field) - case "createdAt": - return ec.fieldContext_Event_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Event_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Event_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Event_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Event_tags(ctx, field) - case "eventID": - return ec.fieldContext_Event_eventID(ctx, field) - case "correlationID": - return ec.fieldContext_Event_correlationID(ctx, field) - case "eventType": - return ec.fieldContext_Event_eventType(ctx, field) - case "metadata": - return ec.fieldContext_Event_metadata(ctx, field) - case "user": - return ec.fieldContext_Event_user(ctx, field) - case "group": - return ec.fieldContext_Event_group(ctx, field) - case "integration": - return ec.fieldContext_Event_integration(ctx, field) - case "organization": - return ec.fieldContext_Event_organization(ctx, field) - case "invite": - return ec.fieldContext_Event_invite(ctx, field) - case "personalAccessToken": - return ec.fieldContext_Event_personalAccessToken(ctx, field) - case "hush": - return ec.fieldContext_Event_hush(ctx, field) - case "orgmembership": - return ec.fieldContext_Event_orgmembership(ctx, field) - case "groupmembership": - return ec.fieldContext_Event_groupmembership(ctx, field) - case "subscriber": - return ec.fieldContext_Event_subscriber(ctx, field) - case "file": - return ec.fieldContext_Event_file(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_actionPlans(ctx, field) +func (ec *executionContext) _TemplateHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -196886,7 +111752,7 @@ func (ec *executionContext) _User_actionPlans(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ActionPlans(ctx) + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -196895,68 +111761,26 @@ func (ec *executionContext) _User_actionPlans(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.ActionPlan) + res := resTmp.(string) fc.Result = res - return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ActionPlan_id(ctx, field) - case "createdAt": - return ec.fieldContext_ActionPlan_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ActionPlan_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ActionPlan_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ActionPlan_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ActionPlan_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ActionPlan_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_ActionPlan_tags(ctx, field) - case "name": - return ec.fieldContext_ActionPlan_name(ctx, field) - case "description": - return ec.fieldContext_ActionPlan_description(ctx, field) - case "status": - return ec.fieldContext_ActionPlan_status(ctx, field) - case "dueDate": - return ec.fieldContext_ActionPlan_dueDate(ctx, field) - case "priority": - return ec.fieldContext_ActionPlan_priority(ctx, field) - case "source": - return ec.fieldContext_ActionPlan_source(ctx, field) - case "details": - return ec.fieldContext_ActionPlan_details(ctx, field) - case "standard": - return ec.fieldContext_ActionPlan_standard(ctx, field) - case "risk": - return ec.fieldContext_ActionPlan_risk(ctx, field) - case "control": - return ec.fieldContext_ActionPlan_control(ctx, field) - case "user": - return ec.fieldContext_ActionPlan_user(ctx, field) - case "program": - return ec.fieldContext_ActionPlan_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_subcontrols(ctx, field) +func (ec *executionContext) _TemplateHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -196969,7 +111793,7 @@ func (ec *executionContext) _User_subcontrols(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Subcontrols(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -196978,90 +111802,26 @@ func (ec *executionContext) _User_subcontrols(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Subcontrol) + res := resTmp.(string) fc.Result = res - return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Subcontrol_id(ctx, field) - case "createdAt": - return ec.fieldContext_Subcontrol_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Subcontrol_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Subcontrol_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Subcontrol_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Subcontrol_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Subcontrol_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Subcontrol_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Subcontrol_ownerID(ctx, field) - case "name": - return ec.fieldContext_Subcontrol_name(ctx, field) - case "description": - return ec.fieldContext_Subcontrol_description(ctx, field) - case "status": - return ec.fieldContext_Subcontrol_status(ctx, field) - case "subcontrolType": - return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) - case "version": - return ec.fieldContext_Subcontrol_version(ctx, field) - case "subcontrolNumber": - return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) - case "family": - return ec.fieldContext_Subcontrol_family(ctx, field) - case "class": - return ec.fieldContext_Subcontrol_class(ctx, field) - case "source": - return ec.fieldContext_Subcontrol_source(ctx, field) - case "mappedFrameworks": - return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) - case "implementationEvidence": - return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) - case "implementationStatus": - return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) - case "implementationDate": - return ec.fieldContext_Subcontrol_implementationDate(ctx, field) - case "implementationVerification": - return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) - case "implementationVerificationDate": - return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) - case "details": - return ec.fieldContext_Subcontrol_details(ctx, field) - case "owner": - return ec.fieldContext_Subcontrol_owner(ctx, field) - case "controls": - return ec.fieldContext_Subcontrol_controls(ctx, field) - case "user": - return ec.fieldContext_Subcontrol_user(ctx, field) - case "tasks": - return ec.fieldContext_Subcontrol_tasks(ctx, field) - case "notes": - return ec.fieldContext_Subcontrol_notes(ctx, field) - case "programs": - return ec.fieldContext_Subcontrol_programs(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_assignerTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_assignerTasks(ctx, field) +func (ec *executionContext) _TemplateHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -197074,7 +111834,7 @@ func (ec *executionContext) _User_assignerTasks(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AssignerTasks(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -197083,76 +111843,26 @@ func (ec *executionContext) _User_assignerTasks(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Task) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_assignerTasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_assigneeTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_assigneeTasks(ctx, field) +func (ec *executionContext) _TemplateHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -197165,7 +111875,7 @@ func (ec *executionContext) _User_assigneeTasks(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AssigneeTasks(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -197174,76 +111884,26 @@ func (ec *executionContext) _User_assigneeTasks(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Task) + res := resTmp.(string) fc.Result = res - return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_assigneeTasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Task_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Task_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Task_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Task_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Task_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Task_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Task_tags(ctx, field) - case "title": - return ec.fieldContext_Task_title(ctx, field) - case "description": - return ec.fieldContext_Task_description(ctx, field) - case "details": - return ec.fieldContext_Task_details(ctx, field) - case "status": - return ec.fieldContext_Task_status(ctx, field) - case "due": - return ec.fieldContext_Task_due(ctx, field) - case "completed": - return ec.fieldContext_Task_completed(ctx, field) - case "assigner": - return ec.fieldContext_Task_assigner(ctx, field) - case "assignee": - return ec.fieldContext_Task_assignee(ctx, field) - case "organization": - return ec.fieldContext_Task_organization(ctx, field) - case "group": - return ec.fieldContext_Task_group(ctx, field) - case "internalPolicy": - return ec.fieldContext_Task_internalPolicy(ctx, field) - case "procedure": - return ec.fieldContext_Task_procedure(ctx, field) - case "control": - return ec.fieldContext_Task_control(ctx, field) - case "controlObjective": - return ec.fieldContext_Task_controlObjective(ctx, field) - case "subcontrol": - return ec.fieldContext_Task_subcontrol(ctx, field) - case "program": - return ec.fieldContext_Task_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_programs(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_programs(ctx, field) +func (ec *executionContext) _TemplateHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -197256,7 +111916,7 @@ func (ec *executionContext) _User_programs(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Programs(ctx) + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -197265,98 +111925,26 @@ func (ec *executionContext) _User_programs(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.Program) + res := resTmp.([]string) fc.Result = res - return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_Program_id(ctx, field) - case "createdAt": - return ec.fieldContext_Program_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Program_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Program_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Program_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_Program_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Program_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_Program_tags(ctx, field) - case "ownerID": - return ec.fieldContext_Program_ownerID(ctx, field) - case "name": - return ec.fieldContext_Program_name(ctx, field) - case "description": - return ec.fieldContext_Program_description(ctx, field) - case "status": - return ec.fieldContext_Program_status(ctx, field) - case "startDate": - return ec.fieldContext_Program_startDate(ctx, field) - case "endDate": - return ec.fieldContext_Program_endDate(ctx, field) - case "auditorReady": - return ec.fieldContext_Program_auditorReady(ctx, field) - case "auditorWriteComments": - return ec.fieldContext_Program_auditorWriteComments(ctx, field) - case "auditorReadComments": - return ec.fieldContext_Program_auditorReadComments(ctx, field) - case "owner": - return ec.fieldContext_Program_owner(ctx, field) - case "blockedGroups": - return ec.fieldContext_Program_blockedGroups(ctx, field) - case "editors": - return ec.fieldContext_Program_editors(ctx, field) - case "viewers": - return ec.fieldContext_Program_viewers(ctx, field) - case "controls": - return ec.fieldContext_Program_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Program_subcontrols(ctx, field) - case "controlObjectives": - return ec.fieldContext_Program_controlObjectives(ctx, field) - case "internalPolicies": - return ec.fieldContext_Program_internalPolicies(ctx, field) - case "procedures": - return ec.fieldContext_Program_procedures(ctx, field) - case "risks": - return ec.fieldContext_Program_risks(ctx, field) - case "tasks": - return ec.fieldContext_Program_tasks(ctx, field) - case "notes": - return ec.fieldContext_Program_notes(ctx, field) - case "files": - return ec.fieldContext_Program_files(ctx, field) - case "narratives": - return ec.fieldContext_Program_narratives(ctx, field) - case "actionPlans": - return ec.fieldContext_Program_actionPlans(ctx, field) - case "standards": - return ec.fieldContext_Program_standards(ctx, field) - case "users": - return ec.fieldContext_Program_users(ctx, field) - case "members": - return ec.fieldContext_Program_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_groupMemberships(ctx, field) +func (ec *executionContext) _TemplateHistory_ownerID(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_ownerID(ctx, field) if err != nil { return graphql.Null } @@ -197369,7 +111957,7 @@ func (ec *executionContext) _User_groupMemberships(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.GroupMemberships(ctx) + return obj.OwnerID, nil }) if err != nil { ec.Error(ctx, err) @@ -197378,54 +111966,26 @@ func (ec *executionContext) _User_groupMemberships(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.GroupMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_groupMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_ownerID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_GroupMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_GroupMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_GroupMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_GroupMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_GroupMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_GroupMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_GroupMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_GroupMembership_role(ctx, field) - case "groupID": - return ec.fieldContext_GroupMembership_groupID(ctx, field) - case "userID": - return ec.fieldContext_GroupMembership_userID(ctx, field) - case "group": - return ec.fieldContext_GroupMembership_group(ctx, field) - case "user": - return ec.fieldContext_GroupMembership_user(ctx, field) - case "events": - return ec.fieldContext_GroupMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_orgMemberships(ctx, field) +func (ec *executionContext) _TemplateHistory_name(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_name(ctx, field) if err != nil { return graphql.Null } @@ -197438,63 +111998,38 @@ func (ec *executionContext) _User_orgMemberships(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OrgMemberships(ctx) + 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.([]*generated.OrgMembership) + res := resTmp.(string) fc.Result = res - return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_orgMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_OrgMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_OrgMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_OrgMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_OrgMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_OrgMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_OrgMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_OrgMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_OrgMembership_role(ctx, field) - case "organizationID": - return ec.fieldContext_OrgMembership_organizationID(ctx, field) - case "userID": - return ec.fieldContext_OrgMembership_userID(ctx, field) - case "organization": - return ec.fieldContext_OrgMembership_organization(ctx, field) - case "user": - return ec.fieldContext_OrgMembership_user(ctx, field) - case "events": - return ec.fieldContext_OrgMembership_events(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _User_programMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_User_programMemberships(ctx, field) +func (ec *executionContext) _TemplateHistory_templateType(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_templateType(ctx, field) if err != nil { return graphql.Null } @@ -197507,61 +112042,38 @@ func (ec *executionContext) _User_programMemberships(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ProgramMemberships(ctx) + return obj.TemplateType, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.ProgramMembership) + res := resTmp.(enums.DocumentType) fc.Result = res - return ec.marshalOProgramMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipᚄ(ctx, field.Selections, res) + return ec.marshalNTemplateHistoryDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_User_programMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_templateType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "User", + Object: "TemplateHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_ProgramMembership_id(ctx, field) - case "createdAt": - return ec.fieldContext_ProgramMembership_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_ProgramMembership_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) - case "role": - return ec.fieldContext_ProgramMembership_role(ctx, field) - case "programID": - return ec.fieldContext_ProgramMembership_programID(ctx, field) - case "userID": - return ec.fieldContext_ProgramMembership_userID(ctx, field) - case "program": - return ec.fieldContext_ProgramMembership_program(ctx, field) - case "user": - return ec.fieldContext_ProgramMembership_user(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + return nil, errors.New("field of type TemplateHistoryDocumentType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserBulkCreatePayload_users(ctx context.Context, field graphql.CollectedField, obj *UserBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserBulkCreatePayload_users(ctx, field) +func (ec *executionContext) _TemplateHistory_description(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_description(ctx, field) if err != nil { return graphql.Null } @@ -197574,7 +112086,7 @@ func (ec *executionContext) _UserBulkCreatePayload_users(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Users, nil + return obj.Description, nil }) if err != nil { ec.Error(ctx, err) @@ -197583,100 +112095,26 @@ func (ec *executionContext) _UserBulkCreatePayload_users(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.(string) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserBulkCreatePayload_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserBulkCreatePayload", + Object: "TemplateHistory", 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_edges(ctx, field) +func (ec *executionContext) _TemplateHistory_jsonconfig(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) if err != nil { return graphql.Null } @@ -197689,41 +112127,38 @@ func (ec *executionContext) _UserConnection_edges(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Jsonconfig, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.UserEdge) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalOUserEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserEdge(ctx, field.Selections, res) + return ec.marshalNJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_jsonconfig(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserConnection", + Object: "TemplateHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserEdge", field.Name) + return nil, errors.New("field of type JSON does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_pageInfo(ctx, field) +func (ec *executionContext) _TemplateHistory_uischema(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistory_uischema(ctx, field) if err != nil { return graphql.Null } @@ -197736,48 +112171,35 @@ func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Uischema, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(customtypes.JSONObject) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOJSON2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋcustomtypesᚐJSONObject(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistory_uischema(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserConnection", + Object: "TemplateHistory", 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 nil, errors.New("field of type JSON does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserConnection_totalCount(ctx, field) +func (ec *executionContext) _TemplateHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -197790,38 +112212,41 @@ func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + 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.(int) + res := resTmp.([]*generated.TemplateHistoryEdge) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTemplateHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserConnection", + Object: "TemplateHistoryConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_TemplateHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TemplateHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserCreatePayload_user(ctx context.Context, field graphql.CollectedField, obj *UserCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserCreatePayload_user(ctx, field) +func (ec *executionContext) _TemplateHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -197834,7 +112259,7 @@ func (ec *executionContext) _UserCreatePayload_user(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -197846,100 +112271,36 @@ func (ec *executionContext) _UserCreatePayload_user(ctx context.Context, field g } return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserCreatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserCreatePayload", + Object: "TemplateHistoryConnection", 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + 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 User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *UserDeletePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserDeletePayload_deletedID(ctx, field) +func (ec *executionContext) _TemplateHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -197952,7 +112313,7 @@ func (ec *executionContext) _UserDeletePayload_deletedID(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedID, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, err) @@ -197964,26 +112325,26 @@ func (ec *executionContext) _UserDeletePayload_deletedID(ctx context.Context, fi } return graphql.Null } - res := resTmp.(string) + res := resTmp.(int) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserDeletePayload", + Object: "TemplateHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserEdge_node(ctx, field) +func (ec *executionContext) _TemplateHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -198005,100 +112366,62 @@ func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(*generated.TemplateHistory) fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalOTemplateHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserEdge", + Object: "TemplateHistoryEdge", 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) + return ec.fieldContext_TemplateHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_TemplateHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_TemplateHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_TemplateHistory_operation(ctx, field) case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_TemplateHistory_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_TemplateHistory_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_TemplateHistory_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) + return ec.fieldContext_TemplateHistory_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) + return ec.fieldContext_TemplateHistory_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) + return ec.fieldContext_TemplateHistory_deletedBy(ctx, field) case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + return ec.fieldContext_TemplateHistory_tags(ctx, field) + case "ownerID": + return ec.fieldContext_TemplateHistory_ownerID(ctx, field) + case "name": + return ec.fieldContext_TemplateHistory_name(ctx, field) + case "templateType": + return ec.fieldContext_TemplateHistory_templateType(ctx, field) + case "description": + return ec.fieldContext_TemplateHistory_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_TemplateHistory_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_TemplateHistory_uischema(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type TemplateHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserEdge_cursor(ctx, field) +func (ec *executionContext) _TemplateHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.TemplateHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -198128,9 +112451,9 @@ func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql. return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_TemplateHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserEdge", + Object: "TemplateHistoryEdge", Field: field, IsMethod: false, IsResolver: false, @@ -198141,8 +112464,8 @@ func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, fiel return fc, nil } -func (ec *executionContext) _UserHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_id(ctx, field) +func (ec *executionContext) _User_id(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_id(ctx, field) if err != nil { return graphql.Null } @@ -198172,9 +112495,9 @@ func (ec *executionContext) _UserHistory_id(ctx context.Context, field graphql.C return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198185,8 +112508,8 @@ func (ec *executionContext) fieldContext_UserHistory_id(_ context.Context, field return fc, nil } -func (ec *executionContext) _UserHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_historyTime(ctx, field) +func (ec *executionContext) _User_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -198199,26 +112522,23 @@ func (ec *executionContext) _UserHistory_historyTime(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + 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.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198229,8 +112549,8 @@ func (ec *executionContext) fieldContext_UserHistory_historyTime(_ context.Conte return fc, nil } -func (ec *executionContext) _UserHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_ref(ctx, field) +func (ec *executionContext) _User_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -198243,7 +112563,7 @@ func (ec *executionContext) _UserHistory_ref(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -198252,26 +112572,26 @@ func (ec *executionContext) _UserHistory_ref(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_operation(ctx, field) +func (ec *executionContext) _User_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -198284,38 +112604,35 @@ func (ec *executionContext) _UserHistory_operation(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + 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 UserHistoryOpType does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_createdAt(ctx, field) +func (ec *executionContext) _User_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -198328,7 +112645,7 @@ func (ec *executionContext) _UserHistory_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -198337,26 +112654,26 @@ func (ec *executionContext) _UserHistory_createdAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_updatedAt(ctx, field) +func (ec *executionContext) _User_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -198369,7 +112686,7 @@ func (ec *executionContext) _UserHistory_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -198383,9 +112700,9 @@ func (ec *executionContext) _UserHistory_updatedAt(ctx context.Context, field gr return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198396,8 +112713,8 @@ func (ec *executionContext) fieldContext_UserHistory_updatedAt(_ context.Context return fc, nil } -func (ec *executionContext) _UserHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_createdBy(ctx, field) +func (ec *executionContext) _User_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -198410,7 +112727,7 @@ func (ec *executionContext) _UserHistory_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -198424,9 +112741,9 @@ func (ec *executionContext) _UserHistory_createdBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198437,8 +112754,8 @@ func (ec *executionContext) fieldContext_UserHistory_createdBy(_ context.Context return fc, nil } -func (ec *executionContext) _UserHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_updatedBy(ctx, field) +func (ec *executionContext) _User_tags(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_tags(ctx, field) if err != nil { return graphql.Null } @@ -198451,7 +112768,7 @@ func (ec *executionContext) _UserHistory_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -198460,14 +112777,14 @@ func (ec *executionContext) _UserHistory_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198478,8 +112795,8 @@ func (ec *executionContext) fieldContext_UserHistory_updatedBy(_ context.Context return fc, nil } -func (ec *executionContext) _UserHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_deletedAt(ctx, field) +func (ec *executionContext) _User_email(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_email(ctx, field) if err != nil { return graphql.Null } @@ -198492,35 +112809,38 @@ func (ec *executionContext) _UserHistory_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + 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.(time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + 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 Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_deletedBy(ctx, field) +func (ec *executionContext) _User_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_firstName(ctx, field) if err != nil { return graphql.Null } @@ -198533,7 +112853,7 @@ func (ec *executionContext) _UserHistory_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.FirstName, nil }) if err != nil { ec.Error(ctx, err) @@ -198547,9 +112867,9 @@ func (ec *executionContext) _UserHistory_deletedBy(ctx context.Context, field gr return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198560,8 +112880,8 @@ func (ec *executionContext) fieldContext_UserHistory_deletedBy(_ context.Context return fc, nil } -func (ec *executionContext) _UserHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_tags(ctx, field) +func (ec *executionContext) _User_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_lastName(ctx, field) if err != nil { return graphql.Null } @@ -198574,7 +112894,7 @@ func (ec *executionContext) _UserHistory_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.LastName, nil }) if err != nil { ec.Error(ctx, err) @@ -198583,14 +112903,14 @@ func (ec *executionContext) _UserHistory_tags(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198601,8 +112921,8 @@ func (ec *executionContext) fieldContext_UserHistory_tags(_ context.Context, fie return fc, nil } -func (ec *executionContext) _UserHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_email(ctx, field) +func (ec *executionContext) _User_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_displayName(ctx, field) if err != nil { return graphql.Null } @@ -198615,7 +112935,7 @@ func (ec *executionContext) _UserHistory_email(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Email, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -198632,9 +112952,9 @@ func (ec *executionContext) _UserHistory_email(ctx context.Context, field graphq return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198645,8 +112965,8 @@ func (ec *executionContext) fieldContext_UserHistory_email(_ context.Context, fi return fc, nil } -func (ec *executionContext) _UserHistory_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_firstName(ctx, field) +func (ec *executionContext) _User_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarRemoteURL(ctx, field) if err != nil { return graphql.Null } @@ -198659,7 +112979,7 @@ func (ec *executionContext) _UserHistory_firstName(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.FirstName, nil + return obj.AvatarRemoteURL, nil }) if err != nil { ec.Error(ctx, err) @@ -198668,14 +112988,14 @@ func (ec *executionContext) _UserHistory_firstName(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198686,8 +113006,8 @@ func (ec *executionContext) fieldContext_UserHistory_firstName(_ context.Context return fc, nil } -func (ec *executionContext) _UserHistory_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_lastName(ctx, field) +func (ec *executionContext) _User_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarLocalFile(ctx, field) if err != nil { return graphql.Null } @@ -198700,7 +113020,7 @@ func (ec *executionContext) _UserHistory_lastName(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastName, nil + return obj.AvatarLocalFile, nil }) if err != nil { ec.Error(ctx, err) @@ -198709,14 +113029,14 @@ func (ec *executionContext) _UserHistory_lastName(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198727,8 +113047,8 @@ func (ec *executionContext) fieldContext_UserHistory_lastName(_ context.Context, return fc, nil } -func (ec *executionContext) _UserHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_displayName(ctx, field) +func (ec *executionContext) _User_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarLocalFileID(ctx, field) if err != nil { return graphql.Null } @@ -198741,26 +113061,146 @@ func (ec *executionContext) _UserHistory_displayName(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DisplayName, nil + return obj.AvatarLocalFileID, nil }) if err != nil { ec.Error(ctx, 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.marshalOID2ᚖstring(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_User_avatarLocalFileID(_ 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_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_avatarUpdatedAt(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AvatarUpdatedAt, 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.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_User_avatarUpdatedAt(_ 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 Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _User_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_lastSeen(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.LastSeen, 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.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_User_lastSeen(_ 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 Time does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _User_sub(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_sub(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Sub, 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.marshalNString2string(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, IsMethod: false, IsResolver: false, @@ -198771,8 +113211,8 @@ func (ec *executionContext) fieldContext_UserHistory_displayName(_ context.Conte return fc, nil } -func (ec *executionContext) _UserHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) +func (ec *executionContext) _User_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_authProvider(ctx, field) if err != nil { return graphql.Null } @@ -198785,35 +113225,38 @@ func (ec *executionContext) _UserHistory_avatarRemoteURL(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarRemoteURL, nil + return obj.AuthProvider, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(enums.AuthProvider) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNUserAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + 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 nil, errors.New("field of type UserAuthProvider does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserHistory_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) +func (ec *executionContext) _User_role(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_role(ctx, field) if err != nil { return graphql.Null } @@ -198826,7 +113269,7 @@ func (ec *executionContext) _UserHistory_avatarLocalFile(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFile, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -198835,26 +113278,26 @@ func (ec *executionContext) _UserHistory_avatarLocalFile(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOUserRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + 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 nil, errors.New("field of type UserRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) +func (ec *executionContext) _User_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_personalAccessTokens(ctx, field) if err != nil { return graphql.Null } @@ -198867,7 +113310,7 @@ func (ec *executionContext) _UserHistory_avatarLocalFileID(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarLocalFileID, nil + return obj.PersonalAccessTokens(ctx) }) if err != nil { ec.Error(ctx, err) @@ -198876,26 +113319,62 @@ func (ec *executionContext) _UserHistory_avatarLocalFileID(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.([]*generated.PersonalAccessToken) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistory_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) +func (ec *executionContext) _User_tfaSettings(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_tfaSettings(ctx, field) if err != nil { return graphql.Null } @@ -198908,7 +113387,7 @@ func (ec *executionContext) _UserHistory_avatarUpdatedAt(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AvatarUpdatedAt, nil + return obj.TfaSettings(ctx) }) if err != nil { ec.Error(ctx, err) @@ -198917,26 +113396,54 @@ func (ec *executionContext) _UserHistory_avatarUpdatedAt(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.([]*generated.TFASetting) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_tfaSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistory_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_lastSeen(ctx, field) +func (ec *executionContext) _User_setting(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_setting(ctx, field) if err != nil { return graphql.Null } @@ -198949,35 +113456,78 @@ func (ec *executionContext) _UserHistory_lastSeen(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.LastSeen, nil + return obj.Setting(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_setting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistory_sub(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_sub(ctx, field) +func (ec *executionContext) _User_groups(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_groups(ctx, field) if err != nil { return graphql.Null } @@ -198990,7 +113540,7 @@ func (ec *executionContext) _UserHistory_sub(ctx context.Context, field graphql. }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Sub, nil + return obj.Groups(ctx) }) if err != nil { ec.Error(ctx, err) @@ -198999,26 +113549,128 @@ func (ec *executionContext) _UserHistory_sub(ctx context.Context, field graphql. if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.Group) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistory_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_authProvider(ctx, field) +func (ec *executionContext) _User_organizations(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_organizations(ctx, field) if err != nil { return graphql.Null } @@ -199031,38 +113683,143 @@ func (ec *executionContext) _UserHistory_authProvider(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.AuthProvider, nil + return obj.Organizations(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.AuthProvider) + res := resTmp.([]*generated.Organization) fc.Result = res - return ec.marshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserHistoryAuthProvider does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistory_role(ctx, field) +func (ec *executionContext) _User_files(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_files(ctx, field) if err != nil { return graphql.Null } @@ -199075,7 +113832,7 @@ func (ec *executionContext) _UserHistory_role(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Role, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, err) @@ -199084,26 +113841,92 @@ func (ec *executionContext) _UserHistory_role(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(enums.Role) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalOUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistory", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserHistoryRole does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryConnection_edges(ctx, field) +func (ec *executionContext) _User_file(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_file(ctx, field) if err != nil { return graphql.Null } @@ -199116,7 +113939,7 @@ func (ec *executionContext) _UserHistoryConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.File(ctx) }) if err != nil { ec.Error(ctx, err) @@ -199125,32 +113948,92 @@ func (ec *executionContext) _UserHistoryConnection_edges(ctx context.Context, fi if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.UserHistoryEdge) + res := resTmp.(*generated.File) fc.Result = res - return ec.marshalOUserHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryEdge(ctx, field.Selections, res) + return ec.marshalOFile2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFile(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_file(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistoryConnection", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { - case "node": - return ec.fieldContext_UserHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserHistoryEdge_cursor(ctx, field) + case "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserHistoryEdge", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _User_events(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_events(ctx, field) if err != nil { return graphql.Null } @@ -199163,48 +114046,79 @@ func (ec *executionContext) _UserHistoryConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.Events(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.([]*generated.Event) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistoryConnection", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, 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) + case "id": + return ec.fieldContext_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type PageInfo", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _User_actionPlans(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_actionPlans(ctx, field) if err != nil { return graphql.Null } @@ -199217,38 +114131,77 @@ func (ec *executionContext) _UserHistoryConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.ActionPlans(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.ActionPlan) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistoryConnection", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryEdge_node(ctx, field) +func (ec *executionContext) _User_subcontrols(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_subcontrols(ctx, field) if err != nil { return graphql.Null } @@ -199261,7 +114214,7 @@ func (ec *executionContext) _UserHistoryEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.Subcontrols(ctx) }) if err != nil { ec.Error(ctx, err) @@ -199270,74 +114223,90 @@ func (ec *executionContext) _UserHistoryEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.UserHistory) + res := resTmp.([]*generated.Subcontrol) fc.Result = res - return ec.marshalOUserHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistory(ctx, field.Selections, res) + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistoryEdge", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { case "id": - return ec.fieldContext_UserHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_UserHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_UserHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_UserHistory_operation(ctx, field) + return ec.fieldContext_Subcontrol_id(ctx, field) case "createdAt": - return ec.fieldContext_UserHistory_createdAt(ctx, field) + return ec.fieldContext_Subcontrol_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_UserHistory_updatedAt(ctx, field) + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_UserHistory_createdBy(ctx, field) + return ec.fieldContext_Subcontrol_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_UserHistory_updatedBy(ctx, field) + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_UserHistory_deletedAt(ctx, field) + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_UserHistory_deletedBy(ctx, field) + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) case "tags": - return ec.fieldContext_UserHistory_tags(ctx, field) - case "email": - return ec.fieldContext_UserHistory_email(ctx, field) - case "firstName": - return ec.fieldContext_UserHistory_firstName(ctx, field) - case "lastName": - return ec.fieldContext_UserHistory_lastName(ctx, field) - case "displayName": - return ec.fieldContext_UserHistory_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_UserHistory_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_UserHistory_sub(ctx, field) - case "authProvider": - return ec.fieldContext_UserHistory_authProvider(ctx, field) - case "role": - return ec.fieldContext_UserHistory_role(ctx, field) + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type UserHistory", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _User_assignerTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_assignerTasks(ctx, field) if err != nil { return graphql.Null } @@ -199350,38 +114319,85 @@ func (ec *executionContext) _UserHistoryEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.AssignerTasks(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_assignerTasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserHistoryEdge", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_Task_id(ctx, field) + case "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSearchResult_users(ctx context.Context, field graphql.CollectedField, obj *UserSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSearchResult_users(ctx, field) +func (ec *executionContext) _User_assigneeTasks(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_assigneeTasks(ctx, field) if err != nil { return graphql.Null } @@ -199394,7 +114410,7 @@ func (ec *executionContext) _UserSearchResult_users(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Users, nil + return obj.AssigneeTasks(ctx) }) if err != nil { ec.Error(ctx, err) @@ -199403,100 +114419,76 @@ func (ec *executionContext) _UserSearchResult_users(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.User) + res := resTmp.([]*generated.Task) fc.Result = res - return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSearchResult_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_assigneeTasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSearchResult", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, 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) + return ec.fieldContext_Task_id(ctx, field) case "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) + return ec.fieldContext_Task_createdAt(ctx, field) case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) + return ec.fieldContext_Task_updatedAt(ctx, field) case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) + return ec.fieldContext_Task_createdBy(ctx, field) case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) + return ec.fieldContext_Task_updatedBy(ctx, field) case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) + return ec.fieldContext_Task_deletedAt(ctx, field) case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) + return ec.fieldContext_Task_deletedBy(ctx, field) case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_id(ctx, field) +func (ec *executionContext) _User_programs(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_programs(ctx, field) if err != nil { return graphql.Null } @@ -199509,38 +114501,107 @@ func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.Programs(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.Program) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, 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") + switch field.Name { + case "id": + return ec.fieldContext_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_createdAt(ctx, field) +func (ec *executionContext) _User_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_groupMemberships(ctx, field) if err != nil { return graphql.Null } @@ -199553,7 +114614,7 @@ func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.GroupMemberships(ctx) }) if err != nil { ec.Error(ctx, err) @@ -199562,26 +114623,54 @@ func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.GroupMembership) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_groupMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_updatedAt(ctx, field) +func (ec *executionContext) _User_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_orgMemberships(ctx, field) if err != nil { return graphql.Null } @@ -199594,7 +114683,7 @@ func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.OrgMemberships(ctx) }) if err != nil { ec.Error(ctx, err) @@ -199603,26 +114692,54 @@ func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.OrgMembership) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_orgMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "User", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_createdBy(ctx, field) +func (ec *executionContext) _User_programMemberships(ctx context.Context, field graphql.CollectedField, obj *generated.User) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_User_programMemberships(ctx, field) if err != nil { return graphql.Null } @@ -199635,7 +114752,7 @@ func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + return obj.ProgramMemberships(ctx) }) if err != nil { ec.Error(ctx, err) @@ -199644,26 +114761,52 @@ func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.ProgramMembership) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOProgramMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_User_programMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "User", Field: field, - IsMethod: false, + 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") + switch field.Name { + case "id": + return ec.fieldContext_ProgramMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembership_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembership_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembership_userID(ctx, field) + case "program": + return ec.fieldContext_ProgramMembership_program(ctx, field) + case "user": + return ec.fieldContext_ProgramMembership_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_updatedBy(ctx, field) +func (ec *executionContext) _UserConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -199676,7 +114819,7 @@ func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -199685,26 +114828,32 @@ func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.([]*generated.UserEdge) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUserEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_UserEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_UserEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_tags(ctx, field) +func (ec *executionContext) _UserConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -199717,35 +114866,48 @@ func (ec *executionContext) _UserSetting_tags(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + 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.([]string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserConnection", 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") + 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) _UserSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_deletedAt(ctx, field) +func (ec *executionContext) _UserConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -199758,35 +114920,38 @@ func (ec *executionContext) _UserSetting_deletedAt(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_deletedBy(ctx, field) +func (ec *executionContext) _UserEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -199799,7 +114964,7 @@ func (ec *executionContext) _UserSetting_deletedBy(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -199808,26 +114973,100 @@ func (ec *executionContext) _UserSetting_deletedBy(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(*generated.User) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + 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 String does not have child fields") + switch field.Name { + case "id": + return ec.fieldContext_User_id(ctx, field) + case "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSetting_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_userID(ctx, field) +func (ec *executionContext) _UserEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -199840,35 +115079,38 @@ func (ec *executionContext) _UserSetting_userID(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + 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.(string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOID2string(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + 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 ID does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_locked(ctx, field) +func (ec *executionContext) _UserHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -199881,7 +115123,7 @@ func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Locked, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -199893,26 +115135,26 @@ func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_silencedAt(ctx, field) +func (ec *executionContext) _UserHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -199925,23 +115167,26 @@ func (ec *executionContext) _UserSetting_silencedAt(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SilencedAt, nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -199952,8 +115197,8 @@ func (ec *executionContext) fieldContext_UserSetting_silencedAt(_ context.Contex return fc, nil } -func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_suspendedAt(ctx, field) +func (ec *executionContext) _UserHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -199966,7 +115211,7 @@ func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SuspendedAt, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, err) @@ -199975,26 +115220,26 @@ func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_status(ctx, field) +func (ec *executionContext) _UserHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -200007,7 +115252,7 @@ func (ec *executionContext) _UserSetting_status(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -200019,26 +115264,26 @@ func (ec *executionContext) _UserSetting_status(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(enums.UserStatus) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) + return ec.marshalNUserHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserSettingUserStatus does not have child fields") + return nil, errors.New("field of type UserHistoryOpType does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_emailConfirmed(ctx, field) +func (ec *executionContext) _UserHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -200051,38 +115296,35 @@ func (ec *executionContext) _UserSetting_emailConfirmed(ctx context.Context, fie }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EmailConfirmed, nil + 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.(bool) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) +func (ec *executionContext) _UserHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -200095,7 +115337,7 @@ func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsWebauthnAllowed, nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -200104,26 +115346,26 @@ func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) +func (ec *executionContext) _UserHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -200136,7 +115378,7 @@ func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsTfaEnabled, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -200145,26 +115387,26 @@ func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_user(ctx, field) +func (ec *executionContext) _UserHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -200177,7 +115419,7 @@ func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User(ctx) + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -200186,100 +115428,26 @@ func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.User) + res := resTmp.(string) fc.Result = res - return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_User_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_User_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_User_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_User_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_User_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_User_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_User_tags(ctx, field) - case "email": - return ec.fieldContext_User_email(ctx, field) - case "firstName": - return ec.fieldContext_User_firstName(ctx, field) - case "lastName": - return ec.fieldContext_User_lastName(ctx, field) - case "displayName": - return ec.fieldContext_User_displayName(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_User_avatarRemoteURL(ctx, field) - case "avatarLocalFile": - return ec.fieldContext_User_avatarLocalFile(ctx, field) - case "avatarLocalFileID": - return ec.fieldContext_User_avatarLocalFileID(ctx, field) - case "avatarUpdatedAt": - return ec.fieldContext_User_avatarUpdatedAt(ctx, field) - case "lastSeen": - return ec.fieldContext_User_lastSeen(ctx, field) - case "sub": - return ec.fieldContext_User_sub(ctx, field) - case "authProvider": - return ec.fieldContext_User_authProvider(ctx, field) - case "role": - return ec.fieldContext_User_role(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_User_personalAccessTokens(ctx, field) - case "tfaSettings": - return ec.fieldContext_User_tfaSettings(ctx, field) - case "setting": - return ec.fieldContext_User_setting(ctx, field) - case "groups": - return ec.fieldContext_User_groups(ctx, field) - case "organizations": - return ec.fieldContext_User_organizations(ctx, field) - case "files": - return ec.fieldContext_User_files(ctx, field) - case "file": - return ec.fieldContext_User_file(ctx, field) - case "events": - return ec.fieldContext_User_events(ctx, field) - case "actionPlans": - return ec.fieldContext_User_actionPlans(ctx, field) - case "subcontrols": - return ec.fieldContext_User_subcontrols(ctx, field) - case "assignerTasks": - return ec.fieldContext_User_assignerTasks(ctx, field) - case "assigneeTasks": - return ec.fieldContext_User_assigneeTasks(ctx, field) - case "programs": - return ec.fieldContext_User_programs(ctx, field) - case "groupMemberships": - return ec.fieldContext_User_groupMemberships(ctx, field) - case "orgMemberships": - return ec.fieldContext_User_orgMemberships(ctx, field) - case "programMemberships": - return ec.fieldContext_User_programMemberships(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_defaultOrg(ctx, field) +func (ec *executionContext) _UserHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -200292,7 +115460,7 @@ func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DefaultOrg(ctx) + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -200301,134 +115469,26 @@ func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field g if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.Organization) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_defaultOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", Field: field, - IsMethod: true, + 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 "createdAt": - return ec.fieldContext_Organization_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_Organization_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_Organization_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_Organization_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_Organization_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_Organization_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_Organization_deletedBy(ctx, field) - case "name": - return ec.fieldContext_Organization_name(ctx, field) - case "displayName": - return ec.fieldContext_Organization_displayName(ctx, field) - case "description": - return ec.fieldContext_Organization_description(ctx, field) - case "personalOrg": - return ec.fieldContext_Organization_personalOrg(ctx, field) - case "avatarRemoteURL": - return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) - case "dedicatedDb": - return ec.fieldContext_Organization_dedicatedDb(ctx, field) - case "controlCreators": - return ec.fieldContext_Organization_controlCreators(ctx, field) - case "controlObjectiveCreators": - return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) - case "groupCreators": - return ec.fieldContext_Organization_groupCreators(ctx, field) - case "internalPolicyCreators": - return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) - case "narrativeCreators": - return ec.fieldContext_Organization_narrativeCreators(ctx, field) - case "procedureCreators": - return ec.fieldContext_Organization_procedureCreators(ctx, field) - case "programCreators": - return ec.fieldContext_Organization_programCreators(ctx, field) - case "riskCreators": - return ec.fieldContext_Organization_riskCreators(ctx, field) - case "templateCreators": - return ec.fieldContext_Organization_templateCreators(ctx, field) - case "parent": - return ec.fieldContext_Organization_parent(ctx, field) - case "children": - return ec.fieldContext_Organization_children(ctx, field) - case "groups": - return ec.fieldContext_Organization_groups(ctx, field) - case "templates": - return ec.fieldContext_Organization_templates(ctx, field) - case "integrations": - return ec.fieldContext_Organization_integrations(ctx, field) - case "setting": - return ec.fieldContext_Organization_setting(ctx, field) - case "documentData": - return ec.fieldContext_Organization_documentData(ctx, field) - case "orgSubscriptions": - return ec.fieldContext_Organization_orgSubscriptions(ctx, field) - case "personalAccessTokens": - return ec.fieldContext_Organization_personalAccessTokens(ctx, field) - case "apiTokens": - return ec.fieldContext_Organization_apiTokens(ctx, field) - case "users": - return ec.fieldContext_Organization_users(ctx, field) - case "invites": - return ec.fieldContext_Organization_invites(ctx, field) - case "subscribers": - return ec.fieldContext_Organization_subscribers(ctx, field) - case "events": - return ec.fieldContext_Organization_events(ctx, field) - case "secrets": - return ec.fieldContext_Organization_secrets(ctx, field) - case "files": - return ec.fieldContext_Organization_files(ctx, field) - case "entities": - return ec.fieldContext_Organization_entities(ctx, field) - case "entityTypes": - return ec.fieldContext_Organization_entityTypes(ctx, field) - case "contacts": - return ec.fieldContext_Organization_contacts(ctx, field) - case "notes": - return ec.fieldContext_Organization_notes(ctx, field) - case "tasks": - return ec.fieldContext_Organization_tasks(ctx, field) - case "programs": - return ec.fieldContext_Organization_programs(ctx, field) - case "procedures": - return ec.fieldContext_Organization_procedures(ctx, field) - case "internalPolicies": - return ec.fieldContext_Organization_internalPolicies(ctx, field) - case "risks": - return ec.fieldContext_Organization_risks(ctx, field) - case "controlObjectives": - return ec.fieldContext_Organization_controlObjectives(ctx, field) - case "narratives": - return ec.fieldContext_Organization_narratives(ctx, field) - case "controls": - return ec.fieldContext_Organization_controls(ctx, field) - case "subcontrols": - return ec.fieldContext_Organization_subcontrols(ctx, field) - case "members": - return ec.fieldContext_Organization_members(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSetting_files(ctx, field) +func (ec *executionContext) _UserHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -200441,7 +115501,7 @@ func (ec *executionContext) _UserSetting_files(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Files(ctx) + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -200450,92 +115510,26 @@ func (ec *executionContext) _UserSetting_files(ctx context.Context, field graphq if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.File) + res := resTmp.(string) fc.Result = res - return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSetting", + Object: "UserHistory", Field: field, - IsMethod: true, + IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "id": - return ec.fieldContext_File_id(ctx, field) - case "createdAt": - return ec.fieldContext_File_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_File_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_File_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_File_updatedBy(ctx, field) - case "deletedAt": - return ec.fieldContext_File_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_File_deletedBy(ctx, field) - case "tags": - return ec.fieldContext_File_tags(ctx, field) - case "providedFileName": - return ec.fieldContext_File_providedFileName(ctx, field) - case "providedFileExtension": - return ec.fieldContext_File_providedFileExtension(ctx, field) - case "providedFileSize": - return ec.fieldContext_File_providedFileSize(ctx, field) - case "persistedFileSize": - return ec.fieldContext_File_persistedFileSize(ctx, field) - case "detectedMimeType": - return ec.fieldContext_File_detectedMimeType(ctx, field) - case "md5Hash": - return ec.fieldContext_File_md5Hash(ctx, field) - case "detectedContentType": - return ec.fieldContext_File_detectedContentType(ctx, field) - case "storeKey": - return ec.fieldContext_File_storeKey(ctx, field) - case "categoryType": - return ec.fieldContext_File_categoryType(ctx, field) - case "uri": - return ec.fieldContext_File_uri(ctx, field) - case "storageScheme": - return ec.fieldContext_File_storageScheme(ctx, field) - case "storageVolume": - return ec.fieldContext_File_storageVolume(ctx, field) - case "storagePath": - return ec.fieldContext_File_storagePath(ctx, field) - case "user": - return ec.fieldContext_File_user(ctx, field) - case "organization": - return ec.fieldContext_File_organization(ctx, field) - case "group": - return ec.fieldContext_File_group(ctx, field) - case "contact": - return ec.fieldContext_File_contact(ctx, field) - case "entity": - return ec.fieldContext_File_entity(ctx, field) - case "userSetting": - return ec.fieldContext_File_userSetting(ctx, field) - case "organizationSetting": - return ec.fieldContext_File_organizationSetting(ctx, field) - case "template": - return ec.fieldContext_File_template(ctx, field) - case "documentData": - return ec.fieldContext_File_documentData(ctx, field) - case "events": - return ec.fieldContext_File_events(ctx, field) - case "program": - return ec.fieldContext_File_program(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingBulkCreatePayload_userSettings(ctx context.Context, field graphql.CollectedField, obj *UserSettingBulkCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) +func (ec *executionContext) _UserHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -200548,7 +115542,7 @@ func (ec *executionContext) _UserSettingBulkCreatePayload_userSettings(ctx conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserSettings, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) @@ -200557,66 +115551,26 @@ func (ec *executionContext) _UserSettingBulkCreatePayload_userSettings(ctx conte if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.UserSetting) + res := resTmp.([]string) fc.Result = res - return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingBulkCreatePayload_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingBulkCreatePayload", + Object: "UserHistory", 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_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingConnection_edges(ctx, field) +func (ec *executionContext) _UserHistory_email(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_email(ctx, field) if err != nil { return graphql.Null } @@ -200629,41 +115583,38 @@ func (ec *executionContext) _UserSettingConnection_edges(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + 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.([]*generated.UserSettingEdge) + res := resTmp.(string) fc.Result = res - return ec.marshalOUserSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingEdge(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingConnection", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserSettingEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserSettingEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSettingEdge", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) +func (ec *executionContext) _UserHistory_firstName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_firstName(ctx, field) if err != nil { return graphql.Null } @@ -200676,48 +115627,35 @@ func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.FirstName, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(string) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_firstName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingConnection", + Object: "UserHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingConnection_totalCount(ctx, field) +func (ec *executionContext) _UserHistory_lastName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_lastName(ctx, field) if err != nil { return graphql.Null } @@ -200730,38 +115668,35 @@ func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Contex }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.LastName, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_lastName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingConnection", + Object: "UserHistory", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingCreatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *UserSettingCreatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) +func (ec *executionContext) _UserHistory_displayName(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_displayName(ctx, field) if err != nil { return graphql.Null } @@ -200774,7 +115709,7 @@ func (ec *executionContext) _UserSettingCreatePayload_userSetting(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserSetting, nil + return obj.DisplayName, nil }) if err != nil { ec.Error(ctx, err) @@ -200786,66 +115721,67 @@ func (ec *executionContext) _UserSettingCreatePayload_userSetting(ctx context.Co } return graphql.Null } - res := resTmp.(*generated.UserSetting) + res := resTmp.(string) fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) + return ec.marshalNString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingCreatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_displayName(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingCreatePayload", + Object: "UserHistory", 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_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, errors.New("field of type String does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _UserHistory_avatarRemoteURL(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.AvatarRemoteURL, 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_UserHistory_avatarRemoteURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserHistory", + 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) _UserSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingEdge_node(ctx, field) +func (ec *executionContext) _UserHistory_avatarLocalFile(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) if err != nil { return graphql.Null } @@ -200858,7 +115794,7 @@ func (ec *executionContext) _UserSettingEdge_node(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + return obj.AvatarLocalFile, nil }) if err != nil { ec.Error(ctx, err) @@ -200867,66 +115803,26 @@ func (ec *executionContext) _UserSettingEdge_node(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*generated.UserSetting) + res := resTmp.(*string) fc.Result = res - return ec.marshalOUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_avatarLocalFile(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingEdge", + Object: "UserHistory", 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_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingEdge_cursor(ctx, field) +func (ec *executionContext) _UserHistory_avatarLocalFileID(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) if err != nil { return graphql.Null } @@ -200939,38 +115835,35 @@ func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.AvatarLocalFileID, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(*string) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalOString2ᚖstring(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_avatarLocalFileID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingEdge", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_id(ctx, field) +func (ec *executionContext) _UserHistory_avatarUpdatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) if err != nil { return graphql.Null } @@ -200983,38 +115876,35 @@ func (ec *executionContext) _UserSettingHistory_id(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.ID, nil + return obj.AvatarUpdatedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNID2string(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_avatarUpdatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistory", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_historyTime(ctx, field) +func (ec *executionContext) _UserHistory_lastSeen(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_lastSeen(ctx, field) if err != nil { return graphql.Null } @@ -201027,26 +115917,23 @@ func (ec *executionContext) _UserSettingHistory_historyTime(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.HistoryTime, nil + return obj.LastSeen, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_lastSeen(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -201057,8 +115944,8 @@ func (ec *executionContext) fieldContext_UserSettingHistory_historyTime(_ contex return fc, nil } -func (ec *executionContext) _UserSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_ref(ctx, field) +func (ec *executionContext) _UserHistory_sub(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_sub(ctx, field) if err != nil { return graphql.Null } @@ -201071,7 +115958,7 @@ func (ec *executionContext) _UserSettingHistory_ref(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Ref, nil + return obj.Sub, nil }) if err != nil { ec.Error(ctx, err) @@ -201085,9 +115972,9 @@ func (ec *executionContext) _UserSettingHistory_ref(ctx context.Context, field g return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_sub(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, @@ -201098,8 +115985,8 @@ func (ec *executionContext) fieldContext_UserSettingHistory_ref(_ context.Contex return fc, nil } -func (ec *executionContext) _UserSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_operation(ctx, field) +func (ec *executionContext) _UserHistory_authProvider(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_authProvider(ctx, field) if err != nil { return graphql.Null } @@ -201112,7 +115999,7 @@ func (ec *executionContext) _UserSettingHistory_operation(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Operation, nil + return obj.AuthProvider, nil }) if err != nil { ec.Error(ctx, err) @@ -201124,26 +116011,26 @@ func (ec *executionContext) _UserSettingHistory_operation(ctx context.Context, f } return graphql.Null } - res := resTmp.(history.OpType) + res := resTmp.(enums.AuthProvider) fc.Result = res - return ec.marshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) + return ec.marshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_authProvider(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserSettingHistoryOpType does not have child fields") + return nil, errors.New("field of type UserHistoryAuthProvider does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_createdAt(ctx, field) +func (ec *executionContext) _UserHistory_role(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistory_role(ctx, field) if err != nil { return graphql.Null } @@ -201156,7 +116043,7 @@ func (ec *executionContext) _UserSettingHistory_createdAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedAt, nil + return obj.Role, nil }) if err != nil { ec.Error(ctx, err) @@ -201165,26 +116052,26 @@ func (ec *executionContext) _UserSettingHistory_createdAt(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.(enums.Role) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOUserHistoryRole2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistory_role(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistory", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type UserHistoryRole does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) +func (ec *executionContext) _UserHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -201197,7 +116084,7 @@ func (ec *executionContext) _UserSettingHistory_updatedAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedAt, nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -201206,26 +116093,32 @@ func (ec *executionContext) _UserSettingHistory_updatedAt(ctx context.Context, f if resTmp == nil { return graphql.Null } - res := resTmp.(time.Time) + res := resTmp.([]*generated.UserHistoryEdge) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalOUserHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistoryConnection", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + switch field.Name { + case "node": + return ec.fieldContext_UserHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_UserHistoryEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserHistoryEdge", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_createdBy(ctx, field) +func (ec *executionContext) _UserHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -201238,35 +116131,48 @@ func (ec *executionContext) _UserSettingHistory_createdBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.CreatedBy, nil + 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.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistoryConnection", 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") + 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) _UserSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) +func (ec *executionContext) _UserHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -201279,35 +116185,38 @@ func (ec *executionContext) _UserSettingHistory_updatedBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UpdatedBy, nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistoryConnection", 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 nil, errors.New("field of type Int does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_tags(ctx, field) +func (ec *executionContext) _UserHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -201320,7 +116229,7 @@ func (ec *executionContext) _UserSettingHistory_tags(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Tags, nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -201329,26 +116238,74 @@ func (ec *executionContext) _UserSettingHistory_tags(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.([]string) + res := resTmp.(*generated.UserHistory) fc.Result = res - return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) + return ec.marshalOUserHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistoryEdge", 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") + switch field.Name { + case "id": + return ec.fieldContext_UserHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_UserHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_UserHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_UserHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_UserHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserHistory_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_UserHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserHistory_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_UserHistory_tags(ctx, field) + case "email": + return ec.fieldContext_UserHistory_email(ctx, field) + case "firstName": + return ec.fieldContext_UserHistory_firstName(ctx, field) + case "lastName": + return ec.fieldContext_UserHistory_lastName(ctx, field) + case "displayName": + return ec.fieldContext_UserHistory_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_UserHistory_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_UserHistory_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_UserHistory_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_UserHistory_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_UserHistory_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_UserHistory_sub(ctx, field) + case "authProvider": + return ec.fieldContext_UserHistory_authProvider(ctx, field) + case "role": + return ec.fieldContext_UserHistory_role(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserHistory", field.Name) }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) +func (ec *executionContext) _UserHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -201361,35 +116318,38 @@ func (ec *executionContext) _UserSettingHistory_deletedAt(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedAt, nil + 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.(time.Time) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserHistoryEdge", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) +func (ec *executionContext) _UserSetting_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_id(ctx, field) if err != nil { return graphql.Null } @@ -201402,35 +116362,38 @@ func (ec *executionContext) _UserSettingHistory_deletedBy(ctx context.Context, f }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeletedBy, nil + 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.(string) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_userID(ctx, field) +func (ec *executionContext) _UserSetting_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -201443,7 +116406,7 @@ func (ec *executionContext) _UserSettingHistory_userID(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserID, nil + return obj.CreatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -201452,26 +116415,26 @@ func (ec *executionContext) _UserSettingHistory_userID(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2string(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_locked(ctx, field) +func (ec *executionContext) _UserSetting_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -201484,38 +116447,35 @@ func (ec *executionContext) _UserSettingHistory_locked(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Locked, nil + 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.(bool) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) +func (ec *executionContext) _UserSetting_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -201528,7 +116488,7 @@ func (ec *executionContext) _UserSettingHistory_silencedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SilencedAt, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -201537,26 +116497,26 @@ func (ec *executionContext) _UserSettingHistory_silencedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) +func (ec *executionContext) _UserSetting_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -201569,7 +116529,7 @@ func (ec *executionContext) _UserSettingHistory_suspendedAt(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SuspendedAt, nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -201578,26 +116538,26 @@ func (ec *executionContext) _UserSettingHistory_suspendedAt(ctx context.Context, if resTmp == nil { return graphql.Null } - res := resTmp.(*time.Time) + res := resTmp.(string) fc.Result = res - return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Time does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_status(ctx, field) +func (ec *executionContext) _UserSetting_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_tags(ctx, field) if err != nil { return graphql.Null } @@ -201610,38 +116570,35 @@ func (ec *executionContext) _UserSettingHistory_status(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Status, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(enums.UserStatus) + res := resTmp.([]string) fc.Result = res - return ec.marshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type UserSettingHistoryUserStatus does not have child fields") + return nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) +func (ec *executionContext) _UserSetting_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -201654,38 +116611,35 @@ func (ec *executionContext) _UserSettingHistory_emailConfirmed(ctx context.Conte }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EmailConfirmed, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) +func (ec *executionContext) _UserSetting_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -201698,7 +116652,7 @@ func (ec *executionContext) _UserSettingHistory_isWebauthnAllowed(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsWebauthnAllowed, nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -201707,26 +116661,26 @@ func (ec *executionContext) _UserSettingHistory_isWebauthnAllowed(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", 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 nil, errors.New("field of type String does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistory_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) +func (ec *executionContext) _UserSetting_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_userID(ctx, field) if err != nil { return graphql.Null } @@ -201739,7 +116693,7 @@ func (ec *executionContext) _UserSettingHistory_isTfaEnabled(ctx context.Context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsTfaEnabled, nil + return obj.UserID, nil }) if err != nil { ec.Error(ctx, err) @@ -201748,26 +116702,26 @@ func (ec *executionContext) _UserSettingHistory_isTfaEnabled(ctx context.Context if resTmp == nil { return graphql.Null } - res := resTmp.(bool) + res := resTmp.(string) fc.Result = res - return ec.marshalOBoolean2bool(ctx, field.Selections, res) + return ec.marshalOID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistory_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistory", + Object: "UserSetting", 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 nil, errors.New("field of type ID does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) +func (ec *executionContext) _UserSetting_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_locked(ctx, field) if err != nil { return graphql.Null } @@ -201780,41 +116734,38 @@ func (ec *executionContext) _UserSettingHistoryConnection_edges(ctx context.Cont }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Edges, nil + return obj.Locked, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } return graphql.Null } - res := resTmp.([]*generated.UserSettingHistoryEdge) + res := resTmp.(bool) fc.Result = res - return ec.marshalOUserSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryEdge(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistoryConnection", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - switch field.Name { - case "node": - return ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) - case "cursor": - return ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryEdge", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) +func (ec *executionContext) _UserSetting_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_silencedAt(ctx, field) if err != nil { return graphql.Null } @@ -201827,48 +116778,35 @@ func (ec *executionContext) _UserSettingHistoryConnection_pageInfo(ctx context.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.PageInfo, nil + return obj.SilencedAt, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(entgql.PageInfo[string]) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistoryConnection", + Object: "UserSetting", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) +func (ec *executionContext) _UserSetting_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_suspendedAt(ctx, field) if err != nil { return graphql.Null } @@ -201881,38 +116819,35 @@ func (ec *executionContext) _UserSettingHistoryConnection_totalCount(ctx context }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.TotalCount, nil + return obj.SuspendedAt, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalNInt2int(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistoryConnection", + Object: "UserSetting", 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 nil, errors.New("field of type Time does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) +func (ec *executionContext) _UserSetting_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_status(ctx, field) if err != nil { return graphql.Null } @@ -201925,75 +116860,38 @@ func (ec *executionContext) _UserSettingHistoryEdge_node(ctx context.Context, fi }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Node, nil + 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.(*generated.UserSettingHistory) + res := resTmp.(enums.UserStatus) fc.Result = res - return ec.marshalOUserSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistory(ctx, field.Selections, res) + return ec.marshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistoryEdge", + Object: "UserSetting", 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_UserSettingHistory_id(ctx, field) - case "historyTime": - return ec.fieldContext_UserSettingHistory_historyTime(ctx, field) - case "ref": - return ec.fieldContext_UserSettingHistory_ref(ctx, field) - case "operation": - return ec.fieldContext_UserSettingHistory_operation(ctx, field) - case "createdAt": - return ec.fieldContext_UserSettingHistory_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSettingHistory_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSettingHistory_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSettingHistory_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSettingHistory_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSettingHistory_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSettingHistory", field.Name) + return nil, errors.New("field of type UserSettingUserStatus does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) +func (ec *executionContext) _UserSetting_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_emailConfirmed(ctx, field) if err != nil { return graphql.Null } @@ -202006,7 +116904,7 @@ func (ec *executionContext) _UserSettingHistoryEdge_cursor(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Cursor, nil + return obj.EmailConfirmed, nil }) if err != nil { ec.Error(ctx, err) @@ -202018,26 +116916,26 @@ func (ec *executionContext) _UserSettingHistoryEdge_cursor(ctx context.Context, } return graphql.Null } - res := resTmp.(entgql.Cursor[string]) + res := resTmp.(bool) fc.Result = res - return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingHistoryEdge", + Object: "UserSetting", Field: field, IsMethod: false, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { - return nil, errors.New("field of type Cursor does not have child fields") + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingSearchResult_userSettings(ctx context.Context, field graphql.CollectedField, obj *UserSettingSearchResult) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) +func (ec *executionContext) _UserSetting_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) if err != nil { return graphql.Null } @@ -202050,7 +116948,7 @@ func (ec *executionContext) _UserSettingSearchResult_userSettings(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserSettings, nil + return obj.IsWebauthnAllowed, nil }) if err != nil { ec.Error(ctx, err) @@ -202059,66 +116957,26 @@ func (ec *executionContext) _UserSettingSearchResult_userSettings(ctx context.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]*generated.UserSetting) + res := resTmp.(bool) fc.Result = res - return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingSearchResult_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingSearchResult", + Object: "UserSetting", 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_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserSettingUpdatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *UserSettingUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) +func (ec *executionContext) _UserSetting_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) if err != nil { return graphql.Null } @@ -202131,78 +116989,35 @@ func (ec *executionContext) _UserSettingUpdatePayload_userSetting(ctx context.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.UserSetting, nil + return obj.IsTfaEnabled, nil }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } - res := resTmp.(*generated.UserSetting) + res := resTmp.(bool) fc.Result = res - return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserSettingUpdatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserSettingUpdatePayload", + Object: "UserSetting", 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_UserSetting_id(ctx, field) - case "createdAt": - return ec.fieldContext_UserSetting_createdAt(ctx, field) - case "updatedAt": - return ec.fieldContext_UserSetting_updatedAt(ctx, field) - case "createdBy": - return ec.fieldContext_UserSetting_createdBy(ctx, field) - case "updatedBy": - return ec.fieldContext_UserSetting_updatedBy(ctx, field) - case "tags": - return ec.fieldContext_UserSetting_tags(ctx, field) - case "deletedAt": - return ec.fieldContext_UserSetting_deletedAt(ctx, field) - case "deletedBy": - return ec.fieldContext_UserSetting_deletedBy(ctx, field) - case "userID": - return ec.fieldContext_UserSetting_userID(ctx, field) - case "locked": - return ec.fieldContext_UserSetting_locked(ctx, field) - case "silencedAt": - return ec.fieldContext_UserSetting_silencedAt(ctx, field) - case "suspendedAt": - return ec.fieldContext_UserSetting_suspendedAt(ctx, field) - case "status": - return ec.fieldContext_UserSetting_status(ctx, field) - case "emailConfirmed": - return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) - case "isWebauthnAllowed": - return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) - case "isTfaEnabled": - return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) - case "user": - return ec.fieldContext_UserSetting_user(ctx, field) - case "defaultOrg": - return ec.fieldContext_UserSetting_defaultOrg(ctx, field) - case "files": - return ec.fieldContext_UserSetting_files(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } return fc, nil } -func (ec *executionContext) _UserUpdatePayload_user(ctx context.Context, field graphql.CollectedField, obj *UserUpdatePayload) (ret graphql.Marshaler) { - fc, err := ec.fieldContext_UserUpdatePayload_user(ctx, field) +func (ec *executionContext) _UserSetting_user(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_user(ctx, field) if err != nil { return graphql.Null } @@ -202215,28 +117030,25 @@ func (ec *executionContext) _UserUpdatePayload_user(ctx context.Context, field g }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.User, nil + return obj.User(ctx) }) if err != nil { ec.Error(ctx, err) return graphql.Null } if resTmp == nil { - if !graphql.HasFieldError(ctx, fc) { - ec.Errorf(ctx, "must not be null") - } return graphql.Null } res := resTmp.(*generated.User) fc.Result = res - return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) + return ec.marshalOUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext_UserUpdatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "UserUpdatePayload", + Object: "UserSetting", Field: field, - IsMethod: false, + IsMethod: true, IsResolver: false, Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { switch field.Name { @@ -202319,52 +117131,8 @@ func (ec *executionContext) fieldContext_UserUpdatePayload_user(_ context.Contex 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) (interface{}, 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) +func (ec *executionContext) _UserSetting_defaultOrg(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_defaultOrg(ctx, field) if err != nil { return graphql.Null } @@ -202377,7 +117145,7 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return obj.DefaultOrg(ctx) }) if err != nil { ec.Error(ctx, err) @@ -202386,70 +117154,134 @@ func (ec *executionContext) ___Directive_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(*generated.Organization) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_defaultOrg(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "UserSetting", 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_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) (interface{}, 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") + switch field.Name { + case "id": + return ec.fieldContext_Organization_id(ctx, field) + case "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) }, } 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) +func (ec *executionContext) _UserSetting_files(ctx context.Context, field graphql.CollectedField, obj *generated.UserSetting) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSetting_files(ctx, field) if err != nil { return graphql.Null } @@ -202462,48 +117294,101 @@ func (ec *executionContext) ___Directive_args(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Args, nil + return obj.Files(ctx) }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]*generated.File) fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSetting_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "UserSetting", Field: field, - IsMethod: false, + 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 "id": + return ec.fieldContext_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) }, } 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) +func (ec *executionContext) _UserSettingConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -202516,38 +117401,41 @@ func (ec *executionContext) ___Directive_isRepeatable(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsRepeatable, nil + 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.(bool) + res := resTmp.([]*generated.UserSettingEdge) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOUserSettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Directive_isRepeatable(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Directive", + Object: "UserSettingConnection", 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") + switch field.Name { + case "node": + return ec.fieldContext_UserSettingEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_UserSettingEdge_cursor(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSettingEdge", field.Name) }, } 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) +func (ec *executionContext) _UserSettingConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -202560,7 +117448,7 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.PageInfo, nil }) if err != nil { ec.Error(ctx, err) @@ -202572,26 +117460,36 @@ func (ec *executionContext) ___EnumValue_name(ctx context.Context, field graphql } return graphql.Null } - res := resTmp.(string) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___EnumValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__EnumValue", + Object: "UserSettingConnection", 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") + 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) ___EnumValue_description(ctx context.Context, field graphql.CollectedField, obj *introspection.EnumValue) (ret graphql.Marshaler) { - fc, err := ec.fieldContext___EnumValue_description(ctx, field) +func (ec *executionContext) _UserSettingConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -202604,35 +117502,38 @@ func (ec *executionContext) ___EnumValue_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return obj.TotalCount, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___EnumValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__EnumValue", + Object: "UserSettingConnection", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Int 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) +func (ec *executionContext) _UserSettingEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -202645,38 +117546,75 @@ func (ec *executionContext) ___EnumValue_isDeprecated(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil + 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.(bool) + res := resTmp.(*generated.UserSetting) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___EnumValue_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__EnumValue", + Object: "UserSettingEdge", Field: field, - IsMethod: true, + 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") + switch field.Name { + case "id": + return ec.fieldContext_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) }, } 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) +func (ec *executionContext) _UserSettingEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -202689,35 +117627,38 @@ func (ec *executionContext) ___EnumValue_deprecationReason(ctx context.Context, }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil + 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.(*string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___EnumValue_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__EnumValue", + Object: "UserSettingEdge", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Cursor 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) +func (ec *executionContext) _UserSettingHistory_id(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_id(ctx, field) if err != nil { return graphql.Null } @@ -202730,7 +117671,7 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.ID, nil }) if err != nil { ec.Error(ctx, err) @@ -202744,24 +117685,24 @@ func (ec *executionContext) ___Field_name(ctx context.Context, field graphql.Col } res := resTmp.(string) fc.Result = res - return ec.marshalNString2string(ctx, field.Selections, res) + return ec.marshalNID2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_id(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "UserSettingHistory", 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 nil, errors.New("field of type ID 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) +func (ec *executionContext) _UserSettingHistory_historyTime(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_historyTime(ctx, field) if err != nil { return graphql.Null } @@ -202774,35 +117715,38 @@ func (ec *executionContext) ___Field_description(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return obj.HistoryTime, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_historyTime(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Time 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) +func (ec *executionContext) _UserSettingHistory_ref(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_ref(ctx, field) if err != nil { return graphql.Null } @@ -202815,48 +117759,35 @@ func (ec *executionContext) ___Field_args(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Args, nil + return obj.Ref, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalN__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_args(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_ref(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "UserSettingHistory", 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) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_operation(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_operation(ctx, field) if err != nil { return graphql.Null } @@ -202869,7 +117800,7 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Operation, nil }) if err != nil { ec.Error(ctx, err) @@ -202881,48 +117812,26 @@ func (ec *executionContext) ___Field_type(ctx context.Context, field graphql.Col } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(history.OpType) fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNUserSettingHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_operation(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "UserSettingHistory", 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type UserSettingHistoryOpType does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_createdAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_createdAt(ctx, field) if err != nil { return graphql.Null } @@ -202935,38 +117844,35 @@ func (ec *executionContext) ___Field_isDeprecated(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.IsDeprecated(), nil + 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.(bool) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalNBoolean2bool(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_isDeprecated(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_createdAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Time 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) +func (ec *executionContext) _UserSettingHistory_updatedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) if err != nil { return graphql.Null } @@ -202979,7 +117885,7 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DeprecationReason(), nil + return obj.UpdatedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -202988,26 +117894,26 @@ func (ec *executionContext) ___Field_deprecationReason(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Field_deprecationReason(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_updatedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Field", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Time 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) +func (ec *executionContext) _UserSettingHistory_createdBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_createdBy(ctx, field) if err != nil { return graphql.Null } @@ -203020,26 +117926,23 @@ func (ec *executionContext) ___InputValue_name(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name, nil + return obj.CreatedBy, nil }) if err != nil { ec.Error(ctx, 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) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_createdBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "UserSettingHistory", Field: field, IsMethod: false, IsResolver: false, @@ -203050,8 +117953,8 @@ func (ec *executionContext) fieldContext___InputValue_name(_ context.Context, fi 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) +func (ec *executionContext) _UserSettingHistory_updatedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) if err != nil { return graphql.Null } @@ -203064,7 +117967,7 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return obj.UpdatedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -203073,16 +117976,16 @@ func (ec *executionContext) ___InputValue_description(ctx context.Context, field if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_updatedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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") @@ -203091,8 +117994,8 @@ func (ec *executionContext) fieldContext___InputValue_description(_ context.Cont 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) +func (ec *executionContext) _UserSettingHistory_tags(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_tags(ctx, field) if err != nil { return graphql.Null } @@ -203105,60 +118008,35 @@ func (ec *executionContext) ___InputValue_type(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Type, nil + return obj.Tags, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.([]string) fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalOString2ᚕstringᚄ(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_type(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_tags(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "UserSettingHistory", 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_deletedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) if err != nil { return graphql.Null } @@ -203171,7 +118049,7 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.DefaultValue, nil + return obj.DeletedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -203180,26 +118058,26 @@ func (ec *executionContext) ___InputValue_defaultValue(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(time.Time) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOTime2timeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___InputValue_defaultValue(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_deletedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__InputValue", + Object: "UserSettingHistory", 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 nil, errors.New("field of type Time 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) +func (ec *executionContext) _UserSettingHistory_deletedBy(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) if err != nil { return graphql.Null } @@ -203212,7 +118090,7 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return obj.DeletedBy, nil }) if err != nil { ec.Error(ctx, err) @@ -203221,16 +118099,16 @@ func (ec *executionContext) ___Schema_description(ctx context.Context, field gra if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(string) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_deletedBy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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") @@ -203239,8 +118117,8 @@ func (ec *executionContext) fieldContext___Schema_description(_ context.Context, 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) +func (ec *executionContext) _UserSettingHistory_userID(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_userID(ctx, field) if err != nil { return graphql.Null } @@ -203253,60 +118131,35 @@ func (ec *executionContext) ___Schema_types(ctx context.Context, field graphql.C }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Types(), nil + return obj.UserID, nil }) if err != nil { ec.Error(ctx, 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) + res := resTmp.(string) fc.Result = res - return ec.marshalN__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) + return ec.marshalOString2string(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_types(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_userID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type String does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_locked(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_locked(ctx, field) if err != nil { return graphql.Null } @@ -203319,7 +118172,7 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.QueryType(), nil + return obj.Locked, nil }) if err != nil { ec.Error(ctx, err) @@ -203331,48 +118184,26 @@ func (ec *executionContext) ___Schema_queryType(ctx context.Context, field graph } return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(bool) fc.Result = res - return ec.marshalN__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_queryType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_locked(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type Boolean does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_silencedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) if err != nil { return graphql.Null } @@ -203385,7 +118216,7 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.MutationType(), nil + return obj.SilencedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -203394,48 +118225,26 @@ func (ec *executionContext) ___Schema_mutationType(ctx context.Context, field gr if resTmp == nil { return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_mutationType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_silencedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_suspendedAt(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) if err != nil { return graphql.Null } @@ -203448,7 +118257,7 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SubscriptionType(), nil + return obj.SuspendedAt, nil }) if err != nil { ec.Error(ctx, err) @@ -203457,48 +118266,26 @@ func (ec *executionContext) ___Schema_subscriptionType(ctx context.Context, fiel if resTmp == nil { return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(*time.Time) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalOTime2ᚖtimeᚐTime(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_subscriptionType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_suspendedAt(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, errors.New("field of type Time does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_status(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_status(ctx, field) if err != nil { return graphql.Null } @@ -203511,7 +118298,7 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Directives(), nil + return obj.Status, nil }) if err != nil { ec.Error(ctx, err) @@ -203523,38 +118310,26 @@ func (ec *executionContext) ___Schema_directives(ctx context.Context, field grap } return graphql.Null } - res := resTmp.([]introspection.Directive) + res := resTmp.(enums.UserStatus) fc.Result = res - return ec.marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx, field.Selections, res) + return ec.marshalNUserSettingHistoryUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Schema_directives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_status(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Schema", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, 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 "locations": - return ec.fieldContext___Directive_locations(ctx, field) - case "args": - return ec.fieldContext___Directive_args(ctx, field) - case "isRepeatable": - return ec.fieldContext___Directive_isRepeatable(ctx, field) - } - return nil, fmt.Errorf("no field named %q was found under type __Directive", field.Name) + return nil, errors.New("field of type UserSettingHistoryUserStatus does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistory_emailConfirmed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) if err != nil { return graphql.Null } @@ -203567,7 +118342,7 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Kind(), nil + return obj.EmailConfirmed, nil }) if err != nil { ec.Error(ctx, err) @@ -203579,26 +118354,26 @@ func (ec *executionContext) ___Type_kind(ctx context.Context, field graphql.Coll } return graphql.Null } - res := resTmp.(string) + res := resTmp.(bool) fc.Result = res - return ec.marshalN__TypeKind2string(ctx, field.Selections, res) + return ec.marshalNBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_kind(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_emailConfirmed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + IsMethod: false, 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 nil, errors.New("field of type Boolean 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) +func (ec *executionContext) _UserSettingHistory_isWebauthnAllowed(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) if err != nil { return graphql.Null } @@ -203611,7 +118386,7 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Name(), nil + return obj.IsWebauthnAllowed, nil }) if err != nil { ec.Error(ctx, err) @@ -203620,26 +118395,26 @@ func (ec *executionContext) ___Type_name(ctx context.Context, field graphql.Coll if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_name(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_isWebauthnAllowed(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Boolean 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) +func (ec *executionContext) _UserSettingHistory_isTfaEnabled(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistory) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) if err != nil { return graphql.Null } @@ -203652,7 +118427,7 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Description(), nil + return obj.IsTfaEnabled, nil }) if err != nil { ec.Error(ctx, err) @@ -203661,26 +118436,26 @@ func (ec *executionContext) ___Type_description(ctx context.Context, field graph if resTmp == nil { return graphql.Null } - res := resTmp.(*string) + res := resTmp.(bool) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalOBoolean2bool(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_description(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistory_isTfaEnabled(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistory", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Boolean 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) +func (ec *executionContext) _UserSettingHistoryConnection_edges(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryConnection_edges(ctx, field) if err != nil { return graphql.Null } @@ -203693,7 +118468,7 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Fields(fc.Args["includeDeprecated"].(bool)), nil + return obj.Edges, nil }) if err != nil { ec.Error(ctx, err) @@ -203702,51 +118477,32 @@ func (ec *executionContext) ___Type_fields(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.([]introspection.Field) + res := resTmp.([]*generated.UserSettingHistoryEdge) fc.Result = res - return ec.marshalO__Field2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐFieldᚄ(ctx, field.Selections, res) + return ec.marshalOUserSettingHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryEdge(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_fields(ctx context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryConnection_edges(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistoryConnection", Field: field, - IsMethod: true, + IsMethod: false, 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) + case "node": + return ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) + case "cursor": + return ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Field", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingHistoryEdge", 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) +func (ec *executionContext) _UserSettingHistoryConnection_pageInfo(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryConnection_pageInfo(ctx, field) if err != nil { return graphql.Null } @@ -203759,120 +118515,48 @@ func (ec *executionContext) ___Type_interfaces(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.Interfaces(), nil + return obj.PageInfo, 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(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 + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, 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) + res := resTmp.(entgql.PageInfo[string]) fc.Result = res - return ec.marshalO__Type2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐTypeᚄ(ctx, field.Selections, res) + return ec.marshalNPageInfo2entgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_possibleTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryConnection_pageInfo(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistoryConnection", Field: field, - IsMethod: true, + 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + 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 __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type PageInfo", 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) +func (ec *executionContext) _UserSettingHistoryConnection_totalCount(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryConnection_totalCount(ctx, field) if err != nil { return graphql.Null } @@ -203885,107 +118569,38 @@ func (ec *executionContext) ___Type_enumValues(ctx context.Context, field graphq }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.EnumValues(fc.Args["includeDeprecated"].(bool)), nil + return obj.TotalCount, 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 + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") } - }() - resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, 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) + res := resTmp.(int) fc.Result = res - return ec.marshalO__InputValue2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐInputValueᚄ(ctx, field.Selections, res) + return ec.marshalNInt2int(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_inputFields(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryConnection_totalCount(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistoryConnection", Field: field, - IsMethod: true, + 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) - } - return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + return nil, errors.New("field of type Int does not have child fields") }, } 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) +func (ec *executionContext) _UserSettingHistoryEdge_node(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryEdge_node(ctx, field) if err != nil { return graphql.Null } @@ -203998,7 +118613,7 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.OfType(), nil + return obj.Node, nil }) if err != nil { ec.Error(ctx, err) @@ -204007,48 +118622,66 @@ func (ec *executionContext) ___Type_ofType(ctx context.Context, field graphql.Co if resTmp == nil { return graphql.Null } - res := resTmp.(*introspection.Type) + res := resTmp.(*generated.UserSettingHistory) fc.Result = res - return ec.marshalO__Type2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐType(ctx, field.Selections, res) + return ec.marshalOUserSettingHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistory(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_ofType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryEdge_node(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistoryEdge", Field: field, - IsMethod: true, + 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 "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 "specifiedByURL": - return ec.fieldContext___Type_specifiedByURL(ctx, field) + case "id": + return ec.fieldContext_UserSettingHistory_id(ctx, field) + case "historyTime": + return ec.fieldContext_UserSettingHistory_historyTime(ctx, field) + case "ref": + return ec.fieldContext_UserSettingHistory_ref(ctx, field) + case "operation": + return ec.fieldContext_UserSettingHistory_operation(ctx, field) + case "createdAt": + return ec.fieldContext_UserSettingHistory_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSettingHistory_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSettingHistory_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSettingHistory_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSettingHistory_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSettingHistory_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSettingHistory_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSettingHistory_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSettingHistory_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSettingHistory_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSettingHistory_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSettingHistory_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSettingHistory_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSettingHistory_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSettingHistory_isTfaEnabled(ctx, field) } - return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + return nil, fmt.Errorf("no field named %q was found under type UserSettingHistory", field.Name) }, } 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) +func (ec *executionContext) _UserSettingHistoryEdge_cursor(ctx context.Context, field graphql.CollectedField, obj *generated.UserSettingHistoryEdge) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingHistoryEdge_cursor(ctx, field) if err != nil { return graphql.Null } @@ -204061,28 +118694,31 @@ func (ec *executionContext) ___Type_specifiedByURL(ctx context.Context, field gr }() resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { ctx = rctx // use context from middleware stack in children - return obj.SpecifiedByURL(), nil + 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.(*string) + res := resTmp.(entgql.Cursor[string]) fc.Result = res - return ec.marshalOString2ᚖstring(ctx, field.Selections, res) + return ec.marshalNCursor2entgoᚗioᚋcontribᚋentgqlᚐCursor(ctx, field.Selections, res) } -func (ec *executionContext) fieldContext___Type_specifiedByURL(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { +func (ec *executionContext) fieldContext_UserSettingHistoryEdge_cursor(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { fc = &graphql.FieldContext{ - Object: "__Type", + Object: "UserSettingHistoryEdge", Field: field, - IsMethod: true, + 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 nil, errors.New("field of type Cursor does not have child fields") }, } return fc, nil @@ -207771,68 +122407,6 @@ func (ec *executionContext) unmarshalInputActionPlanWhereInput(ctx context.Conte return it, nil } -func (ec *executionContext) unmarshalInputAuditLogWhereInput(ctx context.Context, obj interface{}) (AuditLogWhereInput, error) { - var it AuditLogWhereInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"refID", "updatedBy", "operation", "table", "before", "after"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "refID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("refID")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.RefID = data - case "updatedBy": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("updatedBy")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.UpdatedBy = data - case "operation": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("operation")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Operation = data - case "table": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("table")) - data, err := ec.unmarshalOID2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Table = data - case "before": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("before")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.Before = data - case "after": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("after")) - data, err := ec.unmarshalOTime2ᚖtimeᚐTime(ctx, v) - if err != nil { - return it, err - } - it.After = data - } - } - - return it, nil -} - func (ec *executionContext) unmarshalInputContactHistoryWhereInput(ctx context.Context, obj interface{}) (generated.ContactHistoryWhereInput, error) { var it generated.ContactHistoryWhereInput asMap := map[string]interface{}{} @@ -219255,229 +133829,20 @@ func (ec *executionContext) unmarshalInputCreateControlInput(ctx context.Context return it, err } it.ProcedureIDs = data - case "subcontrolIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.SubcontrolIDs = data - case "controlObjectiveIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ControlObjectiveIDs = data - case "standardIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.StandardIDs = data - case "narrativeIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("narrativeIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.NarrativeIDs = data - case "riskIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.RiskIDs = data - case "actionPlanIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionPlanIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ActionPlanIDs = data - case "taskIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.TaskIDs = data - case "programIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("programIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProgramIDs = data - } - } - - return it, nil -} - -func (ec *executionContext) unmarshalInputCreateControlObjectiveInput(ctx context.Context, obj interface{}) (generated.CreateControlObjectiveInput, error) { - var it generated.CreateControlObjectiveInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"tags", "name", "description", "status", "controlObjectiveType", "version", "controlNumber", "family", "class", "source", "mappedFrameworks", "details", "ownerID", "blockedGroupIDs", "editorIDs", "viewerIDs", "internalPolicyIDs", "controlIDs", "procedureIDs", "riskIDs", "subcontrolIDs", "standardIDs", "narrativeIDs", "taskIDs", "programIDs"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "tags": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) - data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.Tags = 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 "status": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Status = data - case "controlObjectiveType": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveType")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ControlObjectiveType = data - case "version": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Version = data - case "controlNumber": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.ControlNumber = data - case "family": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Family = data - case "class": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.Class = 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 "mappedFrameworks": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) - data, err := ec.unmarshalOString2ᚖstring(ctx, v) - if err != nil { - return it, err - } - it.MappedFrameworks = data - case "details": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) - data, err := ec.unmarshalOMap2map(ctx, v) - if err != nil { - return it, err - } - it.Details = data - case "ownerID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) - data, err := ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - it.OwnerID = data - case "blockedGroupIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blockedGroupIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.BlockedGroupIDs = data - case "editorIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("editorIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.EditorIDs = data - case "viewerIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viewerIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ViewerIDs = data - case "internalPolicyIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internalPolicyIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.InternalPolicyIDs = data - case "controlIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ControlIDs = data - case "procedureIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) - data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) - if err != nil { - return it, err - } - it.ProcedureIDs = data - case "riskIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) + case "subcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.RiskIDs = data - case "subcontrolIDs": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) + it.SubcontrolIDs = data + case "controlObjectiveIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.SubcontrolIDs = data + it.ControlObjectiveIDs = data case "standardIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -219492,6 +133857,20 @@ func (ec *executionContext) unmarshalInputCreateControlObjectiveInput(ctx contex return it, err } it.NarrativeIDs = data + case "riskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskIDs = data + case "actionPlanIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("actionPlanIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ActionPlanIDs = data case "taskIDs": ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskIDs")) data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) @@ -219512,34 +133891,195 @@ func (ec *executionContext) unmarshalInputCreateControlObjectiveInput(ctx contex return it, nil } -func (ec *executionContext) unmarshalInputCreateControlWithSubcontrolsInput(ctx context.Context, obj interface{}) (CreateControlWithSubcontrolsInput, error) { - var it CreateControlWithSubcontrolsInput +func (ec *executionContext) unmarshalInputCreateControlObjectiveInput(ctx context.Context, obj interface{}) (generated.CreateControlObjectiveInput, error) { + var it generated.CreateControlObjectiveInput asMap := map[string]interface{}{} for k, v := range obj.(map[string]interface{}) { asMap[k] = v } - fieldsInOrder := [...]string{"control", "subcontrols"} + fieldsInOrder := [...]string{"tags", "name", "description", "status", "controlObjectiveType", "version", "controlNumber", "family", "class", "source", "mappedFrameworks", "details", "ownerID", "blockedGroupIDs", "editorIDs", "viewerIDs", "internalPolicyIDs", "controlIDs", "procedureIDs", "riskIDs", "subcontrolIDs", "standardIDs", "narrativeIDs", "taskIDs", "programIDs"} for _, k := range fieldsInOrder { v, ok := asMap[k] if !ok { continue } switch k { - case "control": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("control")) - data, err := ec.unmarshalOCreateControlInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx, v) + case "tags": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("tags")) + data, err := ec.unmarshalOString2ᚕstringᚄ(ctx, v) if err != nil { return it, err } - it.Control = data - case "subcontrols": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrols")) - data, err := ec.unmarshalOCreateSubcontrolInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInputᚄ(ctx, v) + it.Tags = 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 "status": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("status")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Status = data + case "controlObjectiveType": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlObjectiveType")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlObjectiveType = data + case "version": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("version")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Version = data + case "controlNumber": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlNumber")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.ControlNumber = data + case "family": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("family")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Family = data + case "class": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("class")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) + if err != nil { + return it, err + } + it.Class = 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 "mappedFrameworks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("mappedFrameworks")) + data, err := ec.unmarshalOString2ᚖstring(ctx, v) if err != nil { return it, err } - it.Subcontrols = data + it.MappedFrameworks = data + case "details": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("details")) + data, err := ec.unmarshalOMap2map(ctx, v) + if err != nil { + return it, err + } + it.Details = data + case "ownerID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("ownerID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.OwnerID = data + case "blockedGroupIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("blockedGroupIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.BlockedGroupIDs = data + case "editorIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("editorIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.EditorIDs = data + case "viewerIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("viewerIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ViewerIDs = data + case "internalPolicyIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internalPolicyIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.InternalPolicyIDs = data + case "controlIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controlIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ControlIDs = data + case "procedureIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedureIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProcedureIDs = data + case "riskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("riskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.RiskIDs = data + case "subcontrolIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrolIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.SubcontrolIDs = data + case "standardIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standardIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.StandardIDs = data + case "narrativeIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("narrativeIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.NarrativeIDs = data + case "taskIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("taskIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.TaskIDs = data + case "programIDs": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("programIDs")) + data, err := ec.unmarshalOID2ᚕstringᚄ(ctx, v) + if err != nil { + return it, err + } + it.ProgramIDs = data } } @@ -220082,75 +134622,6 @@ func (ec *executionContext) unmarshalInputCreateFileInput(ctx context.Context, o return it, nil } -func (ec *executionContext) unmarshalInputCreateFullProgramInput(ctx context.Context, obj interface{}) (CreateFullProgramInput, error) { - var it CreateFullProgramInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"program", "standard", "controls", "risks", "internalPolicies", "procedures", "members"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "program": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("program")) - data, err := ec.unmarshalNCreateProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInput(ctx, v) - if err != nil { - return it, err - } - it.Program = data - case "standard": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standard")) - data, err := ec.unmarshalNCreateStandardInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx, v) - if err != nil { - return it, err - } - it.Standard = data - case "controls": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controls")) - data, err := ec.unmarshalOCreateControlWithSubcontrolsInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateControlWithSubcontrolsInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Controls = data - case "risks": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("risks")) - data, err := ec.unmarshalOCreateRiskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Risks = data - case "internalPolicies": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internalPolicies")) - data, err := ec.unmarshalOCreateInternalPolicyInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.InternalPolicies = data - case "procedures": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedures")) - data, err := ec.unmarshalOCreateProcedureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Procedures = data - case "members": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("members")) - data, err := ec.unmarshalOCreateMemberWithProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateMemberWithProgramInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Members = data - } - } - - return it, nil -} - func (ec *executionContext) unmarshalInputCreateGroupInput(ctx context.Context, obj interface{}) (generated.CreateGroupInput, error) { var it generated.CreateGroupInput asMap := map[string]interface{}{} @@ -220944,40 +135415,6 @@ func (ec *executionContext) unmarshalInputCreateInviteInput(ctx context.Context, return it, nil } -func (ec *executionContext) unmarshalInputCreateMemberWithProgramInput(ctx context.Context, obj interface{}) (CreateMemberWithProgramInput, error) { - var it CreateMemberWithProgramInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"role", "userID"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "role": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) - data, err := ec.unmarshalOProgramMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) - if err != nil { - return it, err - } - it.Role = data - case "userID": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) - data, err := ec.unmarshalNID2string(ctx, v) - if err != nil { - return it, err - } - it.UserID = data - } - } - - return it, nil -} - func (ec *executionContext) unmarshalInputCreateNarrativeInput(ctx context.Context, obj interface{}) (generated.CreateNarrativeInput, error) { var it generated.CreateNarrativeInput asMap := map[string]interface{}{} @@ -222209,40 +136646,6 @@ func (ec *executionContext) unmarshalInputCreateProgramMembershipInput(ctx conte return it, nil } -func (ec *executionContext) unmarshalInputCreateProgramWithMembersInput(ctx context.Context, obj interface{}) (CreateProgramWithMembersInput, error) { - var it CreateProgramWithMembersInput - asMap := map[string]interface{}{} - for k, v := range obj.(map[string]interface{}) { - asMap[k] = v - } - - fieldsInOrder := [...]string{"program", "members"} - for _, k := range fieldsInOrder { - v, ok := asMap[k] - if !ok { - continue - } - switch k { - case "program": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("program")) - data, err := ec.unmarshalNCreateProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInput(ctx, v) - if err != nil { - return it, err - } - it.Program = data - case "members": - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("members")) - data, err := ec.unmarshalOCreateMemberWithProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateMemberWithProgramInputᚄ(ctx, v) - if err != nil { - return it, err - } - it.Members = data - } - } - - return it, nil -} - func (ec *executionContext) unmarshalInputCreateRiskInput(ctx context.Context, obj interface{}) (generated.CreateRiskInput, error) { var it generated.CreateRiskInput asMap := map[string]interface{}{} @@ -307309,9 +221712,9 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj switch obj := (obj).(type) { case nil: return graphql.Null - case AuditLog: + case model.AuditLog: return ec._AuditLog(ctx, sel, &obj) - case *AuditLog: + case *model.AuditLog: if obj == nil { return graphql.Null } @@ -307656,225 +222059,6 @@ func (ec *executionContext) _Node(ctx context.Context, sel ast.SelectionSet, obj } } -func (ec *executionContext) _SearchResult(ctx context.Context, sel ast.SelectionSet, obj SearchResult) graphql.Marshaler { - switch obj := (obj).(type) { - case nil: - return graphql.Null - case APITokenSearchResult: - return ec._APITokenSearchResult(ctx, sel, &obj) - case *APITokenSearchResult: - if obj == nil { - return graphql.Null - } - return ec._APITokenSearchResult(ctx, sel, obj) - case ActionPlanSearchResult: - return ec._ActionPlanSearchResult(ctx, sel, &obj) - case *ActionPlanSearchResult: - if obj == nil { - return graphql.Null - } - return ec._ActionPlanSearchResult(ctx, sel, obj) - case ContactSearchResult: - return ec._ContactSearchResult(ctx, sel, &obj) - case *ContactSearchResult: - if obj == nil { - return graphql.Null - } - return ec._ContactSearchResult(ctx, sel, obj) - case ControlSearchResult: - return ec._ControlSearchResult(ctx, sel, &obj) - case *ControlSearchResult: - if obj == nil { - return graphql.Null - } - return ec._ControlSearchResult(ctx, sel, obj) - case ControlObjectiveSearchResult: - return ec._ControlObjectiveSearchResult(ctx, sel, &obj) - case *ControlObjectiveSearchResult: - if obj == nil { - return graphql.Null - } - return ec._ControlObjectiveSearchResult(ctx, sel, obj) - case DocumentDataSearchResult: - return ec._DocumentDataSearchResult(ctx, sel, &obj) - case *DocumentDataSearchResult: - if obj == nil { - return graphql.Null - } - return ec._DocumentDataSearchResult(ctx, sel, obj) - case EntitySearchResult: - return ec._EntitySearchResult(ctx, sel, &obj) - case *EntitySearchResult: - if obj == nil { - return graphql.Null - } - return ec._EntitySearchResult(ctx, sel, obj) - case EntityTypeSearchResult: - return ec._EntityTypeSearchResult(ctx, sel, &obj) - case *EntityTypeSearchResult: - if obj == nil { - return graphql.Null - } - return ec._EntityTypeSearchResult(ctx, sel, obj) - case EventSearchResult: - return ec._EventSearchResult(ctx, sel, &obj) - case *EventSearchResult: - if obj == nil { - return graphql.Null - } - return ec._EventSearchResult(ctx, sel, obj) - case FileSearchResult: - return ec._FileSearchResult(ctx, sel, &obj) - case *FileSearchResult: - if obj == nil { - return graphql.Null - } - return ec._FileSearchResult(ctx, sel, obj) - case GroupSearchResult: - return ec._GroupSearchResult(ctx, sel, &obj) - case *GroupSearchResult: - if obj == nil { - return graphql.Null - } - return ec._GroupSearchResult(ctx, sel, obj) - case GroupSettingSearchResult: - return ec._GroupSettingSearchResult(ctx, sel, &obj) - case *GroupSettingSearchResult: - if obj == nil { - return graphql.Null - } - return ec._GroupSettingSearchResult(ctx, sel, obj) - case IntegrationSearchResult: - return ec._IntegrationSearchResult(ctx, sel, &obj) - case *IntegrationSearchResult: - if obj == nil { - return graphql.Null - } - return ec._IntegrationSearchResult(ctx, sel, obj) - case InternalPolicySearchResult: - return ec._InternalPolicySearchResult(ctx, sel, &obj) - case *InternalPolicySearchResult: - if obj == nil { - return graphql.Null - } - return ec._InternalPolicySearchResult(ctx, sel, obj) - case NarrativeSearchResult: - return ec._NarrativeSearchResult(ctx, sel, &obj) - case *NarrativeSearchResult: - if obj == nil { - return graphql.Null - } - return ec._NarrativeSearchResult(ctx, sel, obj) - case OrgSubscriptionSearchResult: - return ec._OrgSubscriptionSearchResult(ctx, sel, &obj) - case *OrgSubscriptionSearchResult: - if obj == nil { - return graphql.Null - } - return ec._OrgSubscriptionSearchResult(ctx, sel, obj) - case OrganizationSearchResult: - return ec._OrganizationSearchResult(ctx, sel, &obj) - case *OrganizationSearchResult: - if obj == nil { - return graphql.Null - } - return ec._OrganizationSearchResult(ctx, sel, obj) - case OrganizationSettingSearchResult: - return ec._OrganizationSettingSearchResult(ctx, sel, &obj) - case *OrganizationSettingSearchResult: - if obj == nil { - return graphql.Null - } - return ec._OrganizationSettingSearchResult(ctx, sel, obj) - case PersonalAccessTokenSearchResult: - return ec._PersonalAccessTokenSearchResult(ctx, sel, &obj) - case *PersonalAccessTokenSearchResult: - if obj == nil { - return graphql.Null - } - return ec._PersonalAccessTokenSearchResult(ctx, sel, obj) - case ProcedureSearchResult: - return ec._ProcedureSearchResult(ctx, sel, &obj) - case *ProcedureSearchResult: - if obj == nil { - return graphql.Null - } - return ec._ProcedureSearchResult(ctx, sel, obj) - case ProgramSearchResult: - return ec._ProgramSearchResult(ctx, sel, &obj) - case *ProgramSearchResult: - if obj == nil { - return graphql.Null - } - return ec._ProgramSearchResult(ctx, sel, obj) - case RiskSearchResult: - return ec._RiskSearchResult(ctx, sel, &obj) - case *RiskSearchResult: - if obj == nil { - return graphql.Null - } - return ec._RiskSearchResult(ctx, sel, obj) - case StandardSearchResult: - return ec._StandardSearchResult(ctx, sel, &obj) - case *StandardSearchResult: - if obj == nil { - return graphql.Null - } - return ec._StandardSearchResult(ctx, sel, obj) - case SubcontrolSearchResult: - return ec._SubcontrolSearchResult(ctx, sel, &obj) - case *SubcontrolSearchResult: - if obj == nil { - return graphql.Null - } - return ec._SubcontrolSearchResult(ctx, sel, obj) - case SubscriberSearchResult: - return ec._SubscriberSearchResult(ctx, sel, &obj) - case *SubscriberSearchResult: - if obj == nil { - return graphql.Null - } - return ec._SubscriberSearchResult(ctx, sel, obj) - case TFASettingSearchResult: - return ec._TFASettingSearchResult(ctx, sel, &obj) - case *TFASettingSearchResult: - if obj == nil { - return graphql.Null - } - return ec._TFASettingSearchResult(ctx, sel, obj) - case TaskSearchResult: - return ec._TaskSearchResult(ctx, sel, &obj) - case *TaskSearchResult: - if obj == nil { - return graphql.Null - } - return ec._TaskSearchResult(ctx, sel, obj) - case TemplateSearchResult: - return ec._TemplateSearchResult(ctx, sel, &obj) - case *TemplateSearchResult: - if obj == nil { - return graphql.Null - } - return ec._TemplateSearchResult(ctx, sel, obj) - case UserSearchResult: - return ec._UserSearchResult(ctx, sel, &obj) - case *UserSearchResult: - if obj == nil { - return graphql.Null - } - return ec._UserSearchResult(ctx, sel, obj) - case UserSettingSearchResult: - return ec._UserSettingSearchResult(ctx, sel, &obj) - case *UserSettingSearchResult: - if obj == nil { - return graphql.Null - } - return ec._UserSettingSearchResult(ctx, sel, obj) - default: - panic(fmt.Errorf("unexpected type %T", obj)) - } -} - // endregion ************************** interface.gotpl *************************** // region **************************** object.gotpl **************************** @@ -307985,42 +222169,6 @@ func (ec *executionContext) _APIToken(ctx context.Context, sel ast.SelectionSet, return out } -var aPITokenBulkCreatePayloadImplementors = []string{"APITokenBulkCreatePayload"} - -func (ec *executionContext) _APITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("APITokenBulkCreatePayload") - case "apiTokens": - out.Values[i] = ec._APITokenBulkCreatePayload_apiTokens(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 aPITokenConnectionImplementors = []string{"APITokenConnection"} func (ec *executionContext) _APITokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenConnection) graphql.Marshaler { @@ -308067,84 +222215,6 @@ func (ec *executionContext) _APITokenConnection(ctx context.Context, sel ast.Sel return out } -var aPITokenCreatePayloadImplementors = []string{"APITokenCreatePayload"} - -func (ec *executionContext) _APITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("APITokenCreatePayload") - case "apiToken": - out.Values[i] = ec._APITokenCreatePayload_apiToken(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 aPITokenDeletePayloadImplementors = []string{"APITokenDeletePayload"} - -func (ec *executionContext) _APITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("APITokenDeletePayload") - case "deletedID": - out.Values[i] = ec._APITokenDeletePayload_deletedID(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 aPITokenEdgeImplementors = []string{"APITokenEdge"} func (ec *executionContext) _APITokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.APITokenEdge) graphql.Marshaler { @@ -308186,81 +222256,6 @@ func (ec *executionContext) _APITokenEdge(ctx context.Context, sel ast.Selection return out } -var aPITokenSearchResultImplementors = []string{"APITokenSearchResult", "SearchResult"} - -func (ec *executionContext) _APITokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *APITokenSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("APITokenSearchResult") - case "apiTokens": - out.Values[i] = ec._APITokenSearchResult_apiTokens(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 aPITokenUpdatePayloadImplementors = []string{"APITokenUpdatePayload"} - -func (ec *executionContext) _APITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *APITokenUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("APITokenUpdatePayload") - case "apiToken": - out.Values[i] = ec._APITokenUpdatePayload_apiToken(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 actionPlanImplementors = []string{"ActionPlan", "Node"} func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlan) graphql.Marshaler { @@ -308496,42 +222491,6 @@ func (ec *executionContext) _ActionPlan(ctx context.Context, sel ast.SelectionSe return out } -var actionPlanBulkCreatePayloadImplementors = []string{"ActionPlanBulkCreatePayload"} - -func (ec *executionContext) _ActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlanBulkCreatePayload") - case "actionPlans": - out.Values[i] = ec._ActionPlanBulkCreatePayload_actionPlans(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 actionPlanConnectionImplementors = []string{"ActionPlanConnection"} func (ec *executionContext) _ActionPlanConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanConnection) graphql.Marshaler { @@ -308578,84 +222537,6 @@ func (ec *executionContext) _ActionPlanConnection(ctx context.Context, sel ast.S return out } -var actionPlanCreatePayloadImplementors = []string{"ActionPlanCreatePayload"} - -func (ec *executionContext) _ActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlanCreatePayload") - case "actionPlan": - out.Values[i] = ec._ActionPlanCreatePayload_actionPlan(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 actionPlanDeletePayloadImplementors = []string{"ActionPlanDeletePayload"} - -func (ec *executionContext) _ActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlanDeletePayload") - case "deletedID": - out.Values[i] = ec._ActionPlanDeletePayload_deletedID(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 actionPlanEdgeImplementors = []string{"ActionPlanEdge"} func (ec *executionContext) _ActionPlanEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ActionPlanEdge) graphql.Marshaler { @@ -308866,217 +222747,6 @@ func (ec *executionContext) _ActionPlanHistoryEdge(ctx context.Context, sel ast. return out } -var actionPlanSearchResultImplementors = []string{"ActionPlanSearchResult", "SearchResult"} - -func (ec *executionContext) _ActionPlanSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlanSearchResult") - case "actionPlans": - out.Values[i] = ec._ActionPlanSearchResult_actionPlans(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 actionPlanUpdatePayloadImplementors = []string{"ActionPlanUpdatePayload"} - -func (ec *executionContext) _ActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ActionPlanUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ActionPlanUpdatePayload") - case "actionPlan": - out.Values[i] = ec._ActionPlanUpdatePayload_actionPlan(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 auditLogImplementors = []string{"AuditLog", "Node"} - -func (ec *executionContext) _AuditLog(ctx context.Context, sel ast.SelectionSet, obj *AuditLog) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditLogImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AuditLog") - case "table": - out.Values[i] = ec._AuditLog_table(ctx, field, obj) - case "time": - out.Values[i] = ec._AuditLog_time(ctx, field, obj) - case "id": - out.Values[i] = ec._AuditLog_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "operation": - out.Values[i] = ec._AuditLog_operation(ctx, field, obj) - case "changes": - out.Values[i] = ec._AuditLog_changes(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._AuditLog_updatedBy(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 auditLogConnectionImplementors = []string{"AuditLogConnection"} - -func (ec *executionContext) _AuditLogConnection(ctx context.Context, sel ast.SelectionSet, obj *AuditLogConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditLogConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AuditLogConnection") - case "edges": - out.Values[i] = ec._AuditLogConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._AuditLogConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._AuditLogConnection_totalCount(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 auditLogEdgeImplementors = []string{"AuditLogEdge"} - -func (ec *executionContext) _AuditLogEdge(ctx context.Context, sel ast.SelectionSet, obj *AuditLogEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, auditLogEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("AuditLogEdge") - case "node": - out.Values[i] = ec._AuditLogEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._AuditLogEdge_cursor(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 contactImplementors = []string{"Contact", "Node"} func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, obj *generated.Contact) graphql.Marshaler { @@ -309251,42 +222921,6 @@ func (ec *executionContext) _Contact(ctx context.Context, sel ast.SelectionSet, return out } -var contactBulkCreatePayloadImplementors = []string{"ContactBulkCreatePayload"} - -func (ec *executionContext) _ContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ContactBulkCreatePayload") - case "contacts": - out.Values[i] = ec._ContactBulkCreatePayload_contacts(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 contactConnectionImplementors = []string{"ContactConnection"} func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactConnection) graphql.Marshaler { @@ -309333,84 +222967,6 @@ func (ec *executionContext) _ContactConnection(ctx context.Context, sel ast.Sele return out } -var contactCreatePayloadImplementors = []string{"ContactCreatePayload"} - -func (ec *executionContext) _ContactCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ContactCreatePayload") - case "contact": - out.Values[i] = ec._ContactCreatePayload_contact(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 contactDeletePayloadImplementors = []string{"ContactDeletePayload"} - -func (ec *executionContext) _ContactDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ContactDeletePayload") - case "deletedID": - out.Values[i] = ec._ContactDeletePayload_deletedID(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 contactEdgeImplementors = []string{"ContactEdge"} func (ec *executionContext) _ContactEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ContactEdge) graphql.Marshaler { @@ -309626,81 +223182,6 @@ func (ec *executionContext) _ContactHistoryEdge(ctx context.Context, sel ast.Sel return out } -var contactSearchResultImplementors = []string{"ContactSearchResult", "SearchResult"} - -func (ec *executionContext) _ContactSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ContactSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ContactSearchResult") - case "contacts": - out.Values[i] = ec._ContactSearchResult_contacts(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 contactUpdatePayloadImplementors = []string{"ContactUpdatePayload"} - -func (ec *executionContext) _ContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ContactUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, contactUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ContactUpdatePayload") - case "contact": - out.Values[i] = ec._ContactUpdatePayload_contact(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 *generated.Control) graphql.Marshaler { @@ -310218,42 +223699,6 @@ func (ec *executionContext) _Control(ctx context.Context, sel ast.SelectionSet, return out } -var controlBulkCreatePayloadImplementors = []string{"ControlBulkCreatePayload"} - -func (ec *executionContext) _ControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlBulkCreatePayload") - case "controls": - out.Values[i] = ec._ControlBulkCreatePayload_controls(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 controlConnectionImplementors = []string{"ControlConnection"} func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlConnection) graphql.Marshaler { @@ -310300,84 +223745,6 @@ func (ec *executionContext) _ControlConnection(ctx context.Context, sel ast.Sele return out } -var controlCreatePayloadImplementors = []string{"ControlCreatePayload"} - -func (ec *executionContext) _ControlCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlCreatePayload") - case "control": - out.Values[i] = ec._ControlCreatePayload_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 controlDeletePayloadImplementors = []string{"ControlDeletePayload"} - -func (ec *executionContext) _ControlDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlDeletePayload") - case "deletedID": - out.Values[i] = ec._ControlDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - var controlEdgeImplementors = []string{"ControlEdge"} func (ec *executionContext) _ControlEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlEdge) graphql.Marshaler { @@ -311118,42 +224485,6 @@ func (ec *executionContext) _ControlObjective(ctx context.Context, sel ast.Selec return out } -var controlObjectiveBulkCreatePayloadImplementors = []string{"ControlObjectiveBulkCreatePayload"} - -func (ec *executionContext) _ControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjectiveBulkCreatePayload") - case "controlObjectives": - out.Values[i] = ec._ControlObjectiveBulkCreatePayload_controlObjectives(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 controlObjectiveConnectionImplementors = []string{"ControlObjectiveConnection"} func (ec *executionContext) _ControlObjectiveConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveConnection) graphql.Marshaler { @@ -311200,84 +224531,6 @@ func (ec *executionContext) _ControlObjectiveConnection(ctx context.Context, sel return out } -var controlObjectiveCreatePayloadImplementors = []string{"ControlObjectiveCreatePayload"} - -func (ec *executionContext) _ControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjectiveCreatePayload") - case "controlObjective": - out.Values[i] = ec._ControlObjectiveCreatePayload_controlObjective(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 controlObjectiveDeletePayloadImplementors = []string{"ControlObjectiveDeletePayload"} - -func (ec *executionContext) _ControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjectiveDeletePayload") - case "deletedID": - out.Values[i] = ec._ControlObjectiveDeletePayload_deletedID(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 controlObjectiveEdgeImplementors = []string{"ControlObjectiveEdge"} func (ec *executionContext) _ControlObjectiveEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ControlObjectiveEdge) graphql.Marshaler { @@ -311501,156 +224754,6 @@ func (ec *executionContext) _ControlObjectiveHistoryEdge(ctx context.Context, se return out } -var controlObjectiveSearchResultImplementors = []string{"ControlObjectiveSearchResult", "SearchResult"} - -func (ec *executionContext) _ControlObjectiveSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjectiveSearchResult") - case "controlObjectives": - out.Values[i] = ec._ControlObjectiveSearchResult_controlObjectives(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 controlObjectiveUpdatePayloadImplementors = []string{"ControlObjectiveUpdatePayload"} - -func (ec *executionContext) _ControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlObjectiveUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlObjectiveUpdatePayload") - case "controlObjective": - out.Values[i] = ec._ControlObjectiveUpdatePayload_controlObjective(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 controlSearchResultImplementors = []string{"ControlSearchResult", "SearchResult"} - -func (ec *executionContext) _ControlSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ControlSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlSearchResult") - case "controls": - out.Values[i] = ec._ControlSearchResult_controls(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 controlUpdatePayloadImplementors = []string{"ControlUpdatePayload"} - -func (ec *executionContext) _ControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ControlUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, controlUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ControlUpdatePayload") - case "control": - out.Values[i] = ec._ControlUpdatePayload_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 documentDataImplementors = []string{"DocumentData", "Node"} func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentData) graphql.Marshaler { @@ -311795,75 +224898,39 @@ func (ec *executionContext) _DocumentData(ctx context.Context, sel ast.Selection } out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) - case "files": - 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._DocumentData_files(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, - }) - } + case "files": + field := field - return out -} + 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._DocumentData_files(ctx, field, obj) + return res + } -var documentDataBulkCreatePayloadImplementors = []string{"DocumentDataBulkCreatePayload"} + 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) + }) -func (ec *executionContext) _DocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataBulkCreatePayloadImplementors) + // don't run the out.Concurrently() call below + out.Values[i] = graphql.Null + continue + } - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataBulkCreatePayload") - case "documentData": - out.Values[i] = ec._DocumentDataBulkCreatePayload_documentData(ctx, field, obj) + out.Concurrently(i, func(ctx context.Context) graphql.Marshaler { return innerFunc(ctx, out) }) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -311933,84 +225000,6 @@ func (ec *executionContext) _DocumentDataConnection(ctx context.Context, sel ast return out } -var documentDataCreatePayloadImplementors = []string{"DocumentDataCreatePayload"} - -func (ec *executionContext) _DocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataCreatePayload") - case "documentData": - out.Values[i] = ec._DocumentDataCreatePayload_documentData(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 documentDataDeletePayloadImplementors = []string{"DocumentDataDeletePayload"} - -func (ec *executionContext) _DocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataDeletePayload") - case "deletedID": - out.Values[i] = ec._DocumentDataDeletePayload_deletedID(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 documentDataEdgeImplementors = []string{"DocumentDataEdge"} func (ec *executionContext) _DocumentDataEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.DocumentDataEdge) graphql.Marshaler { @@ -312216,81 +225205,6 @@ func (ec *executionContext) _DocumentDataHistoryEdge(ctx context.Context, sel as return out } -var documentDataSearchResultImplementors = []string{"DocumentDataSearchResult", "SearchResult"} - -func (ec *executionContext) _DocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataSearchResult") - case "documentData": - out.Values[i] = ec._DocumentDataSearchResult_documentData(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 documentDataUpdatePayloadImplementors = []string{"DocumentDataUpdatePayload"} - -func (ec *executionContext) _DocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *DocumentDataUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, documentDataUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("DocumentDataUpdatePayload") - case "documentData": - out.Values[i] = ec._DocumentDataUpdatePayload_documentData(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 entityImplementors = []string{"Entity", "Node"} func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, obj *generated.Entity) graphql.Marshaler { @@ -312556,140 +225470,26 @@ func (ec *executionContext) _Entity(ctx context.Context, sel ast.SelectionSet, o return out } -var entityBulkCreatePayloadImplementors = []string{"EntityBulkCreatePayload"} - -func (ec *executionContext) _EntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityBulkCreatePayload") - case "entities": - out.Values[i] = ec._EntityBulkCreatePayload_entities(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 entityConnectionImplementors = []string{"EntityConnection"} - -func (ec *executionContext) _EntityConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityConnection") - case "edges": - out.Values[i] = ec._EntityConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EntityConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._EntityConnection_totalCount(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 entityCreatePayloadImplementors = []string{"EntityCreatePayload"} +var entityConnectionImplementors = []string{"EntityConnection"} -func (ec *executionContext) _EntityCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityCreatePayloadImplementors) +func (ec *executionContext) _EntityConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityCreatePayload") - case "entity": - out.Values[i] = ec._EntityCreatePayload_entity(ctx, field, obj) + out.Values[i] = graphql.MarshalString("EntityConnection") + case "edges": + out.Values[i] = ec._EntityConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntityConnection_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 entityDeletePayloadImplementors = []string{"EntityDeletePayload"} - -func (ec *executionContext) _EntityDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityDeletePayload") - case "deletedID": - out.Values[i] = ec._EntityDeletePayload_deletedID(ctx, field, obj) + case "totalCount": + out.Values[i] = ec._EntityConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -312923,42 +225723,6 @@ func (ec *executionContext) _EntityHistoryEdge(ctx context.Context, sel ast.Sele return out } -var entitySearchResultImplementors = []string{"EntitySearchResult", "SearchResult"} - -func (ec *executionContext) _EntitySearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntitySearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entitySearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntitySearchResult") - case "entities": - out.Values[i] = ec._EntitySearchResult_entities(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 entityTypeImplementors = []string{"EntityType", "Node"} func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityType) graphql.Marshaler { @@ -313085,42 +225849,6 @@ func (ec *executionContext) _EntityType(ctx context.Context, sel ast.SelectionSe return out } -var entityTypeBulkCreatePayloadImplementors = []string{"EntityTypeBulkCreatePayload"} - -func (ec *executionContext) _EntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeBulkCreatePayload") - case "entityTypes": - out.Values[i] = ec._EntityTypeBulkCreatePayload_entityTypes(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 entityTypeConnectionImplementors = []string{"EntityTypeConnection"} func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeConnection) graphql.Marshaler { @@ -313167,84 +225895,6 @@ func (ec *executionContext) _EntityTypeConnection(ctx context.Context, sel ast.S return out } -var entityTypeCreatePayloadImplementors = []string{"EntityTypeCreatePayload"} - -func (ec *executionContext) _EntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeCreatePayload") - case "entityType": - out.Values[i] = ec._EntityTypeCreatePayload_entityType(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 entityTypeDeletePayloadImplementors = []string{"EntityTypeDeletePayload"} - -func (ec *executionContext) _EntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeDeletePayload") - case "deletedID": - out.Values[i] = ec._EntityTypeDeletePayload_deletedID(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 entityTypeEdgeImplementors = []string{"EntityTypeEdge"} func (ec *executionContext) _EntityTypeEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeEdge) graphql.Marshaler { @@ -313358,142 +226008,26 @@ func (ec *executionContext) _EntityTypeHistory(ctx context.Context, sel ast.Sele return out } -var entityTypeHistoryConnectionImplementors = []string{"EntityTypeHistoryConnection"} - -func (ec *executionContext) _EntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeHistoryConnection") - case "edges": - out.Values[i] = ec._EntityTypeHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._EntityTypeHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._EntityTypeHistoryConnection_totalCount(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 entityTypeHistoryEdgeImplementors = []string{"EntityTypeHistoryEdge"} - -func (ec *executionContext) _EntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeHistoryEdge") - case "node": - out.Values[i] = ec._EntityTypeHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._EntityTypeHistoryEdge_cursor(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 entityTypeSearchResultImplementors = []string{"EntityTypeSearchResult", "SearchResult"} - -func (ec *executionContext) _EntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeSearchResult") - case "entityTypes": - out.Values[i] = ec._EntityTypeSearchResult_entityTypes(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 entityTypeUpdatePayloadImplementors = []string{"EntityTypeUpdatePayload"} +var entityTypeHistoryConnectionImplementors = []string{"EntityTypeHistoryConnection"} -func (ec *executionContext) _EntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityTypeUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeUpdatePayloadImplementors) +func (ec *executionContext) _EntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityTypeUpdatePayload") - case "entityType": - out.Values[i] = ec._EntityTypeUpdatePayload_entityType(ctx, field, obj) + out.Values[i] = graphql.MarshalString("EntityTypeHistoryConnection") + case "edges": + out.Values[i] = ec._EntityTypeHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._EntityTypeHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._EntityTypeHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -313520,19 +226054,21 @@ func (ec *executionContext) _EntityTypeUpdatePayload(ctx context.Context, sel as return out } -var entityUpdatePayloadImplementors = []string{"EntityUpdatePayload"} +var entityTypeHistoryEdgeImplementors = []string{"EntityTypeHistoryEdge"} -func (ec *executionContext) _EntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EntityUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, entityUpdatePayloadImplementors) +func (ec *executionContext) _EntityTypeHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EntityTypeHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("EntityUpdatePayload") - case "entity": - out.Values[i] = ec._EntityUpdatePayload_entity(ctx, field, obj) + out.Values[i] = graphql.MarshalString("EntityTypeHistoryEdge") + case "node": + out.Values[i] = ec._EntityTypeHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._EntityTypeHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -313982,42 +226518,6 @@ func (ec *executionContext) _Event(ctx context.Context, sel ast.SelectionSet, ob return out } -var eventBulkCreatePayloadImplementors = []string{"EventBulkCreatePayload"} - -func (ec *executionContext) _EventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventBulkCreatePayload") - case "events": - out.Values[i] = ec._EventBulkCreatePayload_events(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 eventConnectionImplementors = []string{"EventConnection"} func (ec *executionContext) _EventConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.EventConnection) graphql.Marshaler { @@ -314064,84 +226564,6 @@ func (ec *executionContext) _EventConnection(ctx context.Context, sel ast.Select return out } -var eventCreatePayloadImplementors = []string{"EventCreatePayload"} - -func (ec *executionContext) _EventCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventCreatePayload") - case "event": - out.Values[i] = ec._EventCreatePayload_event(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 eventDeletePayloadImplementors = []string{"EventDeletePayload"} - -func (ec *executionContext) _EventDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *EventDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventDeletePayload") - case "deletedID": - out.Values[i] = ec._EventDeletePayload_deletedID(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 eventEdgeImplementors = []string{"EventEdge"} func (ec *executionContext) _EventEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.EventEdge) graphql.Marshaler { @@ -314342,81 +226764,6 @@ func (ec *executionContext) _EventHistoryEdge(ctx context.Context, sel ast.Selec return out } -var eventSearchResultImplementors = []string{"EventSearchResult", "SearchResult"} - -func (ec *executionContext) _EventSearchResult(ctx context.Context, sel ast.SelectionSet, obj *EventSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventSearchResult") - case "events": - out.Values[i] = ec._EventSearchResult_events(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 eventUpdatePayloadImplementors = []string{"EventUpdatePayload"} - -func (ec *executionContext) _EventUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *EventUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, eventUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("EventUpdatePayload") - case "event": - out.Values[i] = ec._EventUpdatePayload_event(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 fileImplementors = []string{"File", "Node"} func (ec *executionContext) _File(ctx context.Context, sel ast.SelectionSet, obj *generated.File) graphql.Marshaler { @@ -314914,45 +227261,6 @@ func (ec *executionContext) _FileConnection(ctx context.Context, sel ast.Selecti return out } -var fileDeletePayloadImplementors = []string{"FileDeletePayload"} - -func (ec *executionContext) _FileDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *FileDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileDeletePayload") - case "deletedID": - out.Values[i] = ec._FileDeletePayload_deletedID(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 fileEdgeImplementors = []string{"FileEdge"} func (ec *executionContext) _FileEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.FileEdge) graphql.Marshaler { @@ -315181,42 +227489,6 @@ func (ec *executionContext) _FileHistoryEdge(ctx context.Context, sel ast.Select return out } -var fileSearchResultImplementors = []string{"FileSearchResult", "SearchResult"} - -func (ec *executionContext) _FileSearchResult(ctx context.Context, sel ast.SelectionSet, obj *FileSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, fileSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("FileSearchResult") - case "files": - out.Values[i] = ec._FileSearchResult_files(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 groupImplementors = []string{"Group", "Node"} func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, obj *generated.Group) graphql.Marshaler { @@ -316479,42 +228751,6 @@ func (ec *executionContext) _Group(ctx context.Context, sel ast.SelectionSet, ob return out } -var groupBulkCreatePayloadImplementors = []string{"GroupBulkCreatePayload"} - -func (ec *executionContext) _GroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupBulkCreatePayload") - case "groups": - out.Values[i] = ec._GroupBulkCreatePayload_groups(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 groupConnectionImplementors = []string{"GroupConnection"} func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupConnection) graphql.Marshaler { @@ -316561,84 +228797,6 @@ func (ec *executionContext) _GroupConnection(ctx context.Context, sel ast.Select return out } -var groupCreatePayloadImplementors = []string{"GroupCreatePayload"} - -func (ec *executionContext) _GroupCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupCreatePayload") - case "group": - out.Values[i] = ec._GroupCreatePayload_group(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 groupDeletePayloadImplementors = []string{"GroupDeletePayload"} - -func (ec *executionContext) _GroupDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupDeletePayload") - case "deletedID": - out.Values[i] = ec._GroupDeletePayload_deletedID(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 groupEdgeImplementors = []string{"GroupEdge"} func (ec *executionContext) _GroupEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupEdge) graphql.Marshaler { @@ -317021,42 +229179,6 @@ func (ec *executionContext) _GroupMembership(ctx context.Context, sel ast.Select return out } -var groupMembershipBulkCreatePayloadImplementors = []string{"GroupMembershipBulkCreatePayload"} - -func (ec *executionContext) _GroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipBulkCreatePayload") - case "groupMemberships": - out.Values[i] = ec._GroupMembershipBulkCreatePayload_groupMemberships(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 groupMembershipConnectionImplementors = []string{"GroupMembershipConnection"} func (ec *executionContext) _GroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipConnection) graphql.Marshaler { @@ -317103,84 +229225,6 @@ func (ec *executionContext) _GroupMembershipConnection(ctx context.Context, sel return out } -var groupMembershipCreatePayloadImplementors = []string{"GroupMembershipCreatePayload"} - -func (ec *executionContext) _GroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipCreatePayload") - case "groupMembership": - out.Values[i] = ec._GroupMembershipCreatePayload_groupMembership(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 groupMembershipDeletePayloadImplementors = []string{"GroupMembershipDeletePayload"} - -func (ec *executionContext) _GroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipDeletePayload") - case "deletedID": - out.Values[i] = ec._GroupMembershipDeletePayload_deletedID(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 groupMembershipEdgeImplementors = []string{"GroupMembershipEdge"} func (ec *executionContext) _GroupMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupMembershipEdge) graphql.Marshaler { @@ -317387,81 +229431,6 @@ func (ec *executionContext) _GroupMembershipHistoryEdge(ctx context.Context, sel return out } -var groupMembershipUpdatePayloadImplementors = []string{"GroupMembershipUpdatePayload"} - -func (ec *executionContext) _GroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupMembershipUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupMembershipUpdatePayload") - case "groupMembership": - out.Values[i] = ec._GroupMembershipUpdatePayload_groupMembership(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 groupSearchResultImplementors = []string{"GroupSearchResult", "SearchResult"} - -func (ec *executionContext) _GroupSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GroupSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSearchResult") - case "groups": - out.Values[i] = ec._GroupSearchResult_groups(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 groupSettingImplementors = []string{"GroupSetting", "Node"} func (ec *executionContext) _GroupSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSetting) graphql.Marshaler { @@ -317564,42 +229533,6 @@ func (ec *executionContext) _GroupSetting(ctx context.Context, sel ast.Selection return out } -var groupSettingBulkCreatePayloadImplementors = []string{"GroupSettingBulkCreatePayload"} - -func (ec *executionContext) _GroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingBulkCreatePayload") - case "groupSettings": - out.Values[i] = ec._GroupSettingBulkCreatePayload_groupSettings(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 groupSettingConnectionImplementors = []string{"GroupSettingConnection"} func (ec *executionContext) _GroupSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingConnection) graphql.Marshaler { @@ -317646,84 +229579,6 @@ func (ec *executionContext) _GroupSettingConnection(ctx context.Context, sel ast return out } -var groupSettingCreatePayloadImplementors = []string{"GroupSettingCreatePayload"} - -func (ec *executionContext) _GroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingCreatePayload") - case "groupSetting": - out.Values[i] = ec._GroupSettingCreatePayload_groupSetting(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 groupSettingDeletePayloadImplementors = []string{"GroupSettingDeletePayload"} - -func (ec *executionContext) _GroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingDeletePayload") - case "deletedID": - out.Values[i] = ec._GroupSettingDeletePayload_deletedID(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 groupSettingEdgeImplementors = []string{"GroupSettingEdge"} func (ec *executionContext) _GroupSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingEdge) graphql.Marshaler { @@ -317892,378 +229747,21 @@ func (ec *executionContext) _GroupSettingHistoryConnection(ctx context.Context, return out } -var groupSettingHistoryEdgeImplementors = []string{"GroupSettingHistoryEdge"} - -func (ec *executionContext) _GroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingHistoryEdge") - case "node": - out.Values[i] = ec._GroupSettingHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._GroupSettingHistoryEdge_cursor(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 groupSettingSearchResultImplementors = []string{"GroupSettingSearchResult", "SearchResult"} - -func (ec *executionContext) _GroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingSearchResult") - case "groupSettings": - out.Values[i] = ec._GroupSettingSearchResult_groupSettings(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 groupSettingUpdatePayloadImplementors = []string{"GroupSettingUpdatePayload"} - -func (ec *executionContext) _GroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupSettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupSettingUpdatePayload") - case "groupSetting": - out.Values[i] = ec._GroupSettingUpdatePayload_groupSetting(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 groupUpdatePayloadImplementors = []string{"GroupUpdatePayload"} - -func (ec *executionContext) _GroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *GroupUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, groupUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("GroupUpdatePayload") - case "group": - out.Values[i] = ec._GroupUpdatePayload_group(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 hushImplementors = []string{"Hush", "Node"} - -func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj *generated.Hush) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("Hush") - case "id": - out.Values[i] = ec._Hush_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._Hush_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._Hush_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._Hush_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._Hush_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._Hush_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._Hush_deletedBy(ctx, field, obj) - case "name": - out.Values[i] = ec._Hush_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "description": - out.Values[i] = ec._Hush_description(ctx, field, obj) - case "kind": - out.Values[i] = ec._Hush_kind(ctx, field, obj) - case "secretName": - out.Values[i] = ec._Hush_secretName(ctx, field, obj) - case "integrations": - 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._Hush_integrations(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, _ *graphql.FieldSet) (res graphql.Marshaler) { - defer func() { - if r := recover(); r != nil { - ec.Error(ctx, ec.Recover(ctx, r)) - } - }() - res = ec._Hush_organization(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 "events": - 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._Hush_events(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 hushBulkCreatePayloadImplementors = []string{"HushBulkCreatePayload"} - -func (ec *executionContext) _HushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("HushBulkCreatePayload") - case "hushes": - out.Values[i] = ec._HushBulkCreatePayload_hushes(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 hushConnectionImplementors = []string{"HushConnection"} +var groupSettingHistoryEdgeImplementors = []string{"GroupSettingHistoryEdge"} -func (ec *executionContext) _HushConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.HushConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushConnectionImplementors) +func (ec *executionContext) _GroupSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.GroupSettingHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushConnection") - case "edges": - out.Values[i] = ec._HushConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._HushConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._HushConnection_totalCount(ctx, field, obj) + out.Values[i] = graphql.MarshalString("GroupSettingHistoryEdge") + case "node": + out.Values[i] = ec._GroupSettingHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._GroupSettingHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -318290,22 +229788,144 @@ func (ec *executionContext) _HushConnection(ctx context.Context, sel ast.Selecti return out } -var hushCreatePayloadImplementors = []string{"HushCreatePayload"} +var hushImplementors = []string{"Hush", "Node"} -func (ec *executionContext) _HushCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushCreatePayloadImplementors) +func (ec *executionContext) _Hush(ctx context.Context, sel ast.SelectionSet, obj *generated.Hush) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushCreatePayload") - case "hush": - out.Values[i] = ec._HushCreatePayload_hush(ctx, field, obj) + out.Values[i] = graphql.MarshalString("Hush") + case "id": + out.Values[i] = ec._Hush_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._Hush_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._Hush_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._Hush_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._Hush_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._Hush_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._Hush_deletedBy(ctx, field, obj) + case "name": + out.Values[i] = ec._Hush_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "description": + out.Values[i] = ec._Hush_description(ctx, field, obj) + case "kind": + out.Values[i] = ec._Hush_kind(ctx, field, obj) + case "secretName": + out.Values[i] = ec._Hush_secretName(ctx, field, obj) + case "integrations": + 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._Hush_integrations(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, _ *graphql.FieldSet) (res graphql.Marshaler) { + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + } + }() + res = ec._Hush_organization(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 "events": + 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._Hush_events(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)) } @@ -318329,19 +229949,26 @@ func (ec *executionContext) _HushCreatePayload(ctx context.Context, sel ast.Sele return out } -var hushDeletePayloadImplementors = []string{"HushDeletePayload"} +var hushConnectionImplementors = []string{"HushConnection"} -func (ec *executionContext) _HushDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *HushDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushDeletePayloadImplementors) +func (ec *executionContext) _HushConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.HushConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("HushDeletePayload") - case "deletedID": - out.Values[i] = ec._HushDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = graphql.MarshalString("HushConnection") + case "edges": + out.Values[i] = ec._HushConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._HushConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._HushConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -318570,45 +230197,6 @@ func (ec *executionContext) _HushHistoryEdge(ctx context.Context, sel ast.Select return out } -var hushUpdatePayloadImplementors = []string{"HushUpdatePayload"} - -func (ec *executionContext) _HushUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *HushUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, hushUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("HushUpdatePayload") - case "hush": - out.Values[i] = ec._HushUpdatePayload_hush(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 integrationImplementors = []string{"Integration", "Node"} func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionSet, obj *generated.Integration) graphql.Marshaler { @@ -318772,42 +230360,6 @@ func (ec *executionContext) _Integration(ctx context.Context, sel ast.SelectionS return out } -var integrationBulkCreatePayloadImplementors = []string{"IntegrationBulkCreatePayload"} - -func (ec *executionContext) _IntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationBulkCreatePayload") - case "integrations": - out.Values[i] = ec._IntegrationBulkCreatePayload_integrations(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 integrationConnectionImplementors = []string{"IntegrationConnection"} func (ec *executionContext) _IntegrationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationConnection) graphql.Marshaler { @@ -318854,84 +230406,6 @@ func (ec *executionContext) _IntegrationConnection(ctx context.Context, sel ast. return out } -var integrationCreatePayloadImplementors = []string{"IntegrationCreatePayload"} - -func (ec *executionContext) _IntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationCreatePayload") - case "integration": - out.Values[i] = ec._IntegrationCreatePayload_integration(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 integrationDeletePayloadImplementors = []string{"IntegrationDeletePayload"} - -func (ec *executionContext) _IntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationDeletePayload") - case "deletedID": - out.Values[i] = ec._IntegrationDeletePayload_deletedID(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 integrationEdgeImplementors = []string{"IntegrationEdge"} func (ec *executionContext) _IntegrationEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.IntegrationEdge) graphql.Marshaler { @@ -319136,81 +230610,6 @@ func (ec *executionContext) _IntegrationHistoryEdge(ctx context.Context, sel ast return out } -var integrationSearchResultImplementors = []string{"IntegrationSearchResult", "SearchResult"} - -func (ec *executionContext) _IntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *IntegrationSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationSearchResult") - case "integrations": - out.Values[i] = ec._IntegrationSearchResult_integrations(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 integrationUpdatePayloadImplementors = []string{"IntegrationUpdatePayload"} - -func (ec *executionContext) _IntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *IntegrationUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, integrationUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("IntegrationUpdatePayload") - case "integration": - out.Values[i] = ec._IntegrationUpdatePayload_integration(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 internalPolicyImplementors = []string{"InternalPolicy", "Node"} func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicy) graphql.Marshaler { @@ -319582,42 +230981,6 @@ func (ec *executionContext) _InternalPolicy(ctx context.Context, sel ast.Selecti return out } -var internalPolicyBulkCreatePayloadImplementors = []string{"InternalPolicyBulkCreatePayload"} - -func (ec *executionContext) _InternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicyBulkCreatePayload") - case "internalPolicies": - out.Values[i] = ec._InternalPolicyBulkCreatePayload_internalPolicies(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 internalPolicyConnectionImplementors = []string{"InternalPolicyConnection"} func (ec *executionContext) _InternalPolicyConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyConnection) graphql.Marshaler { @@ -319664,84 +231027,6 @@ func (ec *executionContext) _InternalPolicyConnection(ctx context.Context, sel a return out } -var internalPolicyCreatePayloadImplementors = []string{"InternalPolicyCreatePayload"} - -func (ec *executionContext) _InternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicyCreatePayload") - case "internalPolicy": - out.Values[i] = ec._InternalPolicyCreatePayload_internalPolicy(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 internalPolicyDeletePayloadImplementors = []string{"InternalPolicyDeletePayload"} - -func (ec *executionContext) _InternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicyDeletePayload") - case "deletedID": - out.Values[i] = ec._InternalPolicyDeletePayload_deletedID(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 internalPolicyEdgeImplementors = []string{"InternalPolicyEdge"} func (ec *executionContext) _InternalPolicyEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyEdge) graphql.Marshaler { @@ -319886,89 +231171,12 @@ func (ec *executionContext) _InternalPolicyHistoryConnection(ctx context.Context out.Values[i] = ec._InternalPolicyHistoryConnection_pageInfo(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._InternalPolicyHistoryConnection_totalCount(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 internalPolicyHistoryEdgeImplementors = []string{"InternalPolicyHistoryEdge"} - -func (ec *executionContext) _InternalPolicyHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicyHistoryEdge") - case "node": - out.Values[i] = ec._InternalPolicyHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._InternalPolicyHistoryEdge_cursor(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 internalPolicySearchResultImplementors = []string{"InternalPolicySearchResult", "SearchResult"} - -func (ec *executionContext) _InternalPolicySearchResult(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicySearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicySearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicySearchResult") - case "internalPolicies": - out.Values[i] = ec._InternalPolicySearchResult_internalPolicies(ctx, field, obj) + } + case "totalCount": + out.Values[i] = ec._InternalPolicyHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -319992,19 +231200,21 @@ func (ec *executionContext) _InternalPolicySearchResult(ctx context.Context, sel return out } -var internalPolicyUpdatePayloadImplementors = []string{"InternalPolicyUpdatePayload"} +var internalPolicyHistoryEdgeImplementors = []string{"InternalPolicyHistoryEdge"} -func (ec *executionContext) _InternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *InternalPolicyUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyUpdatePayloadImplementors) +func (ec *executionContext) _InternalPolicyHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InternalPolicyHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("InternalPolicyUpdatePayload") - case "internalPolicy": - out.Values[i] = ec._InternalPolicyUpdatePayload_internalPolicy(ctx, field, obj) + out.Values[i] = graphql.MarshalString("InternalPolicyHistoryEdge") + case "node": + out.Values[i] = ec._InternalPolicyHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._InternalPolicyHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -320174,42 +231384,6 @@ func (ec *executionContext) _Invite(ctx context.Context, sel ast.SelectionSet, o return out } -var inviteBulkCreatePayloadImplementors = []string{"InviteBulkCreatePayload"} - -func (ec *executionContext) _InviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteBulkCreatePayload") - case "invites": - out.Values[i] = ec._InviteBulkCreatePayload_invites(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 inviteConnectionImplementors = []string{"InviteConnection"} func (ec *executionContext) _InviteConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteConnection) graphql.Marshaler { @@ -320256,84 +231430,6 @@ func (ec *executionContext) _InviteConnection(ctx context.Context, sel ast.Selec return out } -var inviteCreatePayloadImplementors = []string{"InviteCreatePayload"} - -func (ec *executionContext) _InviteCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteCreatePayload") - case "invite": - out.Values[i] = ec._InviteCreatePayload_invite(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 inviteDeletePayloadImplementors = []string{"InviteDeletePayload"} - -func (ec *executionContext) _InviteDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteDeletePayload") - case "deletedID": - out.Values[i] = ec._InviteDeletePayload_deletedID(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 inviteEdgeImplementors = []string{"InviteEdge"} func (ec *executionContext) _InviteEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.InviteEdge) graphql.Marshaler { @@ -320375,1263 +231471,6 @@ func (ec *executionContext) _InviteEdge(ctx context.Context, sel ast.SelectionSe return out } -var inviteUpdatePayloadImplementors = []string{"InviteUpdatePayload"} - -func (ec *executionContext) _InviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *InviteUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, inviteUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("InviteUpdatePayload") - case "invite": - out.Values[i] = ec._InviteUpdatePayload_invite(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 "createActionPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createActionPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkActionPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkActionPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVActionPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVActionPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateActionPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateActionPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteActionPlan": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteActionPlan(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteAPIToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteAPIToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateContact(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteContact": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteContact(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 "createBulkControl": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkControl(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVControl": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVControl(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 "createControlObjective": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControlObjective(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkControlObjective": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkControlObjective(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVControlObjective": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVControlObjective(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateControlObjective": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateControlObjective(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteControlObjective": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteControlObjective(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteDocumentData": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteDocumentData(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEntity": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEntity(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEntityType": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEntityType(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteEvent": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteEvent(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteFile": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteFile(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteGroup": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteGroup(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteGroupMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteGroupMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteGroupSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteGroupSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteHush": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteHush(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteIntegration": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteIntegration(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createInternalPolicy": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createInternalPolicy(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkInternalPolicy": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkInternalPolicy(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVInternalPolicy": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVInternalPolicy(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateInternalPolicy": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateInternalPolicy(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteInternalPolicy": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteInternalPolicy(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteInvite": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteInvite(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createNarrative": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createNarrative(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkNarrative": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkNarrative(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVNarrative": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVNarrative(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateNarrative": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateNarrative(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteNarrative": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteNarrative(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - 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 "createBulkOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOrganization(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVOrganization": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOrganization(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 "createOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteOrganizationSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrganizationSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteOrgMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrgMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createOrgSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createOrgSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkOrgSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkOrgSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVOrgSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVOrgSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateOrgSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateOrgSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteOrgSubscription": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteOrgSubscription(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createPersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createPersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkPersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkPersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVPersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVPersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updatePersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updatePersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deletePersonalAccessToken": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deletePersonalAccessToken(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createProcedure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createProcedure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkProcedure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkProcedure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVProcedure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVProcedure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateProcedure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateProcedure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteProcedure": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteProcedure(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createProgram": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createProgram(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkProgram": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkProgram(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVProgram": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVProgram(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateProgram": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateProgram(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteProgram": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteProgram(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createProgramWithMembers": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createProgramWithMembers(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createFullProgram": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createFullProgram(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createControlWithSubcontrols": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createControlWithSubcontrols(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createProgramMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createProgramMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkProgramMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkProgramMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVProgramMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVProgramMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateProgramMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateProgramMembership(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteProgramMembership": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteProgramMembership(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 "createBulkRisk": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkRisk(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVRisk": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVRisk(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 "createStandard": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createStandard(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkStandard": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkStandard(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVStandard": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVStandard(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateStandard": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateStandard(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteStandard": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteStandard(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createSubcontrol": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createSubcontrol(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkSubcontrol": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkSubcontrol(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVSubcontrol": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVSubcontrol(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateSubcontrol": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateSubcontrol(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteSubcontrol": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteSubcontrol(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateSubscriber(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteSubscriber": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteSubscriber(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 "createBulkTask": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkTask(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVTask": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVTask(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 "createTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteTemplate": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteTemplate(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createTFASetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createTFASetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateTFASetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateTFASetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "deleteUser": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_deleteUser(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createUserSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkUserSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createBulkCSVUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_createBulkCSVUserSetting(ctx, field) - }) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "updateUserSetting": - out.Values[i] = ec.OperationContext.RootResolverMiddleware(innerCtx, func(ctx context.Context) (res graphql.Marshaler) { - return ec._Mutation_updateUserSetting(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 narrativeImplementors = []string{"Narrative", "Node"} func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet, obj *generated.Narrative) graphql.Marshaler { @@ -322001,42 +231840,6 @@ func (ec *executionContext) _Narrative(ctx context.Context, sel ast.SelectionSet return out } -var narrativeBulkCreatePayloadImplementors = []string{"NarrativeBulkCreatePayload"} - -func (ec *executionContext) _NarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NarrativeBulkCreatePayload") - case "narratives": - out.Values[i] = ec._NarrativeBulkCreatePayload_narratives(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 narrativeConnectionImplementors = []string{"NarrativeConnection"} func (ec *executionContext) _NarrativeConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NarrativeConnection) graphql.Marshaler { @@ -322083,84 +231886,6 @@ func (ec *executionContext) _NarrativeConnection(ctx context.Context, sel ast.Se return out } -var narrativeCreatePayloadImplementors = []string{"NarrativeCreatePayload"} - -func (ec *executionContext) _NarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NarrativeCreatePayload") - case "narrative": - out.Values[i] = ec._NarrativeCreatePayload_narrative(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 narrativeDeletePayloadImplementors = []string{"NarrativeDeletePayload"} - -func (ec *executionContext) _NarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NarrativeDeletePayload") - case "deletedID": - out.Values[i] = ec._NarrativeDeletePayload_deletedID(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 narrativeEdgeImplementors = []string{"NarrativeEdge"} func (ec *executionContext) _NarrativeEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NarrativeEdge) graphql.Marshaler { @@ -322370,81 +232095,6 @@ func (ec *executionContext) _NarrativeHistoryEdge(ctx context.Context, sel ast.S return out } -var narrativeSearchResultImplementors = []string{"NarrativeSearchResult", "SearchResult"} - -func (ec *executionContext) _NarrativeSearchResult(ctx context.Context, sel ast.SelectionSet, obj *NarrativeSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NarrativeSearchResult") - case "narratives": - out.Values[i] = ec._NarrativeSearchResult_narratives(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 narrativeUpdatePayloadImplementors = []string{"NarrativeUpdatePayload"} - -func (ec *executionContext) _NarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *NarrativeUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, narrativeUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NarrativeUpdatePayload") - case "narrative": - out.Values[i] = ec._NarrativeUpdatePayload_narrative(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 noteImplementors = []string{"Note", "Node"} func (ec *executionContext) _Note(ctx context.Context, sel ast.SelectionSet, obj *generated.Note) graphql.Marshaler { @@ -322796,277 +232446,29 @@ func (ec *executionContext) _NoteHistory(ctx context.Context, sel ast.SelectionS return out } -var noteHistoryConnectionImplementors = []string{"NoteHistoryConnection"} - -func (ec *executionContext) _NoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteHistoryConnection") - case "edges": - out.Values[i] = ec._NoteHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._NoteHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._NoteHistoryConnection_totalCount(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 noteHistoryEdgeImplementors = []string{"NoteHistoryEdge"} - -func (ec *executionContext) _NoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("NoteHistoryEdge") - case "node": - out.Values[i] = ec._NoteHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._NoteHistoryEdge_cursor(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 orgMembershipImplementors = []string{"OrgMembership", "Node"} - -func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembership) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembership") - case "id": - out.Values[i] = ec._OrgMembership_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "createdAt": - out.Values[i] = ec._OrgMembership_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._OrgMembership_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._OrgMembership_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._OrgMembership_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._OrgMembership_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._OrgMembership_deletedBy(ctx, field, obj) - case "role": - out.Values[i] = ec._OrgMembership_role(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "organizationID": - out.Values[i] = ec._OrgMembership_organizationID(ctx, field, obj) - if out.Values[i] == graphql.Null { - atomic.AddUint32(&out.Invalids, 1) - } - case "userID": - out.Values[i] = ec._OrgMembership_userID(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._OrgMembership_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 "user": - 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._OrgMembership_user(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 "events": - 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._OrgMembership_events(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 orgMembershipBulkCreatePayloadImplementors = []string{"OrgMembershipBulkCreatePayload"} +var noteHistoryConnectionImplementors = []string{"NoteHistoryConnection"} -func (ec *executionContext) _OrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipBulkCreatePayloadImplementors) +func (ec *executionContext) _NoteHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipBulkCreatePayload") - case "orgMemberships": - out.Values[i] = ec._OrgMembershipBulkCreatePayload_orgMemberships(ctx, field, obj) + out.Values[i] = graphql.MarshalString("NoteHistoryConnection") + case "edges": + out.Values[i] = ec._NoteHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._NoteHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._NoteHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -323090,26 +232492,21 @@ func (ec *executionContext) _OrgMembershipBulkCreatePayload(ctx context.Context, return out } -var orgMembershipConnectionImplementors = []string{"OrgMembershipConnection"} +var noteHistoryEdgeImplementors = []string{"NoteHistoryEdge"} -func (ec *executionContext) _OrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipConnectionImplementors) +func (ec *executionContext) _NoteHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.NoteHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, noteHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipConnection") - case "edges": - out.Values[i] = ec._OrgMembershipConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._OrgMembershipConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._OrgMembershipConnection_totalCount(ctx, field, obj) + out.Values[i] = graphql.MarshalString("NoteHistoryEdge") + case "node": + out.Values[i] = ec._NoteHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._NoteHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -323136,22 +232533,154 @@ func (ec *executionContext) _OrgMembershipConnection(ctx context.Context, sel as return out } -var orgMembershipCreatePayloadImplementors = []string{"OrgMembershipCreatePayload"} +var orgMembershipImplementors = []string{"OrgMembership", "Node"} -func (ec *executionContext) _OrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipCreatePayloadImplementors) +func (ec *executionContext) _OrgMembership(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembership) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipCreatePayload") - case "orgMembership": - out.Values[i] = ec._OrgMembershipCreatePayload_orgMembership(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrgMembership") + case "id": + out.Values[i] = ec._OrgMembership_id(ctx, field, obj) if out.Values[i] == graphql.Null { - out.Invalids++ + atomic.AddUint32(&out.Invalids, 1) + } + case "createdAt": + out.Values[i] = ec._OrgMembership_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._OrgMembership_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._OrgMembership_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._OrgMembership_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._OrgMembership_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._OrgMembership_deletedBy(ctx, field, obj) + case "role": + out.Values[i] = ec._OrgMembership_role(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) } + case "organizationID": + out.Values[i] = ec._OrgMembership_organizationID(ctx, field, obj) + if out.Values[i] == graphql.Null { + atomic.AddUint32(&out.Invalids, 1) + } + case "userID": + out.Values[i] = ec._OrgMembership_userID(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._OrgMembership_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 "user": + 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._OrgMembership_user(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 "events": + 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._OrgMembership_events(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)) } @@ -323175,19 +232704,26 @@ func (ec *executionContext) _OrgMembershipCreatePayload(ctx context.Context, sel return out } -var orgMembershipDeletePayloadImplementors = []string{"OrgMembershipDeletePayload"} +var orgMembershipConnectionImplementors = []string{"OrgMembershipConnection"} -func (ec *executionContext) _OrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipDeletePayloadImplementors) +func (ec *executionContext) _OrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgMembershipConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipDeletePayload") - case "deletedID": - out.Values[i] = ec._OrgMembershipDeletePayload_deletedID(ctx, field, obj) + out.Values[i] = graphql.MarshalString("OrgMembershipConnection") + case "edges": + out.Values[i] = ec._OrgMembershipConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._OrgMembershipConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._OrgMembershipConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -323420,45 +232956,6 @@ func (ec *executionContext) _OrgMembershipHistoryEdge(ctx context.Context, sel a return out } -var orgMembershipUpdatePayloadImplementors = []string{"OrgMembershipUpdatePayload"} - -func (ec *executionContext) _OrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgMembershipUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgMembershipUpdatePayload") - case "orgMembership": - out.Values[i] = ec._OrgMembershipUpdatePayload_orgMembership(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 orgSubscriptionImplementors = []string{"OrgSubscription", "Node"} func (ec *executionContext) _OrgSubscription(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgSubscription) graphql.Marshaler { @@ -323566,42 +233063,6 @@ func (ec *executionContext) _OrgSubscription(ctx context.Context, sel ast.Select return out } -var orgSubscriptionBulkCreatePayloadImplementors = []string{"OrgSubscriptionBulkCreatePayload"} - -func (ec *executionContext) _OrgSubscriptionBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgSubscriptionBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscriptionBulkCreatePayload") - case "orgSubscriptions": - out.Values[i] = ec._OrgSubscriptionBulkCreatePayload_orgSubscriptions(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 orgSubscriptionConnectionImplementors = []string{"OrgSubscriptionConnection"} func (ec *executionContext) _OrgSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgSubscriptionConnection) graphql.Marshaler { @@ -323648,84 +233109,6 @@ func (ec *executionContext) _OrgSubscriptionConnection(ctx context.Context, sel return out } -var orgSubscriptionCreatePayloadImplementors = []string{"OrgSubscriptionCreatePayload"} - -func (ec *executionContext) _OrgSubscriptionCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgSubscriptionCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscriptionCreatePayload") - case "orgSubscription": - out.Values[i] = ec._OrgSubscriptionCreatePayload_orgSubscription(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 orgSubscriptionDeletePayloadImplementors = []string{"OrgSubscriptionDeletePayload"} - -func (ec *executionContext) _OrgSubscriptionDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgSubscriptionDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscriptionDeletePayload") - case "deletedID": - out.Values[i] = ec._OrgSubscriptionDeletePayload_deletedID(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 orgSubscriptionEdgeImplementors = []string{"OrgSubscriptionEdge"} func (ec *executionContext) _OrgSubscriptionEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrgSubscriptionEdge) graphql.Marshaler { @@ -323940,81 +233323,6 @@ func (ec *executionContext) _OrgSubscriptionHistoryEdge(ctx context.Context, sel return out } -var orgSubscriptionSearchResultImplementors = []string{"OrgSubscriptionSearchResult", "SearchResult"} - -func (ec *executionContext) _OrgSubscriptionSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OrgSubscriptionSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscriptionSearchResult") - case "orgSubscriptions": - out.Values[i] = ec._OrgSubscriptionSearchResult_orgSubscriptions(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 orgSubscriptionUpdatePayloadImplementors = []string{"OrgSubscriptionUpdatePayload"} - -func (ec *executionContext) _OrgSubscriptionUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrgSubscriptionUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrgSubscriptionUpdatePayload") - case "orgSubscription": - out.Values[i] = ec._OrgSubscriptionUpdatePayload_orgSubscription(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 *generated.Organization) graphql.Marshaler { @@ -325379,42 +234687,6 @@ func (ec *executionContext) _Organization(ctx context.Context, sel ast.Selection return out } -var organizationBulkCreatePayloadImplementors = []string{"OrganizationBulkCreatePayload"} - -func (ec *executionContext) _OrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationBulkCreatePayload") - case "organizations": - out.Values[i] = ec._OrganizationBulkCreatePayload_organizations(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 organizationConnectionImplementors = []string{"OrganizationConnection"} func (ec *executionContext) _OrganizationConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationConnection) graphql.Marshaler { @@ -325461,84 +234733,6 @@ func (ec *executionContext) _OrganizationConnection(ctx context.Context, sel ast return out } -var organizationCreatePayloadImplementors = []string{"OrganizationCreatePayload"} - -func (ec *executionContext) _OrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationCreatePayload") - case "organization": - out.Values[i] = ec._OrganizationCreatePayload_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 organizationDeletePayloadImplementors = []string{"OrganizationDeletePayload"} - -func (ec *executionContext) _OrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationDeletePayload") - case "deletedID": - out.Values[i] = ec._OrganizationDeletePayload_deletedID(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 *generated.OrganizationEdge) graphql.Marshaler { @@ -325753,42 +234947,6 @@ func (ec *executionContext) _OrganizationHistoryEdge(ctx context.Context, sel as return out } -var organizationSearchResultImplementors = []string{"OrganizationSearchResult", "SearchResult"} - -func (ec *executionContext) _OrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSearchResult") - case "organizations": - out.Values[i] = ec._OrganizationSearchResult_organizations(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 organizationSettingImplementors = []string{"OrganizationSetting", "Node"} func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSetting) graphql.Marshaler { @@ -325926,42 +235084,6 @@ func (ec *executionContext) _OrganizationSetting(ctx context.Context, sel ast.Se return out } -var organizationSettingBulkCreatePayloadImplementors = []string{"OrganizationSettingBulkCreatePayload"} - -func (ec *executionContext) _OrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingBulkCreatePayload") - case "organizationSettings": - out.Values[i] = ec._OrganizationSettingBulkCreatePayload_organizationSettings(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 organizationSettingConnectionImplementors = []string{"OrganizationSettingConnection"} func (ec *executionContext) _OrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingConnection) graphql.Marshaler { @@ -326008,84 +235130,6 @@ func (ec *executionContext) _OrganizationSettingConnection(ctx context.Context, return out } -var organizationSettingCreatePayloadImplementors = []string{"OrganizationSettingCreatePayload"} - -func (ec *executionContext) _OrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingCreatePayload") - case "organizationSetting": - out.Values[i] = ec._OrganizationSettingCreatePayload_organizationSetting(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 organizationSettingDeletePayloadImplementors = []string{"OrganizationSettingDeletePayload"} - -func (ec *executionContext) _OrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingDeletePayload") - case "deletedID": - out.Values[i] = ec._OrganizationSettingDeletePayload_deletedID(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 organizationSettingEdgeImplementors = []string{"OrganizationSettingEdge"} func (ec *executionContext) _OrganizationSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.OrganizationSettingEdge) graphql.Marshaler { @@ -326297,120 +235341,6 @@ func (ec *executionContext) _OrganizationSettingHistoryEdge(ctx context.Context, return out } -var organizationSettingSearchResultImplementors = []string{"OrganizationSettingSearchResult", "SearchResult"} - -func (ec *executionContext) _OrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingSearchResult") - case "organizationSettings": - out.Values[i] = ec._OrganizationSettingSearchResult_organizationSettings(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 organizationSettingUpdatePayloadImplementors = []string{"OrganizationSettingUpdatePayload"} - -func (ec *executionContext) _OrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationSettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationSettingUpdatePayload") - case "organizationSetting": - out.Values[i] = ec._OrganizationSettingUpdatePayload_organizationSetting(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 organizationUpdatePayloadImplementors = []string{"OrganizationUpdatePayload"} - -func (ec *executionContext) _OrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *OrganizationUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, organizationUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("OrganizationUpdatePayload") - case "organization": - out.Values[i] = ec._OrganizationUpdatePayload_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 pageInfoImplementors = []string{"PageInfo"} func (ec *executionContext) _PageInfo(ctx context.Context, sel ast.SelectionSet, obj *entgql.PageInfo[string]) graphql.Marshaler { @@ -326632,42 +235562,6 @@ func (ec *executionContext) _PersonalAccessToken(ctx context.Context, sel ast.Se return out } -var personalAccessTokenBulkCreatePayloadImplementors = []string{"PersonalAccessTokenBulkCreatePayload"} - -func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenBulkCreatePayload") - case "personalAccessTokens": - out.Values[i] = ec._PersonalAccessTokenBulkCreatePayload_personalAccessTokens(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 personalAccessTokenConnectionImplementors = []string{"PersonalAccessTokenConnection"} func (ec *executionContext) _PersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessTokenConnection) graphql.Marshaler { @@ -326714,84 +235608,6 @@ func (ec *executionContext) _PersonalAccessTokenConnection(ctx context.Context, return out } -var personalAccessTokenCreatePayloadImplementors = []string{"PersonalAccessTokenCreatePayload"} - -func (ec *executionContext) _PersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenCreatePayload") - case "personalAccessToken": - out.Values[i] = ec._PersonalAccessTokenCreatePayload_personalAccessToken(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 personalAccessTokenDeletePayloadImplementors = []string{"PersonalAccessTokenDeletePayload"} - -func (ec *executionContext) _PersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenDeletePayload") - case "deletedID": - out.Values[i] = ec._PersonalAccessTokenDeletePayload_deletedID(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 personalAccessTokenEdgeImplementors = []string{"PersonalAccessTokenEdge"} func (ec *executionContext) _PersonalAccessTokenEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.PersonalAccessTokenEdge) graphql.Marshaler { @@ -326833,81 +235649,6 @@ func (ec *executionContext) _PersonalAccessTokenEdge(ctx context.Context, sel as return out } -var personalAccessTokenSearchResultImplementors = []string{"PersonalAccessTokenSearchResult", "SearchResult"} - -func (ec *executionContext) _PersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenSearchResult") - case "personalAccessTokens": - out.Values[i] = ec._PersonalAccessTokenSearchResult_personalAccessTokens(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 personalAccessTokenUpdatePayloadImplementors = []string{"PersonalAccessTokenUpdatePayload"} - -func (ec *executionContext) _PersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *PersonalAccessTokenUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("PersonalAccessTokenUpdatePayload") - case "personalAccessToken": - out.Values[i] = ec._PersonalAccessTokenUpdatePayload_personalAccessToken(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 procedureImplementors = []string{"Procedure", "Node"} func (ec *executionContext) _Procedure(ctx context.Context, sel ast.SelectionSet, obj *generated.Procedure) graphql.Marshaler { @@ -327281,42 +236022,6 @@ func (ec *executionContext) _Procedure(ctx context.Context, sel ast.SelectionSet return out } -var procedureBulkCreatePayloadImplementors = []string{"ProcedureBulkCreatePayload"} - -func (ec *executionContext) _ProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, procedureBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProcedureBulkCreatePayload") - case "procedures": - out.Values[i] = ec._ProcedureBulkCreatePayload_procedures(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 procedureConnectionImplementors = []string{"ProcedureConnection"} func (ec *executionContext) _ProcedureConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ProcedureConnection) graphql.Marshaler { @@ -327363,84 +236068,6 @@ func (ec *executionContext) _ProcedureConnection(ctx context.Context, sel ast.Se return out } -var procedureCreatePayloadImplementors = []string{"ProcedureCreatePayload"} - -func (ec *executionContext) _ProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, procedureCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProcedureCreatePayload") - case "procedure": - out.Values[i] = ec._ProcedureCreatePayload_procedure(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 procedureDeletePayloadImplementors = []string{"ProcedureDeletePayload"} - -func (ec *executionContext) _ProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, procedureDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProcedureDeletePayload") - case "deletedID": - out.Values[i] = ec._ProcedureDeletePayload_deletedID(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 procedureEdgeImplementors = []string{"ProcedureEdge"} func (ec *executionContext) _ProcedureEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ProcedureEdge) graphql.Marshaler { @@ -327657,81 +236284,6 @@ func (ec *executionContext) _ProcedureHistoryEdge(ctx context.Context, sel ast.S return out } -var procedureSearchResultImplementors = []string{"ProcedureSearchResult", "SearchResult"} - -func (ec *executionContext) _ProcedureSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ProcedureSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, procedureSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProcedureSearchResult") - case "procedures": - out.Values[i] = ec._ProcedureSearchResult_procedures(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 procedureUpdatePayloadImplementors = []string{"ProcedureUpdatePayload"} - -func (ec *executionContext) _ProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProcedureUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, procedureUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProcedureUpdatePayload") - case "procedure": - out.Values[i] = ec._ProcedureUpdatePayload_procedure(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 programImplementors = []string{"Program", "Node"} func (ec *executionContext) _Program(ctx context.Context, sel ast.SelectionSet, obj *generated.Program) graphql.Marshaler { @@ -328412,42 +236964,6 @@ func (ec *executionContext) _Program(ctx context.Context, sel ast.SelectionSet, return out } -var programBulkCreatePayloadImplementors = []string{"ProgramBulkCreatePayload"} - -func (ec *executionContext) _ProgramBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramBulkCreatePayload") - case "programs": - out.Values[i] = ec._ProgramBulkCreatePayload_programs(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 programConnectionImplementors = []string{"ProgramConnection"} func (ec *executionContext) _ProgramConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ProgramConnection) graphql.Marshaler { @@ -328494,84 +237010,6 @@ func (ec *executionContext) _ProgramConnection(ctx context.Context, sel ast.Sele return out } -var programCreatePayloadImplementors = []string{"ProgramCreatePayload"} - -func (ec *executionContext) _ProgramCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramCreatePayload") - case "program": - out.Values[i] = ec._ProgramCreatePayload_program(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 programDeletePayloadImplementors = []string{"ProgramDeletePayload"} - -func (ec *executionContext) _ProgramDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramDeletePayload") - case "deletedID": - out.Values[i] = ec._ProgramDeletePayload_deletedID(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 programEdgeImplementors = []string{"ProgramEdge"} func (ec *executionContext) _ProgramEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ProgramEdge) graphql.Marshaler { @@ -328936,42 +237374,6 @@ func (ec *executionContext) _ProgramMembership(ctx context.Context, sel ast.Sele return out } -var programMembershipBulkCreatePayloadImplementors = []string{"ProgramMembershipBulkCreatePayload"} - -func (ec *executionContext) _ProgramMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramMembershipBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramMembershipBulkCreatePayload") - case "programMemberships": - out.Values[i] = ec._ProgramMembershipBulkCreatePayload_programMemberships(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 programMembershipConnectionImplementors = []string{"ProgramMembershipConnection"} func (ec *executionContext) _ProgramMembershipConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.ProgramMembershipConnection) graphql.Marshaler { @@ -329018,84 +237420,6 @@ func (ec *executionContext) _ProgramMembershipConnection(ctx context.Context, se return out } -var programMembershipCreatePayloadImplementors = []string{"ProgramMembershipCreatePayload"} - -func (ec *executionContext) _ProgramMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramMembershipCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramMembershipCreatePayload") - case "programMembership": - out.Values[i] = ec._ProgramMembershipCreatePayload_programMembership(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 programMembershipDeletePayloadImplementors = []string{"ProgramMembershipDeletePayload"} - -func (ec *executionContext) _ProgramMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramMembershipDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramMembershipDeletePayload") - case "deletedID": - out.Values[i] = ec._ProgramMembershipDeletePayload_deletedID(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 programMembershipEdgeImplementors = []string{"ProgramMembershipEdge"} func (ec *executionContext) _ProgramMembershipEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.ProgramMembershipEdge) graphql.Marshaler { @@ -329302,120 +237626,6 @@ func (ec *executionContext) _ProgramMembershipHistoryEdge(ctx context.Context, s return out } -var programMembershipUpdatePayloadImplementors = []string{"ProgramMembershipUpdatePayload"} - -func (ec *executionContext) _ProgramMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramMembershipUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramMembershipUpdatePayload") - case "programMembership": - out.Values[i] = ec._ProgramMembershipUpdatePayload_programMembership(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 programSearchResultImplementors = []string{"ProgramSearchResult", "SearchResult"} - -func (ec *executionContext) _ProgramSearchResult(ctx context.Context, sel ast.SelectionSet, obj *ProgramSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramSearchResult") - case "programs": - out.Values[i] = ec._ProgramSearchResult_programs(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 programUpdatePayloadImplementors = []string{"ProgramUpdatePayload"} - -func (ec *executionContext) _ProgramUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *ProgramUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, programUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("ProgramUpdatePayload") - case "program": - out.Values[i] = ec._ProgramUpdatePayload_program(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 { @@ -333299,42 +241509,6 @@ func (ec *executionContext) _Risk(ctx context.Context, sel ast.SelectionSet, obj return out } -var riskBulkCreatePayloadImplementors = []string{"RiskBulkCreatePayload"} - -func (ec *executionContext) _RiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("RiskBulkCreatePayload") - case "risks": - out.Values[i] = ec._RiskBulkCreatePayload_risks(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 riskConnectionImplementors = []string{"RiskConnection"} func (ec *executionContext) _RiskConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskConnection) graphql.Marshaler { @@ -333381,84 +241555,6 @@ func (ec *executionContext) _RiskConnection(ctx context.Context, sel ast.Selecti return out } -var riskCreatePayloadImplementors = []string{"RiskCreatePayload"} - -func (ec *executionContext) _RiskCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("RiskCreatePayload") - case "risk": - out.Values[i] = ec._RiskCreatePayload_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 riskDeletePayloadImplementors = []string{"RiskDeletePayload"} - -func (ec *executionContext) _RiskDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("RiskDeletePayload") - case "deletedID": - out.Values[i] = ec._RiskDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - var riskEdgeImplementors = []string{"RiskEdge"} func (ec *executionContext) _RiskEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskEdge) graphql.Marshaler { @@ -333500,199 +241596,76 @@ func (ec *executionContext) _RiskEdge(ctx context.Context, sel ast.SelectionSet, return out } -var riskHistoryImplementors = []string{"RiskHistory", "Node"} - -func (ec *executionContext) _RiskHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistory) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("RiskHistory") - case "id": - out.Values[i] = ec._RiskHistory_id(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "historyTime": - out.Values[i] = ec._RiskHistory_historyTime(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "ref": - out.Values[i] = ec._RiskHistory_ref(ctx, field, obj) - case "operation": - out.Values[i] = ec._RiskHistory_operation(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "createdAt": - out.Values[i] = ec._RiskHistory_createdAt(ctx, field, obj) - case "updatedAt": - out.Values[i] = ec._RiskHistory_updatedAt(ctx, field, obj) - case "createdBy": - out.Values[i] = ec._RiskHistory_createdBy(ctx, field, obj) - case "updatedBy": - out.Values[i] = ec._RiskHistory_updatedBy(ctx, field, obj) - case "deletedAt": - out.Values[i] = ec._RiskHistory_deletedAt(ctx, field, obj) - case "deletedBy": - out.Values[i] = ec._RiskHistory_deletedBy(ctx, field, obj) - case "tags": - out.Values[i] = ec._RiskHistory_tags(ctx, field, obj) - case "ownerID": - out.Values[i] = ec._RiskHistory_ownerID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "name": - out.Values[i] = ec._RiskHistory_name(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "description": - out.Values[i] = ec._RiskHistory_description(ctx, field, obj) - case "status": - out.Values[i] = ec._RiskHistory_status(ctx, field, obj) - case "riskType": - out.Values[i] = ec._RiskHistory_riskType(ctx, field, obj) - case "businessCosts": - out.Values[i] = ec._RiskHistory_businessCosts(ctx, field, obj) - case "impact": - out.Values[i] = ec._RiskHistory_impact(ctx, field, obj) - case "likelihood": - out.Values[i] = ec._RiskHistory_likelihood(ctx, field, obj) - case "mitigation": - out.Values[i] = ec._RiskHistory_mitigation(ctx, field, obj) - case "satisfies": - out.Values[i] = ec._RiskHistory_satisfies(ctx, field, obj) - case "details": - out.Values[i] = ec._RiskHistory_details(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 riskHistoryConnectionImplementors = []string{"RiskHistoryConnection"} - -func (ec *executionContext) _RiskHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("RiskHistoryConnection") - case "edges": - out.Values[i] = ec._RiskHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._RiskHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._RiskHistoryConnection_totalCount(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 riskHistoryEdgeImplementors = []string{"RiskHistoryEdge"} - -func (ec *executionContext) _RiskHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("RiskHistoryEdge") - case "node": - out.Values[i] = ec._RiskHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._RiskHistoryEdge_cursor(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 riskSearchResultImplementors = []string{"RiskSearchResult", "SearchResult"} +var riskHistoryImplementors = []string{"RiskHistory", "Node"} -func (ec *executionContext) _RiskSearchResult(ctx context.Context, sel ast.SelectionSet, obj *RiskSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskSearchResultImplementors) +func (ec *executionContext) _RiskHistory(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistory) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("RiskSearchResult") - case "risks": - out.Values[i] = ec._RiskSearchResult_risks(ctx, field, obj) + out.Values[i] = graphql.MarshalString("RiskHistory") + case "id": + out.Values[i] = ec._RiskHistory_id(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "historyTime": + out.Values[i] = ec._RiskHistory_historyTime(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "ref": + out.Values[i] = ec._RiskHistory_ref(ctx, field, obj) + case "operation": + out.Values[i] = ec._RiskHistory_operation(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "createdAt": + out.Values[i] = ec._RiskHistory_createdAt(ctx, field, obj) + case "updatedAt": + out.Values[i] = ec._RiskHistory_updatedAt(ctx, field, obj) + case "createdBy": + out.Values[i] = ec._RiskHistory_createdBy(ctx, field, obj) + case "updatedBy": + out.Values[i] = ec._RiskHistory_updatedBy(ctx, field, obj) + case "deletedAt": + out.Values[i] = ec._RiskHistory_deletedAt(ctx, field, obj) + case "deletedBy": + out.Values[i] = ec._RiskHistory_deletedBy(ctx, field, obj) + case "tags": + out.Values[i] = ec._RiskHistory_tags(ctx, field, obj) + case "ownerID": + out.Values[i] = ec._RiskHistory_ownerID(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "name": + out.Values[i] = ec._RiskHistory_name(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "description": + out.Values[i] = ec._RiskHistory_description(ctx, field, obj) + case "status": + out.Values[i] = ec._RiskHistory_status(ctx, field, obj) + case "riskType": + out.Values[i] = ec._RiskHistory_riskType(ctx, field, obj) + case "businessCosts": + out.Values[i] = ec._RiskHistory_businessCosts(ctx, field, obj) + case "impact": + out.Values[i] = ec._RiskHistory_impact(ctx, field, obj) + case "likelihood": + out.Values[i] = ec._RiskHistory_likelihood(ctx, field, obj) + case "mitigation": + out.Values[i] = ec._RiskHistory_mitigation(ctx, field, obj) + case "satisfies": + out.Values[i] = ec._RiskHistory_satisfies(ctx, field, obj) + case "details": + out.Values[i] = ec._RiskHistory_details(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -333716,19 +241689,26 @@ func (ec *executionContext) _RiskSearchResult(ctx context.Context, sel ast.Selec return out } -var riskUpdatePayloadImplementors = []string{"RiskUpdatePayload"} +var riskHistoryConnectionImplementors = []string{"RiskHistoryConnection"} -func (ec *executionContext) _RiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *RiskUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, riskUpdatePayloadImplementors) +func (ec *executionContext) _RiskHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("RiskUpdatePayload") - case "risk": - out.Values[i] = ec._RiskUpdatePayload_risk(ctx, field, obj) + out.Values[i] = graphql.MarshalString("RiskHistoryConnection") + case "edges": + out.Values[i] = ec._RiskHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._RiskHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._RiskHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -333755,24 +241735,21 @@ func (ec *executionContext) _RiskUpdatePayload(ctx context.Context, sel ast.Sele return out } -var searchResultConnectionImplementors = []string{"SearchResultConnection"} +var riskHistoryEdgeImplementors = []string{"RiskHistoryEdge"} -func (ec *executionContext) _SearchResultConnection(ctx context.Context, sel ast.SelectionSet, obj *SearchResultConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, searchResultConnectionImplementors) +func (ec *executionContext) _RiskHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.RiskHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("SearchResultConnection") - case "page": - out.Values[i] = ec._SearchResultConnection_page(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "nodes": - out.Values[i] = ec._SearchResultConnection_nodes(ctx, field, obj) + out.Values[i] = graphql.MarshalString("RiskHistoryEdge") + case "node": + out.Values[i] = ec._RiskHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._RiskHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -334040,42 +242017,6 @@ func (ec *executionContext) _Standard(ctx context.Context, sel ast.SelectionSet, return out } -var standardBulkCreatePayloadImplementors = []string{"StandardBulkCreatePayload"} - -func (ec *executionContext) _StandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, standardBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("StandardBulkCreatePayload") - case "standards": - out.Values[i] = ec._StandardBulkCreatePayload_standards(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 standardConnectionImplementors = []string{"StandardConnection"} func (ec *executionContext) _StandardConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardConnection) graphql.Marshaler { @@ -334122,84 +242063,6 @@ func (ec *executionContext) _StandardConnection(ctx context.Context, sel ast.Sel return out } -var standardCreatePayloadImplementors = []string{"StandardCreatePayload"} - -func (ec *executionContext) _StandardCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, standardCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("StandardCreatePayload") - case "standard": - out.Values[i] = ec._StandardCreatePayload_standard(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 standardDeletePayloadImplementors = []string{"StandardDeletePayload"} - -func (ec *executionContext) _StandardDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, standardDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("StandardDeletePayload") - case "deletedID": - out.Values[i] = ec._StandardDeletePayload_deletedID(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 standardEdgeImplementors = []string{"StandardEdge"} func (ec *executionContext) _StandardEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardEdge) graphql.Marshaler { @@ -334329,106 +242192,29 @@ func (ec *executionContext) _StandardHistory(ctx context.Context, sel ast.Select return out } -var standardHistoryConnectionImplementors = []string{"StandardHistoryConnection"} - -func (ec *executionContext) _StandardHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, standardHistoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("StandardHistoryConnection") - case "edges": - out.Values[i] = ec._StandardHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._StandardHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._StandardHistoryConnection_totalCount(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 standardHistoryEdgeImplementors = []string{"StandardHistoryEdge"} - -func (ec *executionContext) _StandardHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, standardHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("StandardHistoryEdge") - case "node": - out.Values[i] = ec._StandardHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._StandardHistoryEdge_cursor(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 standardSearchResultImplementors = []string{"StandardSearchResult", "SearchResult"} +var standardHistoryConnectionImplementors = []string{"StandardHistoryConnection"} -func (ec *executionContext) _StandardSearchResult(ctx context.Context, sel ast.SelectionSet, obj *StandardSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, standardSearchResultImplementors) +func (ec *executionContext) _StandardHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardHistoryConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("StandardSearchResult") - case "standards": - out.Values[i] = ec._StandardSearchResult_standards(ctx, field, obj) + out.Values[i] = graphql.MarshalString("StandardHistoryConnection") + case "edges": + out.Values[i] = ec._StandardHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._StandardHistoryConnection_pageInfo(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "totalCount": + out.Values[i] = ec._StandardHistoryConnection_totalCount(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -334452,19 +242238,21 @@ func (ec *executionContext) _StandardSearchResult(ctx context.Context, sel ast.S return out } -var standardUpdatePayloadImplementors = []string{"StandardUpdatePayload"} +var standardHistoryEdgeImplementors = []string{"StandardHistoryEdge"} -func (ec *executionContext) _StandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *StandardUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, standardUpdatePayloadImplementors) +func (ec *executionContext) _StandardHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.StandardHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardHistoryEdgeImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("StandardUpdatePayload") - case "standard": - out.Values[i] = ec._StandardUpdatePayload_standard(ctx, field, obj) + out.Values[i] = graphql.MarshalString("StandardHistoryEdge") + case "node": + out.Values[i] = ec._StandardHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._StandardHistoryEdge_cursor(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -334788,42 +242576,6 @@ func (ec *executionContext) _Subcontrol(ctx context.Context, sel ast.SelectionSe return out } -var subcontrolBulkCreatePayloadImplementors = []string{"SubcontrolBulkCreatePayload"} - -func (ec *executionContext) _SubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubcontrolBulkCreatePayload") - case "subcontrols": - out.Values[i] = ec._SubcontrolBulkCreatePayload_subcontrols(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 subcontrolConnectionImplementors = []string{"SubcontrolConnection"} func (ec *executionContext) _SubcontrolConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.SubcontrolConnection) graphql.Marshaler { @@ -334870,84 +242622,6 @@ func (ec *executionContext) _SubcontrolConnection(ctx context.Context, sel ast.S return out } -var subcontrolCreatePayloadImplementors = []string{"SubcontrolCreatePayload"} - -func (ec *executionContext) _SubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubcontrolCreatePayload") - case "subcontrol": - out.Values[i] = ec._SubcontrolCreatePayload_subcontrol(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 subcontrolDeletePayloadImplementors = []string{"SubcontrolDeletePayload"} - -func (ec *executionContext) _SubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubcontrolDeletePayload") - case "deletedID": - out.Values[i] = ec._SubcontrolDeletePayload_deletedID(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 subcontrolEdgeImplementors = []string{"SubcontrolEdge"} func (ec *executionContext) _SubcontrolEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.SubcontrolEdge) graphql.Marshaler { @@ -335181,81 +242855,6 @@ func (ec *executionContext) _SubcontrolHistoryEdge(ctx context.Context, sel ast. return out } -var subcontrolSearchResultImplementors = []string{"SubcontrolSearchResult", "SearchResult"} - -func (ec *executionContext) _SubcontrolSearchResult(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubcontrolSearchResult") - case "subcontrols": - out.Values[i] = ec._SubcontrolSearchResult_subcontrols(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 subcontrolUpdatePayloadImplementors = []string{"SubcontrolUpdatePayload"} - -func (ec *executionContext) _SubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubcontrolUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubcontrolUpdatePayload") - case "subcontrol": - out.Values[i] = ec._SubcontrolUpdatePayload_subcontrol(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 subscriberImplementors = []string{"Subscriber", "Node"} func (ec *executionContext) _Subscriber(ctx context.Context, sel ast.SelectionSet, obj *generated.Subscriber) graphql.Marshaler { @@ -335399,140 +242998,26 @@ func (ec *executionContext) _Subscriber(ctx context.Context, sel ast.SelectionSe return out } -var subscriberBulkCreatePayloadImplementors = []string{"SubscriberBulkCreatePayload"} - -func (ec *executionContext) _SubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberBulkCreatePayload") - case "subscribers": - out.Values[i] = ec._SubscriberBulkCreatePayload_subscribers(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 subscriberConnectionImplementors = []string{"SubscriberConnection"} - -func (ec *executionContext) _SubscriberConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.SubscriberConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberConnection") - case "edges": - out.Values[i] = ec._SubscriberConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._SubscriberConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._SubscriberConnection_totalCount(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 subscriberCreatePayloadImplementors = []string{"SubscriberCreatePayload"} +var subscriberConnectionImplementors = []string{"SubscriberConnection"} -func (ec *executionContext) _SubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberCreatePayloadImplementors) +func (ec *executionContext) _SubscriberConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.SubscriberConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberConnectionImplementors) out := graphql.NewFieldSet(fields) deferred := make(map[string]*graphql.FieldSet) for i, field := range fields { switch field.Name { case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberCreatePayload") - case "subscriber": - out.Values[i] = ec._SubscriberCreatePayload_subscriber(ctx, field, obj) + out.Values[i] = graphql.MarshalString("SubscriberConnection") + case "edges": + out.Values[i] = ec._SubscriberConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._SubscriberConnection_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 subscriberDeletePayloadImplementors = []string{"SubscriberDeletePayload"} - -func (ec *executionContext) _SubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberDeletePayload") - case "email": - out.Values[i] = ec._SubscriberDeletePayload_email(ctx, field, obj) + case "totalCount": + out.Values[i] = ec._SubscriberConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -335600,81 +243085,6 @@ func (ec *executionContext) _SubscriberEdge(ctx context.Context, sel ast.Selecti return out } -var subscriberSearchResultImplementors = []string{"SubscriberSearchResult", "SearchResult"} - -func (ec *executionContext) _SubscriberSearchResult(ctx context.Context, sel ast.SelectionSet, obj *SubscriberSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberSearchResult") - case "subscribers": - out.Values[i] = ec._SubscriberSearchResult_subscribers(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 subscriberUpdatePayloadImplementors = []string{"SubscriberUpdatePayload"} - -func (ec *executionContext) _SubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *SubscriberUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, subscriberUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("SubscriberUpdatePayload") - case "subscriber": - out.Values[i] = ec._SubscriberUpdatePayload_subscriber(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 tFASettingImplementors = []string{"TFASetting", "Node"} func (ec *executionContext) _TFASetting(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASetting) graphql.Marshaler { @@ -335818,45 +243228,6 @@ func (ec *executionContext) _TFASettingConnection(ctx context.Context, sel ast.S return out } -var tFASettingCreatePayloadImplementors = []string{"TFASettingCreatePayload"} - -func (ec *executionContext) _TFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TFASettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingCreatePayload") - case "tfaSetting": - out.Values[i] = ec._TFASettingCreatePayload_tfaSetting(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 tFASettingEdgeImplementors = []string{"TFASettingEdge"} func (ec *executionContext) _TFASettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TFASettingEdge) graphql.Marshaler { @@ -335898,81 +243269,6 @@ func (ec *executionContext) _TFASettingEdge(ctx context.Context, sel ast.Selecti return out } -var tFASettingSearchResultImplementors = []string{"TFASettingSearchResult", "SearchResult"} - -func (ec *executionContext) _TFASettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *TFASettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingSearchResult") - case "tFASettings": - out.Values[i] = ec._TFASettingSearchResult_tFASettings(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 tFASettingUpdatePayloadImplementors = []string{"TFASettingUpdatePayload"} - -func (ec *executionContext) _TFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *TFASettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TFASettingUpdatePayload") - case "tfaSetting": - out.Values[i] = ec._TFASettingUpdatePayload_tfaSetting(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 *generated.Task) graphql.Marshaler { @@ -336377,42 +243673,6 @@ func (ec *executionContext) _Task(ctx context.Context, sel ast.SelectionSet, obj return out } -var taskBulkCreatePayloadImplementors = []string{"TaskBulkCreatePayload"} - -func (ec *executionContext) _TaskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TaskBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaskBulkCreatePayload") - case "tasks": - out.Values[i] = ec._TaskBulkCreatePayload_tasks(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 taskConnectionImplementors = []string{"TaskConnection"} func (ec *executionContext) _TaskConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TaskConnection) graphql.Marshaler { @@ -336459,84 +243719,6 @@ func (ec *executionContext) _TaskConnection(ctx context.Context, sel ast.Selecti return out } -var taskCreatePayloadImplementors = []string{"TaskCreatePayload"} - -func (ec *executionContext) _TaskCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TaskCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaskCreatePayload") - case "task": - out.Values[i] = ec._TaskCreatePayload_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 taskDeletePayloadImplementors = []string{"TaskDeletePayload"} - -func (ec *executionContext) _TaskDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *TaskDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaskDeletePayload") - case "deletedID": - out.Values[i] = ec._TaskDeletePayload_deletedID(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(len(deferred))) - - for label, dfs := range deferred { - ec.processDeferredGroup(graphql.DeferredGroup{ - Label: label, - Path: graphql.GetPath(ctx), - FieldSet: dfs, - Context: ctx, - }) - } - - return out -} - var taskEdgeImplementors = []string{"TaskEdge"} func (ec *executionContext) _TaskEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TaskEdge) graphql.Marshaler { @@ -336748,81 +243930,6 @@ func (ec *executionContext) _TaskHistoryEdge(ctx context.Context, sel ast.Select return out } -var taskSearchResultImplementors = []string{"TaskSearchResult", "SearchResult"} - -func (ec *executionContext) _TaskSearchResult(ctx context.Context, sel ast.SelectionSet, obj *TaskSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaskSearchResult") - case "tasks": - out.Values[i] = ec._TaskSearchResult_tasks(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 taskUpdatePayloadImplementors = []string{"TaskUpdatePayload"} - -func (ec *executionContext) _TaskUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *TaskUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, taskUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TaskUpdatePayload") - case "task": - out.Values[i] = ec._TaskUpdatePayload_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 templateImplementors = []string{"Template", "Node"} func (ec *executionContext) _Template(ctx context.Context, sel ast.SelectionSet, obj *generated.Template) graphql.Marshaler { @@ -336996,42 +244103,6 @@ func (ec *executionContext) _Template(ctx context.Context, sel ast.SelectionSet, return out } -var templateBulkCreatePayloadImplementors = []string{"TemplateBulkCreatePayload"} - -func (ec *executionContext) _TemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateBulkCreatePayload") - case "templates": - out.Values[i] = ec._TemplateBulkCreatePayload_templates(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 templateConnectionImplementors = []string{"TemplateConnection"} func (ec *executionContext) _TemplateConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateConnection) graphql.Marshaler { @@ -337078,84 +244149,6 @@ func (ec *executionContext) _TemplateConnection(ctx context.Context, sel ast.Sel return out } -var templateCreatePayloadImplementors = []string{"TemplateCreatePayload"} - -func (ec *executionContext) _TemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateCreatePayload") - case "template": - out.Values[i] = ec._TemplateCreatePayload_template(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 templateDeletePayloadImplementors = []string{"TemplateDeletePayload"} - -func (ec *executionContext) _TemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateDeletePayload") - case "deletedID": - out.Values[i] = ec._TemplateDeletePayload_deletedID(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 templateEdgeImplementors = []string{"TemplateEdge"} func (ec *executionContext) _TemplateEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.TemplateEdge) graphql.Marshaler { @@ -337370,81 +244363,6 @@ func (ec *executionContext) _TemplateHistoryEdge(ctx context.Context, sel ast.Se return out } -var templateSearchResultImplementors = []string{"TemplateSearchResult", "SearchResult"} - -func (ec *executionContext) _TemplateSearchResult(ctx context.Context, sel ast.SelectionSet, obj *TemplateSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateSearchResult") - case "templates": - out.Values[i] = ec._TemplateSearchResult_templates(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 templateUpdatePayloadImplementors = []string{"TemplateUpdatePayload"} - -func (ec *executionContext) _TemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *TemplateUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, templateUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("TemplateUpdatePayload") - case "template": - out.Values[i] = ec._TemplateUpdatePayload_template(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 *generated.User) graphql.Marshaler { @@ -338062,42 +244980,6 @@ func (ec *executionContext) _User(ctx context.Context, sel ast.SelectionSet, obj return out } -var userBulkCreatePayloadImplementors = []string{"UserBulkCreatePayload"} - -func (ec *executionContext) _UserBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserBulkCreatePayload") - case "users": - out.Values[i] = ec._UserBulkCreatePayload_users(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 userConnectionImplementors = []string{"UserConnection"} func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserConnection) graphql.Marshaler { @@ -338144,84 +245026,6 @@ func (ec *executionContext) _UserConnection(ctx context.Context, sel ast.Selecti return out } -var userCreatePayloadImplementors = []string{"UserCreatePayload"} - -func (ec *executionContext) _UserCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserCreatePayload") - case "user": - out.Values[i] = ec._UserCreatePayload_user(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 userDeletePayloadImplementors = []string{"UserDeletePayload"} - -func (ec *executionContext) _UserDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *UserDeletePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userDeletePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserDeletePayload") - case "deletedID": - out.Values[i] = ec._UserDeletePayload_deletedID(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 *generated.UserEdge) graphql.Marshaler { @@ -338448,42 +245252,6 @@ func (ec *executionContext) _UserHistoryEdge(ctx context.Context, sel ast.Select return out } -var userSearchResultImplementors = []string{"UserSearchResult", "SearchResult"} - -func (ec *executionContext) _UserSearchResult(ctx context.Context, sel ast.SelectionSet, obj *UserSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSearchResult") - case "users": - out.Values[i] = ec._UserSearchResult_users(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 userSettingImplementors = []string{"UserSetting", "Node"} func (ec *executionContext) _UserSetting(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSetting) graphql.Marshaler { @@ -338661,42 +245429,6 @@ func (ec *executionContext) _UserSetting(ctx context.Context, sel ast.SelectionS return out } -var userSettingBulkCreatePayloadImplementors = []string{"UserSettingBulkCreatePayload"} - -func (ec *executionContext) _UserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingBulkCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingBulkCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingBulkCreatePayload") - case "userSettings": - out.Values[i] = ec._UserSettingBulkCreatePayload_userSettings(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 userSettingConnectionImplementors = []string{"UserSettingConnection"} func (ec *executionContext) _UserSettingConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingConnection) graphql.Marshaler { @@ -338743,45 +245475,6 @@ func (ec *executionContext) _UserSettingConnection(ctx context.Context, sel ast. return out } -var userSettingCreatePayloadImplementors = []string{"UserSettingCreatePayload"} - -func (ec *executionContext) _UserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingCreatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingCreatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingCreatePayload") - case "userSetting": - out.Values[i] = ec._UserSettingCreatePayload_userSetting(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 userSettingEdgeImplementors = []string{"UserSettingEdge"} func (ec *executionContext) _UserSettingEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingEdge) graphql.Marshaler { @@ -338913,446 +245606,26 @@ func (ec *executionContext) _UserSettingHistory(ctx context.Context, sel ast.Sel return out } -var userSettingHistoryConnectionImplementors = []string{"UserSettingHistoryConnection"} - -func (ec *executionContext) _UserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryConnection) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryConnectionImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingHistoryConnection") - case "edges": - out.Values[i] = ec._UserSettingHistoryConnection_edges(ctx, field, obj) - case "pageInfo": - out.Values[i] = ec._UserSettingHistoryConnection_pageInfo(ctx, field, obj) - if out.Values[i] == graphql.Null { - out.Invalids++ - } - case "totalCount": - out.Values[i] = ec._UserSettingHistoryConnection_totalCount(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 userSettingHistoryEdgeImplementors = []string{"UserSettingHistoryEdge"} - -func (ec *executionContext) _UserSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryEdge) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryEdgeImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingHistoryEdge") - case "node": - out.Values[i] = ec._UserSettingHistoryEdge_node(ctx, field, obj) - case "cursor": - out.Values[i] = ec._UserSettingHistoryEdge_cursor(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 userSettingSearchResultImplementors = []string{"UserSettingSearchResult", "SearchResult"} - -func (ec *executionContext) _UserSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *UserSettingSearchResult) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingSearchResultImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingSearchResult") - case "userSettings": - out.Values[i] = ec._UserSettingSearchResult_userSettings(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 userSettingUpdatePayloadImplementors = []string{"UserSettingUpdatePayload"} - -func (ec *executionContext) _UserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserSettingUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userSettingUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserSettingUpdatePayload") - case "userSetting": - out.Values[i] = ec._UserSettingUpdatePayload_userSetting(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 userUpdatePayloadImplementors = []string{"UserUpdatePayload"} - -func (ec *executionContext) _UserUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *UserUpdatePayload) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, userUpdatePayloadImplementors) - - out := graphql.NewFieldSet(fields) - deferred := make(map[string]*graphql.FieldSet) - for i, field := range fields { - switch field.Name { - case "__typename": - out.Values[i] = graphql.MarshalString("UserUpdatePayload") - case "user": - out.Values[i] = ec._UserUpdatePayload_user(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 __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 "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++ - } - case "isRepeatable": - out.Values[i] = ec.___Directive_isRepeatable(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) - default: - panic("unknown field " + strconv.Quote(field.Name)) - } - } - out.Dispatch(ctx) - if out.Invalids > 0 { - return graphql.Null - } - - atomic.AddInt32(&ec.deferred, int32(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"} +var userSettingHistoryConnectionImplementors = []string{"UserSettingHistoryConnection"} -func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, obj *introspection.Schema) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __SchemaImplementors) +func (ec *executionContext) _UserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryConnectionImplementors) out := 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) + out.Values[i] = graphql.MarshalString("UserSettingHistoryConnection") + case "edges": + out.Values[i] = ec._UserSettingHistoryConnection_edges(ctx, field, obj) + case "pageInfo": + out.Values[i] = ec._UserSettingHistoryConnection_pageInfo(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) + case "totalCount": + out.Values[i] = ec._UserSettingHistoryConnection_totalCount(ctx, field, obj) if out.Values[i] == graphql.Null { out.Invalids++ } @@ -339379,40 +245652,24 @@ func (ec *executionContext) ___Schema(ctx context.Context, sel ast.SelectionSet, return out } -var __TypeImplementors = []string{"__Type"} +var userSettingHistoryEdgeImplementors = []string{"UserSettingHistoryEdge"} -func (ec *executionContext) ___Type(ctx context.Context, sel ast.SelectionSet, obj *introspection.Type) graphql.Marshaler { - fields := graphql.CollectFields(ec.OperationContext, sel, __TypeImplementors) +func (ec *executionContext) _UserSettingHistoryEdge(ctx context.Context, sel ast.SelectionSet, obj *generated.UserSettingHistoryEdge) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingHistoryEdgeImplementors) out := 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) + out.Values[i] = graphql.MarshalString("UserSettingHistoryEdge") + case "node": + out.Values[i] = ec._UserSettingHistoryEdge_node(ctx, field, obj) + case "cursor": + out.Values[i] = ec._UserSettingHistoryEdge_cursor(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 "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 "specifiedByURL": - out.Values[i] = ec.___Type_specifiedByURL(ctx, field, obj) default: panic("unknown field " + strconv.Quote(field.Name)) } @@ -339454,20 +245711,6 @@ func (ec *executionContext) marshalNAPIToken2ᚖgithubᚗcomᚋtheopenlaneᚋcor return ec._APIToken(ctx, sel, v) } -func (ec *executionContext) marshalNAPITokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenBulkCreatePayload) graphql.Marshaler { - return ec._APITokenBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAPITokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._APITokenBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNAPITokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.APITokenConnection) graphql.Marshaler { return ec._APITokenConnection(ctx, sel, &v) } @@ -339482,48 +245725,6 @@ func (ec *executionContext) marshalNAPITokenConnection2ᚖgithubᚗcomᚋtheopen return ec._APITokenConnection(ctx, sel, v) } -func (ec *executionContext) marshalNAPITokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenCreatePayload) graphql.Marshaler { - return ec._APITokenCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAPITokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._APITokenCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNAPITokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v APITokenDeletePayload) graphql.Marshaler { - return ec._APITokenDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAPITokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._APITokenDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNAPITokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v APITokenUpdatePayload) graphql.Marshaler { - return ec._APITokenUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAPITokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *APITokenUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._APITokenUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNAPITokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInput(ctx context.Context, v interface{}) (*generated.APITokenWhereInput, error) { res, err := ec.unmarshalInputAPITokenWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -339543,20 +245744,6 @@ func (ec *executionContext) marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋc return ec._ActionPlan(ctx, sel, v) } -func (ec *executionContext) marshalNActionPlanBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanBulkCreatePayload) graphql.Marshaler { - return ec._ActionPlanBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNActionPlanBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ActionPlanBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNActionPlanConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanConnection(ctx context.Context, sel ast.SelectionSet, v generated.ActionPlanConnection) graphql.Marshaler { return ec._ActionPlanConnection(ctx, sel, &v) } @@ -339571,34 +245758,6 @@ func (ec *executionContext) marshalNActionPlanConnection2ᚖgithubᚗcomᚋtheop return ec._ActionPlanConnection(ctx, sel, v) } -func (ec *executionContext) marshalNActionPlanCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanCreatePayload) graphql.Marshaler { - return ec._ActionPlanCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNActionPlanCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ActionPlanCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNActionPlanDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanDeletePayload) graphql.Marshaler { - return ec._ActionPlanDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNActionPlanDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ActionPlanDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNActionPlanHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ActionPlanHistoryConnection) graphql.Marshaler { return ec._ActionPlanHistoryConnection(ctx, sel, &v) } @@ -339628,54 +245787,11 @@ func (ec *executionContext) unmarshalNActionPlanHistoryWhereInput2ᚖgithubᚗco return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNActionPlanUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ActionPlanUpdatePayload) graphql.Marshaler { - return ec._ActionPlanUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNActionPlanUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ActionPlanUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ActionPlanUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanWhereInput, error) { res, err := ec.unmarshalInputActionPlanWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNAuditLogConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v AuditLogConnection) graphql.Marshaler { - return ec._AuditLogConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNAuditLogConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogConnection(ctx context.Context, sel ast.SelectionSet, v *AuditLogConnection) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._AuditLogConnection(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - func (ec *executionContext) marshalNContact2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContact(ctx context.Context, sel ast.SelectionSet, v generated.Contact) graphql.Marshaler { return ec._Contact(ctx, sel, &v) } @@ -339690,20 +245806,6 @@ func (ec *executionContext) marshalNContact2ᚖgithubᚗcomᚋtheopenlaneᚋcore return ec._Contact(ctx, sel, v) } -func (ec *executionContext) marshalNContactBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ContactBulkCreatePayload) graphql.Marshaler { - return ec._ContactBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNContactBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ContactBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNContactConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactConnection(ctx context.Context, sel ast.SelectionSet, v generated.ContactConnection) graphql.Marshaler { return ec._ContactConnection(ctx, sel, &v) } @@ -339718,34 +245820,6 @@ func (ec *executionContext) marshalNContactConnection2ᚖgithubᚗcomᚋtheopenl return ec._ContactConnection(ctx, sel, v) } -func (ec *executionContext) marshalNContactCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v ContactCreatePayload) graphql.Marshaler { - return ec._ContactCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNContactCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ContactCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNContactDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v ContactDeletePayload) graphql.Marshaler { - return ec._ContactDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNContactDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ContactDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ContactDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNContactHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ContactHistoryConnection) graphql.Marshaler { return ec._ContactHistoryConnection(ctx, sel, &v) } @@ -339785,20 +245859,6 @@ func (ec *executionContext) unmarshalNContactHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNContactUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ContactUpdatePayload) graphql.Marshaler { - return ec._ContactUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNContactUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ContactUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ContactUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNContactUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { var res enums.UserStatus err := res.UnmarshalGQL(v) @@ -339872,20 +245932,6 @@ func (ec *executionContext) marshalNControl2ᚖgithubᚗcomᚋtheopenlaneᚋcore return ec._Control(ctx, sel, v) } -func (ec *executionContext) marshalNControlBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlBulkCreatePayload) graphql.Marshaler { - return ec._ControlBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNControlConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlConnection) graphql.Marshaler { return ec._ControlConnection(ctx, sel, &v) } @@ -339900,34 +245946,6 @@ func (ec *executionContext) marshalNControlConnection2ᚖgithubᚗcomᚋtheopenl return ec._ControlConnection(ctx, sel, v) } -func (ec *executionContext) marshalNControlCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlCreatePayload) graphql.Marshaler { - return ec._ControlCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNControlDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlDeletePayload(ctx context.Context, sel ast.SelectionSet, v ControlDeletePayload) graphql.Marshaler { - return ec._ControlDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ControlDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNControlHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlHistoryConnection) graphql.Marshaler { return ec._ControlHistoryConnection(ctx, sel, &v) } @@ -339971,20 +245989,6 @@ func (ec *executionContext) marshalNControlObjective2ᚖgithubᚗcomᚋtheopenla return ec._ControlObjective(ctx, sel, v) } -func (ec *executionContext) marshalNControlObjectiveBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveBulkCreatePayload) graphql.Marshaler { - return ec._ControlObjectiveBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlObjectiveBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlObjectiveBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNControlObjectiveConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlObjectiveConnection) graphql.Marshaler { return ec._ControlObjectiveConnection(ctx, sel, &v) } @@ -339999,34 +246003,6 @@ func (ec *executionContext) marshalNControlObjectiveConnection2ᚖgithubᚗcom return ec._ControlObjectiveConnection(ctx, sel, v) } -func (ec *executionContext) marshalNControlObjectiveCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveCreatePayload) graphql.Marshaler { - return ec._ControlObjectiveCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlObjectiveCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlObjectiveCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNControlObjectiveDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveDeletePayload) graphql.Marshaler { - return ec._ControlObjectiveDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlObjectiveDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlObjectiveDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNControlObjectiveHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ControlObjectiveHistoryConnection) graphql.Marshaler { return ec._ControlObjectiveHistoryConnection(ctx, sel, &v) } @@ -340056,39 +246032,11 @@ func (ec *executionContext) unmarshalNControlObjectiveHistoryWhereInput2ᚖgithu return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNControlObjectiveUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ControlObjectiveUpdatePayload) graphql.Marshaler { - return ec._ControlObjectiveUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlObjectiveUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlObjectiveUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNControlObjectiveWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInput(ctx context.Context, v interface{}) (*generated.ControlObjectiveWhereInput, error) { res, err := ec.unmarshalInputControlObjectiveWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNControlUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ControlUpdatePayload) graphql.Marshaler { - return ec._ControlUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNControlUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ControlUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ControlUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNControlWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInput(ctx context.Context, v interface{}) (*generated.ControlWhereInput, error) { res, err := ec.unmarshalInputControlWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -340144,16 +246092,6 @@ func (ec *executionContext) unmarshalNCreateControlObjectiveInput2ᚖgithubᚗco return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateControlWithSubcontrolsInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateControlWithSubcontrolsInput(ctx context.Context, v interface{}) (CreateControlWithSubcontrolsInput, error) { - res, err := ec.unmarshalInputCreateControlWithSubcontrolsInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalNCreateControlWithSubcontrolsInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateControlWithSubcontrolsInput(ctx context.Context, v interface{}) (*CreateControlWithSubcontrolsInput, error) { - res, err := ec.unmarshalInputCreateControlWithSubcontrolsInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - func (ec *executionContext) unmarshalNCreateDocumentDataInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInput(ctx context.Context, v interface{}) (generated.CreateDocumentDataInput, error) { res, err := ec.unmarshalInputCreateDocumentDataInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -340194,11 +246132,6 @@ func (ec *executionContext) unmarshalNCreateEventInput2ᚖgithubᚗcomᚋtheopen return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateFullProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateFullProgramInput(ctx context.Context, v interface{}) (CreateFullProgramInput, error) { - res, err := ec.unmarshalInputCreateFullProgramInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - func (ec *executionContext) unmarshalNCreateGroupInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateGroupInput(ctx context.Context, v interface{}) (generated.CreateGroupInput, error) { res, err := ec.unmarshalInputCreateGroupInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -340269,11 +246202,6 @@ func (ec *executionContext) unmarshalNCreateInviteInput2ᚖgithubᚗcomᚋtheope return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateMemberWithProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateMemberWithProgramInput(ctx context.Context, v interface{}) (*CreateMemberWithProgramInput, error) { - res, err := ec.unmarshalInputCreateMemberWithProgramInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - func (ec *executionContext) unmarshalNCreateNarrativeInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInput(ctx context.Context, v interface{}) (generated.CreateNarrativeInput, error) { res, err := ec.unmarshalInputCreateNarrativeInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -340364,11 +246292,6 @@ func (ec *executionContext) unmarshalNCreateProgramMembershipInput2ᚖgithubᚗc return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNCreateProgramWithMembersInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateProgramWithMembersInput(ctx context.Context, v interface{}) (CreateProgramWithMembersInput, error) { - res, err := ec.unmarshalInputCreateProgramWithMembersInput(ctx, v) - return res, graphql.ErrorOnPath(ctx, err) -} - func (ec *executionContext) unmarshalNCreateRiskInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInput(ctx context.Context, v interface{}) (generated.CreateRiskInput, error) { res, err := ec.unmarshalInputCreateRiskInput(ctx, v) return res, graphql.ErrorOnPath(ctx, err) @@ -340473,20 +246396,6 @@ func (ec *executionContext) marshalNDocumentData2ᚖgithubᚗcomᚋtheopenlane return ec._DocumentData(ctx, sel, v) } -func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataBulkCreatePayload) graphql.Marshaler { - return ec._DocumentDataBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentDataBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentDataBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNDocumentDataConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataConnection(ctx context.Context, sel ast.SelectionSet, v generated.DocumentDataConnection) graphql.Marshaler { return ec._DocumentDataConnection(ctx, sel, &v) } @@ -340501,34 +246410,6 @@ func (ec *executionContext) marshalNDocumentDataConnection2ᚖgithubᚗcomᚋthe return ec._DocumentDataConnection(ctx, sel, v) } -func (ec *executionContext) marshalNDocumentDataCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataCreatePayload) graphql.Marshaler { - return ec._DocumentDataCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentDataCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataCreatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentDataCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNDocumentDataDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataDeletePayload) graphql.Marshaler { - return ec._DocumentDataDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentDataDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataDeletePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentDataDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNDocumentDataHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.DocumentDataHistoryConnection) graphql.Marshaler { return ec._DocumentDataHistoryConnection(ctx, sel, &v) } @@ -340558,20 +246439,6 @@ func (ec *executionContext) unmarshalNDocumentDataHistoryWhereInput2ᚖgithubᚗ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNDocumentDataUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v DocumentDataUpdatePayload) graphql.Marshaler { - return ec._DocumentDataUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNDocumentDataUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *DocumentDataUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._DocumentDataUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNDocumentDataWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInput(ctx context.Context, v interface{}) (*generated.DocumentDataWhereInput, error) { res, err := ec.unmarshalInputDocumentDataWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -340591,20 +246458,6 @@ func (ec *executionContext) marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcore return ec._Entity(ctx, sel, v) } -func (ec *executionContext) marshalNEntityBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityBulkCreatePayload) graphql.Marshaler { - return ec._EntityBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNEntityConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityConnection) graphql.Marshaler { return ec._EntityConnection(ctx, sel, &v) } @@ -340619,34 +246472,6 @@ func (ec *executionContext) marshalNEntityConnection2ᚖgithubᚗcomᚋtheopenla return ec._EntityConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEntityCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityCreatePayload) graphql.Marshaler { - return ec._EntityCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNEntityDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntityDeletePayload) graphql.Marshaler { - return ec._EntityDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntityDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNEntityHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityHistoryConnection) graphql.Marshaler { return ec._EntityHistoryConnection(ctx, sel, &v) } @@ -340722,20 +246547,6 @@ func (ec *executionContext) marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋc return ec._EntityType(ctx, sel, v) } -func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeBulkCreatePayload) graphql.Marshaler { - return ec._EntityTypeBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityTypeBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNEntityTypeConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityTypeConnection) graphql.Marshaler { return ec._EntityTypeConnection(ctx, sel, &v) } @@ -340750,34 +246561,6 @@ func (ec *executionContext) marshalNEntityTypeConnection2ᚖgithubᚗcomᚋtheop return ec._EntityTypeConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEntityTypeCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeCreatePayload) graphql.Marshaler { - return ec._EntityTypeCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityTypeCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNEntityTypeDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeDeletePayload) graphql.Marshaler { - return ec._EntityTypeDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityTypeDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNEntityTypeHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EntityTypeHistoryConnection) graphql.Marshaler { return ec._EntityTypeHistoryConnection(ctx, sel, &v) } @@ -340839,39 +246622,11 @@ func (ec *executionContext) marshalNEntityTypeOrderField2ᚖgithubᚗcomᚋtheop return v } -func (ec *executionContext) marshalNEntityTypeUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntityTypeUpdatePayload) graphql.Marshaler { - return ec._EntityTypeUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityTypeUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityTypeUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNEntityTypeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInput(ctx context.Context, v interface{}) (*generated.EntityTypeWhereInput, error) { res, err := ec.unmarshalInputEntityTypeWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEntityUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EntityUpdatePayload) graphql.Marshaler { - return ec._EntityUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EntityUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EntityUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNEntityWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityWhereInput(ctx context.Context, v interface{}) (*generated.EntityWhereInput, error) { res, err := ec.unmarshalInputEntityWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -340891,20 +246646,6 @@ func (ec *executionContext) marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcore return ec._Event(ctx, sel, v) } -func (ec *executionContext) marshalNEventBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v EventBulkCreatePayload) graphql.Marshaler { - return ec._EventBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EventBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EventBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNEventConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventConnection(ctx context.Context, sel ast.SelectionSet, v generated.EventConnection) graphql.Marshaler { return ec._EventConnection(ctx, sel, &v) } @@ -340919,34 +246660,6 @@ func (ec *executionContext) marshalNEventConnection2ᚖgithubᚗcomᚋtheopenlan return ec._EventConnection(ctx, sel, v) } -func (ec *executionContext) marshalNEventCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v EventCreatePayload) graphql.Marshaler { - return ec._EventCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v *EventCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EventCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNEventDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v EventDeletePayload) graphql.Marshaler { - return ec._EventDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v *EventDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EventDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNEventHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.EventHistoryConnection) graphql.Marshaler { return ec._EventHistoryConnection(ctx, sel, &v) } @@ -340976,20 +246689,6 @@ func (ec *executionContext) unmarshalNEventHistoryWhereInput2ᚖgithubᚗcomᚋt return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNEventUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v EventUpdatePayload) graphql.Marshaler { - return ec._EventUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *EventUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._EventUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNEventWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInput(ctx context.Context, v interface{}) (*generated.EventWhereInput, error) { res, err := ec.unmarshalInputEventWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -341023,20 +246722,6 @@ func (ec *executionContext) marshalNFileConnection2ᚖgithubᚗcomᚋtheopenlane return ec._FileConnection(ctx, sel, v) } -func (ec *executionContext) marshalNFileDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v FileDeletePayload) graphql.Marshaler { - return ec._FileDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v *FileDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._FileDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNFileHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.FileHistoryConnection) graphql.Marshaler { return ec._FileHistoryConnection(ctx, sel, &v) } @@ -341085,20 +246770,6 @@ func (ec *executionContext) marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcore return ec._Group(ctx, sel, v) } -func (ec *executionContext) marshalNGroupBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupBulkCreatePayload) graphql.Marshaler { - return ec._GroupBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNGroupConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupConnection) graphql.Marshaler { return ec._GroupConnection(ctx, sel, &v) } @@ -341113,34 +246784,6 @@ func (ec *executionContext) marshalNGroupConnection2ᚖgithubᚗcomᚋtheopenlan return ec._GroupConnection(ctx, sel, v) } -func (ec *executionContext) marshalNGroupCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupCreatePayload) graphql.Marshaler { - return ec._GroupCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupDeletePayload) graphql.Marshaler { - return ec._GroupDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNGroupHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupHistoryConnection) graphql.Marshaler { return ec._GroupHistoryConnection(ctx, sel, &v) } @@ -341200,20 +246843,6 @@ func (ec *executionContext) marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlan return ec._GroupMembership(ctx, sel, v) } -func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipBulkCreatePayload) graphql.Marshaler { - return ec._GroupMembershipBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupMembershipBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNGroupMembershipConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembershipConnection) graphql.Marshaler { return ec._GroupMembershipConnection(ctx, sel, &v) } @@ -341228,34 +246857,6 @@ func (ec *executionContext) marshalNGroupMembershipConnection2ᚖgithubᚗcomᚋ return ec._GroupMembershipConnection(ctx, sel, v) } -func (ec *executionContext) marshalNGroupMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipCreatePayload) graphql.Marshaler { - return ec._GroupMembershipCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupMembershipCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipDeletePayload) graphql.Marshaler { - return ec._GroupMembershipDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupMembershipDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNGroupMembershipHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupMembershipHistoryConnection) graphql.Marshaler { return ec._GroupMembershipHistoryConnection(ctx, sel, &v) } @@ -341305,20 +246906,6 @@ func (ec *executionContext) marshalNGroupMembershipRole2githubᚗcomᚋtheopenla return v } -func (ec *executionContext) marshalNGroupMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupMembershipUpdatePayload) graphql.Marshaler { - return ec._GroupMembershipUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupMembershipUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupMembershipUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNGroupMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipWhereInput(ctx context.Context, v interface{}) (*generated.GroupMembershipWhereInput, error) { res, err := ec.unmarshalInputGroupMembershipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -341354,20 +246941,6 @@ func (ec *executionContext) marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlane return ec._GroupSetting(ctx, sel, v) } -func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingBulkCreatePayload) graphql.Marshaler { - return ec._GroupSettingBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupSettingBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNGroupSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupSettingConnection) graphql.Marshaler { return ec._GroupSettingConnection(ctx, sel, &v) } @@ -341382,34 +246955,6 @@ func (ec *executionContext) marshalNGroupSettingConnection2ᚖgithubᚗcomᚋthe return ec._GroupSettingConnection(ctx, sel, v) } -func (ec *executionContext) marshalNGroupSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingCreatePayload) graphql.Marshaler { - return ec._GroupSettingCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupSettingCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNGroupSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingDeletePayload) graphql.Marshaler { - return ec._GroupSettingDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupSettingDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNGroupSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.GroupSettingHistoryConnection) graphql.Marshaler { return ec._GroupSettingHistoryConnection(ctx, sel, &v) } @@ -341469,20 +247014,6 @@ func (ec *executionContext) marshalNGroupSettingJoinPolicy2githubᚗcomᚋtheope return v } -func (ec *executionContext) marshalNGroupSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupSettingUpdatePayload) graphql.Marshaler { - return ec._GroupSettingUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupSettingUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupSettingUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNGroupSettingVisibility2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibility(ctx context.Context, v interface{}) (enums.Visibility, error) { var res enums.Visibility err := res.UnmarshalGQL(v) @@ -341498,20 +247029,6 @@ func (ec *executionContext) unmarshalNGroupSettingWhereInput2ᚖgithubᚗcomᚋt return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNGroupUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v GroupUpdatePayload) graphql.Marshaler { - return ec._GroupUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *GroupUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._GroupUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNGroupWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupWhereInput(ctx context.Context, v interface{}) (*generated.GroupWhereInput, error) { res, err := ec.unmarshalInputGroupWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -341531,20 +247048,6 @@ func (ec *executionContext) marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋ return ec._Hush(ctx, sel, v) } -func (ec *executionContext) marshalNHushBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v HushBulkCreatePayload) graphql.Marshaler { - return ec._HushBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *HushBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._HushBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNHushConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushConnection(ctx context.Context, sel ast.SelectionSet, v generated.HushConnection) graphql.Marshaler { return ec._HushConnection(ctx, sel, &v) } @@ -341559,34 +247062,6 @@ func (ec *executionContext) marshalNHushConnection2ᚖgithubᚗcomᚋtheopenlane return ec._HushConnection(ctx, sel, v) } -func (ec *executionContext) marshalNHushCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v HushCreatePayload) graphql.Marshaler { - return ec._HushCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v *HushCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._HushCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNHushDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v HushDeletePayload) graphql.Marshaler { - return ec._HushDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v *HushDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._HushDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNHushHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.HushHistoryConnection) graphql.Marshaler { return ec._HushHistoryConnection(ctx, sel, &v) } @@ -341648,102 +247123,11 @@ func (ec *executionContext) marshalNHushOrderField2ᚖgithubᚗcomᚋtheopenlane return v } -func (ec *executionContext) marshalNHushUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v HushUpdatePayload) graphql.Marshaler { - return ec._HushUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *HushUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._HushUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNHushWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushWhereInput(ctx context.Context, v interface{}) (*generated.HushWhereInput, error) { res, err := ec.unmarshalInputHushWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - 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.unmarshalNID2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNID2string(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { - res, err := graphql.UnmarshalInt(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { - res := graphql.MarshalInt(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { - res, err := graphql.UnmarshalInt64(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { - res := graphql.MarshalInt64(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) marshalNIntegration2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx context.Context, sel ast.SelectionSet, v generated.Integration) graphql.Marshaler { return ec._Integration(ctx, sel, &v) } @@ -341758,20 +247142,6 @@ func (ec *executionContext) marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋ return ec._Integration(ctx, sel, v) } -func (ec *executionContext) marshalNIntegrationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationBulkCreatePayload) graphql.Marshaler { - return ec._IntegrationBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IntegrationBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNIntegrationConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationConnection(ctx context.Context, sel ast.SelectionSet, v generated.IntegrationConnection) graphql.Marshaler { return ec._IntegrationConnection(ctx, sel, &v) } @@ -341786,34 +247156,6 @@ func (ec *executionContext) marshalNIntegrationConnection2ᚖgithubᚗcomᚋtheo return ec._IntegrationConnection(ctx, sel, v) } -func (ec *executionContext) marshalNIntegrationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationCreatePayload) graphql.Marshaler { - return ec._IntegrationCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IntegrationCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNIntegrationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationDeletePayload) graphql.Marshaler { - return ec._IntegrationDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IntegrationDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNIntegrationHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.IntegrationHistoryConnection) graphql.Marshaler { return ec._IntegrationHistoryConnection(ctx, sel, &v) } @@ -341875,20 +247217,6 @@ func (ec *executionContext) marshalNIntegrationOrderField2ᚖgithubᚗcomᚋtheo return v } -func (ec *executionContext) marshalNIntegrationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v IntegrationUpdatePayload) graphql.Marshaler { - return ec._IntegrationUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *IntegrationUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._IntegrationUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNIntegrationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInput(ctx context.Context, v interface{}) (*generated.IntegrationWhereInput, error) { res, err := ec.unmarshalInputIntegrationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -341908,20 +247236,6 @@ func (ec *executionContext) marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlane return ec._InternalPolicy(ctx, sel, v) } -func (ec *executionContext) marshalNInternalPolicyBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyBulkCreatePayload) graphql.Marshaler { - return ec._InternalPolicyBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InternalPolicyBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNInternalPolicyConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyConnection(ctx context.Context, sel ast.SelectionSet, v generated.InternalPolicyConnection) graphql.Marshaler { return ec._InternalPolicyConnection(ctx, sel, &v) } @@ -341936,34 +247250,6 @@ func (ec *executionContext) marshalNInternalPolicyConnection2ᚖgithubᚗcomᚋt return ec._InternalPolicyConnection(ctx, sel, v) } -func (ec *executionContext) marshalNInternalPolicyCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyCreatePayload) graphql.Marshaler { - return ec._InternalPolicyCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInternalPolicyCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InternalPolicyCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNInternalPolicyDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyDeletePayload) graphql.Marshaler { - return ec._InternalPolicyDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInternalPolicyDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InternalPolicyDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNInternalPolicyHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.InternalPolicyHistoryConnection) graphql.Marshaler { return ec._InternalPolicyHistoryConnection(ctx, sel, &v) } @@ -341993,20 +247279,6 @@ func (ec *executionContext) unmarshalNInternalPolicyHistoryWhereInput2ᚖgithub return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNInternalPolicyUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, v InternalPolicyUpdatePayload) graphql.Marshaler { - return ec._InternalPolicyUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInternalPolicyUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *InternalPolicyUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InternalPolicyUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNInternalPolicyWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInput(ctx context.Context, v interface{}) (*generated.InternalPolicyWhereInput, error) { res, err := ec.unmarshalInputInternalPolicyWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -342026,20 +247298,6 @@ func (ec *executionContext) marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcore return ec._Invite(ctx, sel, v) } -func (ec *executionContext) marshalNInviteBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v InviteBulkCreatePayload) graphql.Marshaler { - return ec._InviteBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InviteBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNInviteConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteConnection(ctx context.Context, sel ast.SelectionSet, v generated.InviteConnection) graphql.Marshaler { return ec._InviteConnection(ctx, sel, &v) } @@ -342054,34 +247312,6 @@ func (ec *executionContext) marshalNInviteConnection2ᚖgithubᚗcomᚋtheopenla return ec._InviteConnection(ctx, sel, v) } -func (ec *executionContext) marshalNInviteCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v InviteCreatePayload) graphql.Marshaler { - return ec._InviteCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InviteCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNInviteDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v InviteDeletePayload) graphql.Marshaler { - return ec._InviteDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v *InviteDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InviteDeletePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNInviteInviteStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐInviteStatus(ctx context.Context, v interface{}) (enums.InviteStatus, error) { var res enums.InviteStatus err := res.UnmarshalGQL(v) @@ -342102,20 +247332,6 @@ func (ec *executionContext) marshalNInviteRole2githubᚗcomᚋtheopenlaneᚋcore return v } -func (ec *executionContext) marshalNInviteUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v InviteUpdatePayload) graphql.Marshaler { - return ec._InviteUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *InviteUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._InviteUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNInviteWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteWhereInput(ctx context.Context, v interface{}) (*generated.InviteWhereInput, error) { res, err := ec.unmarshalInputInviteWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -342151,20 +247367,6 @@ func (ec *executionContext) marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋco return ec._Narrative(ctx, sel, v) } -func (ec *executionContext) marshalNNarrativeBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeBulkCreatePayload) graphql.Marshaler { - return ec._NarrativeBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._NarrativeBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNNarrativeConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeConnection(ctx context.Context, sel ast.SelectionSet, v generated.NarrativeConnection) graphql.Marshaler { return ec._NarrativeConnection(ctx, sel, &v) } @@ -342179,34 +247381,6 @@ func (ec *executionContext) marshalNNarrativeConnection2ᚖgithubᚗcomᚋtheope return ec._NarrativeConnection(ctx, sel, v) } -func (ec *executionContext) marshalNNarrativeCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeCreatePayload) graphql.Marshaler { - return ec._NarrativeCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNNarrativeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._NarrativeCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNNarrativeDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeDeletePayload) graphql.Marshaler { - return ec._NarrativeDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNNarrativeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._NarrativeDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNNarrativeHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.NarrativeHistoryConnection) graphql.Marshaler { return ec._NarrativeHistoryConnection(ctx, sel, &v) } @@ -342236,20 +247410,6 @@ func (ec *executionContext) unmarshalNNarrativeHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNNarrativeUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v NarrativeUpdatePayload) graphql.Marshaler { - return ec._NarrativeUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNNarrativeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *NarrativeUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._NarrativeUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNNarrativeWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInput(ctx context.Context, v interface{}) (*generated.NarrativeWhereInput, error) { res, err := ec.unmarshalInputNarrativeWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -342375,20 +247535,6 @@ func (ec *executionContext) marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlane return ec._OrgMembership(ctx, sel, v) } -func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipBulkCreatePayload) graphql.Marshaler { - return ec._OrgMembershipBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgMembershipBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNOrgMembershipConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembershipConnection) graphql.Marshaler { return ec._OrgMembershipConnection(ctx, sel, &v) } @@ -342403,34 +247549,6 @@ func (ec *executionContext) marshalNOrgMembershipConnection2ᚖgithubᚗcomᚋth return ec._OrgMembershipConnection(ctx, sel, v) } -func (ec *executionContext) marshalNOrgMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipCreatePayload) graphql.Marshaler { - return ec._OrgMembershipCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgMembershipCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrgMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipDeletePayload) graphql.Marshaler { - return ec._OrgMembershipDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgMembershipDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNOrgMembershipHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgMembershipHistoryConnection) graphql.Marshaler { return ec._OrgMembershipHistoryConnection(ctx, sel, &v) } @@ -342480,20 +247598,6 @@ func (ec *executionContext) marshalNOrgMembershipRole2githubᚗcomᚋtheopenlane return v } -func (ec *executionContext) marshalNOrgMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrgMembershipUpdatePayload) graphql.Marshaler { - return ec._OrgMembershipUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgMembershipUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgMembershipUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNOrgMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipWhereInput(ctx context.Context, v interface{}) (*generated.OrgMembershipWhereInput, error) { res, err := ec.unmarshalInputOrgMembershipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -342513,20 +247617,6 @@ func (ec *executionContext) marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlan return ec._OrgSubscription(ctx, sel, v) } -func (ec *executionContext) marshalNOrgSubscriptionBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgSubscriptionBulkCreatePayload) graphql.Marshaler { - return ec._OrgSubscriptionBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgSubscriptionBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgSubscriptionBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgSubscriptionBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNOrgSubscriptionConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgSubscriptionConnection) graphql.Marshaler { return ec._OrgSubscriptionConnection(ctx, sel, &v) } @@ -342541,34 +247631,6 @@ func (ec *executionContext) marshalNOrgSubscriptionConnection2ᚖgithubᚗcomᚋ return ec._OrgSubscriptionConnection(ctx, sel, v) } -func (ec *executionContext) marshalNOrgSubscriptionCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrgSubscriptionCreatePayload) graphql.Marshaler { - return ec._OrgSubscriptionCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgSubscriptionCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgSubscriptionCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgSubscriptionCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrgSubscriptionDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrgSubscriptionDeletePayload) graphql.Marshaler { - return ec._OrgSubscriptionDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgSubscriptionDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrgSubscriptionDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgSubscriptionDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNOrgSubscriptionHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrgSubscriptionHistoryConnection) graphql.Marshaler { return ec._OrgSubscriptionHistoryConnection(ctx, sel, &v) } @@ -342593,98 +247655,42 @@ func (ec *executionContext) marshalNOrgSubscriptionHistoryOpType2githubᚗcomᚋ return v } -func (ec *executionContext) unmarshalNOrgSubscriptionHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrgSubscriptionHistoryWhereInput, error) { - res, err := ec.unmarshalInputOrgSubscriptionHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrgSubscriptionUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrgSubscriptionUpdatePayload) graphql.Marshaler { - return ec._OrgSubscriptionUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrgSubscriptionUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrgSubscriptionUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrgSubscriptionUpdatePayload(ctx, sel, v) -} - -func (ec *executionContext) unmarshalNOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx context.Context, v interface{}) (*generated.OrgSubscriptionWhereInput, error) { - res, err := ec.unmarshalInputOrgSubscriptionWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNOrganization2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v generated.Organization) graphql.Marshaler { - return ec._Organization(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *generated.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) marshalNOrganizationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationBulkCreatePayload) graphql.Marshaler { - return ec._OrganizationBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrganizationBulkCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationConnection) graphql.Marshaler { - return ec._OrganizationConnection(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v *generated.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) marshalNOrganizationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationCreatePayload) graphql.Marshaler { - return ec._OrganizationCreatePayload(ctx, sel, &v) +func (ec *executionContext) unmarshalNOrgSubscriptionHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrgSubscriptionHistoryWhereInput, error) { + res, err := ec.unmarshalInputOrgSubscriptionHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNOrgSubscriptionWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInput(ctx context.Context, v interface{}) (*generated.OrgSubscriptionWhereInput, error) { + res, err := ec.unmarshalInputOrgSubscriptionWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationCreatePayload) graphql.Marshaler { +func (ec *executionContext) marshalNOrganization2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v generated.Organization) graphql.Marshaler { + return ec._Organization(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx context.Context, sel ast.SelectionSet, v *generated.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._OrganizationCreatePayload(ctx, sel, v) + return ec._Organization(ctx, sel, v) } -func (ec *executionContext) marshalNOrganizationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationDeletePayload) graphql.Marshaler { - return ec._OrganizationDeletePayload(ctx, sel, &v) +func (ec *executionContext) marshalNOrganizationConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationConnection) graphql.Marshaler { + return ec._OrganizationConnection(ctx, sel, &v) } -func (ec *executionContext) marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationDeletePayload) graphql.Marshaler { +func (ec *executionContext) marshalNOrganizationConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationConnection(ctx context.Context, sel ast.SelectionSet, v *generated.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._OrganizationDeletePayload(ctx, sel, v) + return ec._OrganizationConnection(ctx, sel, v) } func (ec *executionContext) marshalNOrganizationHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationHistoryConnection) graphql.Marshaler { @@ -342762,20 +247768,6 @@ func (ec *executionContext) marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheope return ec._OrganizationSetting(ctx, sel, v) } -func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingBulkCreatePayload) graphql.Marshaler { - return ec._OrganizationSettingBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrganizationSettingBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNOrganizationSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSettingConnection) graphql.Marshaler { return ec._OrganizationSettingConnection(ctx, sel, &v) } @@ -342790,34 +247782,6 @@ func (ec *executionContext) marshalNOrganizationSettingConnection2ᚖgithubᚗco return ec._OrganizationSettingConnection(ctx, sel, v) } -func (ec *executionContext) marshalNOrganizationSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingCreatePayload) graphql.Marshaler { - return ec._OrganizationSettingCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrganizationSettingCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNOrganizationSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingDeletePayload) graphql.Marshaler { - return ec._OrganizationSettingDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrganizationSettingDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNOrganizationSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.OrganizationSettingHistoryConnection) graphql.Marshaler { return ec._OrganizationSettingHistoryConnection(ctx, sel, &v) } @@ -342867,39 +247831,11 @@ func (ec *executionContext) marshalNOrganizationSettingRegion2githubᚗcomᚋthe return v } -func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationSettingUpdatePayload) graphql.Marshaler { - return ec._OrganizationSettingUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrganizationSettingUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNOrganizationSettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingWhereInput, error) { res, err := ec.unmarshalInputOrganizationSettingWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNOrganizationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v OrganizationUpdatePayload) graphql.Marshaler { - return ec._OrganizationUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *OrganizationUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._OrganizationUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNOrganizationWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationWhereInput, error) { res, err := ec.unmarshalInputOrganizationWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -342933,20 +247869,6 @@ func (ec *executionContext) marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheope return ec._PersonalAccessToken(ctx, sel, v) } -func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { - return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNPersonalAccessTokenConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenConnection(ctx context.Context, sel ast.SelectionSet, v generated.PersonalAccessTokenConnection) graphql.Marshaler { return ec._PersonalAccessTokenConnection(ctx, sel, &v) } @@ -342961,48 +247883,6 @@ func (ec *executionContext) marshalNPersonalAccessTokenConnection2ᚖgithubᚗco return ec._PersonalAccessTokenConnection(ctx, sel, v) } -func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenCreatePayload) graphql.Marshaler { - return ec._PersonalAccessTokenCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PersonalAccessTokenCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenDeletePayload) graphql.Marshaler { - return ec._PersonalAccessTokenDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PersonalAccessTokenDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v PersonalAccessTokenUpdatePayload) graphql.Marshaler { - return ec._PersonalAccessTokenUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._PersonalAccessTokenUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNPersonalAccessTokenWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInput(ctx context.Context, v interface{}) (*generated.PersonalAccessTokenWhereInput, error) { res, err := ec.unmarshalInputPersonalAccessTokenWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -343022,20 +247902,6 @@ func (ec *executionContext) marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋco return ec._Procedure(ctx, sel, v) } -func (ec *executionContext) marshalNProcedureBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureBulkCreatePayload) graphql.Marshaler { - return ec._ProcedureBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProcedureBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNProcedureConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProcedureConnection) graphql.Marshaler { return ec._ProcedureConnection(ctx, sel, &v) } @@ -343050,34 +247916,6 @@ func (ec *executionContext) marshalNProcedureConnection2ᚖgithubᚗcomᚋtheope return ec._ProcedureConnection(ctx, sel, v) } -func (ec *executionContext) marshalNProcedureCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureCreatePayload) graphql.Marshaler { - return ec._ProcedureCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProcedureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProcedureCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNProcedureDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureDeletePayload) graphql.Marshaler { - return ec._ProcedureDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProcedureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProcedureDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNProcedureHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProcedureHistoryConnection) graphql.Marshaler { return ec._ProcedureHistoryConnection(ctx, sel, &v) } @@ -343107,20 +247945,6 @@ func (ec *executionContext) unmarshalNProcedureHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNProcedureUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ProcedureUpdatePayload) graphql.Marshaler { - return ec._ProcedureUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProcedureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ProcedureUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProcedureUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNProcedureWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInput(ctx context.Context, v interface{}) (*generated.ProcedureWhereInput, error) { res, err := ec.unmarshalInputProcedureWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -343140,20 +247964,6 @@ func (ec *executionContext) marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcore return ec._Program(ctx, sel, v) } -func (ec *executionContext) marshalNProgramBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProgramBulkCreatePayload) graphql.Marshaler { - return ec._ProgramBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNProgramConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProgramConnection) graphql.Marshaler { return ec._ProgramConnection(ctx, sel, &v) } @@ -343168,34 +247978,6 @@ func (ec *executionContext) marshalNProgramConnection2ᚖgithubᚗcomᚋtheopenl return ec._ProgramConnection(ctx, sel, v) } -func (ec *executionContext) marshalNProgramCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProgramCreatePayload) graphql.Marshaler { - return ec._ProgramCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNProgramDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramDeletePayload(ctx context.Context, sel ast.SelectionSet, v ProgramDeletePayload) graphql.Marshaler { - return ec._ProgramDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNProgramHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProgramHistoryConnection) graphql.Marshaler { return ec._ProgramHistoryConnection(ctx, sel, &v) } @@ -343249,20 +248031,6 @@ func (ec *executionContext) marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenl return ec._ProgramMembership(ctx, sel, v) } -func (ec *executionContext) marshalNProgramMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProgramMembershipBulkCreatePayload) graphql.Marshaler { - return ec._ProgramMembershipBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramMembershipBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramMembershipBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNProgramMembershipConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProgramMembershipConnection) graphql.Marshaler { return ec._ProgramMembershipConnection(ctx, sel, &v) } @@ -343277,34 +248045,6 @@ func (ec *executionContext) marshalNProgramMembershipConnection2ᚖgithubᚗcom return ec._ProgramMembershipConnection(ctx, sel, v) } -func (ec *executionContext) marshalNProgramMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v ProgramMembershipCreatePayload) graphql.Marshaler { - return ec._ProgramMembershipCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramMembershipCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramMembershipCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNProgramMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v ProgramMembershipDeletePayload) graphql.Marshaler { - return ec._ProgramMembershipDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramMembershipDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramMembershipDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNProgramMembershipHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.ProgramMembershipHistoryConnection) graphql.Marshaler { return ec._ProgramMembershipHistoryConnection(ctx, sel, &v) } @@ -343354,20 +248094,6 @@ func (ec *executionContext) marshalNProgramMembershipRole2githubᚗcomᚋtheopen return v } -func (ec *executionContext) marshalNProgramMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ProgramMembershipUpdatePayload) graphql.Marshaler { - return ec._ProgramMembershipUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramMembershipUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramMembershipUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNProgramMembershipWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipWhereInput(ctx context.Context, v interface{}) (*generated.ProgramMembershipWhereInput, error) { res, err := ec.unmarshalInputProgramMembershipWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -343383,20 +248109,6 @@ func (ec *executionContext) marshalNProgramProgramStatus2githubᚗcomᚋtheopenl return v } -func (ec *executionContext) marshalNProgramUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramUpdatePayload(ctx context.Context, sel ast.SelectionSet, v ProgramUpdatePayload) graphql.Marshaler { - return ec._ProgramUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNProgramUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *ProgramUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._ProgramUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNProgramWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInput(ctx context.Context, v interface{}) (*generated.ProgramWhereInput, error) { res, err := ec.unmarshalInputProgramWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -343416,20 +248128,6 @@ func (ec *executionContext) marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋ return ec._Risk(ctx, sel, v) } -func (ec *executionContext) marshalNRiskBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v RiskBulkCreatePayload) graphql.Marshaler { - return ec._RiskBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *RiskBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RiskBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNRiskConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskConnection(ctx context.Context, sel ast.SelectionSet, v generated.RiskConnection) graphql.Marshaler { return ec._RiskConnection(ctx, sel, &v) } @@ -343444,34 +248142,6 @@ func (ec *executionContext) marshalNRiskConnection2ᚖgithubᚗcomᚋtheopenlane return ec._RiskConnection(ctx, sel, v) } -func (ec *executionContext) marshalNRiskCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskCreatePayload(ctx context.Context, sel ast.SelectionSet, v RiskCreatePayload) graphql.Marshaler { - return ec._RiskCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRiskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskCreatePayload(ctx context.Context, sel ast.SelectionSet, v *RiskCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RiskCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNRiskDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskDeletePayload(ctx context.Context, sel ast.SelectionSet, v RiskDeletePayload) graphql.Marshaler { - return ec._RiskDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRiskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskDeletePayload(ctx context.Context, sel ast.SelectionSet, v *RiskDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RiskDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNRiskHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.RiskHistoryConnection) graphql.Marshaler { return ec._RiskHistoryConnection(ctx, sel, &v) } @@ -343541,79 +248211,11 @@ func (ec *executionContext) marshalNRiskRiskLikelihood2githubᚗcomᚋtheopenlan return v } -func (ec *executionContext) marshalNRiskUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v RiskUpdatePayload) graphql.Marshaler { - return ec._RiskUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNRiskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *RiskUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._RiskUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNRiskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInput(ctx context.Context, v interface{}) (*generated.RiskWhereInput, error) { res, err := ec.unmarshalInputRiskWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResult(ctx context.Context, sel ast.SelectionSet, v SearchResult) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SearchResult(ctx, sel, v) -} - -func (ec *executionContext) marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultᚄ(ctx context.Context, sel ast.SelectionSet, v []SearchResult) 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.marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResult(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) marshalNStandard2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx context.Context, sel ast.SelectionSet, v generated.Standard) graphql.Marshaler { return ec._Standard(ctx, sel, &v) } @@ -343628,20 +248230,6 @@ func (ec *executionContext) marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcor return ec._Standard(ctx, sel, v) } -func (ec *executionContext) marshalNStandardBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v StandardBulkCreatePayload) graphql.Marshaler { - return ec._StandardBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *StandardBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._StandardBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNStandardConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardConnection(ctx context.Context, sel ast.SelectionSet, v generated.StandardConnection) graphql.Marshaler { return ec._StandardConnection(ctx, sel, &v) } @@ -343656,34 +248244,6 @@ func (ec *executionContext) marshalNStandardConnection2ᚖgithubᚗcomᚋtheopen return ec._StandardConnection(ctx, sel, v) } -func (ec *executionContext) marshalNStandardCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardCreatePayload(ctx context.Context, sel ast.SelectionSet, v StandardCreatePayload) graphql.Marshaler { - return ec._StandardCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStandardCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardCreatePayload(ctx context.Context, sel ast.SelectionSet, v *StandardCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._StandardCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNStandardDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardDeletePayload(ctx context.Context, sel ast.SelectionSet, v StandardDeletePayload) graphql.Marshaler { - return ec._StandardDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStandardDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardDeletePayload(ctx context.Context, sel ast.SelectionSet, v *StandardDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._StandardDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNStandardHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.StandardHistoryConnection) graphql.Marshaler { return ec._StandardHistoryConnection(ctx, sel, &v) } @@ -343713,40 +248273,11 @@ func (ec *executionContext) unmarshalNStandardHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNStandardUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, v StandardUpdatePayload) graphql.Marshaler { - return ec._StandardUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNStandardUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *StandardUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._StandardUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNStandardWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInput(ctx context.Context, v interface{}) (*generated.StandardWhereInput, error) { res, err := ec.unmarshalInputStandardWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - func (ec *executionContext) marshalNSubcontrol2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx context.Context, sel ast.SelectionSet, v generated.Subcontrol) graphql.Marshaler { return ec._Subcontrol(ctx, sel, &v) } @@ -343761,20 +248292,6 @@ func (ec *executionContext) marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋc return ec._Subcontrol(ctx, sel, v) } -func (ec *executionContext) marshalNSubcontrolBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolBulkCreatePayload) graphql.Marshaler { - return ec._SubcontrolBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubcontrolBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNSubcontrolConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolConnection(ctx context.Context, sel ast.SelectionSet, v generated.SubcontrolConnection) graphql.Marshaler { return ec._SubcontrolConnection(ctx, sel, &v) } @@ -343789,34 +248306,6 @@ func (ec *executionContext) marshalNSubcontrolConnection2ᚖgithubᚗcomᚋtheop return ec._SubcontrolConnection(ctx, sel, v) } -func (ec *executionContext) marshalNSubcontrolCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolCreatePayload) graphql.Marshaler { - return ec._SubcontrolCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubcontrolCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubcontrolCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubcontrolDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolDeletePayload) graphql.Marshaler { - return ec._SubcontrolDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubcontrolDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubcontrolDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNSubcontrolHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.SubcontrolHistoryConnection) graphql.Marshaler { return ec._SubcontrolHistoryConnection(ctx, sel, &v) } @@ -343846,20 +248335,6 @@ func (ec *executionContext) unmarshalNSubcontrolHistoryWhereInput2ᚖgithubᚗco return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNSubcontrolUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, v SubcontrolUpdatePayload) graphql.Marshaler { - return ec._SubcontrolUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubcontrolUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *SubcontrolUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubcontrolUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNSubcontrolWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInput(ctx context.Context, v interface{}) (*generated.SubcontrolWhereInput, error) { res, err := ec.unmarshalInputSubcontrolWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -343879,20 +248354,6 @@ func (ec *executionContext) marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋc return ec._Subscriber(ctx, sel, v) } -func (ec *executionContext) marshalNSubscriberBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberBulkCreatePayload) graphql.Marshaler { - return ec._SubscriberBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubscriberBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNSubscriberConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberConnection(ctx context.Context, sel ast.SelectionSet, v generated.SubscriberConnection) graphql.Marshaler { return ec._SubscriberConnection(ctx, sel, &v) } @@ -343907,48 +248368,6 @@ func (ec *executionContext) marshalNSubscriberConnection2ᚖgithubᚗcomᚋtheop return ec._SubscriberConnection(ctx, sel, v) } -func (ec *executionContext) marshalNSubscriberCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberCreatePayload) graphql.Marshaler { - return ec._SubscriberCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubscriberCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubscriberDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberDeletePayload) graphql.Marshaler { - return ec._SubscriberDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubscriberDeletePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNSubscriberUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v SubscriberUpdatePayload) graphql.Marshaler { - return ec._SubscriberUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *SubscriberUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._SubscriberUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNSubscriberWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInput(ctx context.Context, v interface{}) (*generated.SubscriberWhereInput, error) { res, err := ec.unmarshalInputSubscriberWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -343982,34 +248401,6 @@ func (ec *executionContext) marshalNTFASettingConnection2ᚖgithubᚗcomᚋtheop return ec._TFASettingConnection(ctx, sel, v) } -func (ec *executionContext) marshalNTFASettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v TFASettingCreatePayload) graphql.Marshaler { - return ec._TFASettingCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TFASettingCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TFASettingCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNTFASettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v TFASettingUpdatePayload) graphql.Marshaler { - return ec._TFASettingUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *TFASettingUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TFASettingUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNTFASettingWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInput(ctx context.Context, v interface{}) (*generated.TFASettingWhereInput, error) { res, err := ec.unmarshalInputTFASettingWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -344029,20 +248420,6 @@ func (ec *executionContext) marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋ return ec._Task(ctx, sel, v) } -func (ec *executionContext) marshalNTaskBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v TaskBulkCreatePayload) graphql.Marshaler { - return ec._TaskBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTaskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TaskBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TaskBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNTaskConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskConnection(ctx context.Context, sel ast.SelectionSet, v generated.TaskConnection) graphql.Marshaler { return ec._TaskConnection(ctx, sel, &v) } @@ -344057,34 +248434,6 @@ func (ec *executionContext) marshalNTaskConnection2ᚖgithubᚗcomᚋtheopenlane return ec._TaskConnection(ctx, sel, v) } -func (ec *executionContext) marshalNTaskCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskCreatePayload(ctx context.Context, sel ast.SelectionSet, v TaskCreatePayload) graphql.Marshaler { - return ec._TaskCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTaskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TaskCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TaskCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNTaskDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskDeletePayload(ctx context.Context, sel ast.SelectionSet, v TaskDeletePayload) graphql.Marshaler { - return ec._TaskDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTaskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskDeletePayload(ctx context.Context, sel ast.SelectionSet, v *TaskDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TaskDeletePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNTaskHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.TaskHistoryConnection) graphql.Marshaler { return ec._TaskHistoryConnection(ctx, sel, &v) } @@ -344134,20 +248483,6 @@ func (ec *executionContext) marshalNTaskTaskStatus2githubᚗcomᚋtheopenlaneᚋ return v } -func (ec *executionContext) marshalNTaskUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v TaskUpdatePayload) graphql.Marshaler { - return ec._TaskUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTaskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *TaskUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TaskUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNTaskWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskWhereInput(ctx context.Context, v interface{}) (*generated.TaskWhereInput, error) { res, err := ec.unmarshalInputTaskWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -344167,20 +248502,6 @@ func (ec *executionContext) marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcor return ec._Template(ctx, sel, v) } -func (ec *executionContext) marshalNTemplateBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateBulkCreatePayload) graphql.Marshaler { - return ec._TemplateBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TemplateBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNTemplateConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateConnection(ctx context.Context, sel ast.SelectionSet, v generated.TemplateConnection) graphql.Marshaler { return ec._TemplateConnection(ctx, sel, &v) } @@ -344195,34 +248516,6 @@ func (ec *executionContext) marshalNTemplateConnection2ᚖgithubᚗcomᚋtheopen return ec._TemplateConnection(ctx, sel, v) } -func (ec *executionContext) marshalNTemplateCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateCreatePayload) graphql.Marshaler { - return ec._TemplateCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TemplateCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNTemplateDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v TemplateDeletePayload) graphql.Marshaler { - return ec._TemplateDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TemplateDeletePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNTemplateDocumentType2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐDocumentType(ctx context.Context, v interface{}) (enums.DocumentType, error) { var res enums.DocumentType err := res.UnmarshalGQL(v) @@ -344304,20 +248597,6 @@ func (ec *executionContext) marshalNTemplateOrderField2ᚖgithubᚗcomᚋtheopen return v } -func (ec *executionContext) marshalNTemplateUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v TemplateUpdatePayload) graphql.Marshaler { - return ec._TemplateUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *TemplateUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._TemplateUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNTemplateWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInput(ctx context.Context, v interface{}) (*generated.TemplateWhereInput, error) { res, err := ec.unmarshalInputTemplateWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) @@ -344508,21 +248787,6 @@ func (ec *executionContext) unmarshalNUpdateUserSettingInput2githubᚗcomᚋtheo return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (graphql.Upload, error) { - res, err := graphql.UnmarshalUpload(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v graphql.Upload) graphql.Marshaler { - res := graphql.MarshalUpload(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - func (ec *executionContext) marshalNUser2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx context.Context, sel ast.SelectionSet, v generated.User) graphql.Marshaler { return ec._User(ctx, sel, &v) } @@ -344561,34 +248825,6 @@ func (ec *executionContext) marshalNUserConnection2ᚖgithubᚗcomᚋtheopenlane return ec._UserConnection(ctx, sel, v) } -func (ec *executionContext) marshalNUserCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserCreatePayload) graphql.Marshaler { - return ec._UserCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserCreatePayload(ctx, sel, v) -} - -func (ec *executionContext) marshalNUserDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v UserDeletePayload) graphql.Marshaler { - return ec._UserDeletePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v *UserDeletePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserDeletePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNUserHistoryAuthProvider2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐAuthProvider(ctx context.Context, v interface{}) (enums.AuthProvider, error) { var res enums.AuthProvider err := res.UnmarshalGQL(v) @@ -344694,20 +248930,6 @@ func (ec *executionContext) marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋ return ec._UserSetting(ctx, sel, v) } -func (ec *executionContext) marshalNUserSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingBulkCreatePayload) graphql.Marshaler { - return ec._UserSettingBulkCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingBulkCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserSettingBulkCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNUserSettingConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserSettingConnection) graphql.Marshaler { return ec._UserSettingConnection(ctx, sel, &v) } @@ -344722,20 +248944,6 @@ func (ec *executionContext) marshalNUserSettingConnection2ᚖgithubᚗcomᚋtheo return ec._UserSettingConnection(ctx, sel, v) } -func (ec *executionContext) marshalNUserSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingCreatePayload) graphql.Marshaler { - return ec._UserSettingCreatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingCreatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserSettingCreatePayload(ctx, sel, v) -} - func (ec *executionContext) marshalNUserSettingHistoryConnection2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingHistoryConnection(ctx context.Context, sel ast.SelectionSet, v generated.UserSettingHistoryConnection) graphql.Marshaler { return ec._UserSettingHistoryConnection(ctx, sel, &v) } @@ -344775,20 +248983,6 @@ func (ec *executionContext) unmarshalNUserSettingHistoryWhereInput2ᚖgithubᚗc return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUserSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v UserSettingUpdatePayload) graphql.Marshaler { - return ec._UserSettingUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *UserSettingUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserSettingUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNUserSettingUserStatus2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatus(ctx context.Context, v interface{}) (enums.UserStatus, error) { var res enums.UserStatus err := res.UnmarshalGQL(v) @@ -344804,278 +248998,11 @@ func (ec *executionContext) unmarshalNUserSettingWhereInput2ᚖgithubᚗcomᚋth return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalNUserUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v UserUpdatePayload) graphql.Marshaler { - return ec._UserUpdatePayload(ctx, sel, &v) -} - -func (ec *executionContext) marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *UserUpdatePayload) graphql.Marshaler { - if v == nil { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - return graphql.Null - } - return ec._UserUpdatePayload(ctx, sel, v) -} - func (ec *executionContext) unmarshalNUserWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserWhereInput(ctx context.Context, v interface{}) (*generated.UserWhereInput, error) { res, err := ec.unmarshalInputUserWhereInput(ctx, v) return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalN__Directive2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirective(ctx context.Context, sel ast.SelectionSet, v introspection.Directive) graphql.Marshaler { - return ec.___Directive(ctx, sel, &v) -} - -func (ec *executionContext) marshalN__Directive2ᚕgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚋintrospectionᚐDirectiveᚄ(ctx context.Context, sel ast.SelectionSet, v []introspection.Directive) graphql.Marshaler { - ret := 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 interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - -func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - var vSlice []interface{} - if v != nil { - 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 interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - if res == graphql.Null { - if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { - ec.Errorf(ctx, "the requested element is null which the schema does not allow") - } - } - return res -} - func (ec *executionContext) marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.APIToken) graphql.Marshaler { if v == nil { return graphql.Null @@ -345178,13 +249105,6 @@ func (ec *executionContext) marshalOAPITokenEdge2ᚖgithubᚗcomᚋtheopenlane return ec._APITokenEdge(ctx, sel, v) } -func (ec *executionContext) marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAPITokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *APITokenSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._APITokenSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOAPITokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.APITokenWhereInput, error) { if v == nil { return nil, nil @@ -345240,184 +249160,7 @@ func (ec *executionContext) marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(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) marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ActionPlan(ctx, sel, v) -} - -func (ec *executionContext) marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ActionPlanEdge) 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.marshalOActionPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOActionPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ActionPlanEdge(ctx, sel, v) -} - -func (ec *executionContext) marshalOActionPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanHistory) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ActionPlanHistory(ctx, sel, v) -} - -func (ec *executionContext) marshalOActionPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ActionPlanHistoryEdge) 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.marshalOActionPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx, sel, v[i]) - } - if isLen1 { - f(i) - } else { - go f(i) - } - - } - wg.Wait() - - return ret -} - -func (ec *executionContext) marshalOActionPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanHistoryEdge) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ActionPlanHistoryEdge(ctx, sel, v) -} - -func (ec *executionContext) unmarshalOActionPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]history.OpType, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOActionPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) 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.marshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) + ret[i] = ec.marshalNActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx, sel, v[i]) } if isLen1 { f(i) @@ -345437,58 +249180,117 @@ func (ec *executionContext) marshalOActionPlanHistoryOpType2ᚕgithubᚗcomᚋth return ret } -func (ec *executionContext) unmarshalOActionPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { +func (ec *executionContext) marshalOActionPlan2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlan(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlan) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - var res = new(history.OpType) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) + return ec._ActionPlan(ctx, sel, v) } -func (ec *executionContext) marshalOActionPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ActionPlanEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return v + 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.marshalOActionPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret } -func (ec *executionContext) unmarshalOActionPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ActionPlanHistoryWhereInput, error) { +func (ec *executionContext) marshalOActionPlanEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanEdge) graphql.Marshaler { if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) + return graphql.Null } - var err error - res := make([]*generated.ActionPlanHistoryWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } + return ec._ActionPlanEdge(ctx, sel, v) +} + +func (ec *executionContext) marshalOActionPlanHistory2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistory(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanHistory) graphql.Marshaler { + if v == nil { + return graphql.Null } - return res, nil + return ec._ActionPlanHistory(ctx, sel, v) } -func (ec *executionContext) unmarshalOActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanHistoryWhereInput, error) { +func (ec *executionContext) marshalOActionPlanHistoryEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.ActionPlanHistoryEdge) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputActionPlanHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + 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.marshalOActionPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐActionPlanSearchResult(ctx context.Context, sel ast.SelectionSet, v *ActionPlanSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanHistoryEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryEdge(ctx context.Context, sel ast.SelectionSet, v *generated.ActionPlanHistoryEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._ActionPlanSearchResult(ctx, sel, v) + return ec._ActionPlanHistoryEdge(ctx, sel, v) } -func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ActionPlanWhereInput, error) { +func (ec *executionContext) unmarshalOActionPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, v interface{}) ([]history.OpType, error) { if v == nil { return nil, nil } @@ -345497,10 +249299,10 @@ func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋ vSlice = graphql.CoerceList(v) } var err error - res := make([]*generated.ActionPlanWhereInput, len(vSlice)) + res := make([]history.OpType, len(vSlice)) for i := range vSlice { ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, vSlice[i]) + res[i], err = ec.unmarshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, vSlice[i]) if err != nil { return nil, err } @@ -345508,22 +249310,7 @@ func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋ return res, nil } -func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputActionPlanWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOAuditLog2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLog(ctx context.Context, sel ast.SelectionSet, v *AuditLog) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._AuditLog(ctx, sel, v) -} - -func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v []*AuditLogEdge) graphql.Marshaler { +func (ec *executionContext) marshalOActionPlanHistoryOpType2ᚕgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []history.OpType) graphql.Marshaler { if v == nil { return graphql.Null } @@ -345550,7 +249337,7 @@ func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlan if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNActionPlanHistoryOpType2githubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx, sel, v[i]) } if isLen1 { f(i) @@ -345561,48 +249348,85 @@ func (ec *executionContext) marshalOAuditLogEdge2ᚕᚖgithubᚗcomᚋtheopenlan } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOAuditLogEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogEdge(ctx context.Context, sel ast.SelectionSet, v *AuditLogEdge) graphql.Marshaler { +func (ec *executionContext) unmarshalOActionPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, v interface{}) (*history.OpType, error) { if v == nil { - return graphql.Null + return nil, nil } - return ec._AuditLogEdge(ctx, sel, v) + var res = new(history.OpType) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOAuditLogWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐAuditLogWhereInput(ctx context.Context, v interface{}) (*AuditLogWhereInput, error) { +func (ec *executionContext) marshalOActionPlanHistoryOpType2ᚖgithubᚗcomᚋtheopenlaneᚋentxᚋhistoryᚐOpType(ctx context.Context, sel ast.SelectionSet, v *history.OpType) graphql.Marshaler { if v == nil { - return nil, nil + return graphql.Null } - res, err := ec.unmarshalInputAuditLogWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) + return v } -func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { - res, err := graphql.UnmarshalBoolean(v) - return res, graphql.ErrorOnPath(ctx, err) +func (ec *executionContext) unmarshalOActionPlanHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ActionPlanHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ActionPlanHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { - res := graphql.MarshalBoolean(v) - return res +func (ec *executionContext) unmarshalOActionPlanHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanHistoryWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputActionPlanHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { +func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ActionPlanWhereInput, error) { if v == nil { return nil, nil } - res, err := graphql.UnmarshalBoolean(v) - return &res, graphql.ErrorOnPath(ctx, err) + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.ActionPlanWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil } -func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { +func (ec *executionContext) unmarshalOActionPlanWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanWhereInput(ctx context.Context, v interface{}) (*generated.ActionPlanWhereInput, error) { if v == nil { - return graphql.Null + return nil, nil } - res := graphql.MarshalBoolean(*v) - return res + res, err := ec.unmarshalInputActionPlanWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) } func (ec *executionContext) marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Contact) graphql.Marshaler { @@ -345956,13 +249780,6 @@ func (ec *executionContext) unmarshalOContactHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐContactSearchResult(ctx context.Context, sel ast.SelectionSet, v *ContactSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ContactSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOContactUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, v interface{}) ([]enums.UserStatus, error) { if v == nil { return nil, nil @@ -346610,13 +250427,6 @@ func (ec *executionContext) unmarshalOControlObjectiveHistoryWhereInput2ᚖgithu return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlObjectiveSearchResult(ctx context.Context, sel ast.SelectionSet, v *ControlObjectiveSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ControlObjectiveSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOControlObjectiveWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ControlObjectiveWhereInput, error) { if v == nil { return nil, nil @@ -346645,13 +250455,6 @@ func (ec *executionContext) unmarshalOControlObjectiveWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐControlSearchResult(ctx context.Context, sel ast.SelectionSet, v *ControlSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ControlSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOControlWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ControlWhereInput, error) { if v == nil { return nil, nil @@ -346788,26 +250591,6 @@ func (ec *executionContext) unmarshalOCreateControlObjectiveInput2ᚕᚖgithub return res, nil } -func (ec *executionContext) unmarshalOCreateControlWithSubcontrolsInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateControlWithSubcontrolsInputᚄ(ctx context.Context, v interface{}) ([]*CreateControlWithSubcontrolsInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*CreateControlWithSubcontrolsInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateControlWithSubcontrolsInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateControlWithSubcontrolsInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - func (ec *executionContext) unmarshalOCreateDocumentDataInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateDocumentDataInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateDocumentDataInput, error) { if v == nil { return nil, nil @@ -347036,26 +250819,6 @@ func (ec *executionContext) unmarshalOCreateInviteInput2ᚕᚖgithubᚗcomᚋthe return res, nil } -func (ec *executionContext) unmarshalOCreateMemberWithProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateMemberWithProgramInputᚄ(ctx context.Context, v interface{}) ([]*CreateMemberWithProgramInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*CreateMemberWithProgramInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNCreateMemberWithProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐCreateMemberWithProgramInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - func (ec *executionContext) unmarshalOCreateNarrativeInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateNarrativeInputᚄ(ctx context.Context, v interface{}) ([]*generated.CreateNarrativeInput, error) { if v == nil { return nil, nil @@ -347676,13 +251439,6 @@ func (ec *executionContext) unmarshalODocumentDataHistoryWhereInput2ᚖgithubᚗ return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐDocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, v *DocumentDataSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._DocumentDataSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalODocumentDataWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.DocumentDataWhereInput, error) { if v == nil { return nil, nil @@ -347995,13 +251751,6 @@ func (ec *executionContext) unmarshalOEntityOrder2ᚖgithubᚗcomᚋtheopenlane return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntitySearchResult(ctx context.Context, sel ast.SelectionSet, v *EntitySearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntitySearchResult(ctx, sel, v) -} - func (ec *executionContext) marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.EntityType) graphql.Marshaler { if v == nil { return graphql.Null @@ -348286,13 +252035,6 @@ func (ec *executionContext) unmarshalOEntityTypeOrder2ᚖgithubᚗcomᚋtheopenl return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, v *EntityTypeSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EntityTypeSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOEntityTypeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EntityTypeWhereInput, error) { if v == nil { return nil, nil @@ -348617,13 +252359,6 @@ func (ec *executionContext) unmarshalOEventHistoryWhereInput2ᚖgithubᚗcomᚋt return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐEventSearchResult(ctx context.Context, sel ast.SelectionSet, v *EventSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._EventSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOEventWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.EventWhereInput, error) { if v == nil { return nil, nil @@ -348920,13 +252655,6 @@ func (ec *executionContext) unmarshalOFileHistoryWhereInput2ᚖgithubᚗcomᚋth return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐFileSearchResult(ctx context.Context, sel ast.SelectionSet, v *FileSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._FileSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOFileWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.FileWhereInput, error) { if v == nil { return nil, nil @@ -349701,13 +253429,6 @@ func (ec *executionContext) unmarshalOGroupOrder2ᚖgithubᚗcomᚋtheopenlane return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSearchResult(ctx context.Context, sel ast.SelectionSet, v *GroupSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._GroupSearchResult(ctx, sel, v) -} - func (ec *executionContext) marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.GroupSetting) graphql.Marshaler { if v == nil { return graphql.Null @@ -350225,13 +253946,6 @@ func (ec *executionContext) marshalOGroupSettingJoinPolicy2ᚖgithubᚗcomᚋthe return v } -func (ec *executionContext) marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐGroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *GroupSettingSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._GroupSettingSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOGroupSettingVisibility2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐVisibilityᚄ(ctx context.Context, v interface{}) ([]enums.Visibility, error) { if v == nil { return nil, nil @@ -350683,188 +254397,6 @@ func (ec *executionContext) unmarshalOHushWhereInput2ᚖgithubᚗcomᚋtheopenla return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOID2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - return res -} - -func (ec *executionContext) unmarshalOID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - 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.unmarshalNID2string(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOID2ᚕ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.marshalNID2string(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(*v) - return res -} - -func (ec *executionContext) unmarshalOInt2int64(ctx context.Context, v interface{}) (int64, error) { - res, err := graphql.UnmarshalInt64(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { - res := graphql.MarshalInt64(v) - return res -} - -func (ec *executionContext) unmarshalOInt2ᚕint64ᚄ(ctx context.Context, v interface{}) ([]int64, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]int64, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInt2int64(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOInt2ᚕint64ᚄ(ctx context.Context, sel ast.SelectionSet, v []int64) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNInt2int64(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]int, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - ret := make(graphql.Array, len(v)) - for i := range v { - ret[i] = ec.marshalNInt2int(ctx, sel, v[i]) - } - - for _, e := range ret { - if e == graphql.Null { - return graphql.Null - } - } - - return ret -} - -func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalInt(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalInt(*v) - return res -} - -func (ec *executionContext) unmarshalOInt2ᚖint64(ctx context.Context, v interface{}) (*int64, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalInt64(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOInt2ᚖint64(ctx context.Context, sel ast.SelectionSet, v *int64) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalInt64(*v) - return res -} - func (ec *executionContext) marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Integration) graphql.Marshaler { if v == nil { return graphql.Null @@ -351149,13 +254681,6 @@ func (ec *executionContext) unmarshalOIntegrationOrder2ᚖgithubᚗcomᚋtheopen return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐIntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, v *IntegrationSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._IntegrationSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOIntegrationWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.IntegrationWhereInput, error) { if v == nil { return nil, nil @@ -351452,13 +254977,6 @@ func (ec *executionContext) unmarshalOInternalPolicyHistoryWhereInput2ᚖgithub return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐInternalPolicySearchResult(ctx context.Context, sel ast.SelectionSet, v *InternalPolicySearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._InternalPolicySearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOInternalPolicyWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.InternalPolicyWhereInput, error) { if v == nil { return nil, nil @@ -352083,13 +255601,6 @@ func (ec *executionContext) unmarshalONarrativeHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐNarrativeSearchResult(ctx context.Context, sel ast.SelectionSet, v *NarrativeSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._NarrativeSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalONarrativeWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.NarrativeWhereInput, error) { if v == nil { return nil, nil @@ -353151,13 +256662,6 @@ func (ec *executionContext) unmarshalOOrgSubscriptionHistoryWhereInput2ᚖgithub return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrgSubscriptionSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrgSubscriptionSearchResult(ctx context.Context, sel ast.SelectionSet, v *OrgSubscriptionSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._OrgSubscriptionSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOOrgSubscriptionWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrgSubscriptionWhereInput, error) { if v == nil { return nil, nil @@ -353470,13 +256974,6 @@ func (ec *executionContext) unmarshalOOrganizationOrder2ᚖgithubᚗcomᚋtheope return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, v *OrganizationSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._OrganizationSearchResult(ctx, sel, v) -} - func (ec *executionContext) marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.OrganizationSetting) graphql.Marshaler { if v == nil { return graphql.Null @@ -353774,128 +257271,7 @@ func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2ᚕgithub if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(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) unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { - if v == nil { - return nil, nil - } - var res = new(enums.Region) - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return v -} - -func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationSettingHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]*generated.OrganizationSettingHistoryWhereInput, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingHistoryWhereInput, error) { - if v == nil { - return nil, nil - } - res, err := ec.unmarshalInputOrganizationSettingHistoryWhereInput(ctx, v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) unmarshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { - var res enums.Region - err := res.UnmarshalGQL(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { - return v -} - -func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, v interface{}) ([]enums.Region, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - vSlice = graphql.CoerceList(v) - } - var err error - res := make([]enums.Region, len(vSlice)) - for i := range vSlice { - ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) - res[i], err = ec.unmarshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, vSlice[i]) - if err != nil { - return nil, err - } - } - return res, nil -} - -func (ec *executionContext) marshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Region) 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.marshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, sel, v[i]) + ret[i] = ec.marshalNOrganizationSettingHistoryRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, sel, v[i]) } if isLen1 { f(i) @@ -353915,7 +257291,7 @@ func (ec *executionContext) marshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋ return ret } -func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { if v == nil { return nil, nil } @@ -353924,18 +257300,132 @@ func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚖgithubᚗcom return res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { +func (ec *executionContext) marshalOOrganizationSettingHistoryRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { if v == nil { return graphql.Null } return v } -func (ec *executionContext) marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐOrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *OrganizationSettingSearchResult) graphql.Marshaler { +func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationSettingHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*generated.OrganizationSettingHistoryWhereInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOOrganizationSettingHistoryWhereInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingHistoryWhereInput(ctx context.Context, v interface{}) (*generated.OrganizationSettingHistoryWhereInput, error) { + if v == nil { + return nil, nil + } + res, err := ec.unmarshalInputOrganizationSettingHistoryWhereInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (enums.Region, error) { + var res enums.Region + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v enums.Region) graphql.Marshaler { + return v +} + +func (ec *executionContext) unmarshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, v interface{}) ([]enums.Region, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]enums.Region, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOOrganizationSettingRegion2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegionᚄ(ctx context.Context, sel ast.SelectionSet, v []enums.Region) 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.marshalNOrganizationSettingRegion2githubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(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) unmarshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, v interface{}) (*enums.Region, error) { + if v == nil { + return nil, nil + } + var res = new(enums.Region) + err := res.UnmarshalGQL(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOOrganizationSettingRegion2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRegion(ctx context.Context, sel ast.SelectionSet, v *enums.Region) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._OrganizationSettingSearchResult(ctx, sel, v) + return v } func (ec *executionContext) unmarshalOOrganizationSettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.OrganizationSettingWhereInput, error) { @@ -354096,13 +257586,6 @@ func (ec *executionContext) marshalOPersonalAccessTokenEdge2ᚖgithubᚗcomᚋth return ec._PersonalAccessTokenEdge(ctx, sel, v) } -func (ec *executionContext) marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐPersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *PersonalAccessTokenSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._PersonalAccessTokenSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOPersonalAccessTokenWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.PersonalAccessTokenWhereInput, error) { if v == nil { return nil, nil @@ -354399,13 +257882,6 @@ func (ec *executionContext) unmarshalOProcedureHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProcedureSearchResult(ctx context.Context, sel ast.SelectionSet, v *ProcedureSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ProcedureSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOProcedureWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ProcedureWhereInput, error) { if v == nil { return nil, nil @@ -355330,13 +258806,6 @@ func (ec *executionContext) marshalOProgramProgramStatus2ᚖgithubᚗcomᚋtheop return v } -func (ec *executionContext) marshalOProgramSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐProgramSearchResult(ctx context.Context, sel ast.SelectionSet, v *ProgramSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._ProgramSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOProgramWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.ProgramWhereInput, error) { if v == nil { return nil, nil @@ -356005,13 +259474,6 @@ func (ec *executionContext) marshalORiskRiskLikelihood2ᚖgithubᚗcomᚋtheopen return v } -func (ec *executionContext) marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐRiskSearchResult(ctx context.Context, sel ast.SelectionSet, v *RiskSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._RiskSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalORiskWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.RiskWhereInput, error) { if v == nil { return nil, nil @@ -356040,13 +259502,6 @@ func (ec *executionContext) unmarshalORiskWhereInput2ᚖgithubᚗcomᚋtheopenla return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSearchResultConnection(ctx context.Context, sel ast.SelectionSet, v *SearchResultConnection) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SearchResultConnection(ctx, sel, v) -} - func (ec *executionContext) marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Standard) graphql.Marshaler { if v == nil { return graphql.Null @@ -356315,13 +259770,6 @@ func (ec *executionContext) unmarshalOStandardHistoryWhereInput2ᚖgithubᚗcom return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐStandardSearchResult(ctx context.Context, sel ast.SelectionSet, v *StandardSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._StandardSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOStandardWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.StandardWhereInput, error) { if v == nil { return nil, nil @@ -356350,70 +259798,6 @@ func (ec *executionContext) unmarshalOStandardWhereInput2ᚖgithubᚗcomᚋtheop return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { - res, err := graphql.UnmarshalString(v) - return res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { - res := graphql.MarshalString(v) - return res -} - -func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { - if v == nil { - return nil, nil - } - var vSlice []interface{} - if v != nil { - 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 interface{}) (*string, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalString(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalString(*v) - return res -} - func (ec *executionContext) marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.Subcontrol) graphql.Marshaler { if v == nil { return graphql.Null @@ -356682,13 +260066,6 @@ func (ec *executionContext) unmarshalOSubcontrolHistoryWhereInput2ᚖgithubᚗco return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubcontrolSearchResult(ctx context.Context, sel ast.SelectionSet, v *SubcontrolSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SubcontrolSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOSubcontrolWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.SubcontrolWhereInput, error) { if v == nil { return nil, nil @@ -356819,13 +260196,6 @@ func (ec *executionContext) marshalOSubscriberEdge2ᚖgithubᚗcomᚋtheopenlane return ec._SubscriberEdge(ctx, sel, v) } -func (ec *executionContext) marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐSubscriberSearchResult(ctx context.Context, sel ast.SelectionSet, v *SubscriberSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._SubscriberSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOSubscriberWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.SubscriberWhereInput, error) { if v == nil { return nil, nil @@ -356881,61 +260251,7 @@ func (ec *executionContext) marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlane if !isLen1 { defer wg.Done() } - ret[i] = ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(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) marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx context.Context, sel ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TFASetting(ctx, sel, v) -} - -func (ec *executionContext) marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.TFASettingEdge) 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.marshalOTFASettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, sel, v[i]) + ret[i] = ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, sel, v[i]) } if isLen1 { f(i) @@ -356946,21 +260262,68 @@ func (ec *executionContext) marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenl } wg.Wait() + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + return ret } -func (ec *executionContext) marshalOTFASettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx context.Context, sel ast.SelectionSet, v *generated.TFASettingEdge) graphql.Marshaler { +func (ec *executionContext) marshalOTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx context.Context, sel ast.SelectionSet, v *generated.TFASetting) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TFASettingEdge(ctx, sel, v) + return ec._TFASetting(ctx, sel, v) +} + +func (ec *executionContext) marshalOTFASettingEdge2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx context.Context, sel ast.SelectionSet, v []*generated.TFASettingEdge) 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.marshalOTFASettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx, sel, v[i]) + } + if isLen1 { + f(i) + } else { + go f(i) + } + + } + wg.Wait() + + return ret } -func (ec *executionContext) marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTFASettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *TFASettingSearchResult) graphql.Marshaler { +func (ec *executionContext) marshalOTFASettingEdge2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingEdge(ctx context.Context, sel ast.SelectionSet, v *generated.TFASettingEdge) graphql.Marshaler { if v == nil { return graphql.Null } - return ec._TFASettingSearchResult(ctx, sel, v) + return ec._TFASettingEdge(ctx, sel, v) } func (ec *executionContext) unmarshalOTFASettingWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.TFASettingWhereInput, error) { @@ -357342,13 +260705,6 @@ func (ec *executionContext) unmarshalOTaskHistoryWhereInput2ᚖgithubᚗcomᚋth return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOTaskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTaskSearchResult(ctx context.Context, sel ast.SelectionSet, v *TaskSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TaskSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOTaskTaskStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐTaskStatusᚄ(ctx context.Context, v interface{}) ([]enums.TaskStatus, error) { if v == nil { return nil, nil @@ -357910,13 +261266,6 @@ func (ec *executionContext) unmarshalOTemplateOrder2ᚖgithubᚗcomᚋtheopenlan return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐTemplateSearchResult(ctx context.Context, sel ast.SelectionSet, v *TemplateSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._TemplateSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOTemplateWhereInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateWhereInputᚄ(ctx context.Context, v interface{}) ([]*generated.TemplateWhereInput, error) { if v == nil { return nil, nil @@ -358025,22 +261374,6 @@ func (ec *executionContext) unmarshalOUpdateOrganizationSettingInput2ᚖgithub return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (*graphql.Upload, error) { - if v == nil { - return nil, nil - } - res, err := graphql.UnmarshalUpload(v) - return &res, graphql.ErrorOnPath(ctx, err) -} - -func (ec *executionContext) marshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v *graphql.Upload) graphql.Marshaler { - if v == nil { - return graphql.Null - } - res := graphql.MarshalUpload(*v) - return res -} - func (ec *executionContext) marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.User) graphql.Marshaler { if v == nil { return graphql.Null @@ -358677,13 +262010,6 @@ func (ec *executionContext) marshalOUserRole2ᚖgithubᚗcomᚋtheopenlaneᚋcor return v } -func (ec *executionContext) marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSearchResult(ctx context.Context, sel ast.SelectionSet, v *UserSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UserSearchResult(ctx, sel, v) -} - func (ec *executionContext) marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx context.Context, sel ast.SelectionSet, v []*generated.UserSetting) graphql.Marshaler { if v == nil { return graphql.Null @@ -359035,13 +262361,6 @@ func (ec *executionContext) unmarshalOUserSettingHistoryWhereInput2ᚖgithubᚗc return &res, graphql.ErrorOnPath(ctx, err) } -func (ec *executionContext) marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚐUserSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *UserSettingSearchResult) graphql.Marshaler { - if v == nil { - return graphql.Null - } - return ec._UserSettingSearchResult(ctx, sel, v) -} - func (ec *executionContext) unmarshalOUserSettingUserStatus2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐUserStatusᚄ(ctx context.Context, v interface{}) ([]enums.UserStatus, error) { if v == nil { return nil, nil @@ -359181,206 +262500,4 @@ func (ec *executionContext) unmarshalOUserWhereInput2ᚖgithubᚗcomᚋtheopenla 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 ***************************** diff --git a/internal/graphapi/generated/entity.generated.go b/internal/graphapi/generated/entity.generated.go new file mode 100644 index 00000000..6af8ad1c --- /dev/null +++ b/internal/graphapi/generated/entity.generated.go @@ -0,0 +1,562 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _EntityBulkCreatePayload_entities(ctx context.Context, field graphql.CollectedField, obj *model.EntityBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityBulkCreatePayload_entities(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entities, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityBulkCreatePayload_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityBulkCreatePayload", + 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_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityCreatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *model.EntityCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityCreatePayload_entity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Entity) + fc.Result = res + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityCreatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityCreatePayload", + 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_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.EntityDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityDeletePayload", + 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) _EntityUpdatePayload_entity(ctx context.Context, field graphql.CollectedField, obj *model.EntityUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityUpdatePayload_entity(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entity, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Entity) + fc.Result = res + return ec.marshalNEntity2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntity(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityUpdatePayload_entity(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityUpdatePayload", + 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_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var entityBulkCreatePayloadImplementors = []string{"EntityBulkCreatePayload"} + +func (ec *executionContext) _EntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityBulkCreatePayload") + case "entities": + out.Values[i] = ec._EntityBulkCreatePayload_entities(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 entityCreatePayloadImplementors = []string{"EntityCreatePayload"} + +func (ec *executionContext) _EntityCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityCreatePayload") + case "entity": + out.Values[i] = ec._EntityCreatePayload_entity(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 entityDeletePayloadImplementors = []string{"EntityDeletePayload"} + +func (ec *executionContext) _EntityDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityDeletePayload") + case "deletedID": + out.Values[i] = ec._EntityDeletePayload_deletedID(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 entityUpdatePayloadImplementors = []string{"EntityUpdatePayload"} + +func (ec *executionContext) _EntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityUpdatePayload") + case "entity": + out.Values[i] = ec._EntityUpdatePayload_entity(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNEntityBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityBulkCreatePayload) graphql.Marshaler { + return ec._EntityBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEntityCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityCreatePayload) graphql.Marshaler { + return ec._EntityCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEntityDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityDeletePayload) graphql.Marshaler { + return ec._EntityDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEntityUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityUpdatePayload) graphql.Marshaler { + return ec._EntityUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/entitytype.generated.go b/internal/graphapi/generated/entitytype.generated.go new file mode 100644 index 00000000..2f10d3ba --- /dev/null +++ b/internal/graphapi/generated/entitytype.generated.go @@ -0,0 +1,508 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _EntityTypeBulkCreatePayload_entityTypes(ctx context.Context, field graphql.CollectedField, obj *model.EntityTypeBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeBulkCreatePayload_entityTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityType) + fc.Result = res + return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeBulkCreatePayload_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeBulkCreatePayload", + 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_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeCreatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *model.EntityTypeCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeCreatePayload_entityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntityType) + fc.Result = res + return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeCreatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeCreatePayload", + 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_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.EntityTypeDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeDeletePayload", + 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) _EntityTypeUpdatePayload_entityType(ctx context.Context, field graphql.CollectedField, obj *model.EntityTypeUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeUpdatePayload_entityType(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityType, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.EntityType) + fc.Result = res + return ec.marshalNEntityType2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityType(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeUpdatePayload_entityType(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeUpdatePayload", + 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_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var entityTypeBulkCreatePayloadImplementors = []string{"EntityTypeBulkCreatePayload"} + +func (ec *executionContext) _EntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityTypeBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeBulkCreatePayload") + case "entityTypes": + out.Values[i] = ec._EntityTypeBulkCreatePayload_entityTypes(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 entityTypeCreatePayloadImplementors = []string{"EntityTypeCreatePayload"} + +func (ec *executionContext) _EntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityTypeCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeCreatePayload") + case "entityType": + out.Values[i] = ec._EntityTypeCreatePayload_entityType(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 entityTypeDeletePayloadImplementors = []string{"EntityTypeDeletePayload"} + +func (ec *executionContext) _EntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityTypeDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeDeletePayload") + case "deletedID": + out.Values[i] = ec._EntityTypeDeletePayload_deletedID(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 entityTypeUpdatePayloadImplementors = []string{"EntityTypeUpdatePayload"} + +func (ec *executionContext) _EntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EntityTypeUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeUpdatePayload") + case "entityType": + out.Values[i] = ec._EntityTypeUpdatePayload_entityType(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityTypeBulkCreatePayload) graphql.Marshaler { + return ec._EntityTypeBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityTypeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityTypeBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEntityTypeCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityTypeCreatePayload) graphql.Marshaler { + return ec._EntityTypeCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityTypeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityTypeCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEntityTypeDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityTypeDeletePayload) graphql.Marshaler { + return ec._EntityTypeDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityTypeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityTypeDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEntityTypeUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.EntityTypeUpdatePayload) graphql.Marshaler { + return ec._EntityTypeUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEntityTypeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EntityTypeUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EntityTypeUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/event.generated.go b/internal/graphapi/generated/event.generated.go new file mode 100644 index 00000000..fc685f62 --- /dev/null +++ b/internal/graphapi/generated/event.generated.go @@ -0,0 +1,562 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _EventBulkCreatePayload_events(ctx context.Context, field graphql.CollectedField, obj *model.EventBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventBulkCreatePayload_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventBulkCreatePayload_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventBulkCreatePayload", + 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_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventCreatePayload_event(ctx context.Context, field graphql.CollectedField, obj *model.EventCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventCreatePayload_event(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Event, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Event) + fc.Result = res + return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventCreatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventCreatePayload", + 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_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.EventDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventDeletePayload", + 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) _EventUpdatePayload_event(ctx context.Context, field graphql.CollectedField, obj *model.EventUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventUpdatePayload_event(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Event, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Event) + fc.Result = res + return ec.marshalNEvent2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEvent(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventUpdatePayload_event(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventUpdatePayload", + 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_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var eventBulkCreatePayloadImplementors = []string{"EventBulkCreatePayload"} + +func (ec *executionContext) _EventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EventBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventBulkCreatePayload") + case "events": + out.Values[i] = ec._EventBulkCreatePayload_events(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 eventCreatePayloadImplementors = []string{"EventCreatePayload"} + +func (ec *executionContext) _EventCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EventCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventCreatePayload") + case "event": + out.Values[i] = ec._EventCreatePayload_event(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 eventDeletePayloadImplementors = []string{"EventDeletePayload"} + +func (ec *executionContext) _EventDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EventDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventDeletePayload") + case "deletedID": + out.Values[i] = ec._EventDeletePayload_deletedID(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 eventUpdatePayloadImplementors = []string{"EventUpdatePayload"} + +func (ec *executionContext) _EventUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.EventUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventUpdatePayload") + case "event": + out.Values[i] = ec._EventUpdatePayload_event(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNEventBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.EventBulkCreatePayload) graphql.Marshaler { + return ec._EventBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEventBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EventBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEventCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.EventCreatePayload) graphql.Marshaler { + return ec._EventCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEventCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EventCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEventDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.EventDeletePayload) graphql.Marshaler { + return ec._EventDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEventDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.EventDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNEventUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.EventUpdatePayload) graphql.Marshaler { + return ec._EventUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNEventUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.EventUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._EventUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/file.generated.go b/internal/graphapi/generated/file.generated.go new file mode 100644 index 00000000..b9159f0f --- /dev/null +++ b/internal/graphapi/generated/file.generated.go @@ -0,0 +1,143 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _FileDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.FileDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileDeletePayload", + 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 +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var fileDeletePayloadImplementors = []string{"FileDeletePayload"} + +func (ec *executionContext) _FileDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.FileDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileDeletePayload") + case "deletedID": + out.Values[i] = ec._FileDeletePayload_deletedID(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNFileDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.FileDeletePayload) graphql.Marshaler { + return ec._FileDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNFileDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐFileDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.FileDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._FileDeletePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/group.generated.go b/internal/graphapi/generated/group.generated.go new file mode 100644 index 00000000..337afd0c --- /dev/null +++ b/internal/graphapi/generated/group.generated.go @@ -0,0 +1,736 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _GroupBulkCreatePayload_groups(ctx context.Context, field graphql.CollectedField, obj *model.GroupBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupBulkCreatePayload_groups(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Groups, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupBulkCreatePayload_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupBulkCreatePayload", + 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_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupCreatePayload_group(ctx context.Context, field graphql.CollectedField, obj *model.GroupCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupCreatePayload_group(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Group) + fc.Result = res + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupCreatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupCreatePayload", + 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_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.GroupDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupDeletePayload", + 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) _GroupUpdatePayload_group(ctx context.Context, field graphql.CollectedField, obj *model.GroupUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupUpdatePayload_group(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Group, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Group) + fc.Result = res + return ec.marshalNGroup2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroup(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupUpdatePayload_group(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupUpdatePayload", + 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_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var groupBulkCreatePayloadImplementors = []string{"GroupBulkCreatePayload"} + +func (ec *executionContext) _GroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupBulkCreatePayload") + case "groups": + out.Values[i] = ec._GroupBulkCreatePayload_groups(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 groupCreatePayloadImplementors = []string{"GroupCreatePayload"} + +func (ec *executionContext) _GroupCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupCreatePayload") + case "group": + out.Values[i] = ec._GroupCreatePayload_group(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 groupDeletePayloadImplementors = []string{"GroupDeletePayload"} + +func (ec *executionContext) _GroupDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupDeletePayload") + case "deletedID": + out.Values[i] = ec._GroupDeletePayload_deletedID(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 groupUpdatePayloadImplementors = []string{"GroupUpdatePayload"} + +func (ec *executionContext) _GroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupUpdatePayload") + case "group": + out.Values[i] = ec._GroupUpdatePayload_group(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNGroupBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupBulkCreatePayload) graphql.Marshaler { + return ec._GroupBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupCreatePayload) graphql.Marshaler { + return ec._GroupCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupDeletePayload) graphql.Marshaler { + return ec._GroupDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupUpdatePayload) graphql.Marshaler { + return ec._GroupUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/groupmembership.generated.go b/internal/graphapi/generated/groupmembership.generated.go new file mode 100644 index 00000000..cfe36fb9 --- /dev/null +++ b/internal/graphapi/generated/groupmembership.generated.go @@ -0,0 +1,514 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _GroupMembershipBulkCreatePayload_groupMemberships(ctx context.Context, field graphql.CollectedField, obj *model.GroupMembershipBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupMemberships, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupMembership) + fc.Result = res + return ec.marshalOGroupMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembershipᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupMembershipBulkCreatePayload_groupMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipBulkCreatePayload", + 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_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupMembershipCreatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *model.GroupMembershipCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipCreatePayload_groupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupMembership, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.GroupMembership) + fc.Result = res + return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupMembershipCreatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipCreatePayload", + 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_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.GroupMembershipDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipDeletePayload", + 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) _GroupMembershipUpdatePayload_groupMembership(ctx context.Context, field graphql.CollectedField, obj *model.GroupMembershipUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupMembershipUpdatePayload_groupMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupMembership, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.GroupMembership) + fc.Result = res + return ec.marshalNGroupMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupMembership(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupMembershipUpdatePayload_groupMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupMembershipUpdatePayload", + 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_GroupMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_GroupMembership_role(ctx, field) + case "groupID": + return ec.fieldContext_GroupMembership_groupID(ctx, field) + case "userID": + return ec.fieldContext_GroupMembership_userID(ctx, field) + case "group": + return ec.fieldContext_GroupMembership_group(ctx, field) + case "user": + return ec.fieldContext_GroupMembership_user(ctx, field) + case "events": + return ec.fieldContext_GroupMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupMembership", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var groupMembershipBulkCreatePayloadImplementors = []string{"GroupMembershipBulkCreatePayload"} + +func (ec *executionContext) _GroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupMembershipBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipBulkCreatePayload") + case "groupMemberships": + out.Values[i] = ec._GroupMembershipBulkCreatePayload_groupMemberships(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 groupMembershipCreatePayloadImplementors = []string{"GroupMembershipCreatePayload"} + +func (ec *executionContext) _GroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupMembershipCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipCreatePayload") + case "groupMembership": + out.Values[i] = ec._GroupMembershipCreatePayload_groupMembership(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 groupMembershipDeletePayloadImplementors = []string{"GroupMembershipDeletePayload"} + +func (ec *executionContext) _GroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupMembershipDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipDeletePayload") + case "deletedID": + out.Values[i] = ec._GroupMembershipDeletePayload_deletedID(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 groupMembershipUpdatePayloadImplementors = []string{"GroupMembershipUpdatePayload"} + +func (ec *executionContext) _GroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupMembershipUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupMembershipUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupMembershipUpdatePayload") + case "groupMembership": + out.Values[i] = ec._GroupMembershipUpdatePayload_groupMembership(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupMembershipBulkCreatePayload) graphql.Marshaler { + return ec._GroupMembershipBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupMembershipBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupMembershipBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupMembershipCreatePayload) graphql.Marshaler { + return ec._GroupMembershipCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupMembershipCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupMembershipCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupMembershipDeletePayload) graphql.Marshaler { + return ec._GroupMembershipDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupMembershipDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupMembershipDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupMembershipUpdatePayload) graphql.Marshaler { + return ec._GroupMembershipUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupMembershipUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupMembershipUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/groupsetting.generated.go b/internal/graphapi/generated/groupsetting.generated.go new file mode 100644 index 00000000..3162e6ec --- /dev/null +++ b/internal/graphapi/generated/groupsetting.generated.go @@ -0,0 +1,520 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _GroupSettingBulkCreatePayload_groupSettings(ctx context.Context, field graphql.CollectedField, obj *model.GroupSettingBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingBulkCreatePayload_groupSettings(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupSetting) + fc.Result = res + return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupSettingBulkCreatePayload_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingBulkCreatePayload", + 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_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupSettingCreatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *model.GroupSettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingCreatePayload_groupSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.GroupSetting) + fc.Result = res + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupSettingCreatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingCreatePayload", + 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_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.GroupSettingDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingDeletePayload", + 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) _GroupSettingUpdatePayload_groupSetting(ctx context.Context, field graphql.CollectedField, obj *model.GroupSettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingUpdatePayload_groupSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.GroupSetting) + fc.Result = res + return ec.marshalNGroupSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupSettingUpdatePayload_groupSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingUpdatePayload", + 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_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var groupSettingBulkCreatePayloadImplementors = []string{"GroupSettingBulkCreatePayload"} + +func (ec *executionContext) _GroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupSettingBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingBulkCreatePayload") + case "groupSettings": + out.Values[i] = ec._GroupSettingBulkCreatePayload_groupSettings(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 groupSettingCreatePayloadImplementors = []string{"GroupSettingCreatePayload"} + +func (ec *executionContext) _GroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupSettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingCreatePayload") + case "groupSetting": + out.Values[i] = ec._GroupSettingCreatePayload_groupSetting(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 groupSettingDeletePayloadImplementors = []string{"GroupSettingDeletePayload"} + +func (ec *executionContext) _GroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupSettingDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingDeletePayload") + case "deletedID": + out.Values[i] = ec._GroupSettingDeletePayload_deletedID(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 groupSettingUpdatePayloadImplementors = []string{"GroupSettingUpdatePayload"} + +func (ec *executionContext) _GroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.GroupSettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingUpdatePayload") + case "groupSetting": + out.Values[i] = ec._GroupSettingUpdatePayload_groupSetting(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupSettingBulkCreatePayload) graphql.Marshaler { + return ec._GroupSettingBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupSettingBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSettingBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupSettingCreatePayload) graphql.Marshaler { + return ec._GroupSettingCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupSettingCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSettingCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupSettingDeletePayload) graphql.Marshaler { + return ec._GroupSettingDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupSettingDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSettingDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNGroupSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.GroupSettingUpdatePayload) graphql.Marshaler { + return ec._GroupSettingUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNGroupSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.GroupSettingUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._GroupSettingUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/hush.generated.go b/internal/graphapi/generated/hush.generated.go new file mode 100644 index 00000000..cd50696f --- /dev/null +++ b/internal/graphapi/generated/hush.generated.go @@ -0,0 +1,520 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _HushBulkCreatePayload_hushes(ctx context.Context, field graphql.CollectedField, obj *model.HushBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushBulkCreatePayload_hushes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hushes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Hush) + fc.Result = res + return ec.marshalOHush2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHushᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HushBulkCreatePayload_hushes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushBulkCreatePayload", + 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_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _HushCreatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *model.HushCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushCreatePayload_hush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hush, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Hush) + fc.Result = res + return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HushCreatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushCreatePayload", + 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_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _HushDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.HushDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HushDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushDeletePayload", + 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) _HushUpdatePayload_hush(ctx context.Context, field graphql.CollectedField, obj *model.HushUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_HushUpdatePayload_hush(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Hush, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Hush) + fc.Result = res + return ec.marshalNHush2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐHush(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_HushUpdatePayload_hush(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "HushUpdatePayload", + 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_Hush_id(ctx, field) + case "createdAt": + return ec.fieldContext_Hush_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Hush_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Hush_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Hush_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Hush_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Hush_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Hush_name(ctx, field) + case "description": + return ec.fieldContext_Hush_description(ctx, field) + case "kind": + return ec.fieldContext_Hush_kind(ctx, field) + case "secretName": + return ec.fieldContext_Hush_secretName(ctx, field) + case "integrations": + return ec.fieldContext_Hush_integrations(ctx, field) + case "organization": + return ec.fieldContext_Hush_organization(ctx, field) + case "events": + return ec.fieldContext_Hush_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Hush", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var hushBulkCreatePayloadImplementors = []string{"HushBulkCreatePayload"} + +func (ec *executionContext) _HushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.HushBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("HushBulkCreatePayload") + case "hushes": + out.Values[i] = ec._HushBulkCreatePayload_hushes(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 hushCreatePayloadImplementors = []string{"HushCreatePayload"} + +func (ec *executionContext) _HushCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.HushCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("HushCreatePayload") + case "hush": + out.Values[i] = ec._HushCreatePayload_hush(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 hushDeletePayloadImplementors = []string{"HushDeletePayload"} + +func (ec *executionContext) _HushDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.HushDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("HushDeletePayload") + case "deletedID": + out.Values[i] = ec._HushDeletePayload_deletedID(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 hushUpdatePayloadImplementors = []string{"HushUpdatePayload"} + +func (ec *executionContext) _HushUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.HushUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, hushUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("HushUpdatePayload") + case "hush": + out.Values[i] = ec._HushUpdatePayload_hush(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNHushBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.HushBulkCreatePayload) graphql.Marshaler { + return ec._HushBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNHushBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.HushBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._HushBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNHushCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.HushCreatePayload) graphql.Marshaler { + return ec._HushCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNHushCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.HushCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._HushCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNHushDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.HushDeletePayload) graphql.Marshaler { + return ec._HushDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNHushDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.HushDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._HushDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNHushUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.HushUpdatePayload) graphql.Marshaler { + return ec._HushUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNHushUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐHushUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.HushUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._HushUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/integration.generated.go b/internal/graphapi/generated/integration.generated.go new file mode 100644 index 00000000..4cbe0c92 --- /dev/null +++ b/internal/graphapi/generated/integration.generated.go @@ -0,0 +1,526 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _IntegrationBulkCreatePayload_integrations(ctx context.Context, field graphql.CollectedField, obj *model.IntegrationBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationBulkCreatePayload_integrations(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integrations, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationBulkCreatePayload_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationBulkCreatePayload", + 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_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _IntegrationCreatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *model.IntegrationCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationCreatePayload_integration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integration, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Integration) + fc.Result = res + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationCreatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationCreatePayload", + 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_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _IntegrationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.IntegrationDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationDeletePayload", + 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) _IntegrationUpdatePayload_integration(ctx context.Context, field graphql.CollectedField, obj *model.IntegrationUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationUpdatePayload_integration(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integration, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Integration) + fc.Result = res + return ec.marshalNIntegration2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegration(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationUpdatePayload_integration(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationUpdatePayload", + 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_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var integrationBulkCreatePayloadImplementors = []string{"IntegrationBulkCreatePayload"} + +func (ec *executionContext) _IntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.IntegrationBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IntegrationBulkCreatePayload") + case "integrations": + out.Values[i] = ec._IntegrationBulkCreatePayload_integrations(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 integrationCreatePayloadImplementors = []string{"IntegrationCreatePayload"} + +func (ec *executionContext) _IntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.IntegrationCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IntegrationCreatePayload") + case "integration": + out.Values[i] = ec._IntegrationCreatePayload_integration(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 integrationDeletePayloadImplementors = []string{"IntegrationDeletePayload"} + +func (ec *executionContext) _IntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.IntegrationDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IntegrationDeletePayload") + case "deletedID": + out.Values[i] = ec._IntegrationDeletePayload_deletedID(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 integrationUpdatePayloadImplementors = []string{"IntegrationUpdatePayload"} + +func (ec *executionContext) _IntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.IntegrationUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IntegrationUpdatePayload") + case "integration": + out.Values[i] = ec._IntegrationUpdatePayload_integration(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNIntegrationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.IntegrationBulkCreatePayload) graphql.Marshaler { + return ec._IntegrationBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNIntegrationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.IntegrationBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._IntegrationBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNIntegrationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.IntegrationCreatePayload) graphql.Marshaler { + return ec._IntegrationCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNIntegrationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.IntegrationCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._IntegrationCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNIntegrationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.IntegrationDeletePayload) graphql.Marshaler { + return ec._IntegrationDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNIntegrationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.IntegrationDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._IntegrationDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNIntegrationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.IntegrationUpdatePayload) graphql.Marshaler { + return ec._IntegrationUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNIntegrationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.IntegrationUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._IntegrationUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/internalpolicy.generated.go b/internal/graphapi/generated/internalpolicy.generated.go new file mode 100644 index 00000000..55b67391 --- /dev/null +++ b/internal/graphapi/generated/internalpolicy.generated.go @@ -0,0 +1,592 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _InternalPolicyBulkCreatePayload_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *model.InternalPolicyBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicies, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.InternalPolicy) + fc.Result = res + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyBulkCreatePayload_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyBulkCreatePayload", + 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_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicyCreatePayload_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *model.InternalPolicyCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyCreatePayload_internalPolicy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.InternalPolicy) + fc.Result = res + return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyCreatePayload_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyCreatePayload", + 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_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicyDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.InternalPolicyDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyDeletePayload", + 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) _InternalPolicyUpdatePayload_internalPolicy(ctx context.Context, field graphql.CollectedField, obj *model.InternalPolicyUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicyUpdatePayload_internalPolicy(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicy, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.InternalPolicy) + fc.Result = res + return ec.marshalNInternalPolicy2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicy(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicyUpdatePayload_internalPolicy(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicyUpdatePayload", + 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_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var internalPolicyBulkCreatePayloadImplementors = []string{"InternalPolicyBulkCreatePayload"} + +func (ec *executionContext) _InternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InternalPolicyBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyBulkCreatePayload") + case "internalPolicies": + out.Values[i] = ec._InternalPolicyBulkCreatePayload_internalPolicies(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 internalPolicyCreatePayloadImplementors = []string{"InternalPolicyCreatePayload"} + +func (ec *executionContext) _InternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InternalPolicyCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyCreatePayload") + case "internalPolicy": + out.Values[i] = ec._InternalPolicyCreatePayload_internalPolicy(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 internalPolicyDeletePayloadImplementors = []string{"InternalPolicyDeletePayload"} + +func (ec *executionContext) _InternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InternalPolicyDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyDeletePayload") + case "deletedID": + out.Values[i] = ec._InternalPolicyDeletePayload_deletedID(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 internalPolicyUpdatePayloadImplementors = []string{"InternalPolicyUpdatePayload"} + +func (ec *executionContext) _InternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InternalPolicyUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicyUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicyUpdatePayload") + case "internalPolicy": + out.Values[i] = ec._InternalPolicyUpdatePayload_internalPolicy(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNInternalPolicyBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.InternalPolicyBulkCreatePayload) graphql.Marshaler { + return ec._InternalPolicyBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInternalPolicyBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.InternalPolicyBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InternalPolicyBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNInternalPolicyCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.InternalPolicyCreatePayload) graphql.Marshaler { + return ec._InternalPolicyCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInternalPolicyCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.InternalPolicyCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InternalPolicyCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNInternalPolicyDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.InternalPolicyDeletePayload) graphql.Marshaler { + return ec._InternalPolicyDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInternalPolicyDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.InternalPolicyDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InternalPolicyDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNInternalPolicyUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.InternalPolicyUpdatePayload) graphql.Marshaler { + return ec._InternalPolicyUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInternalPolicyUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicyUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.InternalPolicyUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InternalPolicyUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/invite.generated.go b/internal/graphapi/generated/invite.generated.go new file mode 100644 index 00000000..3aa91248 --- /dev/null +++ b/internal/graphapi/generated/invite.generated.go @@ -0,0 +1,532 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _InviteBulkCreatePayload_invites(ctx context.Context, field graphql.CollectedField, obj *model.InviteBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteBulkCreatePayload_invites(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Invites, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Invite) + fc.Result = res + return ec.marshalOInvite2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInviteᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InviteBulkCreatePayload_invites(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteBulkCreatePayload", + 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_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _InviteCreatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *model.InviteCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteCreatePayload_invite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Invite, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Invite) + fc.Result = res + return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InviteCreatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteCreatePayload", + 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_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _InviteDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.InviteDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InviteDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteDeletePayload", + 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) _InviteUpdatePayload_invite(ctx context.Context, field graphql.CollectedField, obj *model.InviteUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InviteUpdatePayload_invite(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Invite, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Invite) + fc.Result = res + return ec.marshalNInvite2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInvite(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InviteUpdatePayload_invite(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InviteUpdatePayload", + 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_Invite_id(ctx, field) + case "createdAt": + return ec.fieldContext_Invite_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Invite_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Invite_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Invite_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Invite_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Invite_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Invite_ownerID(ctx, field) + case "expires": + return ec.fieldContext_Invite_expires(ctx, field) + case "recipient": + return ec.fieldContext_Invite_recipient(ctx, field) + case "status": + return ec.fieldContext_Invite_status(ctx, field) + case "role": + return ec.fieldContext_Invite_role(ctx, field) + case "sendAttempts": + return ec.fieldContext_Invite_sendAttempts(ctx, field) + case "requestorID": + return ec.fieldContext_Invite_requestorID(ctx, field) + case "owner": + return ec.fieldContext_Invite_owner(ctx, field) + case "events": + return ec.fieldContext_Invite_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Invite", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var inviteBulkCreatePayloadImplementors = []string{"InviteBulkCreatePayload"} + +func (ec *executionContext) _InviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InviteBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InviteBulkCreatePayload") + case "invites": + out.Values[i] = ec._InviteBulkCreatePayload_invites(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 inviteCreatePayloadImplementors = []string{"InviteCreatePayload"} + +func (ec *executionContext) _InviteCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InviteCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InviteCreatePayload") + case "invite": + out.Values[i] = ec._InviteCreatePayload_invite(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 inviteDeletePayloadImplementors = []string{"InviteDeletePayload"} + +func (ec *executionContext) _InviteDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InviteDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InviteDeletePayload") + case "deletedID": + out.Values[i] = ec._InviteDeletePayload_deletedID(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 inviteUpdatePayloadImplementors = []string{"InviteUpdatePayload"} + +func (ec *executionContext) _InviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.InviteUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, inviteUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InviteUpdatePayload") + case "invite": + out.Values[i] = ec._InviteUpdatePayload_invite(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNInviteBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.InviteBulkCreatePayload) graphql.Marshaler { + return ec._InviteBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInviteBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.InviteBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InviteBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNInviteCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.InviteCreatePayload) graphql.Marshaler { + return ec._InviteCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInviteCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.InviteCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InviteCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNInviteDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.InviteDeletePayload) graphql.Marshaler { + return ec._InviteDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInviteDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.InviteDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InviteDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNInviteUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.InviteUpdatePayload) graphql.Marshaler { + return ec._InviteUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNInviteUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInviteUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.InviteUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._InviteUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/narrative.generated.go b/internal/graphapi/generated/narrative.generated.go new file mode 100644 index 00000000..84923c9c --- /dev/null +++ b/internal/graphapi/generated/narrative.generated.go @@ -0,0 +1,568 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _NarrativeBulkCreatePayload_narratives(ctx context.Context, field graphql.CollectedField, obj *model.NarrativeBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeBulkCreatePayload_narratives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Narratives, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Narrative) + fc.Result = res + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NarrativeBulkCreatePayload_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeBulkCreatePayload", + 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_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _NarrativeCreatePayload_narrative(ctx context.Context, field graphql.CollectedField, obj *model.NarrativeCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeCreatePayload_narrative(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Narrative, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Narrative) + fc.Result = res + return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NarrativeCreatePayload_narrative(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeCreatePayload", + 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_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _NarrativeDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.NarrativeDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NarrativeDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeDeletePayload", + 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) _NarrativeUpdatePayload_narrative(ctx context.Context, field graphql.CollectedField, obj *model.NarrativeUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeUpdatePayload_narrative(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Narrative, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Narrative) + fc.Result = res + return ec.marshalNNarrative2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrative(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NarrativeUpdatePayload_narrative(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeUpdatePayload", + 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_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var narrativeBulkCreatePayloadImplementors = []string{"NarrativeBulkCreatePayload"} + +func (ec *executionContext) _NarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.NarrativeBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NarrativeBulkCreatePayload") + case "narratives": + out.Values[i] = ec._NarrativeBulkCreatePayload_narratives(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 narrativeCreatePayloadImplementors = []string{"NarrativeCreatePayload"} + +func (ec *executionContext) _NarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.NarrativeCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NarrativeCreatePayload") + case "narrative": + out.Values[i] = ec._NarrativeCreatePayload_narrative(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 narrativeDeletePayloadImplementors = []string{"NarrativeDeletePayload"} + +func (ec *executionContext) _NarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.NarrativeDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NarrativeDeletePayload") + case "deletedID": + out.Values[i] = ec._NarrativeDeletePayload_deletedID(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 narrativeUpdatePayloadImplementors = []string{"NarrativeUpdatePayload"} + +func (ec *executionContext) _NarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.NarrativeUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NarrativeUpdatePayload") + case "narrative": + out.Values[i] = ec._NarrativeUpdatePayload_narrative(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNNarrativeBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.NarrativeBulkCreatePayload) graphql.Marshaler { + return ec._NarrativeBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNNarrativeBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.NarrativeBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._NarrativeBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNNarrativeCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.NarrativeCreatePayload) graphql.Marshaler { + return ec._NarrativeCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNNarrativeCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.NarrativeCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._NarrativeCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNNarrativeDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.NarrativeDeletePayload) graphql.Marshaler { + return ec._NarrativeDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNNarrativeDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.NarrativeDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._NarrativeDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNNarrativeUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.NarrativeUpdatePayload) graphql.Marshaler { + return ec._NarrativeUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNNarrativeUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.NarrativeUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._NarrativeUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/organization.generated.go b/internal/graphapi/generated/organization.generated.go new file mode 100644 index 00000000..50aab7ea --- /dev/null +++ b/internal/graphapi/generated/organization.generated.go @@ -0,0 +1,754 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _OrganizationBulkCreatePayload_organizations(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationBulkCreatePayload_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Organizations, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationBulkCreatePayload_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationBulkCreatePayload", + 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 "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationCreatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationCreatePayload_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) (interface{}, 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.(*generated.Organization) + fc.Result = res + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationCreatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationCreatePayload", + 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 "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationDeletePayload", + 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) _OrganizationUpdatePayload_organization(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationUpdatePayload_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) (interface{}, 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.(*generated.Organization) + fc.Result = res + return ec.marshalNOrganization2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganization(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationUpdatePayload_organization(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationUpdatePayload", + 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 "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var organizationBulkCreatePayloadImplementors = []string{"OrganizationBulkCreatePayload"} + +func (ec *executionContext) _OrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationBulkCreatePayload") + case "organizations": + out.Values[i] = ec._OrganizationBulkCreatePayload_organizations(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 organizationCreatePayloadImplementors = []string{"OrganizationCreatePayload"} + +func (ec *executionContext) _OrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationCreatePayload") + case "organization": + out.Values[i] = ec._OrganizationCreatePayload_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 organizationDeletePayloadImplementors = []string{"OrganizationDeletePayload"} + +func (ec *executionContext) _OrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationDeletePayload") + case "deletedID": + out.Values[i] = ec._OrganizationDeletePayload_deletedID(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 organizationUpdatePayloadImplementors = []string{"OrganizationUpdatePayload"} + +func (ec *executionContext) _OrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationUpdatePayload") + case "organization": + out.Values[i] = ec._OrganizationUpdatePayload_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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNOrganizationBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationBulkCreatePayload) graphql.Marshaler { + return ec._OrganizationBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationCreatePayload) graphql.Marshaler { + return ec._OrganizationCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationDeletePayload) graphql.Marshaler { + return ec._OrganizationDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationUpdatePayload) graphql.Marshaler { + return ec._OrganizationUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/organizationsetting.generated.go b/internal/graphapi/generated/organizationsetting.generated.go new file mode 100644 index 00000000..20b03c1e --- /dev/null +++ b/internal/graphapi/generated/organizationsetting.generated.go @@ -0,0 +1,550 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _OrganizationSettingBulkCreatePayload_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationSettingBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrganizationSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OrganizationSetting) + fc.Result = res + return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingBulkCreatePayload_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingBulkCreatePayload", + 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_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSettingCreatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationSettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingCreatePayload_organizationSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrganizationSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.OrganizationSetting) + fc.Result = res + return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingCreatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingCreatePayload", + 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_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSettingDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationSettingDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingDeletePayload", + 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) _OrganizationSettingUpdatePayload_organizationSetting(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationSettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingUpdatePayload_organizationSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrganizationSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.OrganizationSetting) + fc.Result = res + return ec.marshalNOrganizationSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingUpdatePayload_organizationSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingUpdatePayload", + 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_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var organizationSettingBulkCreatePayloadImplementors = []string{"OrganizationSettingBulkCreatePayload"} + +func (ec *executionContext) _OrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationSettingBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationSettingBulkCreatePayload") + case "organizationSettings": + out.Values[i] = ec._OrganizationSettingBulkCreatePayload_organizationSettings(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 organizationSettingCreatePayloadImplementors = []string{"OrganizationSettingCreatePayload"} + +func (ec *executionContext) _OrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationSettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationSettingCreatePayload") + case "organizationSetting": + out.Values[i] = ec._OrganizationSettingCreatePayload_organizationSetting(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 organizationSettingDeletePayloadImplementors = []string{"OrganizationSettingDeletePayload"} + +func (ec *executionContext) _OrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationSettingDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationSettingDeletePayload") + case "deletedID": + out.Values[i] = ec._OrganizationSettingDeletePayload_deletedID(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 organizationSettingUpdatePayloadImplementors = []string{"OrganizationSettingUpdatePayload"} + +func (ec *executionContext) _OrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationSettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationSettingUpdatePayload") + case "organizationSetting": + out.Values[i] = ec._OrganizationSettingUpdatePayload_organizationSetting(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationSettingBulkCreatePayload) graphql.Marshaler { + return ec._OrganizationSettingBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationSettingBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationSettingBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationSettingCreatePayload) graphql.Marshaler { + return ec._OrganizationSettingCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationSettingCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationSettingCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationSettingDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationSettingDeletePayload) graphql.Marshaler { + return ec._OrganizationSettingDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationSettingDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationSettingDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationSettingDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrganizationSettingUpdatePayload) graphql.Marshaler { + return ec._OrganizationSettingUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrganizationSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationSettingUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrganizationSettingUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/orgmembership.generated.go b/internal/graphapi/generated/orgmembership.generated.go new file mode 100644 index 00000000..7b84f1cf --- /dev/null +++ b/internal/graphapi/generated/orgmembership.generated.go @@ -0,0 +1,514 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _OrgMembershipBulkCreatePayload_orgMemberships(ctx context.Context, field graphql.CollectedField, obj *model.OrgMembershipBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrgMemberships, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OrgMembership) + fc.Result = res + return ec.marshalOOrgMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembershipᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgMembershipBulkCreatePayload_orgMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipBulkCreatePayload", + 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_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgMembershipCreatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *model.OrgMembershipCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipCreatePayload_orgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrgMembership, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.OrgMembership) + fc.Result = res + return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgMembershipCreatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipCreatePayload", + 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_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.OrgMembershipDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipDeletePayload", + 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) _OrgMembershipUpdatePayload_orgMembership(ctx context.Context, field graphql.CollectedField, obj *model.OrgMembershipUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgMembershipUpdatePayload_orgMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrgMembership, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.OrgMembership) + fc.Result = res + return ec.marshalNOrgMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgMembership(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgMembershipUpdatePayload_orgMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgMembershipUpdatePayload", + 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_OrgMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_OrgMembership_role(ctx, field) + case "organizationID": + return ec.fieldContext_OrgMembership_organizationID(ctx, field) + case "userID": + return ec.fieldContext_OrgMembership_userID(ctx, field) + case "organization": + return ec.fieldContext_OrgMembership_organization(ctx, field) + case "user": + return ec.fieldContext_OrgMembership_user(ctx, field) + case "events": + return ec.fieldContext_OrgMembership_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgMembership", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var orgMembershipBulkCreatePayloadImplementors = []string{"OrgMembershipBulkCreatePayload"} + +func (ec *executionContext) _OrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgMembershipBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgMembershipBulkCreatePayload") + case "orgMemberships": + out.Values[i] = ec._OrgMembershipBulkCreatePayload_orgMemberships(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 orgMembershipCreatePayloadImplementors = []string{"OrgMembershipCreatePayload"} + +func (ec *executionContext) _OrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgMembershipCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgMembershipCreatePayload") + case "orgMembership": + out.Values[i] = ec._OrgMembershipCreatePayload_orgMembership(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 orgMembershipDeletePayloadImplementors = []string{"OrgMembershipDeletePayload"} + +func (ec *executionContext) _OrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgMembershipDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgMembershipDeletePayload") + case "deletedID": + out.Values[i] = ec._OrgMembershipDeletePayload_deletedID(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 orgMembershipUpdatePayloadImplementors = []string{"OrgMembershipUpdatePayload"} + +func (ec *executionContext) _OrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgMembershipUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgMembershipUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgMembershipUpdatePayload") + case "orgMembership": + out.Values[i] = ec._OrgMembershipUpdatePayload_orgMembership(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgMembershipBulkCreatePayload) graphql.Marshaler { + return ec._OrgMembershipBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgMembershipBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgMembershipBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrgMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgMembershipCreatePayload) graphql.Marshaler { + return ec._OrgMembershipCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgMembershipCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgMembershipCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrgMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgMembershipDeletePayload) graphql.Marshaler { + return ec._OrgMembershipDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgMembershipDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgMembershipDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrgMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgMembershipUpdatePayload) graphql.Marshaler { + return ec._OrgMembershipUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgMembershipUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgMembershipUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/orgsubscription.generated.go b/internal/graphapi/generated/orgsubscription.generated.go new file mode 100644 index 00000000..22601717 --- /dev/null +++ b/internal/graphapi/generated/orgsubscription.generated.go @@ -0,0 +1,544 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *model.OrgSubscriptionBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrgSubscriptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OrgSubscription) + fc.Result = res + return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscriptionBulkCreatePayload_orgSubscriptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscriptionBulkCreatePayload", + 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_OrgSubscription_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgSubscription_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgSubscription_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrgSubscription_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscription_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscription_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscription_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscription_features(ctx, field) + case "owner": + return ec.fieldContext_OrgSubscription_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgSubscriptionCreatePayload_orgSubscription(ctx context.Context, field graphql.CollectedField, obj *model.OrgSubscriptionCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionCreatePayload_orgSubscription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrgSubscription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.OrgSubscription) + fc.Result = res + return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscriptionCreatePayload_orgSubscription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscriptionCreatePayload", + 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_OrgSubscription_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgSubscription_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgSubscription_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrgSubscription_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscription_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscription_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscription_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscription_features(ctx, field) + case "owner": + return ec.fieldContext_OrgSubscription_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgSubscriptionDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.OrgSubscriptionDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscriptionDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscriptionDeletePayload", + 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) _OrgSubscriptionUpdatePayload_orgSubscription(ctx context.Context, field graphql.CollectedField, obj *model.OrgSubscriptionUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionUpdatePayload_orgSubscription(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrgSubscription, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.OrgSubscription) + fc.Result = res + return ec.marshalNOrgSubscription2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscription(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscriptionUpdatePayload_orgSubscription(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscriptionUpdatePayload", + 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_OrgSubscription_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgSubscription_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgSubscription_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrgSubscription_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscription_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscription_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscription_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscription_features(ctx, field) + case "owner": + return ec.fieldContext_OrgSubscription_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var orgSubscriptionBulkCreatePayloadImplementors = []string{"OrgSubscriptionBulkCreatePayload"} + +func (ec *executionContext) _OrgSubscriptionBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgSubscriptionBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgSubscriptionBulkCreatePayload") + case "orgSubscriptions": + out.Values[i] = ec._OrgSubscriptionBulkCreatePayload_orgSubscriptions(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 orgSubscriptionCreatePayloadImplementors = []string{"OrgSubscriptionCreatePayload"} + +func (ec *executionContext) _OrgSubscriptionCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgSubscriptionCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgSubscriptionCreatePayload") + case "orgSubscription": + out.Values[i] = ec._OrgSubscriptionCreatePayload_orgSubscription(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 orgSubscriptionDeletePayloadImplementors = []string{"OrgSubscriptionDeletePayload"} + +func (ec *executionContext) _OrgSubscriptionDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgSubscriptionDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgSubscriptionDeletePayload") + case "deletedID": + out.Values[i] = ec._OrgSubscriptionDeletePayload_deletedID(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 orgSubscriptionUpdatePayloadImplementors = []string{"OrgSubscriptionUpdatePayload"} + +func (ec *executionContext) _OrgSubscriptionUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.OrgSubscriptionUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgSubscriptionUpdatePayload") + case "orgSubscription": + out.Values[i] = ec._OrgSubscriptionUpdatePayload_orgSubscription(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNOrgSubscriptionBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgSubscriptionBulkCreatePayload) graphql.Marshaler { + return ec._OrgSubscriptionBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgSubscriptionBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgSubscriptionBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgSubscriptionBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrgSubscriptionCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgSubscriptionCreatePayload) graphql.Marshaler { + return ec._OrgSubscriptionCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgSubscriptionCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgSubscriptionCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgSubscriptionCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrgSubscriptionDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgSubscriptionDeletePayload) graphql.Marshaler { + return ec._OrgSubscriptionDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgSubscriptionDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgSubscriptionDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgSubscriptionDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNOrgSubscriptionUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.OrgSubscriptionUpdatePayload) graphql.Marshaler { + return ec._OrgSubscriptionUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNOrgSubscriptionUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.OrgSubscriptionUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._OrgSubscriptionUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/personalaccesstoken.generated.go b/internal/graphapi/generated/personalaccesstoken.generated.go new file mode 100644 index 00000000..ca305ec4 --- /dev/null +++ b/internal/graphapi/generated/personalaccesstoken.generated.go @@ -0,0 +1,538 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *model.PersonalAccessTokenBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersonalAccessTokens, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.PersonalAccessToken) + fc.Result = res + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PersonalAccessTokenBulkCreatePayload_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PersonalAccessTokenBulkCreatePayload", + 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_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PersonalAccessTokenCreatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *model.PersonalAccessTokenCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersonalAccessToken, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.PersonalAccessToken) + fc.Result = res + return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PersonalAccessTokenCreatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PersonalAccessTokenCreatePayload", + 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_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PersonalAccessTokenDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.PersonalAccessTokenDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PersonalAccessTokenDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PersonalAccessTokenDeletePayload", + 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) _PersonalAccessTokenUpdatePayload_personalAccessToken(ctx context.Context, field graphql.CollectedField, obj *model.PersonalAccessTokenUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersonalAccessToken, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.PersonalAccessToken) + fc.Result = res + return ec.marshalNPersonalAccessToken2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessToken(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PersonalAccessTokenUpdatePayload_personalAccessToken(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PersonalAccessTokenUpdatePayload", + 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_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var personalAccessTokenBulkCreatePayloadImplementors = []string{"PersonalAccessTokenBulkCreatePayload"} + +func (ec *executionContext) _PersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PersonalAccessTokenBulkCreatePayload") + case "personalAccessTokens": + out.Values[i] = ec._PersonalAccessTokenBulkCreatePayload_personalAccessTokens(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 personalAccessTokenCreatePayloadImplementors = []string{"PersonalAccessTokenCreatePayload"} + +func (ec *executionContext) _PersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.PersonalAccessTokenCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PersonalAccessTokenCreatePayload") + case "personalAccessToken": + out.Values[i] = ec._PersonalAccessTokenCreatePayload_personalAccessToken(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 personalAccessTokenDeletePayloadImplementors = []string{"PersonalAccessTokenDeletePayload"} + +func (ec *executionContext) _PersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.PersonalAccessTokenDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PersonalAccessTokenDeletePayload") + case "deletedID": + out.Values[i] = ec._PersonalAccessTokenDeletePayload_deletedID(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 personalAccessTokenUpdatePayloadImplementors = []string{"PersonalAccessTokenUpdatePayload"} + +func (ec *executionContext) _PersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.PersonalAccessTokenUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PersonalAccessTokenUpdatePayload") + case "personalAccessToken": + out.Values[i] = ec._PersonalAccessTokenUpdatePayload_personalAccessToken(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { + return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPersonalAccessTokenBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.PersonalAccessTokenBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PersonalAccessTokenBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.PersonalAccessTokenCreatePayload) graphql.Marshaler { + return ec._PersonalAccessTokenCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPersonalAccessTokenCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.PersonalAccessTokenCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PersonalAccessTokenCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.PersonalAccessTokenDeletePayload) graphql.Marshaler { + return ec._PersonalAccessTokenDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPersonalAccessTokenDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.PersonalAccessTokenDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PersonalAccessTokenDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.PersonalAccessTokenUpdatePayload) graphql.Marshaler { + return ec._PersonalAccessTokenUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNPersonalAccessTokenUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.PersonalAccessTokenUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._PersonalAccessTokenUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/prelude.generated.go b/internal/graphapi/generated/prelude.generated.go new file mode 100644 index 00000000..2e497ed4 --- /dev/null +++ b/internal/graphapi/generated/prelude.generated.go @@ -0,0 +1,3096 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/99designs/gqlgen/graphql/introspection" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +func (ec *executionContext) dir_defer_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + arg0, err := ec.dir_defer_argsIf(ctx, rawArgs) + if err != nil { + return nil, err + } + args["if"] = arg0 + arg1, err := ec.dir_defer_argsLabel(ctx, rawArgs) + if err != nil { + return nil, err + } + args["label"] = arg1 + return args, nil +} +func (ec *executionContext) dir_defer_argsIf( + ctx context.Context, + rawArgs map[string]interface{}, +) (*bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["if"] + if !ok { + var zeroVal *bool + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("if")) + if tmp, ok := rawArgs["if"]; ok { + return ec.unmarshalOBoolean2ᚖbool(ctx, tmp) + } + + var zeroVal *bool + return zeroVal, nil +} + +func (ec *executionContext) dir_defer_argsLabel( + ctx context.Context, + rawArgs map[string]interface{}, +) (*string, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["label"] + if !ok { + var zeroVal *string + return zeroVal, nil + } + + ctx = graphql.WithPathContext(ctx, graphql.NewPathWithField("label")) + if tmp, ok := rawArgs["label"]; ok { + return ec.unmarshalOString2ᚖstring(ctx, tmp) + } + + var zeroVal *string + return zeroVal, nil +} + +func (ec *executionContext) field___Type_enumValues_args(ctx context.Context, rawArgs map[string]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + 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]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + 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]interface{}) (map[string]interface{}, error) { + var err error + args := map[string]interface{}{} + 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]interface{}, +) (bool, error) { + // We won't call the directive if the argument is null. + // Set call_argument_directives_with_null to true to call directives + // even if the argument is null. + _, ok := rawArgs["includeDeprecated"] + if !ok { + var zeroVal bool + return zeroVal, nil + } + + 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) ___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) (interface{}, 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) (interface{}, 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_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) (interface{}, 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) (interface{}, 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(_ 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) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + 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) (interface{}, 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) ___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) (interface{}, 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) (interface{}, 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) (interface{}, 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) (interface{}, 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) (interface{}, 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) (interface{}, 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) (interface{}, 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(_ 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) + } + return nil, fmt.Errorf("no field named %q was found under type __InputValue", field.Name) + }, + } + 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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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) (interface{}, 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) (interface{}, 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) (interface{}, 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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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) ___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) (interface{}, 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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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 "locations": + return ec.fieldContext___Directive_locations(ctx, field) + case "args": + return ec.fieldContext___Directive_args(ctx, field) + case "isRepeatable": + return ec.fieldContext___Directive_isRepeatable(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) (interface{}, 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) (interface{}, 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) (interface{}, 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_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) (interface{}, 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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(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) (interface{}, 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) (interface{}, 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) + } + 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) (interface{}, 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 "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 "specifiedByURL": + return ec.fieldContext___Type_specifiedByURL(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type __Type", field.Name) + }, + } + 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) (interface{}, 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 +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +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 "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++ + } + case "isRepeatable": + out.Values[i] = ec.___Directive_isRepeatable(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) + default: + panic("unknown field " + strconv.Quote(field.Name)) + } + } + out.Dispatch(ctx) + if out.Invalids > 0 { + return graphql.Null + } + + atomic.AddInt32(&ec.deferred, int32(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 "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 "specifiedByURL": + out.Values[i] = ec.___Type_specifiedByURL(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) unmarshalNBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNID2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + 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.unmarshalNID2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalNID2ᚕstringᚄ(ctx context.Context, sel ast.SelectionSet, v []string) graphql.Marshaler { + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNID2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalNInt2int(ctx context.Context, v interface{}) (int, error) { + res, err := graphql.UnmarshalInt(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNInt2int(ctx context.Context, sel ast.SelectionSet, v int) graphql.Marshaler { + res := graphql.MarshalInt(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalNInt2int64(ctx context.Context, v interface{}) (int64, error) { + res, err := graphql.UnmarshalInt64(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { + res := graphql.MarshalInt64(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) unmarshalNString2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) 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 interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalN__DirectiveLocation2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalN__DirectiveLocation2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + var vSlice []interface{} + if v != nil { + 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 interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalN__TypeKind2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalOBoolean2bool(ctx context.Context, v interface{}) (bool, error) { + res, err := graphql.UnmarshalBoolean(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOBoolean2bool(ctx context.Context, sel ast.SelectionSet, v bool) graphql.Marshaler { + res := graphql.MarshalBoolean(v) + return res +} + +func (ec *executionContext) unmarshalOBoolean2ᚖbool(ctx context.Context, v interface{}) (*bool, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalBoolean(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOBoolean2ᚖbool(ctx context.Context, sel ast.SelectionSet, v *bool) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalBoolean(*v) + return res +} + +func (ec *executionContext) unmarshalOID2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOID2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + return res +} + +func (ec *executionContext) unmarshalOID2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + 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.unmarshalNID2string(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOID2ᚕ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.marshalNID2string(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOID2ᚖstring(ctx context.Context, v interface{}) (*string, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOID2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(*v) + return res +} + +func (ec *executionContext) unmarshalOInt2int64(ctx context.Context, v interface{}) (int64, error) { + res, err := graphql.UnmarshalInt64(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2int64(ctx context.Context, sel ast.SelectionSet, v int64) graphql.Marshaler { + res := graphql.MarshalInt64(v) + return res +} + +func (ec *executionContext) unmarshalOInt2ᚕint64ᚄ(ctx context.Context, v interface{}) ([]int64, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]int64, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNInt2int64(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOInt2ᚕint64ᚄ(ctx context.Context, sel ast.SelectionSet, v []int64) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNInt2int64(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOInt2ᚕintᚄ(ctx context.Context, v interface{}) ([]int, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]int, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNInt2int(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) marshalOInt2ᚕintᚄ(ctx context.Context, sel ast.SelectionSet, v []int) graphql.Marshaler { + if v == nil { + return graphql.Null + } + ret := make(graphql.Array, len(v)) + for i := range v { + ret[i] = ec.marshalNInt2int(ctx, sel, v[i]) + } + + for _, e := range ret { + if e == graphql.Null { + return graphql.Null + } + } + + return ret +} + +func (ec *executionContext) unmarshalOInt2ᚖint(ctx context.Context, v interface{}) (*int, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalInt(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2ᚖint(ctx context.Context, sel ast.SelectionSet, v *int) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalInt(*v) + return res +} + +func (ec *executionContext) unmarshalOInt2ᚖint64(ctx context.Context, v interface{}) (*int64, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalInt64(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOInt2ᚖint64(ctx context.Context, sel ast.SelectionSet, v *int64) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalInt64(*v) + return res +} + +func (ec *executionContext) unmarshalOString2string(ctx context.Context, v interface{}) (string, error) { + res, err := graphql.UnmarshalString(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOString2string(ctx context.Context, sel ast.SelectionSet, v string) graphql.Marshaler { + res := graphql.MarshalString(v) + return res +} + +func (ec *executionContext) unmarshalOString2ᚕstringᚄ(ctx context.Context, v interface{}) ([]string, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + 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 interface{}) (*string, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalString(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOString2ᚖstring(ctx context.Context, sel ast.SelectionSet, v *string) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalString(*v) + return res +} + +func (ec *executionContext) 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 ***************************** diff --git a/internal/graphapi/generated/procedure.generated.go b/internal/graphapi/generated/procedure.generated.go new file mode 100644 index 00000000..9be9023c --- /dev/null +++ b/internal/graphapi/generated/procedure.generated.go @@ -0,0 +1,598 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _ProcedureBulkCreatePayload_procedures(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureBulkCreatePayload_procedures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Procedures, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Procedure) + fc.Result = res + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureBulkCreatePayload_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedureBulkCreatePayload", + 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_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProcedureCreatePayload_procedure(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureCreatePayload_procedure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Procedure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Procedure) + fc.Result = res + return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureCreatePayload_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedureCreatePayload", + 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_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProcedureDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedureDeletePayload", + 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) _ProcedureUpdatePayload_procedure(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureUpdatePayload_procedure(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Procedure, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Procedure) + fc.Result = res + return ec.marshalNProcedure2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedure(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureUpdatePayload_procedure(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedureUpdatePayload", + 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_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var procedureBulkCreatePayloadImplementors = []string{"ProcedureBulkCreatePayload"} + +func (ec *executionContext) _ProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProcedureBulkCreatePayload") + case "procedures": + out.Values[i] = ec._ProcedureBulkCreatePayload_procedures(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 procedureCreatePayloadImplementors = []string{"ProcedureCreatePayload"} + +func (ec *executionContext) _ProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProcedureCreatePayload") + case "procedure": + out.Values[i] = ec._ProcedureCreatePayload_procedure(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 procedureDeletePayloadImplementors = []string{"ProcedureDeletePayload"} + +func (ec *executionContext) _ProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProcedureDeletePayload") + case "deletedID": + out.Values[i] = ec._ProcedureDeletePayload_deletedID(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 procedureUpdatePayloadImplementors = []string{"ProcedureUpdatePayload"} + +func (ec *executionContext) _ProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProcedureUpdatePayload") + case "procedure": + out.Values[i] = ec._ProcedureUpdatePayload_procedure(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNProcedureBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProcedureBulkCreatePayload) graphql.Marshaler { + return ec._ProcedureBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProcedureBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProcedureBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProcedureCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProcedureCreatePayload) graphql.Marshaler { + return ec._ProcedureCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProcedureCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProcedureCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProcedureDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.ProcedureDeletePayload) graphql.Marshaler { + return ec._ProcedureDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProcedureDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProcedureDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProcedureUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProcedureUpdatePayload) graphql.Marshaler { + return ec._ProcedureUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProcedureUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProcedureUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/program.generated.go b/internal/graphapi/generated/program.generated.go new file mode 100644 index 00000000..7a255d90 --- /dev/null +++ b/internal/graphapi/generated/program.generated.go @@ -0,0 +1,646 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _ProgramBulkCreatePayload_programs(ctx context.Context, field graphql.CollectedField, obj *model.ProgramBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramBulkCreatePayload_programs(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Programs, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Program) + fc.Result = res + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramBulkCreatePayload_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramBulkCreatePayload", + 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_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramCreatePayload_program(ctx context.Context, field graphql.CollectedField, obj *model.ProgramCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramCreatePayload_program(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Program, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Program) + fc.Result = res + return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramCreatePayload_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramCreatePayload", + 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_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.ProgramDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramDeletePayload", + 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) _ProgramUpdatePayload_program(ctx context.Context, field graphql.CollectedField, obj *model.ProgramUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramUpdatePayload_program(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Program, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Program) + fc.Result = res + return ec.marshalNProgram2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgram(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramUpdatePayload_program(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramUpdatePayload", + 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_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var programBulkCreatePayloadImplementors = []string{"ProgramBulkCreatePayload"} + +func (ec *executionContext) _ProgramBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramBulkCreatePayload") + case "programs": + out.Values[i] = ec._ProgramBulkCreatePayload_programs(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 programCreatePayloadImplementors = []string{"ProgramCreatePayload"} + +func (ec *executionContext) _ProgramCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramCreatePayload") + case "program": + out.Values[i] = ec._ProgramCreatePayload_program(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 programDeletePayloadImplementors = []string{"ProgramDeletePayload"} + +func (ec *executionContext) _ProgramDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramDeletePayload") + case "deletedID": + out.Values[i] = ec._ProgramDeletePayload_deletedID(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 programUpdatePayloadImplementors = []string{"ProgramUpdatePayload"} + +func (ec *executionContext) _ProgramUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramUpdatePayload") + case "program": + out.Values[i] = ec._ProgramUpdatePayload_program(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNProgramBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramBulkCreatePayload) graphql.Marshaler { + return ec._ProgramBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProgramCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramCreatePayload) graphql.Marshaler { + return ec._ProgramCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProgramDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramDeletePayload) graphql.Marshaler { + return ec._ProgramDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProgramUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramUpdatePayload) graphql.Marshaler { + return ec._ProgramUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/programextended.generated.go b/internal/graphapi/generated/programextended.generated.go new file mode 100644 index 00000000..c701cb17 --- /dev/null +++ b/internal/graphapi/generated/programextended.generated.go @@ -0,0 +1,278 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/graphapi/model" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +func (ec *executionContext) unmarshalInputCreateControlWithSubcontrolsInput(ctx context.Context, obj interface{}) (model.CreateControlWithSubcontrolsInput, error) { + var it model.CreateControlWithSubcontrolsInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"control", "subcontrols"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "control": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("control")) + data, err := ec.unmarshalOCreateControlInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateControlInput(ctx, v) + if err != nil { + return it, err + } + it.Control = data + case "subcontrols": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("subcontrols")) + data, err := ec.unmarshalOCreateSubcontrolInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateSubcontrolInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Subcontrols = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputCreateFullProgramInput(ctx context.Context, obj interface{}) (model.CreateFullProgramInput, error) { + var it model.CreateFullProgramInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"program", "standard", "controls", "risks", "internalPolicies", "procedures", "members"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "program": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("program")) + data, err := ec.unmarshalNCreateProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInput(ctx, v) + if err != nil { + return it, err + } + it.Program = data + case "standard": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("standard")) + data, err := ec.unmarshalNCreateStandardInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateStandardInput(ctx, v) + if err != nil { + return it, err + } + it.Standard = data + case "controls": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("controls")) + data, err := ec.unmarshalOCreateControlWithSubcontrolsInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateControlWithSubcontrolsInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Controls = data + case "risks": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("risks")) + data, err := ec.unmarshalOCreateRiskInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateRiskInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Risks = data + case "internalPolicies": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("internalPolicies")) + data, err := ec.unmarshalOCreateInternalPolicyInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateInternalPolicyInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.InternalPolicies = data + case "procedures": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("procedures")) + data, err := ec.unmarshalOCreateProcedureInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProcedureInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Procedures = data + case "members": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("members")) + data, err := ec.unmarshalOCreateMemberWithProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateMemberWithProgramInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Members = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputCreateMemberWithProgramInput(ctx context.Context, obj interface{}) (model.CreateMemberWithProgramInput, error) { + var it model.CreateMemberWithProgramInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"role", "userID"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "role": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("role")) + data, err := ec.unmarshalOProgramMembershipRole2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋpkgᚋenumsᚐRole(ctx, v) + if err != nil { + return it, err + } + it.Role = data + case "userID": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("userID")) + data, err := ec.unmarshalNID2string(ctx, v) + if err != nil { + return it, err + } + it.UserID = data + } + } + + return it, nil +} + +func (ec *executionContext) unmarshalInputCreateProgramWithMembersInput(ctx context.Context, obj interface{}) (model.CreateProgramWithMembersInput, error) { + var it model.CreateProgramWithMembersInput + asMap := map[string]interface{}{} + for k, v := range obj.(map[string]interface{}) { + asMap[k] = v + } + + fieldsInOrder := [...]string{"program", "members"} + for _, k := range fieldsInOrder { + v, ok := asMap[k] + if !ok { + continue + } + switch k { + case "program": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("program")) + data, err := ec.unmarshalNCreateProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐCreateProgramInput(ctx, v) + if err != nil { + return it, err + } + it.Program = data + case "members": + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithField("members")) + data, err := ec.unmarshalOCreateMemberWithProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateMemberWithProgramInputᚄ(ctx, v) + if err != nil { + return it, err + } + it.Members = data + } + } + + return it, nil +} + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) unmarshalNCreateControlWithSubcontrolsInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateControlWithSubcontrolsInput(ctx context.Context, v interface{}) (model.CreateControlWithSubcontrolsInput, error) { + res, err := ec.unmarshalInputCreateControlWithSubcontrolsInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateControlWithSubcontrolsInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateControlWithSubcontrolsInput(ctx context.Context, v interface{}) (*model.CreateControlWithSubcontrolsInput, error) { + res, err := ec.unmarshalInputCreateControlWithSubcontrolsInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateFullProgramInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateFullProgramInput(ctx context.Context, v interface{}) (model.CreateFullProgramInput, error) { + res, err := ec.unmarshalInputCreateFullProgramInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateMemberWithProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateMemberWithProgramInput(ctx context.Context, v interface{}) (*model.CreateMemberWithProgramInput, error) { + res, err := ec.unmarshalInputCreateMemberWithProgramInput(ctx, v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalNCreateProgramWithMembersInput2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateProgramWithMembersInput(ctx context.Context, v interface{}) (model.CreateProgramWithMembersInput, error) { + res, err := ec.unmarshalInputCreateProgramWithMembersInput(ctx, v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) unmarshalOCreateControlWithSubcontrolsInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateControlWithSubcontrolsInputᚄ(ctx context.Context, v interface{}) ([]*model.CreateControlWithSubcontrolsInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.CreateControlWithSubcontrolsInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateControlWithSubcontrolsInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateControlWithSubcontrolsInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +func (ec *executionContext) unmarshalOCreateMemberWithProgramInput2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateMemberWithProgramInputᚄ(ctx context.Context, v interface{}) ([]*model.CreateMemberWithProgramInput, error) { + if v == nil { + return nil, nil + } + var vSlice []interface{} + if v != nil { + vSlice = graphql.CoerceList(v) + } + var err error + res := make([]*model.CreateMemberWithProgramInput, len(vSlice)) + for i := range vSlice { + ctx := graphql.WithPathContext(ctx, graphql.NewPathWithIndex(i)) + res[i], err = ec.unmarshalNCreateMemberWithProgramInput2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐCreateMemberWithProgramInput(ctx, vSlice[i]) + if err != nil { + return nil, err + } + } + return res, nil +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/programmembership.generated.go b/internal/graphapi/generated/programmembership.generated.go new file mode 100644 index 00000000..ca9f7a42 --- /dev/null +++ b/internal/graphapi/generated/programmembership.generated.go @@ -0,0 +1,508 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _ProgramMembershipBulkCreatePayload_programMemberships(ctx context.Context, field graphql.CollectedField, obj *model.ProgramMembershipBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProgramMemberships, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ProgramMembership) + fc.Result = res + return ec.marshalOProgramMembership2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembershipᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramMembershipBulkCreatePayload_programMemberships(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramMembershipBulkCreatePayload", + 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_ProgramMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembership_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembership_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembership_userID(ctx, field) + case "program": + return ec.fieldContext_ProgramMembership_program(ctx, field) + case "user": + return ec.fieldContext_ProgramMembership_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramMembershipCreatePayload_programMembership(ctx context.Context, field graphql.CollectedField, obj *model.ProgramMembershipCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipCreatePayload_programMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProgramMembership, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ProgramMembership) + fc.Result = res + return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramMembershipCreatePayload_programMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramMembershipCreatePayload", + 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_ProgramMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembership_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembership_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembership_userID(ctx, field) + case "program": + return ec.fieldContext_ProgramMembership_program(ctx, field) + case "user": + return ec.fieldContext_ProgramMembership_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramMembershipDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.ProgramMembershipDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramMembershipDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramMembershipDeletePayload", + 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) _ProgramMembershipUpdatePayload_programMembership(ctx context.Context, field graphql.CollectedField, obj *model.ProgramMembershipUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramMembershipUpdatePayload_programMembership(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ProgramMembership, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.ProgramMembership) + fc.Result = res + return ec.marshalNProgramMembership2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramMembership(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramMembershipUpdatePayload_programMembership(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramMembershipUpdatePayload", + 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_ProgramMembership_id(ctx, field) + case "createdAt": + return ec.fieldContext_ProgramMembership_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ProgramMembership_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ProgramMembership_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ProgramMembership_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ProgramMembership_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ProgramMembership_deletedBy(ctx, field) + case "role": + return ec.fieldContext_ProgramMembership_role(ctx, field) + case "programID": + return ec.fieldContext_ProgramMembership_programID(ctx, field) + case "userID": + return ec.fieldContext_ProgramMembership_userID(ctx, field) + case "program": + return ec.fieldContext_ProgramMembership_program(ctx, field) + case "user": + return ec.fieldContext_ProgramMembership_user(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ProgramMembership", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var programMembershipBulkCreatePayloadImplementors = []string{"ProgramMembershipBulkCreatePayload"} + +func (ec *executionContext) _ProgramMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramMembershipBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramMembershipBulkCreatePayload") + case "programMemberships": + out.Values[i] = ec._ProgramMembershipBulkCreatePayload_programMemberships(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 programMembershipCreatePayloadImplementors = []string{"ProgramMembershipCreatePayload"} + +func (ec *executionContext) _ProgramMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramMembershipCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramMembershipCreatePayload") + case "programMembership": + out.Values[i] = ec._ProgramMembershipCreatePayload_programMembership(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 programMembershipDeletePayloadImplementors = []string{"ProgramMembershipDeletePayload"} + +func (ec *executionContext) _ProgramMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramMembershipDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramMembershipDeletePayload") + case "deletedID": + out.Values[i] = ec._ProgramMembershipDeletePayload_deletedID(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 programMembershipUpdatePayloadImplementors = []string{"ProgramMembershipUpdatePayload"} + +func (ec *executionContext) _ProgramMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramMembershipUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programMembershipUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramMembershipUpdatePayload") + case "programMembership": + out.Values[i] = ec._ProgramMembershipUpdatePayload_programMembership(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNProgramMembershipBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramMembershipBulkCreatePayload) graphql.Marshaler { + return ec._ProgramMembershipBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramMembershipBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramMembershipBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramMembershipBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProgramMembershipCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramMembershipCreatePayload) graphql.Marshaler { + return ec._ProgramMembershipCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramMembershipCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramMembershipCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramMembershipCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProgramMembershipDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramMembershipDeletePayload) graphql.Marshaler { + return ec._ProgramMembershipDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramMembershipDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramMembershipDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramMembershipDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNProgramMembershipUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.ProgramMembershipUpdatePayload) graphql.Marshaler { + return ec._ProgramMembershipUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNProgramMembershipUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramMembershipUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.ProgramMembershipUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._ProgramMembershipUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/risk.generated.go b/internal/graphapi/generated/risk.generated.go new file mode 100644 index 00000000..95856db4 --- /dev/null +++ b/internal/graphapi/generated/risk.generated.go @@ -0,0 +1,598 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _RiskBulkCreatePayload_risks(ctx context.Context, field graphql.CollectedField, obj *model.RiskBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskBulkCreatePayload_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Risks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Risk) + fc.Result = res + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskBulkCreatePayload_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskBulkCreatePayload", + 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 "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskCreatePayload_risk(ctx context.Context, field graphql.CollectedField, obj *model.RiskCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskCreatePayload_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) (interface{}, 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.(*generated.Risk) + fc.Result = res + return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskCreatePayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskCreatePayload", + 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 "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.RiskDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskDeletePayload", + 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) _RiskUpdatePayload_risk(ctx context.Context, field graphql.CollectedField, obj *model.RiskUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskUpdatePayload_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) (interface{}, 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.(*generated.Risk) + fc.Result = res + return ec.marshalNRisk2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRisk(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskUpdatePayload_risk(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskUpdatePayload", + 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 "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var riskBulkCreatePayloadImplementors = []string{"RiskBulkCreatePayload"} + +func (ec *executionContext) _RiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.RiskBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("RiskBulkCreatePayload") + case "risks": + out.Values[i] = ec._RiskBulkCreatePayload_risks(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 riskCreatePayloadImplementors = []string{"RiskCreatePayload"} + +func (ec *executionContext) _RiskCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.RiskCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("RiskCreatePayload") + case "risk": + out.Values[i] = ec._RiskCreatePayload_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 riskDeletePayloadImplementors = []string{"RiskDeletePayload"} + +func (ec *executionContext) _RiskDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.RiskDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("RiskDeletePayload") + case "deletedID": + out.Values[i] = ec._RiskDeletePayload_deletedID(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 riskUpdatePayloadImplementors = []string{"RiskUpdatePayload"} + +func (ec *executionContext) _RiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.RiskUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("RiskUpdatePayload") + case "risk": + out.Values[i] = ec._RiskUpdatePayload_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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNRiskBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.RiskBulkCreatePayload) graphql.Marshaler { + return ec._RiskBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNRiskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.RiskBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNRiskCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.RiskCreatePayload) graphql.Marshaler { + return ec._RiskCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNRiskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.RiskCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNRiskDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.RiskDeletePayload) graphql.Marshaler { + return ec._RiskDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNRiskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.RiskDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNRiskUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.RiskUpdatePayload) graphql.Marshaler { + return ec._RiskUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNRiskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.RiskUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._RiskUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/root_.generated.go b/internal/graphapi/generated/root_.generated.go new file mode 100644 index 00000000..655e63a9 --- /dev/null +++ b/internal/graphapi/generated/root_.generated.go @@ -0,0 +1,53248 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "bytes" + "context" + "errors" + "sync/atomic" + + "entgo.io/contrib/entgql" + "github.com/99designs/gqlgen/graphql" + "github.com/99designs/gqlgen/graphql/introspection" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + gqlparser "github.com/vektah/gqlparser/v2" + "github.com/vektah/gqlparser/v2/ast" +) + +// 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 { + Mutation() MutationResolver + Query() QueryResolver + CreateEntityInput() CreateEntityInputResolver + CreateGroupInput() CreateGroupInputResolver + CreateOrganizationInput() CreateOrganizationInputResolver + UpdateEntityInput() UpdateEntityInputResolver + UpdateGroupInput() UpdateGroupInputResolver + UpdateOrganizationInput() UpdateOrganizationInputResolver + UpdateProgramInput() UpdateProgramInputResolver + UpdateTFASettingInput() UpdateTFASettingInputResolver +} + +type DirectiveRoot struct { +} + +type ComplexityRoot struct { + APIToken struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + ExpiresAt func(childComplexity int) int + ID func(childComplexity int) int + LastUsedAt func(childComplexity int) int + Name func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Scopes func(childComplexity int) int + Tags func(childComplexity int) int + Token func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + APITokenBulkCreatePayload struct { + APITokens func(childComplexity int) int + } + + APITokenConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + APITokenCreatePayload struct { + APIToken func(childComplexity int) int + } + + APITokenDeletePayload struct { + DeletedID func(childComplexity int) int + } + + APITokenEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + APITokenSearchResult struct { + APITokens func(childComplexity int) int + } + + APITokenUpdatePayload struct { + APIToken func(childComplexity int) int + } + + ActionPlan struct { + Control func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + DueDate func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Priority func(childComplexity int) int + Program func(childComplexity int) int + Risk func(childComplexity int) int + Source func(childComplexity int) int + Standard func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + } + + ActionPlanBulkCreatePayload struct { + ActionPlans func(childComplexity int) int + } + + ActionPlanConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ActionPlanCreatePayload struct { + ActionPlan func(childComplexity int) int + } + + ActionPlanDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ActionPlanEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ActionPlanHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + DueDate func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Priority func(childComplexity int) int + Ref func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + ActionPlanHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ActionPlanHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ActionPlanSearchResult struct { + ActionPlans func(childComplexity int) int + } + + ActionPlanUpdatePayload struct { + ActionPlan func(childComplexity int) int + } + + AuditLog struct { + Changes func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + Table func(childComplexity int) int + Time func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + AuditLogConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + AuditLogEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + Contact struct { + Address func(childComplexity int) int + Company func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Email func(childComplexity int) int + Entities func(childComplexity int) int + Files func(childComplexity int) int + FullName func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + PhoneNumber func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + Title func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + ContactBulkCreatePayload struct { + Contacts func(childComplexity int) int + } + + ContactConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ContactCreatePayload struct { + Contact func(childComplexity int) int + } + + ContactDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ContactEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ContactHistory struct { + Address func(childComplexity int) int + Company func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Email func(childComplexity int) int + FullName func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + PhoneNumber func(childComplexity int) int + Ref func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + Title func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + ContactHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ContactHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ContactSearchResult struct { + Contacts func(childComplexity int) int + } + + ContactUpdatePayload struct { + Contact func(childComplexity int) int + } + + Control struct { + ActionPlans func(childComplexity int) int + BlockedGroups func(childComplexity int) int + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlObjectives func(childComplexity int) int + ControlType func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Editors func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Procedures func(childComplexity int) int + Programs func(childComplexity int) int + Risks func(childComplexity int) int + Satisfies func(childComplexity int) int + Source func(childComplexity int) int + Standard func(childComplexity int) int + Status func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + Viewers func(childComplexity int) int + } + + ControlBulkCreatePayload struct { + Controls func(childComplexity int) int + } + + ControlConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlCreatePayload struct { + Control func(childComplexity int) int + } + + ControlDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ControlEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlHistory struct { + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlType func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ControlHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlObjective struct { + BlockedGroups func(childComplexity int) int + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlObjectiveType func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Editors func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + InternalPolicies func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Procedures func(childComplexity int) int + Programs func(childComplexity int) int + Risks func(childComplexity int) int + Source func(childComplexity int) int + Standard func(childComplexity int) int + Status func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + Viewers func(childComplexity int) int + } + + ControlObjectiveBulkCreatePayload struct { + ControlObjectives func(childComplexity int) int + } + + ControlObjectiveConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlObjectiveCreatePayload struct { + ControlObjective func(childComplexity int) int + } + + ControlObjectiveDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ControlObjectiveEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlObjectiveHistory struct { + Class func(childComplexity int) int + ControlNumber func(childComplexity int) int + ControlObjectiveType func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ControlObjectiveHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ControlObjectiveHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ControlObjectiveSearchResult struct { + ControlObjectives func(childComplexity int) int + } + + ControlObjectiveUpdatePayload struct { + ControlObjective func(childComplexity int) int + } + + ControlSearchResult struct { + Controls func(childComplexity int) int + } + + ControlUpdatePayload struct { + Control func(childComplexity int) int + } + + DocumentData struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + Data func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Entity func(childComplexity int) int + Files func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Tags func(childComplexity int) int + Template func(childComplexity int) int + TemplateID func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + DocumentDataBulkCreatePayload struct { + DocumentData func(childComplexity int) int + } + + DocumentDataConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + DocumentDataCreatePayload struct { + DocumentData func(childComplexity int) int + } + + DocumentDataDeletePayload struct { + DeletedID func(childComplexity int) int + } + + DocumentDataEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + DocumentDataHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + Data func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + TemplateID func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + DocumentDataHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + DocumentDataHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + DocumentDataSearchResult struct { + DocumentData func(childComplexity int) int + } + + DocumentDataUpdatePayload struct { + DocumentData func(childComplexity int) int + } + + Entity struct { + Contacts func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayName func(childComplexity int) int + Documents func(childComplexity int) int + Domains func(childComplexity int) int + EntityType func(childComplexity int) int + EntityTypeID func(childComplexity int) int + Files func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Notes func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + EntityBulkCreatePayload struct { + Entities func(childComplexity int) int + } + + EntityConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + EntityCreatePayload struct { + Entity func(childComplexity int) int + } + + EntityDeletePayload struct { + DeletedID func(childComplexity int) int + } + + EntityEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + EntityHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayName func(childComplexity int) int + Domains func(childComplexity int) int + EntityTypeID func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + EntityHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + EntityHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + EntitySearchResult struct { + Entities func(childComplexity int) int + } + + EntityType struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Entities func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + EntityTypeBulkCreatePayload struct { + EntityTypes func(childComplexity int) int + } + + EntityTypeConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + EntityTypeCreatePayload struct { + EntityType func(childComplexity int) int + } + + EntityTypeDeletePayload struct { + DeletedID func(childComplexity int) int + } + + EntityTypeEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + EntityTypeHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + EntityTypeHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + EntityTypeHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + EntityTypeSearchResult struct { + EntityTypes func(childComplexity int) int + } + + EntityTypeUpdatePayload struct { + EntityType func(childComplexity int) int + } + + EntityUpdatePayload struct { + Entity func(childComplexity int) int + } + + Event struct { + CorrelationID func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + EventID func(childComplexity int) int + EventType func(childComplexity int) int + File func(childComplexity int) int + Group func(childComplexity int) int + Groupmembership func(childComplexity int) int + Hush func(childComplexity int) int + ID func(childComplexity int) int + Integration func(childComplexity int) int + Invite func(childComplexity int) int + Metadata func(childComplexity int) int + Organization func(childComplexity int) int + Orgmembership func(childComplexity int) int + PersonalAccessToken func(childComplexity int) int + Subscriber func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + } + + EventBulkCreatePayload struct { + Events func(childComplexity int) int + } + + EventConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + EventCreatePayload struct { + Event func(childComplexity int) int + } + + EventDeletePayload struct { + DeletedID func(childComplexity int) int + } + + EventEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + EventHistory struct { + CorrelationID func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + EventID func(childComplexity int) int + EventType func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Metadata func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + EventHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + EventHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + EventSearchResult struct { + Events func(childComplexity int) int + } + + EventUpdatePayload struct { + Event func(childComplexity int) int + } + + File struct { + CategoryType func(childComplexity int) int + Contact func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + DetectedContentType func(childComplexity int) int + DetectedMimeType func(childComplexity int) int + DocumentData func(childComplexity int) int + Entity func(childComplexity int) int + Events func(childComplexity int) int + Group func(childComplexity int) int + ID func(childComplexity int) int + Md5Hash func(childComplexity int) int + Organization func(childComplexity int) int + OrganizationSetting func(childComplexity int) int + PersistedFileSize func(childComplexity int) int + Program func(childComplexity int) int + ProvidedFileExtension func(childComplexity int) int + ProvidedFileName func(childComplexity int) int + ProvidedFileSize func(childComplexity int) int + StoragePath func(childComplexity int) int + StorageScheme func(childComplexity int) int + StorageVolume func(childComplexity int) int + StoreKey func(childComplexity int) int + Tags func(childComplexity int) int + Template func(childComplexity int) int + URI func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + UserSetting func(childComplexity int) int + } + + FileConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + FileDeletePayload struct { + DeletedID func(childComplexity int) int + } + + FileEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + FileHistory struct { + CategoryType func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + DetectedContentType func(childComplexity int) int + DetectedMimeType func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Md5Hash func(childComplexity int) int + Operation func(childComplexity int) int + PersistedFileSize func(childComplexity int) int + ProvidedFileExtension func(childComplexity int) int + ProvidedFileName func(childComplexity int) int + ProvidedFileSize func(childComplexity int) int + Ref func(childComplexity int) int + StoragePath func(childComplexity int) int + StorageScheme func(childComplexity int) int + StorageVolume func(childComplexity int) int + StoreKey func(childComplexity int) int + Tags func(childComplexity int) int + URI func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + FileHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + FileHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + FileSearchResult struct { + Files func(childComplexity int) int + } + + Group struct { + ControlBlockedGroups func(childComplexity int) int + ControlCreators func(childComplexity int) int + ControlEditors func(childComplexity int) int + ControlObjectiveBlockedGroups func(childComplexity int) int + ControlObjectiveCreators func(childComplexity int) int + ControlObjectiveEditors func(childComplexity int) int + ControlObjectiveViewers func(childComplexity int) int + ControlViewers func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayName func(childComplexity int) int + Events func(childComplexity int) int + Files func(childComplexity int) int + GravatarLogoURL func(childComplexity int) int + GroupCreators func(childComplexity int) int + ID func(childComplexity int) int + Integrations func(childComplexity int) int + InternalPolicyBlockedGroups func(childComplexity int) int + InternalPolicyCreators func(childComplexity int) int + InternalPolicyEditors func(childComplexity int) int + LogoURL func(childComplexity int) int + Members func(childComplexity int) int + Name func(childComplexity int) int + NarrativeBlockedGroups func(childComplexity int) int + NarrativeCreators func(childComplexity int) int + NarrativeEditors func(childComplexity int) int + NarrativeViewers func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + ProcedureBlockedGroups func(childComplexity int) int + ProcedureCreators func(childComplexity int) int + ProcedureEditors func(childComplexity int) int + ProgramBlockedGroups func(childComplexity int) int + ProgramCreators func(childComplexity int) int + ProgramEditors func(childComplexity int) int + ProgramViewers func(childComplexity int) int + RiskBlockedGroups func(childComplexity int) int + RiskCreators func(childComplexity int) int + RiskEditors func(childComplexity int) int + RiskViewers func(childComplexity int) int + Setting func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + TemplateCreators func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Users func(childComplexity int) int + } + + GroupBulkCreatePayload struct { + Groups func(childComplexity int) int + } + + GroupConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + GroupCreatePayload struct { + Group func(childComplexity int) int + } + + GroupDeletePayload struct { + DeletedID func(childComplexity int) int + } + + GroupEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + GroupHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayName func(childComplexity int) int + GravatarLogoURL func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + LogoURL func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + GroupHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + GroupHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + GroupMembership struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Events func(childComplexity int) int + Group func(childComplexity int) int + GroupID func(childComplexity int) int + ID func(childComplexity int) int + Role func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + UserID func(childComplexity int) int + } + + GroupMembershipBulkCreatePayload struct { + GroupMemberships func(childComplexity int) int + } + + GroupMembershipConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + GroupMembershipCreatePayload struct { + GroupMembership func(childComplexity int) int + } + + GroupMembershipDeletePayload struct { + DeletedID func(childComplexity int) int + } + + GroupMembershipEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + GroupMembershipHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + GroupID func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Role func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UserID func(childComplexity int) int + } + + GroupMembershipHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + GroupMembershipHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + GroupMembershipUpdatePayload struct { + GroupMembership func(childComplexity int) int + } + + GroupSearchResult struct { + Groups func(childComplexity int) int + } + + GroupSetting struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Group func(childComplexity int) int + GroupID func(childComplexity int) int + ID func(childComplexity int) int + JoinPolicy func(childComplexity int) int + SyncToGithub func(childComplexity int) int + SyncToSlack func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Visibility func(childComplexity int) int + } + + GroupSettingBulkCreatePayload struct { + GroupSettings func(childComplexity int) int + } + + GroupSettingConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + GroupSettingCreatePayload struct { + GroupSetting func(childComplexity int) int + } + + GroupSettingDeletePayload struct { + DeletedID func(childComplexity int) int + } + + GroupSettingEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + GroupSettingHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + GroupID func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + JoinPolicy func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + SyncToGithub func(childComplexity int) int + SyncToSlack func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Visibility func(childComplexity int) int + } + + GroupSettingHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + GroupSettingHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + GroupSettingSearchResult struct { + GroupSettings func(childComplexity int) int + } + + GroupSettingUpdatePayload struct { + GroupSetting func(childComplexity int) int + } + + GroupUpdatePayload struct { + Group func(childComplexity int) int + } + + Hush struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Events func(childComplexity int) int + ID func(childComplexity int) int + Integrations func(childComplexity int) int + Kind func(childComplexity int) int + Name func(childComplexity int) int + Organization func(childComplexity int) int + SecretName func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + HushBulkCreatePayload struct { + Hushes func(childComplexity int) int + } + + HushConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + HushCreatePayload struct { + Hush func(childComplexity int) int + } + + HushDeletePayload struct { + DeletedID func(childComplexity int) int + } + + HushEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + HushHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Kind func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + SecretName func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + HushHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + HushHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + HushUpdatePayload struct { + Hush func(childComplexity int) int + } + + Integration struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Events func(childComplexity int) int + ID func(childComplexity int) int + Kind func(childComplexity int) int + Name func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Secrets func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + IntegrationBulkCreatePayload struct { + Integrations func(childComplexity int) int + } + + IntegrationConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + IntegrationCreatePayload struct { + Integration func(childComplexity int) int + } + + IntegrationDeletePayload struct { + DeletedID func(childComplexity int) int + } + + IntegrationEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + IntegrationHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Kind func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + IntegrationHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + IntegrationHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + IntegrationSearchResult struct { + Integrations func(childComplexity int) int + } + + IntegrationUpdatePayload struct { + Integration func(childComplexity int) int + } + + InternalPolicy struct { + Background func(childComplexity int) int + BlockedGroups func(childComplexity int) int + ControlObjectives func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Editors func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + PolicyType func(childComplexity int) int + Procedures func(childComplexity int) int + Programs func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + InternalPolicyBulkCreatePayload struct { + InternalPolicies func(childComplexity int) int + } + + InternalPolicyConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + InternalPolicyCreatePayload struct { + InternalPolicy func(childComplexity int) int + } + + InternalPolicyDeletePayload struct { + DeletedID func(childComplexity int) int + } + + InternalPolicyEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + InternalPolicyHistory struct { + Background func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + PolicyType func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Ref func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + InternalPolicyHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + InternalPolicyHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + InternalPolicySearchResult struct { + InternalPolicies func(childComplexity int) int + } + + InternalPolicyUpdatePayload struct { + InternalPolicy func(childComplexity int) int + } + + Invite struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Events func(childComplexity int) int + Expires func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Recipient func(childComplexity int) int + RequestorID func(childComplexity int) int + Role func(childComplexity int) int + SendAttempts func(childComplexity int) int + Status func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + InviteBulkCreatePayload struct { + Invites func(childComplexity int) int + } + + InviteConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + InviteCreatePayload struct { + Invite func(childComplexity int) int + } + + InviteDeletePayload struct { + DeletedID func(childComplexity int) int + } + + InviteEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + InviteUpdatePayload struct { + Invite func(childComplexity int) int + } + + Mutation struct { + CreateAPIToken func(childComplexity int, input generated.CreateAPITokenInput) int + CreateActionPlan func(childComplexity int, input generated.CreateActionPlanInput) int + CreateBulkAPIToken func(childComplexity int, input []*generated.CreateAPITokenInput) int + CreateBulkActionPlan func(childComplexity int, input []*generated.CreateActionPlanInput) int + CreateBulkCSVAPIToken func(childComplexity int, input graphql.Upload) int + CreateBulkCSVActionPlan func(childComplexity int, input graphql.Upload) int + CreateBulkCSVContact func(childComplexity int, input graphql.Upload) int + CreateBulkCSVControl func(childComplexity int, input graphql.Upload) int + CreateBulkCSVControlObjective func(childComplexity int, input graphql.Upload) int + CreateBulkCSVDocumentData func(childComplexity int, input graphql.Upload) int + CreateBulkCSVEntity func(childComplexity int, input graphql.Upload) int + CreateBulkCSVEntityType func(childComplexity int, input graphql.Upload) int + CreateBulkCSVEvent func(childComplexity int, input graphql.Upload) int + CreateBulkCSVGroup func(childComplexity int, input graphql.Upload) int + CreateBulkCSVGroupMembership func(childComplexity int, input graphql.Upload) int + CreateBulkCSVGroupSetting func(childComplexity int, input graphql.Upload) int + CreateBulkCSVHush func(childComplexity int, input graphql.Upload) int + CreateBulkCSVIntegration func(childComplexity int, input graphql.Upload) int + CreateBulkCSVInternalPolicy func(childComplexity int, input graphql.Upload) int + CreateBulkCSVInvite func(childComplexity int, input graphql.Upload) int + CreateBulkCSVNarrative func(childComplexity int, input graphql.Upload) int + CreateBulkCSVOrgMembership func(childComplexity int, input graphql.Upload) int + CreateBulkCSVOrgSubscription func(childComplexity int, input graphql.Upload) int + CreateBulkCSVOrganization func(childComplexity int, input graphql.Upload) int + CreateBulkCSVOrganizationSetting func(childComplexity int, input graphql.Upload) int + CreateBulkCSVPersonalAccessToken func(childComplexity int, input graphql.Upload) int + CreateBulkCSVProcedure func(childComplexity int, input graphql.Upload) int + CreateBulkCSVProgram func(childComplexity int, input graphql.Upload) int + CreateBulkCSVProgramMembership func(childComplexity int, input graphql.Upload) int + CreateBulkCSVRisk func(childComplexity int, input graphql.Upload) int + CreateBulkCSVStandard func(childComplexity int, input graphql.Upload) int + CreateBulkCSVSubcontrol func(childComplexity int, input graphql.Upload) int + CreateBulkCSVSubscriber func(childComplexity int, input graphql.Upload) int + CreateBulkCSVTask func(childComplexity int, input graphql.Upload) int + CreateBulkCSVTemplate func(childComplexity int, input graphql.Upload) int + CreateBulkCSVUserSetting func(childComplexity int, input graphql.Upload) int + CreateBulkContact func(childComplexity int, input []*generated.CreateContactInput) int + CreateBulkControl func(childComplexity int, input []*generated.CreateControlInput) int + CreateBulkControlObjective func(childComplexity int, input []*generated.CreateControlObjectiveInput) int + CreateBulkDocumentData func(childComplexity int, input []*generated.CreateDocumentDataInput) int + CreateBulkEntity func(childComplexity int, input []*generated.CreateEntityInput) int + CreateBulkEntityType func(childComplexity int, input []*generated.CreateEntityTypeInput) int + CreateBulkEvent func(childComplexity int, input []*generated.CreateEventInput) int + CreateBulkGroup func(childComplexity int, input []*generated.CreateGroupInput) int + CreateBulkGroupMembership func(childComplexity int, input []*generated.CreateGroupMembershipInput) int + CreateBulkGroupSetting func(childComplexity int, input []*generated.CreateGroupSettingInput) int + CreateBulkHush func(childComplexity int, input []*generated.CreateHushInput) int + CreateBulkIntegration func(childComplexity int, input []*generated.CreateIntegrationInput) int + CreateBulkInternalPolicy func(childComplexity int, input []*generated.CreateInternalPolicyInput) int + CreateBulkInvite func(childComplexity int, input []*generated.CreateInviteInput) int + CreateBulkNarrative func(childComplexity int, input []*generated.CreateNarrativeInput) int + CreateBulkOrgMembership func(childComplexity int, input []*generated.CreateOrgMembershipInput) int + CreateBulkOrgSubscription func(childComplexity int, input []*generated.CreateOrgSubscriptionInput) int + CreateBulkOrganization func(childComplexity int, input []*generated.CreateOrganizationInput) int + CreateBulkOrganizationSetting func(childComplexity int, input []*generated.CreateOrganizationSettingInput) int + CreateBulkPersonalAccessToken func(childComplexity int, input []*generated.CreatePersonalAccessTokenInput) int + CreateBulkProcedure func(childComplexity int, input []*generated.CreateProcedureInput) int + CreateBulkProgram func(childComplexity int, input []*generated.CreateProgramInput) int + CreateBulkProgramMembership func(childComplexity int, input []*generated.CreateProgramMembershipInput) int + CreateBulkRisk func(childComplexity int, input []*generated.CreateRiskInput) int + CreateBulkStandard func(childComplexity int, input []*generated.CreateStandardInput) int + CreateBulkSubcontrol func(childComplexity int, input []*generated.CreateSubcontrolInput) int + CreateBulkSubscriber func(childComplexity int, input []*generated.CreateSubscriberInput) int + CreateBulkTask func(childComplexity int, input []*generated.CreateTaskInput) int + CreateBulkTemplate func(childComplexity int, input []*generated.CreateTemplateInput) int + CreateBulkUserSetting func(childComplexity int, input []*generated.CreateUserSettingInput) int + CreateContact func(childComplexity int, input generated.CreateContactInput) int + CreateControl func(childComplexity int, input generated.CreateControlInput) int + CreateControlObjective func(childComplexity int, input generated.CreateControlObjectiveInput) int + CreateControlWithSubcontrols func(childComplexity int, input model.CreateControlWithSubcontrolsInput) int + CreateDocumentData func(childComplexity int, input generated.CreateDocumentDataInput) int + CreateEntity func(childComplexity int, input generated.CreateEntityInput) int + CreateEntityType func(childComplexity int, input generated.CreateEntityTypeInput) int + CreateEvent func(childComplexity int, input generated.CreateEventInput) int + CreateFullProgram func(childComplexity int, input model.CreateFullProgramInput) int + CreateGroup func(childComplexity int, input generated.CreateGroupInput) int + CreateGroupMembership func(childComplexity int, input generated.CreateGroupMembershipInput) int + CreateGroupSetting func(childComplexity int, input generated.CreateGroupSettingInput) int + CreateHush func(childComplexity int, input generated.CreateHushInput) int + CreateIntegration func(childComplexity int, input generated.CreateIntegrationInput) int + CreateInternalPolicy func(childComplexity int, input generated.CreateInternalPolicyInput) int + CreateInvite func(childComplexity int, input generated.CreateInviteInput) int + CreateNarrative func(childComplexity int, input generated.CreateNarrativeInput) int + CreateOrgMembership func(childComplexity int, input generated.CreateOrgMembershipInput) int + CreateOrgSubscription func(childComplexity int, input generated.CreateOrgSubscriptionInput) int + CreateOrganization func(childComplexity int, input generated.CreateOrganizationInput) int + CreateOrganizationSetting func(childComplexity int, input generated.CreateOrganizationSettingInput) int + CreatePersonalAccessToken func(childComplexity int, input generated.CreatePersonalAccessTokenInput) int + CreateProcedure func(childComplexity int, input generated.CreateProcedureInput) int + CreateProgram func(childComplexity int, input generated.CreateProgramInput) int + CreateProgramMembership func(childComplexity int, input generated.CreateProgramMembershipInput) int + CreateProgramWithMembers func(childComplexity int, input model.CreateProgramWithMembersInput) int + CreateRisk func(childComplexity int, input generated.CreateRiskInput) int + CreateStandard func(childComplexity int, input generated.CreateStandardInput) int + CreateSubcontrol func(childComplexity int, input generated.CreateSubcontrolInput) int + CreateSubscriber func(childComplexity int, input generated.CreateSubscriberInput) int + CreateTFASetting func(childComplexity int, input generated.CreateTFASettingInput) int + CreateTask func(childComplexity int, input generated.CreateTaskInput) int + CreateTemplate func(childComplexity int, input generated.CreateTemplateInput) int + CreateUser func(childComplexity int, input generated.CreateUserInput, avatarFile *graphql.Upload) int + CreateUserSetting func(childComplexity int, input generated.CreateUserSettingInput) int + DeleteAPIToken func(childComplexity int, id string) int + DeleteActionPlan func(childComplexity int, id string) int + DeleteContact func(childComplexity int, id string) int + DeleteControl func(childComplexity int, id string) int + DeleteControlObjective func(childComplexity int, id string) int + DeleteDocumentData func(childComplexity int, id string) int + DeleteEntity func(childComplexity int, id string) int + DeleteEntityType func(childComplexity int, id string) int + DeleteEvent func(childComplexity int, id string) int + DeleteFile func(childComplexity int, id string) int + DeleteGroup func(childComplexity int, id string) int + DeleteGroupMembership func(childComplexity int, id string) int + DeleteGroupSetting func(childComplexity int, id string) int + DeleteHush func(childComplexity int, id string) int + DeleteIntegration func(childComplexity int, id string) int + DeleteInternalPolicy func(childComplexity int, id string) int + DeleteInvite func(childComplexity int, id string) int + DeleteNarrative func(childComplexity int, id string) int + DeleteOrgMembership func(childComplexity int, id string) int + DeleteOrgSubscription func(childComplexity int, id string) int + DeleteOrganization func(childComplexity int, id string) int + DeleteOrganizationSetting func(childComplexity int, id string) int + DeletePersonalAccessToken func(childComplexity int, id string) int + DeleteProcedure func(childComplexity int, id string) int + DeleteProgram func(childComplexity int, id string) int + DeleteProgramMembership func(childComplexity int, id string) int + DeleteRisk func(childComplexity int, id string) int + DeleteStandard func(childComplexity int, id string) int + DeleteSubcontrol func(childComplexity int, id string) int + DeleteSubscriber func(childComplexity int, email string, ownerID *string) int + DeleteTask func(childComplexity int, id string) int + DeleteTemplate func(childComplexity int, id string) int + DeleteUser func(childComplexity int, id string) int + UpdateAPIToken func(childComplexity int, id string, input generated.UpdateAPITokenInput) int + UpdateActionPlan func(childComplexity int, id string, input generated.UpdateActionPlanInput) int + UpdateContact func(childComplexity int, id string, input generated.UpdateContactInput) int + UpdateControl func(childComplexity int, id string, input generated.UpdateControlInput) int + UpdateControlObjective func(childComplexity int, id string, input generated.UpdateControlObjectiveInput) int + UpdateDocumentData func(childComplexity int, id string, input generated.UpdateDocumentDataInput) int + UpdateEntity func(childComplexity int, id string, input generated.UpdateEntityInput) int + UpdateEntityType func(childComplexity int, id string, input generated.UpdateEntityTypeInput) int + UpdateEvent func(childComplexity int, id string, input generated.UpdateEventInput) int + UpdateGroup func(childComplexity int, id string, input generated.UpdateGroupInput) int + UpdateGroupMembership func(childComplexity int, id string, input generated.UpdateGroupMembershipInput) int + UpdateGroupSetting func(childComplexity int, id string, input generated.UpdateGroupSettingInput) int + UpdateHush func(childComplexity int, id string, input generated.UpdateHushInput) int + UpdateIntegration func(childComplexity int, id string, input generated.UpdateIntegrationInput) int + UpdateInternalPolicy func(childComplexity int, id string, input generated.UpdateInternalPolicyInput) int + UpdateInvite func(childComplexity int, id string, input generated.UpdateInviteInput) int + UpdateNarrative func(childComplexity int, id string, input generated.UpdateNarrativeInput) int + UpdateOrgMembership func(childComplexity int, id string, input generated.UpdateOrgMembershipInput) int + UpdateOrgSubscription func(childComplexity int, id string, input generated.UpdateOrgSubscriptionInput) int + UpdateOrganization func(childComplexity int, id string, input generated.UpdateOrganizationInput) int + UpdateOrganizationSetting func(childComplexity int, id string, input generated.UpdateOrganizationSettingInput) int + UpdatePersonalAccessToken func(childComplexity int, id string, input generated.UpdatePersonalAccessTokenInput) int + UpdateProcedure func(childComplexity int, id string, input generated.UpdateProcedureInput) int + UpdateProgram func(childComplexity int, id string, input generated.UpdateProgramInput) int + UpdateProgramMembership func(childComplexity int, id string, input generated.UpdateProgramMembershipInput) int + UpdateRisk func(childComplexity int, id string, input generated.UpdateRiskInput) int + UpdateStandard func(childComplexity int, id string, input generated.UpdateStandardInput) int + UpdateSubcontrol func(childComplexity int, id string, input generated.UpdateSubcontrolInput) int + UpdateSubscriber func(childComplexity int, email string, input generated.UpdateSubscriberInput) int + UpdateTFASetting func(childComplexity int, input generated.UpdateTFASettingInput) int + UpdateTask func(childComplexity int, id string, input generated.UpdateTaskInput) int + UpdateTemplate func(childComplexity int, id string, input generated.UpdateTemplateInput) int + UpdateUser func(childComplexity int, id string, input generated.UpdateUserInput, avatarFile *graphql.Upload) int + UpdateUserSetting func(childComplexity int, id string, input generated.UpdateUserSettingInput) int + } + + Narrative struct { + BlockedGroups func(childComplexity int) int + Control func(childComplexity int) int + ControlObjective func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Editors func(childComplexity int) int + ID func(childComplexity int) int + InternalPolicy func(childComplexity int) int + Name func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Procedure func(childComplexity int) int + Programs func(childComplexity int) int + Satisfies func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Viewers func(childComplexity int) int + } + + NarrativeBulkCreatePayload struct { + Narratives func(childComplexity int) int + } + + NarrativeConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + NarrativeCreatePayload struct { + Narrative func(childComplexity int) int + } + + NarrativeDeletePayload struct { + DeletedID func(childComplexity int) int + } + + NarrativeEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + NarrativeHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + NarrativeHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + NarrativeHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + NarrativeSearchResult struct { + Narratives func(childComplexity int) int + } + + NarrativeUpdatePayload struct { + Narrative func(childComplexity int) int + } + + Note struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Entity func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Program func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + Text func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + NoteConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + NoteEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + NoteHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + Text func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + NoteHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + NoteHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrgMembership struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Events func(childComplexity int) int + ID func(childComplexity int) int + Organization func(childComplexity int) int + OrganizationID func(childComplexity int) int + Role func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + UserID func(childComplexity int) int + } + + OrgMembershipBulkCreatePayload struct { + OrgMemberships func(childComplexity int) int + } + + OrgMembershipConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrgMembershipCreatePayload struct { + OrgMembership func(childComplexity int) int + } + + OrgMembershipDeletePayload struct { + DeletedID func(childComplexity int) int + } + + OrgMembershipEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrgMembershipHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + OrganizationID func(childComplexity int) int + Ref func(childComplexity int) int + Role func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UserID func(childComplexity int) int + } + + OrgMembershipHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrgMembershipHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrgMembershipUpdatePayload struct { + OrgMembership func(childComplexity int) int + } + + OrgSubscription struct { + Active func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + ExpiresAt func(childComplexity int) int + Features func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + ProductTier func(childComplexity int) int + StripeCustomerID func(childComplexity int) int + StripeProductTierID func(childComplexity int) int + StripeSubscriptionID func(childComplexity int) int + StripeSubscriptionStatus func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + OrgSubscriptionBulkCreatePayload struct { + OrgSubscriptions func(childComplexity int) int + } + + OrgSubscriptionConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrgSubscriptionCreatePayload struct { + OrgSubscription func(childComplexity int) int + } + + OrgSubscriptionDeletePayload struct { + DeletedID func(childComplexity int) int + } + + OrgSubscriptionEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrgSubscriptionHistory struct { + Active func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + ExpiresAt func(childComplexity int) int + Features func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + ProductTier func(childComplexity int) int + Ref func(childComplexity int) int + StripeCustomerID func(childComplexity int) int + StripeProductTierID func(childComplexity int) int + StripeSubscriptionID func(childComplexity int) int + StripeSubscriptionStatus func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + OrgSubscriptionHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrgSubscriptionHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrgSubscriptionSearchResult struct { + OrgSubscriptions func(childComplexity int) int + } + + OrgSubscriptionUpdatePayload struct { + OrgSubscription func(childComplexity int) int + } + + Organization struct { + APITokens func(childComplexity int) int + AvatarRemoteURL func(childComplexity int) int + Children func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) int + Contacts func(childComplexity int) int + ControlCreators func(childComplexity int) int + ControlObjectiveCreators func(childComplexity int) int + ControlObjectives func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DedicatedDb func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayName func(childComplexity int) int + DocumentData func(childComplexity int) int + Entities func(childComplexity int) int + EntityTypes func(childComplexity int) int + Events func(childComplexity int) int + Files func(childComplexity int) int + GroupCreators func(childComplexity int) int + Groups func(childComplexity int) int + ID func(childComplexity int) int + Integrations func(childComplexity int) int + InternalPolicies func(childComplexity int) int + InternalPolicyCreators func(childComplexity int) int + Invites func(childComplexity int) int + Members func(childComplexity int) int + Name func(childComplexity int) int + NarrativeCreators func(childComplexity int) int + Narratives func(childComplexity int) int + Notes func(childComplexity int) int + OrgSubscriptions func(childComplexity int) int + Parent func(childComplexity int) int + PersonalAccessTokens func(childComplexity int) int + PersonalOrg func(childComplexity int) int + ProcedureCreators func(childComplexity int) int + Procedures func(childComplexity int) int + ProgramCreators func(childComplexity int) int + Programs func(childComplexity int) int + RiskCreators func(childComplexity int) int + Risks func(childComplexity int) int + Secrets func(childComplexity int) int + Setting func(childComplexity int) int + Subcontrols func(childComplexity int) int + Subscribers func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + TemplateCreators func(childComplexity int) int + Templates func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Users func(childComplexity int) int + } + + OrganizationBulkCreatePayload struct { + Organizations func(childComplexity int) int + } + + OrganizationConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrganizationCreatePayload struct { + Organization func(childComplexity int) int + } + + OrganizationDeletePayload struct { + DeletedID func(childComplexity int) int + } + + OrganizationEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrganizationHistory struct { + AvatarRemoteURL func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DedicatedDb func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + DisplayName func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + PersonalOrg func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + OrganizationHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrganizationHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrganizationSearchResult struct { + Organizations func(childComplexity int) int + } + + OrganizationSetting struct { + BillingAddress func(childComplexity int) int + BillingContact func(childComplexity int) int + BillingEmail func(childComplexity int) int + BillingPhone func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Domains func(childComplexity int) int + Files func(childComplexity int) int + GeoLocation func(childComplexity int) int + ID func(childComplexity int) int + Organization func(childComplexity int) int + OrganizationID func(childComplexity int) int + StripeID func(childComplexity int) int + Tags func(childComplexity int) int + TaxIdentifier func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + OrganizationSettingBulkCreatePayload struct { + OrganizationSettings func(childComplexity int) int + } + + OrganizationSettingConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrganizationSettingCreatePayload struct { + OrganizationSetting func(childComplexity int) int + } + + OrganizationSettingDeletePayload struct { + DeletedID func(childComplexity int) int + } + + OrganizationSettingEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrganizationSettingHistory struct { + BillingAddress func(childComplexity int) int + BillingContact func(childComplexity int) int + BillingEmail func(childComplexity int) int + BillingPhone func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Domains func(childComplexity int) int + GeoLocation func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + OrganizationID func(childComplexity int) int + Ref func(childComplexity int) int + StripeID func(childComplexity int) int + Tags func(childComplexity int) int + TaxIdentifier func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + OrganizationSettingHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + OrganizationSettingHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + OrganizationSettingSearchResult struct { + OrganizationSettings func(childComplexity int) int + } + + OrganizationSettingUpdatePayload struct { + OrganizationSetting func(childComplexity int) int + } + + OrganizationUpdatePayload struct { + Organization 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 + } + + PersonalAccessToken struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Events func(childComplexity int) int + ExpiresAt func(childComplexity int) int + ID func(childComplexity int) int + LastUsedAt func(childComplexity int) int + Name func(childComplexity int) int + Organizations func(childComplexity int) int + Owner func(childComplexity int) int + Scopes func(childComplexity int) int + Tags func(childComplexity int) int + Token func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + PersonalAccessTokenBulkCreatePayload struct { + PersonalAccessTokens func(childComplexity int) int + } + + PersonalAccessTokenConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + PersonalAccessTokenCreatePayload struct { + PersonalAccessToken func(childComplexity int) int + } + + PersonalAccessTokenDeletePayload struct { + DeletedID func(childComplexity int) int + } + + PersonalAccessTokenEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + PersonalAccessTokenSearchResult struct { + PersonalAccessTokens func(childComplexity int) int + } + + PersonalAccessTokenUpdatePayload struct { + PersonalAccessToken func(childComplexity int) int + } + + Procedure struct { + Background func(childComplexity int) int + BlockedGroups func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Editors func(childComplexity int) int + ID func(childComplexity int) int + InternalPolicies func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + ProcedureType func(childComplexity int) int + Programs func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Risks func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ProcedureBulkCreatePayload struct { + Procedures func(childComplexity int) int + } + + ProcedureConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProcedureCreatePayload struct { + Procedure func(childComplexity int) int + } + + ProcedureDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ProcedureEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProcedureHistory struct { + Background func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + ProcedureType func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + ProcedureHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProcedureHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProcedureSearchResult struct { + Procedures func(childComplexity int) int + } + + ProcedureUpdatePayload struct { + Procedure func(childComplexity int) int + } + + Program struct { + ActionPlans func(childComplexity int) int + AuditorReadComments func(childComplexity int) int + AuditorReady func(childComplexity int) int + AuditorWriteComments func(childComplexity int) int + BlockedGroups func(childComplexity int) int + ControlObjectives func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Editors func(childComplexity int) int + EndDate func(childComplexity int) int + Files func(childComplexity int) int + ID func(childComplexity int) int + InternalPolicies func(childComplexity int) int + Members func(childComplexity int) int + Name func(childComplexity int) int + Narratives func(childComplexity int) int + Notes func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Procedures func(childComplexity int) int + Risks func(childComplexity int) int + Standards func(childComplexity int) int + StartDate func(childComplexity int) int + Status func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Users func(childComplexity int) int + Viewers func(childComplexity int) int + } + + ProgramBulkCreatePayload struct { + Programs func(childComplexity int) int + } + + ProgramConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProgramCreatePayload struct { + Program func(childComplexity int) int + } + + ProgramDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ProgramEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProgramHistory struct { + AuditorReadComments func(childComplexity int) int + AuditorReady func(childComplexity int) int + AuditorWriteComments func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + EndDate func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + StartDate func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + ProgramHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProgramHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProgramMembership struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + ID func(childComplexity int) int + Program func(childComplexity int) int + ProgramID func(childComplexity int) int + Role func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + UserID func(childComplexity int) int + } + + ProgramMembershipBulkCreatePayload struct { + ProgramMemberships func(childComplexity int) int + } + + ProgramMembershipConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProgramMembershipCreatePayload struct { + ProgramMembership func(childComplexity int) int + } + + ProgramMembershipDeletePayload struct { + DeletedID func(childComplexity int) int + } + + ProgramMembershipEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProgramMembershipHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + ProgramID func(childComplexity int) int + Ref func(childComplexity int) int + Role func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UserID func(childComplexity int) int + } + + ProgramMembershipHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + ProgramMembershipHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + ProgramMembershipUpdatePayload struct { + ProgramMembership func(childComplexity int) int + } + + ProgramSearchResult struct { + Programs func(childComplexity int) int + } + + ProgramUpdatePayload struct { + Program func(childComplexity int) int + } + + Query struct { + APIToken func(childComplexity int, id string) int + APITokenSearch func(childComplexity int, query string) int + APITokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.APITokenWhereInput) int + ActionPlan func(childComplexity int, id string) int + ActionPlanHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanHistoryWhereInput) int + ActionPlanSearch func(childComplexity int, query string) int + ActionPlans func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ActionPlanWhereInput) int + AdminAPITokenSearch func(childComplexity int, query string) int + AdminActionPlanSearch func(childComplexity int, query string) int + AdminContactSearch func(childComplexity int, query string) int + AdminControlObjectiveSearch func(childComplexity int, query string) int + AdminControlSearch func(childComplexity int, query string) int + AdminDocumentDataSearch func(childComplexity int, query string) int + AdminEntitySearch func(childComplexity int, query string) int + AdminEntityTypeSearch func(childComplexity int, query string) int + AdminEventSearch func(childComplexity int, query string) int + AdminFileSearch func(childComplexity int, query string) int + AdminGroupSearch func(childComplexity int, query string) int + AdminGroupSettingSearch func(childComplexity int, query string) int + AdminIntegrationSearch func(childComplexity int, query string) int + AdminInternalPolicySearch func(childComplexity int, query string) int + AdminNarrativeSearch func(childComplexity int, query string) int + AdminOrgSubscriptionSearch func(childComplexity int, query string) int + AdminOrganizationSearch func(childComplexity int, query string) int + AdminOrganizationSettingSearch func(childComplexity int, query string) int + AdminPersonalAccessTokenSearch func(childComplexity int, query string) int + AdminProcedureSearch func(childComplexity int, query string) int + AdminProgramSearch func(childComplexity int, query string) int + AdminRiskSearch func(childComplexity int, query string) int + AdminSearch func(childComplexity int, query string) int + AdminStandardSearch func(childComplexity int, query string) int + AdminSubcontrolSearch func(childComplexity int, query string) int + AdminSubscriberSearch func(childComplexity int, query string) int + AdminTFASettingSearch func(childComplexity int, query string) int + AdminTaskSearch func(childComplexity int, query string) int + AdminTemplateSearch func(childComplexity int, query string) int + AdminUserSearch func(childComplexity int, query string) int + AdminUserSettingSearch func(childComplexity int, query string) int + AuditLogs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *model.AuditLogWhereInput) int + Contact func(childComplexity int, id string) int + ContactHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactHistoryWhereInput) int + ContactSearch func(childComplexity int, query string) int + Contacts func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ContactWhereInput) int + Control func(childComplexity int, id string) int + ControlHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlHistoryWhereInput) int + ControlObjective func(childComplexity int, id string) int + ControlObjectiveHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveHistoryWhereInput) int + ControlObjectiveSearch func(childComplexity int, query string) int + ControlObjectives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlObjectiveWhereInput) int + ControlSearch func(childComplexity int, query string) int + Controls func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ControlWhereInput) int + DocumentData func(childComplexity int, id string) int + DocumentDataHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataHistoryWhereInput) int + DocumentDataSearch func(childComplexity int, query string) int + DocumentDataSlice func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.DocumentDataWhereInput) int + Entities func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityOrder, where *generated.EntityWhereInput) int + Entity func(childComplexity int, id string) int + EntityHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityHistoryOrder, where *generated.EntityHistoryWhereInput) int + EntitySearch func(childComplexity int, query string) int + EntityType func(childComplexity int, id string) int + EntityTypeHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeHistoryOrder, where *generated.EntityTypeHistoryWhereInput) int + EntityTypeSearch func(childComplexity int, query string) int + EntityTypes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.EntityTypeOrder, where *generated.EntityTypeWhereInput) int + Event func(childComplexity int, id string) int + EventHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventHistoryWhereInput) int + EventSearch func(childComplexity int, query string) int + Events func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.EventWhereInput) int + File func(childComplexity int, id string) int + FileHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileHistoryWhereInput) int + FileSearch func(childComplexity int, query string) int + Files func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.FileWhereInput) int + Group func(childComplexity int, id string) int + GroupHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupHistoryOrder, where *generated.GroupHistoryWhereInput) int + GroupMembership func(childComplexity int, id string) int + GroupMembershipHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipHistoryWhereInput) int + GroupMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupMembershipWhereInput) int + GroupSearch func(childComplexity int, query string) int + GroupSetting func(childComplexity int, id string) int + GroupSettingHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingHistoryWhereInput) int + GroupSettingSearch func(childComplexity int, query string) int + GroupSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.GroupSettingWhereInput) int + Groups func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.GroupOrder, where *generated.GroupWhereInput) int + Hush func(childComplexity int, id string) int + HushHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushHistoryOrder, where *generated.HushHistoryWhereInput) int + Hushes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.HushOrder, where *generated.HushWhereInput) int + Integration func(childComplexity int, id string) int + IntegrationHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationHistoryOrder, where *generated.IntegrationHistoryWhereInput) int + IntegrationSearch func(childComplexity int, query string) int + Integrations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.IntegrationOrder, where *generated.IntegrationWhereInput) int + InternalPolicies func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyWhereInput) int + InternalPolicy func(childComplexity int, id string) int + InternalPolicyHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InternalPolicyHistoryWhereInput) int + InternalPolicySearch func(childComplexity int, query string) int + Invite func(childComplexity int, id string) int + Invites func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.InviteWhereInput) int + Narrative func(childComplexity int, id string) int + NarrativeHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeHistoryWhereInput) int + NarrativeSearch func(childComplexity int, query string) int + Narratives func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NarrativeWhereInput) int + Node func(childComplexity int, id string) int + Nodes func(childComplexity int, ids []string) int + NoteHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteHistoryWhereInput) int + Notes func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.NoteWhereInput) int + OrgMembership func(childComplexity int, id string) int + OrgMembershipHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipHistoryWhereInput) int + OrgMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgMembershipWhereInput) int + OrgSubscription func(childComplexity int, id string) int + OrgSubscriptionHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionHistoryWhereInput) int + OrgSubscriptionSearch func(childComplexity int, query string) int + OrgSubscriptions func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrgSubscriptionWhereInput) int + Organization func(childComplexity int, id string) int + OrganizationHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationHistoryOrder, where *generated.OrganizationHistoryWhereInput) int + OrganizationSearch func(childComplexity int, query string) int + OrganizationSetting func(childComplexity int, id string) int + OrganizationSettingHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingHistoryWhereInput) int + OrganizationSettingSearch func(childComplexity int, query string) int + OrganizationSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.OrganizationSettingWhereInput) int + Organizations func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.OrganizationOrder, where *generated.OrganizationWhereInput) int + PersonalAccessToken func(childComplexity int, id string) int + PersonalAccessTokenSearch func(childComplexity int, query string) int + PersonalAccessTokens func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.PersonalAccessTokenWhereInput) int + Procedure func(childComplexity int, id string) int + ProcedureHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureHistoryWhereInput) int + ProcedureSearch func(childComplexity int, query string) int + Procedures func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProcedureWhereInput) int + Program func(childComplexity int, id string) int + ProgramHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramHistoryWhereInput) int + ProgramMembership func(childComplexity int, id string) int + ProgramMembershipHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipHistoryWhereInput) int + ProgramMemberships func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramMembershipWhereInput) int + ProgramSearch func(childComplexity int, query string) int + Programs func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.ProgramWhereInput) int + Risk func(childComplexity int, id string) int + RiskHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskHistoryWhereInput) int + RiskSearch func(childComplexity int, query string) int + Risks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.RiskWhereInput) int + Search func(childComplexity int, query string) int + Standard func(childComplexity int, id string) int + StandardHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardHistoryWhereInput) int + StandardSearch func(childComplexity int, query string) int + Standards func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.StandardWhereInput) int + Subcontrol func(childComplexity int, id string) int + SubcontrolHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolHistoryWhereInput) int + SubcontrolSearch func(childComplexity int, query string) int + Subcontrols func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubcontrolWhereInput) int + Subscriber func(childComplexity int, email string) int + SubscriberSearch func(childComplexity int, query string) int + Subscribers func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.SubscriberWhereInput) int + TFASettingSearch func(childComplexity int, query string) int + Task func(childComplexity int, id string) int + TaskHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskHistoryWhereInput) int + TaskSearch func(childComplexity int, query string) int + Tasks func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TaskWhereInput) int + Template func(childComplexity int, id string) int + TemplateHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateHistoryOrder, where *generated.TemplateHistoryWhereInput) int + TemplateSearch func(childComplexity int, query string) int + Templates func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.TemplateOrder, where *generated.TemplateWhereInput) int + TfaSetting func(childComplexity int, id *string) int + TfaSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.TFASettingWhereInput) int + User func(childComplexity int, id string) int + UserHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserHistoryOrder, where *generated.UserHistoryWhereInput) int + UserSearch func(childComplexity int, query string) int + UserSetting func(childComplexity int, id string) int + UserSettingHistories func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingHistoryWhereInput) int + UserSettingSearch func(childComplexity int, query string) int + UserSettings func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, where *generated.UserSettingWhereInput) int + Users func(childComplexity int, after *entgql.Cursor[string], first *int, before *entgql.Cursor[string], last *int, orderBy *generated.UserOrder, where *generated.UserWhereInput) int + } + + Risk struct { + ActionPlans func(childComplexity int) int + BlockedGroups func(childComplexity int) int + BusinessCosts func(childComplexity int) int + Control func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Editors func(childComplexity int) int + ID func(childComplexity int) int + Impact func(childComplexity int) int + Likelihood func(childComplexity int) int + Mitigation func(childComplexity int) int + Name func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Procedure func(childComplexity int) int + Programs func(childComplexity int) int + RiskType func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Viewers func(childComplexity int) int + } + + RiskBulkCreatePayload struct { + Risks func(childComplexity int) int + } + + RiskConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + RiskCreatePayload struct { + Risk func(childComplexity int) int + } + + RiskDeletePayload struct { + DeletedID func(childComplexity int) int + } + + RiskEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + RiskHistory struct { + BusinessCosts func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Impact func(childComplexity int) int + Likelihood func(childComplexity int) int + Mitigation func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + RiskType func(childComplexity int) int + Satisfies func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + RiskHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + RiskHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + RiskSearchResult struct { + Risks func(childComplexity int) int + } + + RiskUpdatePayload struct { + Risk func(childComplexity int) int + } + + SearchResultConnection struct { + Nodes func(childComplexity int) int + Page func(childComplexity int) int + } + + Standard struct { + ActionPlans func(childComplexity int) int + Background func(childComplexity int) int + ControlObjectives func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Procedures func(childComplexity int) int + Programs func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Satisfies func(childComplexity int) int + StandardType func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + StandardBulkCreatePayload struct { + Standards func(childComplexity int) int + } + + StandardConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + StandardCreatePayload struct { + Standard func(childComplexity int) int + } + + StandardDeletePayload struct { + DeletedID func(childComplexity int) int + } + + StandardEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + StandardHistory struct { + Background func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + PurposeAndScope func(childComplexity int) int + Ref func(childComplexity int) int + Satisfies func(childComplexity int) int + StandardType func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + StandardHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + StandardHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + StandardSearchResult struct { + Standards func(childComplexity int) int + } + + StandardUpdatePayload struct { + Standard func(childComplexity int) int + } + + Subcontrol struct { + Class func(childComplexity int) int + Controls func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + ID func(childComplexity int) int + ImplementationDate func(childComplexity int) int + ImplementationEvidence func(childComplexity int) int + ImplementationStatus func(childComplexity int) int + ImplementationVerification func(childComplexity int) int + ImplementationVerificationDate func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Notes func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Programs func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + SubcontrolNumber func(childComplexity int) int + SubcontrolType func(childComplexity int) int + Tags func(childComplexity int) int + Tasks func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + Version func(childComplexity int) int + } + + SubcontrolBulkCreatePayload struct { + Subcontrols func(childComplexity int) int + } + + SubcontrolConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + SubcontrolCreatePayload struct { + Subcontrol func(childComplexity int) int + } + + SubcontrolDeletePayload struct { + DeletedID func(childComplexity int) int + } + + SubcontrolEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + SubcontrolHistory struct { + Class func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Family func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + ImplementationDate func(childComplexity int) int + ImplementationEvidence func(childComplexity int) int + ImplementationStatus func(childComplexity int) int + ImplementationVerification func(childComplexity int) int + ImplementationVerificationDate func(childComplexity int) int + MappedFrameworks func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Source func(childComplexity int) int + Status func(childComplexity int) int + SubcontrolNumber func(childComplexity int) int + SubcontrolType func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Version func(childComplexity int) int + } + + SubcontrolHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + SubcontrolHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + SubcontrolSearchResult struct { + Subcontrols func(childComplexity int) int + } + + SubcontrolUpdatePayload struct { + Subcontrol func(childComplexity int) int + } + + Subscriber struct { + Active func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Email func(childComplexity int) int + Events func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + PhoneNumber func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + VerifiedEmail func(childComplexity int) int + VerifiedPhone func(childComplexity int) int + } + + SubscriberBulkCreatePayload struct { + Subscribers func(childComplexity int) int + } + + SubscriberConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + SubscriberCreatePayload struct { + Subscriber func(childComplexity int) int + } + + SubscriberDeletePayload struct { + Email func(childComplexity int) int + } + + SubscriberEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + SubscriberSearchResult struct { + Subscribers func(childComplexity int) int + } + + SubscriberUpdatePayload struct { + Subscriber func(childComplexity int) int + } + + TFASetting struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + ID func(childComplexity int) int + Owner func(childComplexity int) int + RecoveryCodes func(childComplexity int) int + Tags func(childComplexity int) int + TfaSecret func(childComplexity int) int + TotpAllowed func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + Verified func(childComplexity int) int + } + + TFASettingConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + TFASettingCreatePayload struct { + TfaSetting func(childComplexity int) int + } + + TFASettingEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + TFASettingSearchResult struct { + TFASettings func(childComplexity int) int + } + + TFASettingUpdatePayload struct { + TfaSetting func(childComplexity int) int + } + + Task struct { + Assignee func(childComplexity int) int + Assigner func(childComplexity int) int + Completed func(childComplexity int) int + Control func(childComplexity int) int + ControlObjective func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Due func(childComplexity int) int + Group func(childComplexity int) int + ID func(childComplexity int) int + InternalPolicy func(childComplexity int) int + Organization func(childComplexity int) int + Procedure func(childComplexity int) int + Program func(childComplexity int) int + Status func(childComplexity int) int + Subcontrol func(childComplexity int) int + Tags func(childComplexity int) int + Title func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + TaskBulkCreatePayload struct { + Tasks func(childComplexity int) int + } + + TaskConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + TaskCreatePayload struct { + Task func(childComplexity int) int + } + + TaskDeletePayload struct { + DeletedID func(childComplexity int) int + } + + TaskEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + TaskHistory struct { + Completed func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Details func(childComplexity int) int + Due func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Status func(childComplexity int) int + Tags func(childComplexity int) int + Title func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + TaskHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + TaskHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + TaskSearchResult struct { + Tasks func(childComplexity int) int + } + + TaskUpdatePayload struct { + Task func(childComplexity int) int + } + + Template struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + Documents func(childComplexity int) int + Files func(childComplexity int) int + ID func(childComplexity int) int + Jsonconfig func(childComplexity int) int + Name func(childComplexity int) int + Owner func(childComplexity int) int + OwnerID func(childComplexity int) int + Tags func(childComplexity int) int + TemplateType func(childComplexity int) int + Uischema func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + TemplateBulkCreatePayload struct { + Templates func(childComplexity int) int + } + + TemplateConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + TemplateCreatePayload struct { + Template func(childComplexity int) int + } + + TemplateDeletePayload struct { + DeletedID func(childComplexity int) int + } + + TemplateEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + TemplateHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + Description func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + Jsonconfig func(childComplexity int) int + Name func(childComplexity int) int + Operation func(childComplexity int) int + OwnerID func(childComplexity int) int + Ref func(childComplexity int) int + Tags func(childComplexity int) int + TemplateType func(childComplexity int) int + Uischema func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + TemplateHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + TemplateHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + TemplateSearchResult struct { + Templates func(childComplexity int) int + } + + TemplateUpdatePayload struct { + Template func(childComplexity int) int + } + + User struct { + ActionPlans func(childComplexity int) int + AssigneeTasks func(childComplexity int) int + AssignerTasks func(childComplexity int) int + AuthProvider func(childComplexity int) int + AvatarLocalFile func(childComplexity int) int + AvatarLocalFileID func(childComplexity int) int + AvatarRemoteURL func(childComplexity int) int + AvatarUpdatedAt func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + DisplayName func(childComplexity int) int + Email func(childComplexity int) int + Events func(childComplexity int) int + File func(childComplexity int) int + Files func(childComplexity int) int + FirstName func(childComplexity int) int + GroupMemberships func(childComplexity int) int + Groups func(childComplexity int) int + ID func(childComplexity int) int + LastName func(childComplexity int) int + LastSeen func(childComplexity int) int + OrgMemberships func(childComplexity int) int + Organizations func(childComplexity int) int + PersonalAccessTokens func(childComplexity int) int + ProgramMemberships func(childComplexity int) int + Programs func(childComplexity int) int + Role func(childComplexity int) int + Setting func(childComplexity int) int + Sub func(childComplexity int) int + Subcontrols func(childComplexity int) int + Tags func(childComplexity int) int + TfaSettings func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + UserBulkCreatePayload struct { + Users func(childComplexity int) int + } + + UserConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + UserCreatePayload struct { + User func(childComplexity int) int + } + + UserDeletePayload struct { + DeletedID func(childComplexity int) int + } + + UserEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + UserHistory struct { + AuthProvider func(childComplexity int) int + AvatarLocalFile func(childComplexity int) int + AvatarLocalFileID func(childComplexity int) int + AvatarRemoteURL func(childComplexity int) int + AvatarUpdatedAt func(childComplexity int) int + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + DisplayName func(childComplexity int) int + Email func(childComplexity int) int + FirstName func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + LastName func(childComplexity int) int + LastSeen func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + Role func(childComplexity int) int + Sub func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + } + + UserHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + UserHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + UserSearchResult struct { + Users func(childComplexity int) int + } + + UserSetting struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DefaultOrg func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + EmailConfirmed func(childComplexity int) int + Files func(childComplexity int) int + ID func(childComplexity int) int + IsTfaEnabled func(childComplexity int) int + IsWebauthnAllowed func(childComplexity int) int + Locked func(childComplexity int) int + SilencedAt func(childComplexity int) int + Status func(childComplexity int) int + SuspendedAt func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + User func(childComplexity int) int + UserID func(childComplexity int) int + } + + UserSettingBulkCreatePayload struct { + UserSettings func(childComplexity int) int + } + + UserSettingConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + UserSettingCreatePayload struct { + UserSetting func(childComplexity int) int + } + + UserSettingEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + UserSettingHistory struct { + CreatedAt func(childComplexity int) int + CreatedBy func(childComplexity int) int + DeletedAt func(childComplexity int) int + DeletedBy func(childComplexity int) int + EmailConfirmed func(childComplexity int) int + HistoryTime func(childComplexity int) int + ID func(childComplexity int) int + IsTfaEnabled func(childComplexity int) int + IsWebauthnAllowed func(childComplexity int) int + Locked func(childComplexity int) int + Operation func(childComplexity int) int + Ref func(childComplexity int) int + SilencedAt func(childComplexity int) int + Status func(childComplexity int) int + SuspendedAt func(childComplexity int) int + Tags func(childComplexity int) int + UpdatedAt func(childComplexity int) int + UpdatedBy func(childComplexity int) int + UserID func(childComplexity int) int + } + + UserSettingHistoryConnection struct { + Edges func(childComplexity int) int + PageInfo func(childComplexity int) int + TotalCount func(childComplexity int) int + } + + UserSettingHistoryEdge struct { + Cursor func(childComplexity int) int + Node func(childComplexity int) int + } + + UserSettingSearchResult struct { + UserSettings func(childComplexity int) int + } + + UserSettingUpdatePayload struct { + UserSetting func(childComplexity int) int + } + + UserUpdatePayload struct { + User func(childComplexity int) int + } +} + +type executableSchema struct { + schema *ast.Schema + resolvers ResolverRoot + directives DirectiveRoot + complexity ComplexityRoot +} + +func (e *executableSchema) Schema() *ast.Schema { + if e.schema != nil { + return e.schema + } + return parsedSchema +} + +func (e *executableSchema) Complexity(typeName, field string, childComplexity int, rawArgs map[string]interface{}) (int, bool) { + ec := executionContext{nil, e, 0, 0, nil} + _ = ec + switch typeName + "." + field { + + case "APIToken.createdAt": + if e.complexity.APIToken.CreatedAt == nil { + break + } + + return e.complexity.APIToken.CreatedAt(childComplexity), true + + case "APIToken.createdBy": + if e.complexity.APIToken.CreatedBy == nil { + break + } + + return e.complexity.APIToken.CreatedBy(childComplexity), true + + case "APIToken.deletedAt": + if e.complexity.APIToken.DeletedAt == nil { + break + } + + return e.complexity.APIToken.DeletedAt(childComplexity), true + + case "APIToken.deletedBy": + if e.complexity.APIToken.DeletedBy == nil { + break + } + + return e.complexity.APIToken.DeletedBy(childComplexity), true + + case "APIToken.description": + if e.complexity.APIToken.Description == nil { + break + } + + return e.complexity.APIToken.Description(childComplexity), true + + case "APIToken.expiresAt": + if e.complexity.APIToken.ExpiresAt == nil { + break + } + + return e.complexity.APIToken.ExpiresAt(childComplexity), true + + case "APIToken.id": + if e.complexity.APIToken.ID == nil { + break + } + + return e.complexity.APIToken.ID(childComplexity), true + + case "APIToken.lastUsedAt": + if e.complexity.APIToken.LastUsedAt == nil { + break + } + + return e.complexity.APIToken.LastUsedAt(childComplexity), true + + case "APIToken.name": + if e.complexity.APIToken.Name == nil { + break + } + + return e.complexity.APIToken.Name(childComplexity), true + + case "APIToken.owner": + if e.complexity.APIToken.Owner == nil { + break + } + + return e.complexity.APIToken.Owner(childComplexity), true + + case "APIToken.ownerID": + if e.complexity.APIToken.OwnerID == nil { + break + } + + return e.complexity.APIToken.OwnerID(childComplexity), true + + case "APIToken.scopes": + if e.complexity.APIToken.Scopes == nil { + break + } + + return e.complexity.APIToken.Scopes(childComplexity), true + + case "APIToken.tags": + if e.complexity.APIToken.Tags == nil { + break + } + + return e.complexity.APIToken.Tags(childComplexity), true + + case "APIToken.token": + if e.complexity.APIToken.Token == nil { + break + } + + return e.complexity.APIToken.Token(childComplexity), true + + case "APIToken.updatedAt": + if e.complexity.APIToken.UpdatedAt == nil { + break + } + + return e.complexity.APIToken.UpdatedAt(childComplexity), true + + case "APIToken.updatedBy": + if e.complexity.APIToken.UpdatedBy == nil { + break + } + + return e.complexity.APIToken.UpdatedBy(childComplexity), true + + case "APITokenBulkCreatePayload.apiTokens": + if e.complexity.APITokenBulkCreatePayload.APITokens == nil { + break + } + + return e.complexity.APITokenBulkCreatePayload.APITokens(childComplexity), true + + case "APITokenConnection.edges": + if e.complexity.APITokenConnection.Edges == nil { + break + } + + return e.complexity.APITokenConnection.Edges(childComplexity), true + + case "APITokenConnection.pageInfo": + if e.complexity.APITokenConnection.PageInfo == nil { + break + } + + return e.complexity.APITokenConnection.PageInfo(childComplexity), true + + case "APITokenConnection.totalCount": + if e.complexity.APITokenConnection.TotalCount == nil { + break + } + + return e.complexity.APITokenConnection.TotalCount(childComplexity), true + + case "APITokenCreatePayload.apiToken": + if e.complexity.APITokenCreatePayload.APIToken == nil { + break + } + + return e.complexity.APITokenCreatePayload.APIToken(childComplexity), true + + case "APITokenDeletePayload.deletedID": + if e.complexity.APITokenDeletePayload.DeletedID == nil { + break + } + + return e.complexity.APITokenDeletePayload.DeletedID(childComplexity), true + + case "APITokenEdge.cursor": + if e.complexity.APITokenEdge.Cursor == nil { + break + } + + return e.complexity.APITokenEdge.Cursor(childComplexity), true + + case "APITokenEdge.node": + if e.complexity.APITokenEdge.Node == nil { + break + } + + return e.complexity.APITokenEdge.Node(childComplexity), true + + case "APITokenSearchResult.apiTokens": + if e.complexity.APITokenSearchResult.APITokens == nil { + break + } + + return e.complexity.APITokenSearchResult.APITokens(childComplexity), true + + case "APITokenUpdatePayload.apiToken": + if e.complexity.APITokenUpdatePayload.APIToken == nil { + break + } + + return e.complexity.APITokenUpdatePayload.APIToken(childComplexity), true + + case "ActionPlan.control": + if e.complexity.ActionPlan.Control == nil { + break + } + + return e.complexity.ActionPlan.Control(childComplexity), true + + case "ActionPlan.createdAt": + if e.complexity.ActionPlan.CreatedAt == nil { + break + } + + return e.complexity.ActionPlan.CreatedAt(childComplexity), true + + case "ActionPlan.createdBy": + if e.complexity.ActionPlan.CreatedBy == nil { + break + } + + return e.complexity.ActionPlan.CreatedBy(childComplexity), true + + case "ActionPlan.deletedAt": + if e.complexity.ActionPlan.DeletedAt == nil { + break + } + + return e.complexity.ActionPlan.DeletedAt(childComplexity), true + + case "ActionPlan.deletedBy": + if e.complexity.ActionPlan.DeletedBy == nil { + break + } + + return e.complexity.ActionPlan.DeletedBy(childComplexity), true + + case "ActionPlan.description": + if e.complexity.ActionPlan.Description == nil { + break + } + + return e.complexity.ActionPlan.Description(childComplexity), true + + case "ActionPlan.details": + if e.complexity.ActionPlan.Details == nil { + break + } + + return e.complexity.ActionPlan.Details(childComplexity), true + + case "ActionPlan.dueDate": + if e.complexity.ActionPlan.DueDate == nil { + break + } + + return e.complexity.ActionPlan.DueDate(childComplexity), true + + case "ActionPlan.id": + if e.complexity.ActionPlan.ID == nil { + break + } + + return e.complexity.ActionPlan.ID(childComplexity), true + + case "ActionPlan.name": + if e.complexity.ActionPlan.Name == nil { + break + } + + return e.complexity.ActionPlan.Name(childComplexity), true + + case "ActionPlan.priority": + if e.complexity.ActionPlan.Priority == nil { + break + } + + return e.complexity.ActionPlan.Priority(childComplexity), true + + case "ActionPlan.program": + if e.complexity.ActionPlan.Program == nil { + break + } + + return e.complexity.ActionPlan.Program(childComplexity), true + + case "ActionPlan.risk": + if e.complexity.ActionPlan.Risk == nil { + break + } + + return e.complexity.ActionPlan.Risk(childComplexity), true + + case "ActionPlan.source": + if e.complexity.ActionPlan.Source == nil { + break + } + + return e.complexity.ActionPlan.Source(childComplexity), true + + case "ActionPlan.standard": + if e.complexity.ActionPlan.Standard == nil { + break + } + + return e.complexity.ActionPlan.Standard(childComplexity), true + + case "ActionPlan.status": + if e.complexity.ActionPlan.Status == nil { + break + } + + return e.complexity.ActionPlan.Status(childComplexity), true + + case "ActionPlan.tags": + if e.complexity.ActionPlan.Tags == nil { + break + } + + return e.complexity.ActionPlan.Tags(childComplexity), true + + case "ActionPlan.updatedAt": + if e.complexity.ActionPlan.UpdatedAt == nil { + break + } + + return e.complexity.ActionPlan.UpdatedAt(childComplexity), true + + case "ActionPlan.updatedBy": + if e.complexity.ActionPlan.UpdatedBy == nil { + break + } + + return e.complexity.ActionPlan.UpdatedBy(childComplexity), true + + case "ActionPlan.user": + if e.complexity.ActionPlan.User == nil { + break + } + + return e.complexity.ActionPlan.User(childComplexity), true + + case "ActionPlanBulkCreatePayload.actionPlans": + if e.complexity.ActionPlanBulkCreatePayload.ActionPlans == nil { + break + } + + return e.complexity.ActionPlanBulkCreatePayload.ActionPlans(childComplexity), true + + case "ActionPlanConnection.edges": + if e.complexity.ActionPlanConnection.Edges == nil { + break + } + + return e.complexity.ActionPlanConnection.Edges(childComplexity), true + + case "ActionPlanConnection.pageInfo": + if e.complexity.ActionPlanConnection.PageInfo == nil { + break + } + + return e.complexity.ActionPlanConnection.PageInfo(childComplexity), true + + case "ActionPlanConnection.totalCount": + if e.complexity.ActionPlanConnection.TotalCount == nil { + break + } + + return e.complexity.ActionPlanConnection.TotalCount(childComplexity), true + + case "ActionPlanCreatePayload.actionPlan": + if e.complexity.ActionPlanCreatePayload.ActionPlan == nil { + break + } + + return e.complexity.ActionPlanCreatePayload.ActionPlan(childComplexity), true + + case "ActionPlanDeletePayload.deletedID": + if e.complexity.ActionPlanDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ActionPlanDeletePayload.DeletedID(childComplexity), true + + case "ActionPlanEdge.cursor": + if e.complexity.ActionPlanEdge.Cursor == nil { + break + } + + return e.complexity.ActionPlanEdge.Cursor(childComplexity), true + + case "ActionPlanEdge.node": + if e.complexity.ActionPlanEdge.Node == nil { + break + } + + return e.complexity.ActionPlanEdge.Node(childComplexity), true + + case "ActionPlanHistory.createdAt": + if e.complexity.ActionPlanHistory.CreatedAt == nil { + break + } + + return e.complexity.ActionPlanHistory.CreatedAt(childComplexity), true + + case "ActionPlanHistory.createdBy": + if e.complexity.ActionPlanHistory.CreatedBy == nil { + break + } + + return e.complexity.ActionPlanHistory.CreatedBy(childComplexity), true + + case "ActionPlanHistory.deletedAt": + if e.complexity.ActionPlanHistory.DeletedAt == nil { + break + } + + return e.complexity.ActionPlanHistory.DeletedAt(childComplexity), true + + case "ActionPlanHistory.deletedBy": + if e.complexity.ActionPlanHistory.DeletedBy == nil { + break + } + + return e.complexity.ActionPlanHistory.DeletedBy(childComplexity), true + + case "ActionPlanHistory.description": + if e.complexity.ActionPlanHistory.Description == nil { + break + } + + return e.complexity.ActionPlanHistory.Description(childComplexity), true + + case "ActionPlanHistory.details": + if e.complexity.ActionPlanHistory.Details == nil { + break + } + + return e.complexity.ActionPlanHistory.Details(childComplexity), true + + case "ActionPlanHistory.dueDate": + if e.complexity.ActionPlanHistory.DueDate == nil { + break + } + + return e.complexity.ActionPlanHistory.DueDate(childComplexity), true + + case "ActionPlanHistory.historyTime": + if e.complexity.ActionPlanHistory.HistoryTime == nil { + break + } + + return e.complexity.ActionPlanHistory.HistoryTime(childComplexity), true + + case "ActionPlanHistory.id": + if e.complexity.ActionPlanHistory.ID == nil { + break + } + + return e.complexity.ActionPlanHistory.ID(childComplexity), true + + case "ActionPlanHistory.name": + if e.complexity.ActionPlanHistory.Name == nil { + break + } + + return e.complexity.ActionPlanHistory.Name(childComplexity), true + + case "ActionPlanHistory.operation": + if e.complexity.ActionPlanHistory.Operation == nil { + break + } + + return e.complexity.ActionPlanHistory.Operation(childComplexity), true + + case "ActionPlanHistory.priority": + if e.complexity.ActionPlanHistory.Priority == nil { + break + } + + return e.complexity.ActionPlanHistory.Priority(childComplexity), true + + case "ActionPlanHistory.ref": + if e.complexity.ActionPlanHistory.Ref == nil { + break + } + + return e.complexity.ActionPlanHistory.Ref(childComplexity), true + + case "ActionPlanHistory.source": + if e.complexity.ActionPlanHistory.Source == nil { + break + } + + return e.complexity.ActionPlanHistory.Source(childComplexity), true + + case "ActionPlanHistory.status": + if e.complexity.ActionPlanHistory.Status == nil { + break + } + + return e.complexity.ActionPlanHistory.Status(childComplexity), true + + case "ActionPlanHistory.tags": + if e.complexity.ActionPlanHistory.Tags == nil { + break + } + + return e.complexity.ActionPlanHistory.Tags(childComplexity), true + + case "ActionPlanHistory.updatedAt": + if e.complexity.ActionPlanHistory.UpdatedAt == nil { + break + } + + return e.complexity.ActionPlanHistory.UpdatedAt(childComplexity), true + + case "ActionPlanHistory.updatedBy": + if e.complexity.ActionPlanHistory.UpdatedBy == nil { + break + } + + return e.complexity.ActionPlanHistory.UpdatedBy(childComplexity), true + + case "ActionPlanHistoryConnection.edges": + if e.complexity.ActionPlanHistoryConnection.Edges == nil { + break + } + + return e.complexity.ActionPlanHistoryConnection.Edges(childComplexity), true + + case "ActionPlanHistoryConnection.pageInfo": + if e.complexity.ActionPlanHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ActionPlanHistoryConnection.PageInfo(childComplexity), true + + case "ActionPlanHistoryConnection.totalCount": + if e.complexity.ActionPlanHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ActionPlanHistoryConnection.TotalCount(childComplexity), true + + case "ActionPlanHistoryEdge.cursor": + if e.complexity.ActionPlanHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ActionPlanHistoryEdge.Cursor(childComplexity), true + + case "ActionPlanHistoryEdge.node": + if e.complexity.ActionPlanHistoryEdge.Node == nil { + break + } + + return e.complexity.ActionPlanHistoryEdge.Node(childComplexity), true + + case "ActionPlanSearchResult.actionPlans": + if e.complexity.ActionPlanSearchResult.ActionPlans == nil { + break + } + + return e.complexity.ActionPlanSearchResult.ActionPlans(childComplexity), true + + case "ActionPlanUpdatePayload.actionPlan": + if e.complexity.ActionPlanUpdatePayload.ActionPlan == nil { + break + } + + return e.complexity.ActionPlanUpdatePayload.ActionPlan(childComplexity), true + + case "AuditLog.changes": + if e.complexity.AuditLog.Changes == nil { + break + } + + return e.complexity.AuditLog.Changes(childComplexity), true + + case "AuditLog.id": + if e.complexity.AuditLog.ID == nil { + break + } + + return e.complexity.AuditLog.ID(childComplexity), true + + case "AuditLog.operation": + if e.complexity.AuditLog.Operation == nil { + break + } + + return e.complexity.AuditLog.Operation(childComplexity), true + + case "AuditLog.table": + if e.complexity.AuditLog.Table == nil { + break + } + + return e.complexity.AuditLog.Table(childComplexity), true + + case "AuditLog.time": + if e.complexity.AuditLog.Time == nil { + break + } + + return e.complexity.AuditLog.Time(childComplexity), true + + case "AuditLog.updatedBy": + if e.complexity.AuditLog.UpdatedBy == nil { + break + } + + return e.complexity.AuditLog.UpdatedBy(childComplexity), true + + case "AuditLogConnection.edges": + if e.complexity.AuditLogConnection.Edges == nil { + break + } + + return e.complexity.AuditLogConnection.Edges(childComplexity), true + + case "AuditLogConnection.pageInfo": + if e.complexity.AuditLogConnection.PageInfo == nil { + break + } + + return e.complexity.AuditLogConnection.PageInfo(childComplexity), true + + case "AuditLogConnection.totalCount": + if e.complexity.AuditLogConnection.TotalCount == nil { + break + } + + return e.complexity.AuditLogConnection.TotalCount(childComplexity), true + + case "AuditLogEdge.cursor": + if e.complexity.AuditLogEdge.Cursor == nil { + break + } + + return e.complexity.AuditLogEdge.Cursor(childComplexity), true + + case "AuditLogEdge.node": + if e.complexity.AuditLogEdge.Node == nil { + break + } + + return e.complexity.AuditLogEdge.Node(childComplexity), true + + case "Contact.address": + if e.complexity.Contact.Address == nil { + break + } + + return e.complexity.Contact.Address(childComplexity), true + + case "Contact.company": + if e.complexity.Contact.Company == nil { + break + } + + return e.complexity.Contact.Company(childComplexity), true + + case "Contact.createdAt": + if e.complexity.Contact.CreatedAt == nil { + break + } + + return e.complexity.Contact.CreatedAt(childComplexity), true + + case "Contact.createdBy": + if e.complexity.Contact.CreatedBy == nil { + break + } + + return e.complexity.Contact.CreatedBy(childComplexity), true + + case "Contact.deletedAt": + if e.complexity.Contact.DeletedAt == nil { + break + } + + return e.complexity.Contact.DeletedAt(childComplexity), true + + case "Contact.deletedBy": + if e.complexity.Contact.DeletedBy == nil { + break + } + + return e.complexity.Contact.DeletedBy(childComplexity), true + + case "Contact.email": + if e.complexity.Contact.Email == nil { + break + } + + return e.complexity.Contact.Email(childComplexity), true + + case "Contact.entities": + if e.complexity.Contact.Entities == nil { + break + } + + return e.complexity.Contact.Entities(childComplexity), true + + case "Contact.files": + if e.complexity.Contact.Files == nil { + break + } + + return e.complexity.Contact.Files(childComplexity), true + + case "Contact.fullName": + if e.complexity.Contact.FullName == nil { + break + } + + return e.complexity.Contact.FullName(childComplexity), true + + case "Contact.id": + if e.complexity.Contact.ID == nil { + break + } + + return e.complexity.Contact.ID(childComplexity), true + + case "Contact.owner": + if e.complexity.Contact.Owner == nil { + break + } + + return e.complexity.Contact.Owner(childComplexity), true + + case "Contact.ownerID": + if e.complexity.Contact.OwnerID == nil { + break + } + + return e.complexity.Contact.OwnerID(childComplexity), true + + case "Contact.phoneNumber": + if e.complexity.Contact.PhoneNumber == nil { + break + } + + return e.complexity.Contact.PhoneNumber(childComplexity), true + + case "Contact.status": + if e.complexity.Contact.Status == nil { + break + } + + return e.complexity.Contact.Status(childComplexity), true + + case "Contact.tags": + if e.complexity.Contact.Tags == nil { + break + } + + return e.complexity.Contact.Tags(childComplexity), true + + case "Contact.title": + if e.complexity.Contact.Title == nil { + break + } + + return e.complexity.Contact.Title(childComplexity), true + + case "Contact.updatedAt": + if e.complexity.Contact.UpdatedAt == nil { + break + } + + return e.complexity.Contact.UpdatedAt(childComplexity), true + + case "Contact.updatedBy": + if e.complexity.Contact.UpdatedBy == nil { + break + } + + return e.complexity.Contact.UpdatedBy(childComplexity), true + + case "ContactBulkCreatePayload.contacts": + if e.complexity.ContactBulkCreatePayload.Contacts == nil { + break + } + + return e.complexity.ContactBulkCreatePayload.Contacts(childComplexity), true + + case "ContactConnection.edges": + if e.complexity.ContactConnection.Edges == nil { + break + } + + return e.complexity.ContactConnection.Edges(childComplexity), true + + case "ContactConnection.pageInfo": + if e.complexity.ContactConnection.PageInfo == nil { + break + } + + return e.complexity.ContactConnection.PageInfo(childComplexity), true + + case "ContactConnection.totalCount": + if e.complexity.ContactConnection.TotalCount == nil { + break + } + + return e.complexity.ContactConnection.TotalCount(childComplexity), true + + case "ContactCreatePayload.contact": + if e.complexity.ContactCreatePayload.Contact == nil { + break + } + + return e.complexity.ContactCreatePayload.Contact(childComplexity), true + + case "ContactDeletePayload.deletedID": + if e.complexity.ContactDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ContactDeletePayload.DeletedID(childComplexity), true + + case "ContactEdge.cursor": + if e.complexity.ContactEdge.Cursor == nil { + break + } + + return e.complexity.ContactEdge.Cursor(childComplexity), true + + case "ContactEdge.node": + if e.complexity.ContactEdge.Node == nil { + break + } + + return e.complexity.ContactEdge.Node(childComplexity), true + + case "ContactHistory.address": + if e.complexity.ContactHistory.Address == nil { + break + } + + return e.complexity.ContactHistory.Address(childComplexity), true + + case "ContactHistory.company": + if e.complexity.ContactHistory.Company == nil { + break + } + + return e.complexity.ContactHistory.Company(childComplexity), true + + case "ContactHistory.createdAt": + if e.complexity.ContactHistory.CreatedAt == nil { + break + } + + return e.complexity.ContactHistory.CreatedAt(childComplexity), true + + case "ContactHistory.createdBy": + if e.complexity.ContactHistory.CreatedBy == nil { + break + } + + return e.complexity.ContactHistory.CreatedBy(childComplexity), true + + case "ContactHistory.deletedAt": + if e.complexity.ContactHistory.DeletedAt == nil { + break + } + + return e.complexity.ContactHistory.DeletedAt(childComplexity), true + + case "ContactHistory.deletedBy": + if e.complexity.ContactHistory.DeletedBy == nil { + break + } + + return e.complexity.ContactHistory.DeletedBy(childComplexity), true + + case "ContactHistory.email": + if e.complexity.ContactHistory.Email == nil { + break + } + + return e.complexity.ContactHistory.Email(childComplexity), true + + case "ContactHistory.fullName": + if e.complexity.ContactHistory.FullName == nil { + break + } + + return e.complexity.ContactHistory.FullName(childComplexity), true + + case "ContactHistory.historyTime": + if e.complexity.ContactHistory.HistoryTime == nil { + break + } + + return e.complexity.ContactHistory.HistoryTime(childComplexity), true + + case "ContactHistory.id": + if e.complexity.ContactHistory.ID == nil { + break + } + + return e.complexity.ContactHistory.ID(childComplexity), true + + case "ContactHistory.operation": + if e.complexity.ContactHistory.Operation == nil { + break + } + + return e.complexity.ContactHistory.Operation(childComplexity), true + + case "ContactHistory.ownerID": + if e.complexity.ContactHistory.OwnerID == nil { + break + } + + return e.complexity.ContactHistory.OwnerID(childComplexity), true + + case "ContactHistory.phoneNumber": + if e.complexity.ContactHistory.PhoneNumber == nil { + break + } + + return e.complexity.ContactHistory.PhoneNumber(childComplexity), true + + case "ContactHistory.ref": + if e.complexity.ContactHistory.Ref == nil { + break + } + + return e.complexity.ContactHistory.Ref(childComplexity), true + + case "ContactHistory.status": + if e.complexity.ContactHistory.Status == nil { + break + } + + return e.complexity.ContactHistory.Status(childComplexity), true + + case "ContactHistory.tags": + if e.complexity.ContactHistory.Tags == nil { + break + } + + return e.complexity.ContactHistory.Tags(childComplexity), true + + case "ContactHistory.title": + if e.complexity.ContactHistory.Title == nil { + break + } + + return e.complexity.ContactHistory.Title(childComplexity), true + + case "ContactHistory.updatedAt": + if e.complexity.ContactHistory.UpdatedAt == nil { + break + } + + return e.complexity.ContactHistory.UpdatedAt(childComplexity), true + + case "ContactHistory.updatedBy": + if e.complexity.ContactHistory.UpdatedBy == nil { + break + } + + return e.complexity.ContactHistory.UpdatedBy(childComplexity), true + + case "ContactHistoryConnection.edges": + if e.complexity.ContactHistoryConnection.Edges == nil { + break + } + + return e.complexity.ContactHistoryConnection.Edges(childComplexity), true + + case "ContactHistoryConnection.pageInfo": + if e.complexity.ContactHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ContactHistoryConnection.PageInfo(childComplexity), true + + case "ContactHistoryConnection.totalCount": + if e.complexity.ContactHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ContactHistoryConnection.TotalCount(childComplexity), true + + case "ContactHistoryEdge.cursor": + if e.complexity.ContactHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ContactHistoryEdge.Cursor(childComplexity), true + + case "ContactHistoryEdge.node": + if e.complexity.ContactHistoryEdge.Node == nil { + break + } + + return e.complexity.ContactHistoryEdge.Node(childComplexity), true + + case "ContactSearchResult.contacts": + if e.complexity.ContactSearchResult.Contacts == nil { + break + } + + return e.complexity.ContactSearchResult.Contacts(childComplexity), true + + case "ContactUpdatePayload.contact": + if e.complexity.ContactUpdatePayload.Contact == nil { + break + } + + return e.complexity.ContactUpdatePayload.Contact(childComplexity), true + + case "Control.actionPlans": + if e.complexity.Control.ActionPlans == nil { + break + } + + return e.complexity.Control.ActionPlans(childComplexity), true + + case "Control.blockedGroups": + if e.complexity.Control.BlockedGroups == nil { + break + } + + return e.complexity.Control.BlockedGroups(childComplexity), true + + case "Control.class": + if e.complexity.Control.Class == nil { + break + } + + return e.complexity.Control.Class(childComplexity), true + + case "Control.controlNumber": + if e.complexity.Control.ControlNumber == nil { + break + } + + return e.complexity.Control.ControlNumber(childComplexity), true + + case "Control.controlObjectives": + if e.complexity.Control.ControlObjectives == nil { + break + } + + return e.complexity.Control.ControlObjectives(childComplexity), true + + case "Control.controlType": + if e.complexity.Control.ControlType == nil { + break + } + + return e.complexity.Control.ControlType(childComplexity), true + + case "Control.createdAt": + if e.complexity.Control.CreatedAt == nil { + break + } + + return e.complexity.Control.CreatedAt(childComplexity), true + + case "Control.createdBy": + if e.complexity.Control.CreatedBy == nil { + break + } + + return e.complexity.Control.CreatedBy(childComplexity), true + + case "Control.deletedAt": + if e.complexity.Control.DeletedAt == nil { + break + } + + return e.complexity.Control.DeletedAt(childComplexity), true + + case "Control.deletedBy": + if e.complexity.Control.DeletedBy == nil { + break + } + + return e.complexity.Control.DeletedBy(childComplexity), true + + case "Control.description": + if e.complexity.Control.Description == nil { + break + } + + return e.complexity.Control.Description(childComplexity), true + + case "Control.details": + if e.complexity.Control.Details == nil { + break + } + + return e.complexity.Control.Details(childComplexity), true + + case "Control.editors": + if e.complexity.Control.Editors == nil { + break + } + + return e.complexity.Control.Editors(childComplexity), true + + case "Control.family": + if e.complexity.Control.Family == nil { + break + } + + return e.complexity.Control.Family(childComplexity), true + + case "Control.id": + if e.complexity.Control.ID == nil { + break + } + + return e.complexity.Control.ID(childComplexity), true + + case "Control.mappedFrameworks": + if e.complexity.Control.MappedFrameworks == nil { + break + } + + return e.complexity.Control.MappedFrameworks(childComplexity), true + + case "Control.name": + if e.complexity.Control.Name == nil { + break + } + + return e.complexity.Control.Name(childComplexity), true + + case "Control.narratives": + if e.complexity.Control.Narratives == nil { + break + } + + return e.complexity.Control.Narratives(childComplexity), true + + case "Control.owner": + if e.complexity.Control.Owner == nil { + break + } + + return e.complexity.Control.Owner(childComplexity), true + + case "Control.ownerID": + if e.complexity.Control.OwnerID == nil { + break + } + + return e.complexity.Control.OwnerID(childComplexity), true + + case "Control.procedures": + if e.complexity.Control.Procedures == nil { + break + } + + return e.complexity.Control.Procedures(childComplexity), true + + case "Control.programs": + if e.complexity.Control.Programs == nil { + break + } + + return e.complexity.Control.Programs(childComplexity), true + + case "Control.risks": + if e.complexity.Control.Risks == nil { + break + } + + return e.complexity.Control.Risks(childComplexity), true + + case "Control.satisfies": + if e.complexity.Control.Satisfies == nil { + break + } + + return e.complexity.Control.Satisfies(childComplexity), true + + case "Control.source": + if e.complexity.Control.Source == nil { + break + } + + return e.complexity.Control.Source(childComplexity), true + + case "Control.standard": + if e.complexity.Control.Standard == nil { + break + } + + return e.complexity.Control.Standard(childComplexity), true + + case "Control.status": + if e.complexity.Control.Status == nil { + break + } + + return e.complexity.Control.Status(childComplexity), true + + case "Control.subcontrols": + if e.complexity.Control.Subcontrols == nil { + break + } + + return e.complexity.Control.Subcontrols(childComplexity), true + + case "Control.tags": + if e.complexity.Control.Tags == nil { + break + } + + return e.complexity.Control.Tags(childComplexity), true + + case "Control.tasks": + if e.complexity.Control.Tasks == nil { + break + } + + return e.complexity.Control.Tasks(childComplexity), true + + case "Control.updatedAt": + if e.complexity.Control.UpdatedAt == nil { + break + } + + return e.complexity.Control.UpdatedAt(childComplexity), true + + case "Control.updatedBy": + if e.complexity.Control.UpdatedBy == nil { + break + } + + return e.complexity.Control.UpdatedBy(childComplexity), true + + case "Control.version": + if e.complexity.Control.Version == nil { + break + } + + return e.complexity.Control.Version(childComplexity), true + + case "Control.viewers": + if e.complexity.Control.Viewers == nil { + break + } + + return e.complexity.Control.Viewers(childComplexity), true + + case "ControlBulkCreatePayload.controls": + if e.complexity.ControlBulkCreatePayload.Controls == nil { + break + } + + return e.complexity.ControlBulkCreatePayload.Controls(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 "ControlCreatePayload.control": + if e.complexity.ControlCreatePayload.Control == nil { + break + } + + return e.complexity.ControlCreatePayload.Control(childComplexity), true + + case "ControlDeletePayload.deletedID": + if e.complexity.ControlDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ControlDeletePayload.DeletedID(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 "ControlHistory.class": + if e.complexity.ControlHistory.Class == nil { + break + } + + return e.complexity.ControlHistory.Class(childComplexity), true + + case "ControlHistory.controlNumber": + if e.complexity.ControlHistory.ControlNumber == nil { + break + } + + return e.complexity.ControlHistory.ControlNumber(childComplexity), true + + case "ControlHistory.controlType": + if e.complexity.ControlHistory.ControlType == nil { + break + } + + return e.complexity.ControlHistory.ControlType(childComplexity), true + + case "ControlHistory.createdAt": + if e.complexity.ControlHistory.CreatedAt == nil { + break + } + + return e.complexity.ControlHistory.CreatedAt(childComplexity), true + + case "ControlHistory.createdBy": + if e.complexity.ControlHistory.CreatedBy == nil { + break + } + + return e.complexity.ControlHistory.CreatedBy(childComplexity), true + + case "ControlHistory.deletedAt": + if e.complexity.ControlHistory.DeletedAt == nil { + break + } + + return e.complexity.ControlHistory.DeletedAt(childComplexity), true + + case "ControlHistory.deletedBy": + if e.complexity.ControlHistory.DeletedBy == nil { + break + } + + return e.complexity.ControlHistory.DeletedBy(childComplexity), true + + case "ControlHistory.description": + if e.complexity.ControlHistory.Description == nil { + break + } + + return e.complexity.ControlHistory.Description(childComplexity), true + + case "ControlHistory.details": + if e.complexity.ControlHistory.Details == nil { + break + } + + return e.complexity.ControlHistory.Details(childComplexity), true + + case "ControlHistory.family": + if e.complexity.ControlHistory.Family == nil { + break + } + + return e.complexity.ControlHistory.Family(childComplexity), true + + case "ControlHistory.historyTime": + if e.complexity.ControlHistory.HistoryTime == nil { + break + } + + return e.complexity.ControlHistory.HistoryTime(childComplexity), true + + case "ControlHistory.id": + if e.complexity.ControlHistory.ID == nil { + break + } + + return e.complexity.ControlHistory.ID(childComplexity), true + + case "ControlHistory.mappedFrameworks": + if e.complexity.ControlHistory.MappedFrameworks == nil { + break + } + + return e.complexity.ControlHistory.MappedFrameworks(childComplexity), true + + case "ControlHistory.name": + if e.complexity.ControlHistory.Name == nil { + break + } + + return e.complexity.ControlHistory.Name(childComplexity), true + + case "ControlHistory.operation": + if e.complexity.ControlHistory.Operation == nil { + break + } + + return e.complexity.ControlHistory.Operation(childComplexity), true + + case "ControlHistory.ownerID": + if e.complexity.ControlHistory.OwnerID == nil { + break + } + + return e.complexity.ControlHistory.OwnerID(childComplexity), true + + case "ControlHistory.ref": + if e.complexity.ControlHistory.Ref == nil { + break + } + + return e.complexity.ControlHistory.Ref(childComplexity), true + + case "ControlHistory.satisfies": + if e.complexity.ControlHistory.Satisfies == nil { + break + } + + return e.complexity.ControlHistory.Satisfies(childComplexity), true + + case "ControlHistory.source": + if e.complexity.ControlHistory.Source == nil { + break + } + + return e.complexity.ControlHistory.Source(childComplexity), true + + case "ControlHistory.status": + if e.complexity.ControlHistory.Status == nil { + break + } + + return e.complexity.ControlHistory.Status(childComplexity), true + + case "ControlHistory.tags": + if e.complexity.ControlHistory.Tags == nil { + break + } + + return e.complexity.ControlHistory.Tags(childComplexity), true + + case "ControlHistory.updatedAt": + if e.complexity.ControlHistory.UpdatedAt == nil { + break + } + + return e.complexity.ControlHistory.UpdatedAt(childComplexity), true + + case "ControlHistory.updatedBy": + if e.complexity.ControlHistory.UpdatedBy == nil { + break + } + + return e.complexity.ControlHistory.UpdatedBy(childComplexity), true + + case "ControlHistory.version": + if e.complexity.ControlHistory.Version == nil { + break + } + + return e.complexity.ControlHistory.Version(childComplexity), true + + case "ControlHistoryConnection.edges": + if e.complexity.ControlHistoryConnection.Edges == nil { + break + } + + return e.complexity.ControlHistoryConnection.Edges(childComplexity), true + + case "ControlHistoryConnection.pageInfo": + if e.complexity.ControlHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ControlHistoryConnection.PageInfo(childComplexity), true + + case "ControlHistoryConnection.totalCount": + if e.complexity.ControlHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ControlHistoryConnection.TotalCount(childComplexity), true + + case "ControlHistoryEdge.cursor": + if e.complexity.ControlHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ControlHistoryEdge.Cursor(childComplexity), true + + case "ControlHistoryEdge.node": + if e.complexity.ControlHistoryEdge.Node == nil { + break + } + + return e.complexity.ControlHistoryEdge.Node(childComplexity), true + + case "ControlObjective.blockedGroups": + if e.complexity.ControlObjective.BlockedGroups == nil { + break + } + + return e.complexity.ControlObjective.BlockedGroups(childComplexity), true + + case "ControlObjective.class": + if e.complexity.ControlObjective.Class == nil { + break + } + + return e.complexity.ControlObjective.Class(childComplexity), true + + case "ControlObjective.controlNumber": + if e.complexity.ControlObjective.ControlNumber == nil { + break + } + + return e.complexity.ControlObjective.ControlNumber(childComplexity), true + + case "ControlObjective.controlObjectiveType": + if e.complexity.ControlObjective.ControlObjectiveType == nil { + break + } + + return e.complexity.ControlObjective.ControlObjectiveType(childComplexity), true + + case "ControlObjective.controls": + if e.complexity.ControlObjective.Controls == nil { + break + } + + return e.complexity.ControlObjective.Controls(childComplexity), true + + case "ControlObjective.createdAt": + if e.complexity.ControlObjective.CreatedAt == nil { + break + } + + return e.complexity.ControlObjective.CreatedAt(childComplexity), true + + case "ControlObjective.createdBy": + if e.complexity.ControlObjective.CreatedBy == nil { + break + } + + return e.complexity.ControlObjective.CreatedBy(childComplexity), true + + case "ControlObjective.deletedAt": + if e.complexity.ControlObjective.DeletedAt == nil { + break + } + + return e.complexity.ControlObjective.DeletedAt(childComplexity), true + + case "ControlObjective.deletedBy": + if e.complexity.ControlObjective.DeletedBy == nil { + break + } + + return e.complexity.ControlObjective.DeletedBy(childComplexity), true + + case "ControlObjective.description": + if e.complexity.ControlObjective.Description == nil { + break + } + + return e.complexity.ControlObjective.Description(childComplexity), true + + case "ControlObjective.details": + if e.complexity.ControlObjective.Details == nil { + break + } + + return e.complexity.ControlObjective.Details(childComplexity), true + + case "ControlObjective.editors": + if e.complexity.ControlObjective.Editors == nil { + break + } + + return e.complexity.ControlObjective.Editors(childComplexity), true + + case "ControlObjective.family": + if e.complexity.ControlObjective.Family == nil { + break + } + + return e.complexity.ControlObjective.Family(childComplexity), true + + case "ControlObjective.id": + if e.complexity.ControlObjective.ID == nil { + break + } + + return e.complexity.ControlObjective.ID(childComplexity), true + + case "ControlObjective.internalPolicies": + if e.complexity.ControlObjective.InternalPolicies == nil { + break + } + + return e.complexity.ControlObjective.InternalPolicies(childComplexity), true + + case "ControlObjective.mappedFrameworks": + if e.complexity.ControlObjective.MappedFrameworks == nil { + break + } + + return e.complexity.ControlObjective.MappedFrameworks(childComplexity), true + + case "ControlObjective.name": + if e.complexity.ControlObjective.Name == nil { + break + } + + return e.complexity.ControlObjective.Name(childComplexity), true + + case "ControlObjective.narratives": + if e.complexity.ControlObjective.Narratives == nil { + break + } + + return e.complexity.ControlObjective.Narratives(childComplexity), true + + case "ControlObjective.owner": + if e.complexity.ControlObjective.Owner == nil { + break + } + + return e.complexity.ControlObjective.Owner(childComplexity), true + + case "ControlObjective.ownerID": + if e.complexity.ControlObjective.OwnerID == nil { + break + } + + return e.complexity.ControlObjective.OwnerID(childComplexity), true + + case "ControlObjective.procedures": + if e.complexity.ControlObjective.Procedures == nil { + break + } + + return e.complexity.ControlObjective.Procedures(childComplexity), true + + case "ControlObjective.programs": + if e.complexity.ControlObjective.Programs == nil { + break + } + + return e.complexity.ControlObjective.Programs(childComplexity), true + + case "ControlObjective.risks": + if e.complexity.ControlObjective.Risks == nil { + break + } + + return e.complexity.ControlObjective.Risks(childComplexity), true + + case "ControlObjective.source": + if e.complexity.ControlObjective.Source == nil { + break + } + + return e.complexity.ControlObjective.Source(childComplexity), true + + case "ControlObjective.standard": + if e.complexity.ControlObjective.Standard == nil { + break + } + + return e.complexity.ControlObjective.Standard(childComplexity), true + + case "ControlObjective.status": + if e.complexity.ControlObjective.Status == nil { + break + } + + return e.complexity.ControlObjective.Status(childComplexity), true + + case "ControlObjective.subcontrols": + if e.complexity.ControlObjective.Subcontrols == nil { + break + } + + return e.complexity.ControlObjective.Subcontrols(childComplexity), true + + case "ControlObjective.tags": + if e.complexity.ControlObjective.Tags == nil { + break + } + + return e.complexity.ControlObjective.Tags(childComplexity), true + + case "ControlObjective.tasks": + if e.complexity.ControlObjective.Tasks == nil { + break + } + + return e.complexity.ControlObjective.Tasks(childComplexity), true + + case "ControlObjective.updatedAt": + if e.complexity.ControlObjective.UpdatedAt == nil { + break + } + + return e.complexity.ControlObjective.UpdatedAt(childComplexity), true + + case "ControlObjective.updatedBy": + if e.complexity.ControlObjective.UpdatedBy == nil { + break + } + + return e.complexity.ControlObjective.UpdatedBy(childComplexity), true + + case "ControlObjective.version": + if e.complexity.ControlObjective.Version == nil { + break + } + + return e.complexity.ControlObjective.Version(childComplexity), true + + case "ControlObjective.viewers": + if e.complexity.ControlObjective.Viewers == nil { + break + } + + return e.complexity.ControlObjective.Viewers(childComplexity), true + + case "ControlObjectiveBulkCreatePayload.controlObjectives": + if e.complexity.ControlObjectiveBulkCreatePayload.ControlObjectives == nil { + break + } + + return e.complexity.ControlObjectiveBulkCreatePayload.ControlObjectives(childComplexity), true + + case "ControlObjectiveConnection.edges": + if e.complexity.ControlObjectiveConnection.Edges == nil { + break + } + + return e.complexity.ControlObjectiveConnection.Edges(childComplexity), true + + case "ControlObjectiveConnection.pageInfo": + if e.complexity.ControlObjectiveConnection.PageInfo == nil { + break + } + + return e.complexity.ControlObjectiveConnection.PageInfo(childComplexity), true + + case "ControlObjectiveConnection.totalCount": + if e.complexity.ControlObjectiveConnection.TotalCount == nil { + break + } + + return e.complexity.ControlObjectiveConnection.TotalCount(childComplexity), true + + case "ControlObjectiveCreatePayload.controlObjective": + if e.complexity.ControlObjectiveCreatePayload.ControlObjective == nil { + break + } + + return e.complexity.ControlObjectiveCreatePayload.ControlObjective(childComplexity), true + + case "ControlObjectiveDeletePayload.deletedID": + if e.complexity.ControlObjectiveDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ControlObjectiveDeletePayload.DeletedID(childComplexity), true + + case "ControlObjectiveEdge.cursor": + if e.complexity.ControlObjectiveEdge.Cursor == nil { + break + } + + return e.complexity.ControlObjectiveEdge.Cursor(childComplexity), true + + case "ControlObjectiveEdge.node": + if e.complexity.ControlObjectiveEdge.Node == nil { + break + } + + return e.complexity.ControlObjectiveEdge.Node(childComplexity), true + + case "ControlObjectiveHistory.class": + if e.complexity.ControlObjectiveHistory.Class == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Class(childComplexity), true + + case "ControlObjectiveHistory.controlNumber": + if e.complexity.ControlObjectiveHistory.ControlNumber == nil { + break + } + + return e.complexity.ControlObjectiveHistory.ControlNumber(childComplexity), true + + case "ControlObjectiveHistory.controlObjectiveType": + if e.complexity.ControlObjectiveHistory.ControlObjectiveType == nil { + break + } + + return e.complexity.ControlObjectiveHistory.ControlObjectiveType(childComplexity), true + + case "ControlObjectiveHistory.createdAt": + if e.complexity.ControlObjectiveHistory.CreatedAt == nil { + break + } + + return e.complexity.ControlObjectiveHistory.CreatedAt(childComplexity), true + + case "ControlObjectiveHistory.createdBy": + if e.complexity.ControlObjectiveHistory.CreatedBy == nil { + break + } + + return e.complexity.ControlObjectiveHistory.CreatedBy(childComplexity), true + + case "ControlObjectiveHistory.deletedAt": + if e.complexity.ControlObjectiveHistory.DeletedAt == nil { + break + } + + return e.complexity.ControlObjectiveHistory.DeletedAt(childComplexity), true + + case "ControlObjectiveHistory.deletedBy": + if e.complexity.ControlObjectiveHistory.DeletedBy == nil { + break + } + + return e.complexity.ControlObjectiveHistory.DeletedBy(childComplexity), true + + case "ControlObjectiveHistory.description": + if e.complexity.ControlObjectiveHistory.Description == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Description(childComplexity), true + + case "ControlObjectiveHistory.details": + if e.complexity.ControlObjectiveHistory.Details == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Details(childComplexity), true + + case "ControlObjectiveHistory.family": + if e.complexity.ControlObjectiveHistory.Family == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Family(childComplexity), true + + case "ControlObjectiveHistory.historyTime": + if e.complexity.ControlObjectiveHistory.HistoryTime == nil { + break + } + + return e.complexity.ControlObjectiveHistory.HistoryTime(childComplexity), true + + case "ControlObjectiveHistory.id": + if e.complexity.ControlObjectiveHistory.ID == nil { + break + } + + return e.complexity.ControlObjectiveHistory.ID(childComplexity), true + + case "ControlObjectiveHistory.mappedFrameworks": + if e.complexity.ControlObjectiveHistory.MappedFrameworks == nil { + break + } + + return e.complexity.ControlObjectiveHistory.MappedFrameworks(childComplexity), true + + case "ControlObjectiveHistory.name": + if e.complexity.ControlObjectiveHistory.Name == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Name(childComplexity), true + + case "ControlObjectiveHistory.operation": + if e.complexity.ControlObjectiveHistory.Operation == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Operation(childComplexity), true + + case "ControlObjectiveHistory.ownerID": + if e.complexity.ControlObjectiveHistory.OwnerID == nil { + break + } + + return e.complexity.ControlObjectiveHistory.OwnerID(childComplexity), true + + case "ControlObjectiveHistory.ref": + if e.complexity.ControlObjectiveHistory.Ref == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Ref(childComplexity), true + + case "ControlObjectiveHistory.source": + if e.complexity.ControlObjectiveHistory.Source == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Source(childComplexity), true + + case "ControlObjectiveHistory.status": + if e.complexity.ControlObjectiveHistory.Status == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Status(childComplexity), true + + case "ControlObjectiveHistory.tags": + if e.complexity.ControlObjectiveHistory.Tags == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Tags(childComplexity), true + + case "ControlObjectiveHistory.updatedAt": + if e.complexity.ControlObjectiveHistory.UpdatedAt == nil { + break + } + + return e.complexity.ControlObjectiveHistory.UpdatedAt(childComplexity), true + + case "ControlObjectiveHistory.updatedBy": + if e.complexity.ControlObjectiveHistory.UpdatedBy == nil { + break + } + + return e.complexity.ControlObjectiveHistory.UpdatedBy(childComplexity), true + + case "ControlObjectiveHistory.version": + if e.complexity.ControlObjectiveHistory.Version == nil { + break + } + + return e.complexity.ControlObjectiveHistory.Version(childComplexity), true + + case "ControlObjectiveHistoryConnection.edges": + if e.complexity.ControlObjectiveHistoryConnection.Edges == nil { + break + } + + return e.complexity.ControlObjectiveHistoryConnection.Edges(childComplexity), true + + case "ControlObjectiveHistoryConnection.pageInfo": + if e.complexity.ControlObjectiveHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ControlObjectiveHistoryConnection.PageInfo(childComplexity), true + + case "ControlObjectiveHistoryConnection.totalCount": + if e.complexity.ControlObjectiveHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ControlObjectiveHistoryConnection.TotalCount(childComplexity), true + + case "ControlObjectiveHistoryEdge.cursor": + if e.complexity.ControlObjectiveHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ControlObjectiveHistoryEdge.Cursor(childComplexity), true + + case "ControlObjectiveHistoryEdge.node": + if e.complexity.ControlObjectiveHistoryEdge.Node == nil { + break + } + + return e.complexity.ControlObjectiveHistoryEdge.Node(childComplexity), true + + case "ControlObjectiveSearchResult.controlObjectives": + if e.complexity.ControlObjectiveSearchResult.ControlObjectives == nil { + break + } + + return e.complexity.ControlObjectiveSearchResult.ControlObjectives(childComplexity), true + + case "ControlObjectiveUpdatePayload.controlObjective": + if e.complexity.ControlObjectiveUpdatePayload.ControlObjective == nil { + break + } + + return e.complexity.ControlObjectiveUpdatePayload.ControlObjective(childComplexity), true + + case "ControlSearchResult.controls": + if e.complexity.ControlSearchResult.Controls == nil { + break + } + + return e.complexity.ControlSearchResult.Controls(childComplexity), true + + case "ControlUpdatePayload.control": + if e.complexity.ControlUpdatePayload.Control == nil { + break + } + + return e.complexity.ControlUpdatePayload.Control(childComplexity), true + + case "DocumentData.createdAt": + if e.complexity.DocumentData.CreatedAt == nil { + break + } + + return e.complexity.DocumentData.CreatedAt(childComplexity), true + + case "DocumentData.createdBy": + if e.complexity.DocumentData.CreatedBy == nil { + break + } + + return e.complexity.DocumentData.CreatedBy(childComplexity), true + + case "DocumentData.data": + if e.complexity.DocumentData.Data == nil { + break + } + + return e.complexity.DocumentData.Data(childComplexity), true + + case "DocumentData.deletedAt": + if e.complexity.DocumentData.DeletedAt == nil { + break + } + + return e.complexity.DocumentData.DeletedAt(childComplexity), true + + case "DocumentData.deletedBy": + if e.complexity.DocumentData.DeletedBy == nil { + break + } + + return e.complexity.DocumentData.DeletedBy(childComplexity), true + + case "DocumentData.entity": + if e.complexity.DocumentData.Entity == nil { + break + } + + return e.complexity.DocumentData.Entity(childComplexity), true + + case "DocumentData.files": + if e.complexity.DocumentData.Files == nil { + break + } + + return e.complexity.DocumentData.Files(childComplexity), true + + case "DocumentData.id": + if e.complexity.DocumentData.ID == nil { + break + } + + return e.complexity.DocumentData.ID(childComplexity), true + + case "DocumentData.owner": + if e.complexity.DocumentData.Owner == nil { + break + } + + return e.complexity.DocumentData.Owner(childComplexity), true + + case "DocumentData.ownerID": + if e.complexity.DocumentData.OwnerID == nil { + break + } + + return e.complexity.DocumentData.OwnerID(childComplexity), true + + case "DocumentData.tags": + if e.complexity.DocumentData.Tags == nil { + break + } + + return e.complexity.DocumentData.Tags(childComplexity), true + + case "DocumentData.template": + if e.complexity.DocumentData.Template == nil { + break + } + + return e.complexity.DocumentData.Template(childComplexity), true + + case "DocumentData.templateID": + if e.complexity.DocumentData.TemplateID == nil { + break + } + + return e.complexity.DocumentData.TemplateID(childComplexity), true + + case "DocumentData.updatedAt": + if e.complexity.DocumentData.UpdatedAt == nil { + break + } + + return e.complexity.DocumentData.UpdatedAt(childComplexity), true + + case "DocumentData.updatedBy": + if e.complexity.DocumentData.UpdatedBy == nil { + break + } + + return e.complexity.DocumentData.UpdatedBy(childComplexity), true + + case "DocumentDataBulkCreatePayload.documentData": + if e.complexity.DocumentDataBulkCreatePayload.DocumentData == nil { + break + } + + return e.complexity.DocumentDataBulkCreatePayload.DocumentData(childComplexity), true + + case "DocumentDataConnection.edges": + if e.complexity.DocumentDataConnection.Edges == nil { + break + } + + return e.complexity.DocumentDataConnection.Edges(childComplexity), true + + case "DocumentDataConnection.pageInfo": + if e.complexity.DocumentDataConnection.PageInfo == nil { + break + } + + return e.complexity.DocumentDataConnection.PageInfo(childComplexity), true + + case "DocumentDataConnection.totalCount": + if e.complexity.DocumentDataConnection.TotalCount == nil { + break + } + + return e.complexity.DocumentDataConnection.TotalCount(childComplexity), true + + case "DocumentDataCreatePayload.documentData": + if e.complexity.DocumentDataCreatePayload.DocumentData == nil { + break + } + + return e.complexity.DocumentDataCreatePayload.DocumentData(childComplexity), true + + case "DocumentDataDeletePayload.deletedID": + if e.complexity.DocumentDataDeletePayload.DeletedID == nil { + break + } + + return e.complexity.DocumentDataDeletePayload.DeletedID(childComplexity), true + + case "DocumentDataEdge.cursor": + if e.complexity.DocumentDataEdge.Cursor == nil { + break + } + + return e.complexity.DocumentDataEdge.Cursor(childComplexity), true + + case "DocumentDataEdge.node": + if e.complexity.DocumentDataEdge.Node == nil { + break + } + + return e.complexity.DocumentDataEdge.Node(childComplexity), true + + case "DocumentDataHistory.createdAt": + if e.complexity.DocumentDataHistory.CreatedAt == nil { + break + } + + return e.complexity.DocumentDataHistory.CreatedAt(childComplexity), true + + case "DocumentDataHistory.createdBy": + if e.complexity.DocumentDataHistory.CreatedBy == nil { + break + } + + return e.complexity.DocumentDataHistory.CreatedBy(childComplexity), true + + case "DocumentDataHistory.data": + if e.complexity.DocumentDataHistory.Data == nil { + break + } + + return e.complexity.DocumentDataHistory.Data(childComplexity), true + + case "DocumentDataHistory.deletedAt": + if e.complexity.DocumentDataHistory.DeletedAt == nil { + break + } + + return e.complexity.DocumentDataHistory.DeletedAt(childComplexity), true + + case "DocumentDataHistory.deletedBy": + if e.complexity.DocumentDataHistory.DeletedBy == nil { + break + } + + return e.complexity.DocumentDataHistory.DeletedBy(childComplexity), true + + case "DocumentDataHistory.historyTime": + if e.complexity.DocumentDataHistory.HistoryTime == nil { + break + } + + return e.complexity.DocumentDataHistory.HistoryTime(childComplexity), true + + case "DocumentDataHistory.id": + if e.complexity.DocumentDataHistory.ID == nil { + break + } + + return e.complexity.DocumentDataHistory.ID(childComplexity), true + + case "DocumentDataHistory.operation": + if e.complexity.DocumentDataHistory.Operation == nil { + break + } + + return e.complexity.DocumentDataHistory.Operation(childComplexity), true + + case "DocumentDataHistory.ownerID": + if e.complexity.DocumentDataHistory.OwnerID == nil { + break + } + + return e.complexity.DocumentDataHistory.OwnerID(childComplexity), true + + case "DocumentDataHistory.ref": + if e.complexity.DocumentDataHistory.Ref == nil { + break + } + + return e.complexity.DocumentDataHistory.Ref(childComplexity), true + + case "DocumentDataHistory.tags": + if e.complexity.DocumentDataHistory.Tags == nil { + break + } + + return e.complexity.DocumentDataHistory.Tags(childComplexity), true + + case "DocumentDataHistory.templateID": + if e.complexity.DocumentDataHistory.TemplateID == nil { + break + } + + return e.complexity.DocumentDataHistory.TemplateID(childComplexity), true + + case "DocumentDataHistory.updatedAt": + if e.complexity.DocumentDataHistory.UpdatedAt == nil { + break + } + + return e.complexity.DocumentDataHistory.UpdatedAt(childComplexity), true + + case "DocumentDataHistory.updatedBy": + if e.complexity.DocumentDataHistory.UpdatedBy == nil { + break + } + + return e.complexity.DocumentDataHistory.UpdatedBy(childComplexity), true + + case "DocumentDataHistoryConnection.edges": + if e.complexity.DocumentDataHistoryConnection.Edges == nil { + break + } + + return e.complexity.DocumentDataHistoryConnection.Edges(childComplexity), true + + case "DocumentDataHistoryConnection.pageInfo": + if e.complexity.DocumentDataHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.DocumentDataHistoryConnection.PageInfo(childComplexity), true + + case "DocumentDataHistoryConnection.totalCount": + if e.complexity.DocumentDataHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.DocumentDataHistoryConnection.TotalCount(childComplexity), true + + case "DocumentDataHistoryEdge.cursor": + if e.complexity.DocumentDataHistoryEdge.Cursor == nil { + break + } + + return e.complexity.DocumentDataHistoryEdge.Cursor(childComplexity), true + + case "DocumentDataHistoryEdge.node": + if e.complexity.DocumentDataHistoryEdge.Node == nil { + break + } + + return e.complexity.DocumentDataHistoryEdge.Node(childComplexity), true + + case "DocumentDataSearchResult.documentData": + if e.complexity.DocumentDataSearchResult.DocumentData == nil { + break + } + + return e.complexity.DocumentDataSearchResult.DocumentData(childComplexity), true + + case "DocumentDataUpdatePayload.documentData": + if e.complexity.DocumentDataUpdatePayload.DocumentData == nil { + break + } + + return e.complexity.DocumentDataUpdatePayload.DocumentData(childComplexity), true + + case "Entity.contacts": + if e.complexity.Entity.Contacts == nil { + break + } + + return e.complexity.Entity.Contacts(childComplexity), true + + case "Entity.createdAt": + if e.complexity.Entity.CreatedAt == nil { + break + } + + return e.complexity.Entity.CreatedAt(childComplexity), true + + case "Entity.createdBy": + if e.complexity.Entity.CreatedBy == nil { + break + } + + return e.complexity.Entity.CreatedBy(childComplexity), true + + case "Entity.deletedAt": + if e.complexity.Entity.DeletedAt == nil { + break + } + + return e.complexity.Entity.DeletedAt(childComplexity), true + + case "Entity.deletedBy": + if e.complexity.Entity.DeletedBy == nil { + break + } + + return e.complexity.Entity.DeletedBy(childComplexity), true + + case "Entity.description": + if e.complexity.Entity.Description == nil { + break + } + + return e.complexity.Entity.Description(childComplexity), true + + case "Entity.displayName": + if e.complexity.Entity.DisplayName == nil { + break + } + + return e.complexity.Entity.DisplayName(childComplexity), true + + case "Entity.documents": + if e.complexity.Entity.Documents == nil { + break + } + + return e.complexity.Entity.Documents(childComplexity), true + + case "Entity.domains": + if e.complexity.Entity.Domains == nil { + break + } + + return e.complexity.Entity.Domains(childComplexity), true + + case "Entity.entityType": + if e.complexity.Entity.EntityType == nil { + break + } + + return e.complexity.Entity.EntityType(childComplexity), true + + case "Entity.entityTypeID": + if e.complexity.Entity.EntityTypeID == nil { + break + } + + return e.complexity.Entity.EntityTypeID(childComplexity), true + + case "Entity.files": + if e.complexity.Entity.Files == nil { + break + } + + return e.complexity.Entity.Files(childComplexity), true + + case "Entity.id": + if e.complexity.Entity.ID == nil { + break + } + + return e.complexity.Entity.ID(childComplexity), true + + case "Entity.name": + if e.complexity.Entity.Name == nil { + break + } + + return e.complexity.Entity.Name(childComplexity), true + + case "Entity.notes": + if e.complexity.Entity.Notes == nil { + break + } + + return e.complexity.Entity.Notes(childComplexity), true + + case "Entity.owner": + if e.complexity.Entity.Owner == nil { + break + } + + return e.complexity.Entity.Owner(childComplexity), true + + case "Entity.ownerID": + if e.complexity.Entity.OwnerID == nil { + break + } + + return e.complexity.Entity.OwnerID(childComplexity), true + + case "Entity.status": + if e.complexity.Entity.Status == nil { + break + } + + return e.complexity.Entity.Status(childComplexity), true + + case "Entity.tags": + if e.complexity.Entity.Tags == nil { + break + } + + return e.complexity.Entity.Tags(childComplexity), true + + case "Entity.updatedAt": + if e.complexity.Entity.UpdatedAt == nil { + break + } + + return e.complexity.Entity.UpdatedAt(childComplexity), true + + case "Entity.updatedBy": + if e.complexity.Entity.UpdatedBy == nil { + break + } + + return e.complexity.Entity.UpdatedBy(childComplexity), true + + case "EntityBulkCreatePayload.entities": + if e.complexity.EntityBulkCreatePayload.Entities == nil { + break + } + + return e.complexity.EntityBulkCreatePayload.Entities(childComplexity), true + + case "EntityConnection.edges": + if e.complexity.EntityConnection.Edges == nil { + break + } + + return e.complexity.EntityConnection.Edges(childComplexity), true + + case "EntityConnection.pageInfo": + if e.complexity.EntityConnection.PageInfo == nil { + break + } + + return e.complexity.EntityConnection.PageInfo(childComplexity), true + + case "EntityConnection.totalCount": + if e.complexity.EntityConnection.TotalCount == nil { + break + } + + return e.complexity.EntityConnection.TotalCount(childComplexity), true + + case "EntityCreatePayload.entity": + if e.complexity.EntityCreatePayload.Entity == nil { + break + } + + return e.complexity.EntityCreatePayload.Entity(childComplexity), true + + case "EntityDeletePayload.deletedID": + if e.complexity.EntityDeletePayload.DeletedID == nil { + break + } + + return e.complexity.EntityDeletePayload.DeletedID(childComplexity), true + + case "EntityEdge.cursor": + if e.complexity.EntityEdge.Cursor == nil { + break + } + + return e.complexity.EntityEdge.Cursor(childComplexity), true + + case "EntityEdge.node": + if e.complexity.EntityEdge.Node == nil { + break + } + + return e.complexity.EntityEdge.Node(childComplexity), true + + case "EntityHistory.createdAt": + if e.complexity.EntityHistory.CreatedAt == nil { + break + } + + return e.complexity.EntityHistory.CreatedAt(childComplexity), true + + case "EntityHistory.createdBy": + if e.complexity.EntityHistory.CreatedBy == nil { + break + } + + return e.complexity.EntityHistory.CreatedBy(childComplexity), true + + case "EntityHistory.deletedAt": + if e.complexity.EntityHistory.DeletedAt == nil { + break + } + + return e.complexity.EntityHistory.DeletedAt(childComplexity), true + + case "EntityHistory.deletedBy": + if e.complexity.EntityHistory.DeletedBy == nil { + break + } + + return e.complexity.EntityHistory.DeletedBy(childComplexity), true + + case "EntityHistory.description": + if e.complexity.EntityHistory.Description == nil { + break + } + + return e.complexity.EntityHistory.Description(childComplexity), true + + case "EntityHistory.displayName": + if e.complexity.EntityHistory.DisplayName == nil { + break + } + + return e.complexity.EntityHistory.DisplayName(childComplexity), true + + case "EntityHistory.domains": + if e.complexity.EntityHistory.Domains == nil { + break + } + + return e.complexity.EntityHistory.Domains(childComplexity), true + + case "EntityHistory.entityTypeID": + if e.complexity.EntityHistory.EntityTypeID == nil { + break + } + + return e.complexity.EntityHistory.EntityTypeID(childComplexity), true + + case "EntityHistory.historyTime": + if e.complexity.EntityHistory.HistoryTime == nil { + break + } + + return e.complexity.EntityHistory.HistoryTime(childComplexity), true + + case "EntityHistory.id": + if e.complexity.EntityHistory.ID == nil { + break + } + + return e.complexity.EntityHistory.ID(childComplexity), true + + case "EntityHistory.name": + if e.complexity.EntityHistory.Name == nil { + break + } + + return e.complexity.EntityHistory.Name(childComplexity), true + + case "EntityHistory.operation": + if e.complexity.EntityHistory.Operation == nil { + break + } + + return e.complexity.EntityHistory.Operation(childComplexity), true + + case "EntityHistory.ownerID": + if e.complexity.EntityHistory.OwnerID == nil { + break + } + + return e.complexity.EntityHistory.OwnerID(childComplexity), true + + case "EntityHistory.ref": + if e.complexity.EntityHistory.Ref == nil { + break + } + + return e.complexity.EntityHistory.Ref(childComplexity), true + + case "EntityHistory.status": + if e.complexity.EntityHistory.Status == nil { + break + } + + return e.complexity.EntityHistory.Status(childComplexity), true + + case "EntityHistory.tags": + if e.complexity.EntityHistory.Tags == nil { + break + } + + return e.complexity.EntityHistory.Tags(childComplexity), true + + case "EntityHistory.updatedAt": + if e.complexity.EntityHistory.UpdatedAt == nil { + break + } + + return e.complexity.EntityHistory.UpdatedAt(childComplexity), true + + case "EntityHistory.updatedBy": + if e.complexity.EntityHistory.UpdatedBy == nil { + break + } + + return e.complexity.EntityHistory.UpdatedBy(childComplexity), true + + case "EntityHistoryConnection.edges": + if e.complexity.EntityHistoryConnection.Edges == nil { + break + } + + return e.complexity.EntityHistoryConnection.Edges(childComplexity), true + + case "EntityHistoryConnection.pageInfo": + if e.complexity.EntityHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.EntityHistoryConnection.PageInfo(childComplexity), true + + case "EntityHistoryConnection.totalCount": + if e.complexity.EntityHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.EntityHistoryConnection.TotalCount(childComplexity), true + + case "EntityHistoryEdge.cursor": + if e.complexity.EntityHistoryEdge.Cursor == nil { + break + } + + return e.complexity.EntityHistoryEdge.Cursor(childComplexity), true + + case "EntityHistoryEdge.node": + if e.complexity.EntityHistoryEdge.Node == nil { + break + } + + return e.complexity.EntityHistoryEdge.Node(childComplexity), true + + case "EntitySearchResult.entities": + if e.complexity.EntitySearchResult.Entities == nil { + break + } + + return e.complexity.EntitySearchResult.Entities(childComplexity), true + + case "EntityType.createdAt": + if e.complexity.EntityType.CreatedAt == nil { + break + } + + return e.complexity.EntityType.CreatedAt(childComplexity), true + + case "EntityType.createdBy": + if e.complexity.EntityType.CreatedBy == nil { + break + } + + return e.complexity.EntityType.CreatedBy(childComplexity), true + + case "EntityType.deletedAt": + if e.complexity.EntityType.DeletedAt == nil { + break + } + + return e.complexity.EntityType.DeletedAt(childComplexity), true + + case "EntityType.deletedBy": + if e.complexity.EntityType.DeletedBy == nil { + break + } + + return e.complexity.EntityType.DeletedBy(childComplexity), true + + case "EntityType.entities": + if e.complexity.EntityType.Entities == nil { + break + } + + return e.complexity.EntityType.Entities(childComplexity), true + + case "EntityType.id": + if e.complexity.EntityType.ID == nil { + break + } + + return e.complexity.EntityType.ID(childComplexity), true + + case "EntityType.name": + if e.complexity.EntityType.Name == nil { + break + } + + return e.complexity.EntityType.Name(childComplexity), true + + case "EntityType.owner": + if e.complexity.EntityType.Owner == nil { + break + } + + return e.complexity.EntityType.Owner(childComplexity), true + + case "EntityType.ownerID": + if e.complexity.EntityType.OwnerID == nil { + break + } + + return e.complexity.EntityType.OwnerID(childComplexity), true + + case "EntityType.tags": + if e.complexity.EntityType.Tags == nil { + break + } + + return e.complexity.EntityType.Tags(childComplexity), true + + case "EntityType.updatedAt": + if e.complexity.EntityType.UpdatedAt == nil { + break + } + + return e.complexity.EntityType.UpdatedAt(childComplexity), true + + case "EntityType.updatedBy": + if e.complexity.EntityType.UpdatedBy == nil { + break + } + + return e.complexity.EntityType.UpdatedBy(childComplexity), true + + case "EntityTypeBulkCreatePayload.entityTypes": + if e.complexity.EntityTypeBulkCreatePayload.EntityTypes == nil { + break + } + + return e.complexity.EntityTypeBulkCreatePayload.EntityTypes(childComplexity), true + + case "EntityTypeConnection.edges": + if e.complexity.EntityTypeConnection.Edges == nil { + break + } + + return e.complexity.EntityTypeConnection.Edges(childComplexity), true + + case "EntityTypeConnection.pageInfo": + if e.complexity.EntityTypeConnection.PageInfo == nil { + break + } + + return e.complexity.EntityTypeConnection.PageInfo(childComplexity), true + + case "EntityTypeConnection.totalCount": + if e.complexity.EntityTypeConnection.TotalCount == nil { + break + } + + return e.complexity.EntityTypeConnection.TotalCount(childComplexity), true + + case "EntityTypeCreatePayload.entityType": + if e.complexity.EntityTypeCreatePayload.EntityType == nil { + break + } + + return e.complexity.EntityTypeCreatePayload.EntityType(childComplexity), true + + case "EntityTypeDeletePayload.deletedID": + if e.complexity.EntityTypeDeletePayload.DeletedID == nil { + break + } + + return e.complexity.EntityTypeDeletePayload.DeletedID(childComplexity), true + + case "EntityTypeEdge.cursor": + if e.complexity.EntityTypeEdge.Cursor == nil { + break + } + + return e.complexity.EntityTypeEdge.Cursor(childComplexity), true + + case "EntityTypeEdge.node": + if e.complexity.EntityTypeEdge.Node == nil { + break + } + + return e.complexity.EntityTypeEdge.Node(childComplexity), true + + case "EntityTypeHistory.createdAt": + if e.complexity.EntityTypeHistory.CreatedAt == nil { + break + } + + return e.complexity.EntityTypeHistory.CreatedAt(childComplexity), true + + case "EntityTypeHistory.createdBy": + if e.complexity.EntityTypeHistory.CreatedBy == nil { + break + } + + return e.complexity.EntityTypeHistory.CreatedBy(childComplexity), true + + case "EntityTypeHistory.deletedAt": + if e.complexity.EntityTypeHistory.DeletedAt == nil { + break + } + + return e.complexity.EntityTypeHistory.DeletedAt(childComplexity), true + + case "EntityTypeHistory.deletedBy": + if e.complexity.EntityTypeHistory.DeletedBy == nil { + break + } + + return e.complexity.EntityTypeHistory.DeletedBy(childComplexity), true + + case "EntityTypeHistory.historyTime": + if e.complexity.EntityTypeHistory.HistoryTime == nil { + break + } + + return e.complexity.EntityTypeHistory.HistoryTime(childComplexity), true + + case "EntityTypeHistory.id": + if e.complexity.EntityTypeHistory.ID == nil { + break + } + + return e.complexity.EntityTypeHistory.ID(childComplexity), true + + case "EntityTypeHistory.name": + if e.complexity.EntityTypeHistory.Name == nil { + break + } + + return e.complexity.EntityTypeHistory.Name(childComplexity), true + + case "EntityTypeHistory.operation": + if e.complexity.EntityTypeHistory.Operation == nil { + break + } + + return e.complexity.EntityTypeHistory.Operation(childComplexity), true + + case "EntityTypeHistory.ownerID": + if e.complexity.EntityTypeHistory.OwnerID == nil { + break + } + + return e.complexity.EntityTypeHistory.OwnerID(childComplexity), true + + case "EntityTypeHistory.ref": + if e.complexity.EntityTypeHistory.Ref == nil { + break + } + + return e.complexity.EntityTypeHistory.Ref(childComplexity), true + + case "EntityTypeHistory.tags": + if e.complexity.EntityTypeHistory.Tags == nil { + break + } + + return e.complexity.EntityTypeHistory.Tags(childComplexity), true + + case "EntityTypeHistory.updatedAt": + if e.complexity.EntityTypeHistory.UpdatedAt == nil { + break + } + + return e.complexity.EntityTypeHistory.UpdatedAt(childComplexity), true + + case "EntityTypeHistory.updatedBy": + if e.complexity.EntityTypeHistory.UpdatedBy == nil { + break + } + + return e.complexity.EntityTypeHistory.UpdatedBy(childComplexity), true + + case "EntityTypeHistoryConnection.edges": + if e.complexity.EntityTypeHistoryConnection.Edges == nil { + break + } + + return e.complexity.EntityTypeHistoryConnection.Edges(childComplexity), true + + case "EntityTypeHistoryConnection.pageInfo": + if e.complexity.EntityTypeHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.EntityTypeHistoryConnection.PageInfo(childComplexity), true + + case "EntityTypeHistoryConnection.totalCount": + if e.complexity.EntityTypeHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.EntityTypeHistoryConnection.TotalCount(childComplexity), true + + case "EntityTypeHistoryEdge.cursor": + if e.complexity.EntityTypeHistoryEdge.Cursor == nil { + break + } + + return e.complexity.EntityTypeHistoryEdge.Cursor(childComplexity), true + + case "EntityTypeHistoryEdge.node": + if e.complexity.EntityTypeHistoryEdge.Node == nil { + break + } + + return e.complexity.EntityTypeHistoryEdge.Node(childComplexity), true + + case "EntityTypeSearchResult.entityTypes": + if e.complexity.EntityTypeSearchResult.EntityTypes == nil { + break + } + + return e.complexity.EntityTypeSearchResult.EntityTypes(childComplexity), true + + case "EntityTypeUpdatePayload.entityType": + if e.complexity.EntityTypeUpdatePayload.EntityType == nil { + break + } + + return e.complexity.EntityTypeUpdatePayload.EntityType(childComplexity), true + + case "EntityUpdatePayload.entity": + if e.complexity.EntityUpdatePayload.Entity == nil { + break + } + + return e.complexity.EntityUpdatePayload.Entity(childComplexity), true + + case "Event.correlationID": + if e.complexity.Event.CorrelationID == nil { + break + } + + return e.complexity.Event.CorrelationID(childComplexity), true + + case "Event.createdAt": + if e.complexity.Event.CreatedAt == nil { + break + } + + return e.complexity.Event.CreatedAt(childComplexity), true + + case "Event.createdBy": + if e.complexity.Event.CreatedBy == nil { + break + } + + return e.complexity.Event.CreatedBy(childComplexity), true + + case "Event.eventID": + if e.complexity.Event.EventID == nil { + break + } + + return e.complexity.Event.EventID(childComplexity), true + + case "Event.eventType": + if e.complexity.Event.EventType == nil { + break + } + + return e.complexity.Event.EventType(childComplexity), true + + case "Event.file": + if e.complexity.Event.File == nil { + break + } + + return e.complexity.Event.File(childComplexity), true + + case "Event.group": + if e.complexity.Event.Group == nil { + break + } + + return e.complexity.Event.Group(childComplexity), true + + case "Event.groupmembership": + if e.complexity.Event.Groupmembership == nil { + break + } + + return e.complexity.Event.Groupmembership(childComplexity), true + + case "Event.hush": + if e.complexity.Event.Hush == nil { + break + } + + return e.complexity.Event.Hush(childComplexity), true + + case "Event.id": + if e.complexity.Event.ID == nil { + break + } + + return e.complexity.Event.ID(childComplexity), true + + case "Event.integration": + if e.complexity.Event.Integration == nil { + break + } + + return e.complexity.Event.Integration(childComplexity), true + + case "Event.invite": + if e.complexity.Event.Invite == nil { + break + } + + return e.complexity.Event.Invite(childComplexity), true + + case "Event.metadata": + if e.complexity.Event.Metadata == nil { + break + } + + return e.complexity.Event.Metadata(childComplexity), true + + case "Event.organization": + if e.complexity.Event.Organization == nil { + break + } + + return e.complexity.Event.Organization(childComplexity), true + + case "Event.orgmembership": + if e.complexity.Event.Orgmembership == nil { + break + } + + return e.complexity.Event.Orgmembership(childComplexity), true + + case "Event.personalAccessToken": + if e.complexity.Event.PersonalAccessToken == nil { + break + } + + return e.complexity.Event.PersonalAccessToken(childComplexity), true + + case "Event.subscriber": + if e.complexity.Event.Subscriber == nil { + break + } + + return e.complexity.Event.Subscriber(childComplexity), true + + case "Event.tags": + if e.complexity.Event.Tags == nil { + break + } + + return e.complexity.Event.Tags(childComplexity), true + + case "Event.updatedAt": + if e.complexity.Event.UpdatedAt == nil { + break + } + + return e.complexity.Event.UpdatedAt(childComplexity), true + + case "Event.updatedBy": + if e.complexity.Event.UpdatedBy == nil { + break + } + + return e.complexity.Event.UpdatedBy(childComplexity), true + + case "Event.user": + if e.complexity.Event.User == nil { + break + } + + return e.complexity.Event.User(childComplexity), true + + case "EventBulkCreatePayload.events": + if e.complexity.EventBulkCreatePayload.Events == nil { + break + } + + return e.complexity.EventBulkCreatePayload.Events(childComplexity), true + + case "EventConnection.edges": + if e.complexity.EventConnection.Edges == nil { + break + } + + return e.complexity.EventConnection.Edges(childComplexity), true + + case "EventConnection.pageInfo": + if e.complexity.EventConnection.PageInfo == nil { + break + } + + return e.complexity.EventConnection.PageInfo(childComplexity), true + + case "EventConnection.totalCount": + if e.complexity.EventConnection.TotalCount == nil { + break + } + + return e.complexity.EventConnection.TotalCount(childComplexity), true + + case "EventCreatePayload.event": + if e.complexity.EventCreatePayload.Event == nil { + break + } + + return e.complexity.EventCreatePayload.Event(childComplexity), true + + case "EventDeletePayload.deletedID": + if e.complexity.EventDeletePayload.DeletedID == nil { + break + } + + return e.complexity.EventDeletePayload.DeletedID(childComplexity), true + + case "EventEdge.cursor": + if e.complexity.EventEdge.Cursor == nil { + break + } + + return e.complexity.EventEdge.Cursor(childComplexity), true + + case "EventEdge.node": + if e.complexity.EventEdge.Node == nil { + break + } + + return e.complexity.EventEdge.Node(childComplexity), true + + case "EventHistory.correlationID": + if e.complexity.EventHistory.CorrelationID == nil { + break + } + + return e.complexity.EventHistory.CorrelationID(childComplexity), true + + case "EventHistory.createdAt": + if e.complexity.EventHistory.CreatedAt == nil { + break + } + + return e.complexity.EventHistory.CreatedAt(childComplexity), true + + case "EventHistory.createdBy": + if e.complexity.EventHistory.CreatedBy == nil { + break + } + + return e.complexity.EventHistory.CreatedBy(childComplexity), true + + case "EventHistory.eventID": + if e.complexity.EventHistory.EventID == nil { + break + } + + return e.complexity.EventHistory.EventID(childComplexity), true + + case "EventHistory.eventType": + if e.complexity.EventHistory.EventType == nil { + break + } + + return e.complexity.EventHistory.EventType(childComplexity), true + + case "EventHistory.historyTime": + if e.complexity.EventHistory.HistoryTime == nil { + break + } + + return e.complexity.EventHistory.HistoryTime(childComplexity), true + + case "EventHistory.id": + if e.complexity.EventHistory.ID == nil { + break + } + + return e.complexity.EventHistory.ID(childComplexity), true + + case "EventHistory.metadata": + if e.complexity.EventHistory.Metadata == nil { + break + } + + return e.complexity.EventHistory.Metadata(childComplexity), true + + case "EventHistory.operation": + if e.complexity.EventHistory.Operation == nil { + break + } + + return e.complexity.EventHistory.Operation(childComplexity), true + + case "EventHistory.ref": + if e.complexity.EventHistory.Ref == nil { + break + } + + return e.complexity.EventHistory.Ref(childComplexity), true + + case "EventHistory.tags": + if e.complexity.EventHistory.Tags == nil { + break + } + + return e.complexity.EventHistory.Tags(childComplexity), true + + case "EventHistory.updatedAt": + if e.complexity.EventHistory.UpdatedAt == nil { + break + } + + return e.complexity.EventHistory.UpdatedAt(childComplexity), true + + case "EventHistory.updatedBy": + if e.complexity.EventHistory.UpdatedBy == nil { + break + } + + return e.complexity.EventHistory.UpdatedBy(childComplexity), true + + case "EventHistoryConnection.edges": + if e.complexity.EventHistoryConnection.Edges == nil { + break + } + + return e.complexity.EventHistoryConnection.Edges(childComplexity), true + + case "EventHistoryConnection.pageInfo": + if e.complexity.EventHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.EventHistoryConnection.PageInfo(childComplexity), true + + case "EventHistoryConnection.totalCount": + if e.complexity.EventHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.EventHistoryConnection.TotalCount(childComplexity), true + + case "EventHistoryEdge.cursor": + if e.complexity.EventHistoryEdge.Cursor == nil { + break + } + + return e.complexity.EventHistoryEdge.Cursor(childComplexity), true + + case "EventHistoryEdge.node": + if e.complexity.EventHistoryEdge.Node == nil { + break + } + + return e.complexity.EventHistoryEdge.Node(childComplexity), true + + case "EventSearchResult.events": + if e.complexity.EventSearchResult.Events == nil { + break + } + + return e.complexity.EventSearchResult.Events(childComplexity), true + + case "EventUpdatePayload.event": + if e.complexity.EventUpdatePayload.Event == nil { + break + } + + return e.complexity.EventUpdatePayload.Event(childComplexity), true + + case "File.categoryType": + if e.complexity.File.CategoryType == nil { + break + } + + return e.complexity.File.CategoryType(childComplexity), true + + case "File.contact": + if e.complexity.File.Contact == nil { + break + } + + return e.complexity.File.Contact(childComplexity), true + + case "File.createdAt": + if e.complexity.File.CreatedAt == nil { + break + } + + return e.complexity.File.CreatedAt(childComplexity), true + + case "File.createdBy": + if e.complexity.File.CreatedBy == nil { + break + } + + return e.complexity.File.CreatedBy(childComplexity), true + + case "File.deletedAt": + if e.complexity.File.DeletedAt == nil { + break + } + + return e.complexity.File.DeletedAt(childComplexity), true + + case "File.deletedBy": + if e.complexity.File.DeletedBy == nil { + break + } + + return e.complexity.File.DeletedBy(childComplexity), true + + case "File.detectedContentType": + if e.complexity.File.DetectedContentType == nil { + break + } + + return e.complexity.File.DetectedContentType(childComplexity), true + + case "File.detectedMimeType": + if e.complexity.File.DetectedMimeType == nil { + break + } + + return e.complexity.File.DetectedMimeType(childComplexity), true + + case "File.documentData": + if e.complexity.File.DocumentData == nil { + break + } + + return e.complexity.File.DocumentData(childComplexity), true + + case "File.entity": + if e.complexity.File.Entity == nil { + break + } + + return e.complexity.File.Entity(childComplexity), true + + case "File.events": + if e.complexity.File.Events == nil { + break + } + + return e.complexity.File.Events(childComplexity), true + + case "File.group": + if e.complexity.File.Group == nil { + break + } + + return e.complexity.File.Group(childComplexity), true + + case "File.id": + if e.complexity.File.ID == nil { + break + } + + return e.complexity.File.ID(childComplexity), true + + case "File.md5Hash": + if e.complexity.File.Md5Hash == nil { + break + } + + return e.complexity.File.Md5Hash(childComplexity), true + + case "File.organization": + if e.complexity.File.Organization == nil { + break + } + + return e.complexity.File.Organization(childComplexity), true + + case "File.organizationSetting": + if e.complexity.File.OrganizationSetting == nil { + break + } + + return e.complexity.File.OrganizationSetting(childComplexity), true + + case "File.persistedFileSize": + if e.complexity.File.PersistedFileSize == nil { + break + } + + return e.complexity.File.PersistedFileSize(childComplexity), true + + case "File.program": + if e.complexity.File.Program == nil { + break + } + + return e.complexity.File.Program(childComplexity), true + + case "File.providedFileExtension": + if e.complexity.File.ProvidedFileExtension == nil { + break + } + + return e.complexity.File.ProvidedFileExtension(childComplexity), true + + case "File.providedFileName": + if e.complexity.File.ProvidedFileName == nil { + break + } + + return e.complexity.File.ProvidedFileName(childComplexity), true + + case "File.providedFileSize": + if e.complexity.File.ProvidedFileSize == nil { + break + } + + return e.complexity.File.ProvidedFileSize(childComplexity), true + + case "File.storagePath": + if e.complexity.File.StoragePath == nil { + break + } + + return e.complexity.File.StoragePath(childComplexity), true + + case "File.storageScheme": + if e.complexity.File.StorageScheme == nil { + break + } + + return e.complexity.File.StorageScheme(childComplexity), true + + case "File.storageVolume": + if e.complexity.File.StorageVolume == nil { + break + } + + return e.complexity.File.StorageVolume(childComplexity), true + + case "File.storeKey": + if e.complexity.File.StoreKey == nil { + break + } + + return e.complexity.File.StoreKey(childComplexity), true + + case "File.tags": + if e.complexity.File.Tags == nil { + break + } + + return e.complexity.File.Tags(childComplexity), true + + case "File.template": + if e.complexity.File.Template == nil { + break + } + + return e.complexity.File.Template(childComplexity), true + + case "File.uri": + if e.complexity.File.URI == nil { + break + } + + return e.complexity.File.URI(childComplexity), true + + case "File.updatedAt": + if e.complexity.File.UpdatedAt == nil { + break + } + + return e.complexity.File.UpdatedAt(childComplexity), true + + case "File.updatedBy": + if e.complexity.File.UpdatedBy == nil { + break + } + + return e.complexity.File.UpdatedBy(childComplexity), true + + case "File.user": + if e.complexity.File.User == nil { + break + } + + return e.complexity.File.User(childComplexity), true + + case "File.userSetting": + if e.complexity.File.UserSetting == nil { + break + } + + return e.complexity.File.UserSetting(childComplexity), true + + case "FileConnection.edges": + if e.complexity.FileConnection.Edges == nil { + break + } + + return e.complexity.FileConnection.Edges(childComplexity), true + + case "FileConnection.pageInfo": + if e.complexity.FileConnection.PageInfo == nil { + break + } + + return e.complexity.FileConnection.PageInfo(childComplexity), true + + case "FileConnection.totalCount": + if e.complexity.FileConnection.TotalCount == nil { + break + } + + return e.complexity.FileConnection.TotalCount(childComplexity), true + + case "FileDeletePayload.deletedID": + if e.complexity.FileDeletePayload.DeletedID == nil { + break + } + + return e.complexity.FileDeletePayload.DeletedID(childComplexity), true + + case "FileEdge.cursor": + if e.complexity.FileEdge.Cursor == nil { + break + } + + return e.complexity.FileEdge.Cursor(childComplexity), true + + case "FileEdge.node": + if e.complexity.FileEdge.Node == nil { + break + } + + return e.complexity.FileEdge.Node(childComplexity), true + + case "FileHistory.categoryType": + if e.complexity.FileHistory.CategoryType == nil { + break + } + + return e.complexity.FileHistory.CategoryType(childComplexity), true + + case "FileHistory.createdAt": + if e.complexity.FileHistory.CreatedAt == nil { + break + } + + return e.complexity.FileHistory.CreatedAt(childComplexity), true + + case "FileHistory.createdBy": + if e.complexity.FileHistory.CreatedBy == nil { + break + } + + return e.complexity.FileHistory.CreatedBy(childComplexity), true + + case "FileHistory.deletedAt": + if e.complexity.FileHistory.DeletedAt == nil { + break + } + + return e.complexity.FileHistory.DeletedAt(childComplexity), true + + case "FileHistory.deletedBy": + if e.complexity.FileHistory.DeletedBy == nil { + break + } + + return e.complexity.FileHistory.DeletedBy(childComplexity), true + + case "FileHistory.detectedContentType": + if e.complexity.FileHistory.DetectedContentType == nil { + break + } + + return e.complexity.FileHistory.DetectedContentType(childComplexity), true + + case "FileHistory.detectedMimeType": + if e.complexity.FileHistory.DetectedMimeType == nil { + break + } + + return e.complexity.FileHistory.DetectedMimeType(childComplexity), true + + case "FileHistory.historyTime": + if e.complexity.FileHistory.HistoryTime == nil { + break + } + + return e.complexity.FileHistory.HistoryTime(childComplexity), true + + case "FileHistory.id": + if e.complexity.FileHistory.ID == nil { + break + } + + return e.complexity.FileHistory.ID(childComplexity), true + + case "FileHistory.md5Hash": + if e.complexity.FileHistory.Md5Hash == nil { + break + } + + return e.complexity.FileHistory.Md5Hash(childComplexity), true + + case "FileHistory.operation": + if e.complexity.FileHistory.Operation == nil { + break + } + + return e.complexity.FileHistory.Operation(childComplexity), true + + case "FileHistory.persistedFileSize": + if e.complexity.FileHistory.PersistedFileSize == nil { + break + } + + return e.complexity.FileHistory.PersistedFileSize(childComplexity), true + + case "FileHistory.providedFileExtension": + if e.complexity.FileHistory.ProvidedFileExtension == nil { + break + } + + return e.complexity.FileHistory.ProvidedFileExtension(childComplexity), true + + case "FileHistory.providedFileName": + if e.complexity.FileHistory.ProvidedFileName == nil { + break + } + + return e.complexity.FileHistory.ProvidedFileName(childComplexity), true + + case "FileHistory.providedFileSize": + if e.complexity.FileHistory.ProvidedFileSize == nil { + break + } + + return e.complexity.FileHistory.ProvidedFileSize(childComplexity), true + + case "FileHistory.ref": + if e.complexity.FileHistory.Ref == nil { + break + } + + return e.complexity.FileHistory.Ref(childComplexity), true + + case "FileHistory.storagePath": + if e.complexity.FileHistory.StoragePath == nil { + break + } + + return e.complexity.FileHistory.StoragePath(childComplexity), true + + case "FileHistory.storageScheme": + if e.complexity.FileHistory.StorageScheme == nil { + break + } + + return e.complexity.FileHistory.StorageScheme(childComplexity), true + + case "FileHistory.storageVolume": + if e.complexity.FileHistory.StorageVolume == nil { + break + } + + return e.complexity.FileHistory.StorageVolume(childComplexity), true + + case "FileHistory.storeKey": + if e.complexity.FileHistory.StoreKey == nil { + break + } + + return e.complexity.FileHistory.StoreKey(childComplexity), true + + case "FileHistory.tags": + if e.complexity.FileHistory.Tags == nil { + break + } + + return e.complexity.FileHistory.Tags(childComplexity), true + + case "FileHistory.uri": + if e.complexity.FileHistory.URI == nil { + break + } + + return e.complexity.FileHistory.URI(childComplexity), true + + case "FileHistory.updatedAt": + if e.complexity.FileHistory.UpdatedAt == nil { + break + } + + return e.complexity.FileHistory.UpdatedAt(childComplexity), true + + case "FileHistory.updatedBy": + if e.complexity.FileHistory.UpdatedBy == nil { + break + } + + return e.complexity.FileHistory.UpdatedBy(childComplexity), true + + case "FileHistoryConnection.edges": + if e.complexity.FileHistoryConnection.Edges == nil { + break + } + + return e.complexity.FileHistoryConnection.Edges(childComplexity), true + + case "FileHistoryConnection.pageInfo": + if e.complexity.FileHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.FileHistoryConnection.PageInfo(childComplexity), true + + case "FileHistoryConnection.totalCount": + if e.complexity.FileHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.FileHistoryConnection.TotalCount(childComplexity), true + + case "FileHistoryEdge.cursor": + if e.complexity.FileHistoryEdge.Cursor == nil { + break + } + + return e.complexity.FileHistoryEdge.Cursor(childComplexity), true + + case "FileHistoryEdge.node": + if e.complexity.FileHistoryEdge.Node == nil { + break + } + + return e.complexity.FileHistoryEdge.Node(childComplexity), true + + case "FileSearchResult.files": + if e.complexity.FileSearchResult.Files == nil { + break + } + + return e.complexity.FileSearchResult.Files(childComplexity), true + + case "Group.controlBlockedGroups": + if e.complexity.Group.ControlBlockedGroups == nil { + break + } + + return e.complexity.Group.ControlBlockedGroups(childComplexity), true + + case "Group.controlCreators": + if e.complexity.Group.ControlCreators == nil { + break + } + + return e.complexity.Group.ControlCreators(childComplexity), true + + case "Group.controlEditors": + if e.complexity.Group.ControlEditors == nil { + break + } + + return e.complexity.Group.ControlEditors(childComplexity), true + + case "Group.controlObjectiveBlockedGroups": + if e.complexity.Group.ControlObjectiveBlockedGroups == nil { + break + } + + return e.complexity.Group.ControlObjectiveBlockedGroups(childComplexity), true + + case "Group.controlObjectiveCreators": + if e.complexity.Group.ControlObjectiveCreators == nil { + break + } + + return e.complexity.Group.ControlObjectiveCreators(childComplexity), true + + case "Group.controlObjectiveEditors": + if e.complexity.Group.ControlObjectiveEditors == nil { + break + } + + return e.complexity.Group.ControlObjectiveEditors(childComplexity), true + + case "Group.controlObjectiveViewers": + if e.complexity.Group.ControlObjectiveViewers == nil { + break + } + + return e.complexity.Group.ControlObjectiveViewers(childComplexity), true + + case "Group.controlViewers": + if e.complexity.Group.ControlViewers == nil { + break + } + + return e.complexity.Group.ControlViewers(childComplexity), true + + case "Group.createdAt": + if e.complexity.Group.CreatedAt == nil { + break + } + + return e.complexity.Group.CreatedAt(childComplexity), true + + case "Group.createdBy": + if e.complexity.Group.CreatedBy == nil { + break + } + + return e.complexity.Group.CreatedBy(childComplexity), true + + case "Group.deletedAt": + if e.complexity.Group.DeletedAt == nil { + break + } + + return e.complexity.Group.DeletedAt(childComplexity), true + + case "Group.deletedBy": + if e.complexity.Group.DeletedBy == nil { + break + } + + return e.complexity.Group.DeletedBy(childComplexity), true + + case "Group.description": + if e.complexity.Group.Description == nil { + break + } + + return e.complexity.Group.Description(childComplexity), true + + case "Group.displayName": + if e.complexity.Group.DisplayName == nil { + break + } + + return e.complexity.Group.DisplayName(childComplexity), true + + case "Group.events": + if e.complexity.Group.Events == nil { + break + } + + return e.complexity.Group.Events(childComplexity), true + + case "Group.files": + if e.complexity.Group.Files == nil { + break + } + + return e.complexity.Group.Files(childComplexity), true + + case "Group.gravatarLogoURL": + if e.complexity.Group.GravatarLogoURL == nil { + break + } + + return e.complexity.Group.GravatarLogoURL(childComplexity), true + + case "Group.groupCreators": + if e.complexity.Group.GroupCreators == nil { + break + } + + return e.complexity.Group.GroupCreators(childComplexity), true + + case "Group.id": + if e.complexity.Group.ID == nil { + break + } + + return e.complexity.Group.ID(childComplexity), true + + case "Group.integrations": + if e.complexity.Group.Integrations == nil { + break + } + + return e.complexity.Group.Integrations(childComplexity), true + + case "Group.internalPolicyBlockedGroups": + if e.complexity.Group.InternalPolicyBlockedGroups == nil { + break + } + + return e.complexity.Group.InternalPolicyBlockedGroups(childComplexity), true + + case "Group.internalPolicyCreators": + if e.complexity.Group.InternalPolicyCreators == nil { + break + } + + return e.complexity.Group.InternalPolicyCreators(childComplexity), true + + case "Group.internalPolicyEditors": + if e.complexity.Group.InternalPolicyEditors == nil { + break + } + + return e.complexity.Group.InternalPolicyEditors(childComplexity), true + + case "Group.logoURL": + if e.complexity.Group.LogoURL == nil { + break + } + + return e.complexity.Group.LogoURL(childComplexity), true + + case "Group.members": + if e.complexity.Group.Members == nil { + break + } + + return e.complexity.Group.Members(childComplexity), true + + case "Group.name": + if e.complexity.Group.Name == nil { + break + } + + return e.complexity.Group.Name(childComplexity), true + + case "Group.narrativeBlockedGroups": + if e.complexity.Group.NarrativeBlockedGroups == nil { + break + } + + return e.complexity.Group.NarrativeBlockedGroups(childComplexity), true + + case "Group.narrativeCreators": + if e.complexity.Group.NarrativeCreators == nil { + break + } + + return e.complexity.Group.NarrativeCreators(childComplexity), true + + case "Group.narrativeEditors": + if e.complexity.Group.NarrativeEditors == nil { + break + } + + return e.complexity.Group.NarrativeEditors(childComplexity), true + + case "Group.narrativeViewers": + if e.complexity.Group.NarrativeViewers == nil { + break + } + + return e.complexity.Group.NarrativeViewers(childComplexity), true + + case "Group.owner": + if e.complexity.Group.Owner == nil { + break + } + + return e.complexity.Group.Owner(childComplexity), true + + case "Group.ownerID": + if e.complexity.Group.OwnerID == nil { + break + } + + return e.complexity.Group.OwnerID(childComplexity), true + + case "Group.procedureBlockedGroups": + if e.complexity.Group.ProcedureBlockedGroups == nil { + break + } + + return e.complexity.Group.ProcedureBlockedGroups(childComplexity), true + + case "Group.procedureCreators": + if e.complexity.Group.ProcedureCreators == nil { + break + } + + return e.complexity.Group.ProcedureCreators(childComplexity), true + + case "Group.procedureEditors": + if e.complexity.Group.ProcedureEditors == nil { + break + } + + return e.complexity.Group.ProcedureEditors(childComplexity), true + + case "Group.programBlockedGroups": + if e.complexity.Group.ProgramBlockedGroups == nil { + break + } + + return e.complexity.Group.ProgramBlockedGroups(childComplexity), true + + case "Group.programCreators": + if e.complexity.Group.ProgramCreators == nil { + break + } + + return e.complexity.Group.ProgramCreators(childComplexity), true + + case "Group.programEditors": + if e.complexity.Group.ProgramEditors == nil { + break + } + + return e.complexity.Group.ProgramEditors(childComplexity), true + + case "Group.programViewers": + if e.complexity.Group.ProgramViewers == nil { + break + } + + return e.complexity.Group.ProgramViewers(childComplexity), true + + case "Group.riskBlockedGroups": + if e.complexity.Group.RiskBlockedGroups == nil { + break + } + + return e.complexity.Group.RiskBlockedGroups(childComplexity), true + + case "Group.riskCreators": + if e.complexity.Group.RiskCreators == nil { + break + } + + return e.complexity.Group.RiskCreators(childComplexity), true + + case "Group.riskEditors": + if e.complexity.Group.RiskEditors == nil { + break + } + + return e.complexity.Group.RiskEditors(childComplexity), true + + case "Group.riskViewers": + if e.complexity.Group.RiskViewers == nil { + break + } + + return e.complexity.Group.RiskViewers(childComplexity), true + + case "Group.setting": + if e.complexity.Group.Setting == nil { + break + } + + return e.complexity.Group.Setting(childComplexity), true + + case "Group.tags": + if e.complexity.Group.Tags == nil { + break + } + + return e.complexity.Group.Tags(childComplexity), true + + case "Group.tasks": + if e.complexity.Group.Tasks == nil { + break + } + + return e.complexity.Group.Tasks(childComplexity), true + + case "Group.templateCreators": + if e.complexity.Group.TemplateCreators == nil { + break + } + + return e.complexity.Group.TemplateCreators(childComplexity), true + + case "Group.updatedAt": + if e.complexity.Group.UpdatedAt == nil { + break + } + + return e.complexity.Group.UpdatedAt(childComplexity), true + + case "Group.updatedBy": + if e.complexity.Group.UpdatedBy == nil { + break + } + + return e.complexity.Group.UpdatedBy(childComplexity), true + + case "Group.users": + if e.complexity.Group.Users == nil { + break + } + + return e.complexity.Group.Users(childComplexity), true + + case "GroupBulkCreatePayload.groups": + if e.complexity.GroupBulkCreatePayload.Groups == nil { + break + } + + return e.complexity.GroupBulkCreatePayload.Groups(childComplexity), true + + case "GroupConnection.edges": + if e.complexity.GroupConnection.Edges == nil { + break + } + + return e.complexity.GroupConnection.Edges(childComplexity), true + + case "GroupConnection.pageInfo": + if e.complexity.GroupConnection.PageInfo == nil { + break + } + + return e.complexity.GroupConnection.PageInfo(childComplexity), true + + case "GroupConnection.totalCount": + if e.complexity.GroupConnection.TotalCount == nil { + break + } + + return e.complexity.GroupConnection.TotalCount(childComplexity), true + + case "GroupCreatePayload.group": + if e.complexity.GroupCreatePayload.Group == nil { + break + } + + return e.complexity.GroupCreatePayload.Group(childComplexity), true + + case "GroupDeletePayload.deletedID": + if e.complexity.GroupDeletePayload.DeletedID == nil { + break + } + + return e.complexity.GroupDeletePayload.DeletedID(childComplexity), true + + case "GroupEdge.cursor": + if e.complexity.GroupEdge.Cursor == nil { + break + } + + return e.complexity.GroupEdge.Cursor(childComplexity), true + + case "GroupEdge.node": + if e.complexity.GroupEdge.Node == nil { + break + } + + return e.complexity.GroupEdge.Node(childComplexity), true + + case "GroupHistory.createdAt": + if e.complexity.GroupHistory.CreatedAt == nil { + break + } + + return e.complexity.GroupHistory.CreatedAt(childComplexity), true + + case "GroupHistory.createdBy": + if e.complexity.GroupHistory.CreatedBy == nil { + break + } + + return e.complexity.GroupHistory.CreatedBy(childComplexity), true + + case "GroupHistory.deletedAt": + if e.complexity.GroupHistory.DeletedAt == nil { + break + } + + return e.complexity.GroupHistory.DeletedAt(childComplexity), true + + case "GroupHistory.deletedBy": + if e.complexity.GroupHistory.DeletedBy == nil { + break + } + + return e.complexity.GroupHistory.DeletedBy(childComplexity), true + + case "GroupHistory.description": + if e.complexity.GroupHistory.Description == nil { + break + } + + return e.complexity.GroupHistory.Description(childComplexity), true + + case "GroupHistory.displayName": + if e.complexity.GroupHistory.DisplayName == nil { + break + } + + return e.complexity.GroupHistory.DisplayName(childComplexity), true + + case "GroupHistory.gravatarLogoURL": + if e.complexity.GroupHistory.GravatarLogoURL == nil { + break + } + + return e.complexity.GroupHistory.GravatarLogoURL(childComplexity), true + + case "GroupHistory.historyTime": + if e.complexity.GroupHistory.HistoryTime == nil { + break + } + + return e.complexity.GroupHistory.HistoryTime(childComplexity), true + + case "GroupHistory.id": + if e.complexity.GroupHistory.ID == nil { + break + } + + return e.complexity.GroupHistory.ID(childComplexity), true + + case "GroupHistory.logoURL": + if e.complexity.GroupHistory.LogoURL == nil { + break + } + + return e.complexity.GroupHistory.LogoURL(childComplexity), true + + case "GroupHistory.name": + if e.complexity.GroupHistory.Name == nil { + break + } + + return e.complexity.GroupHistory.Name(childComplexity), true + + case "GroupHistory.operation": + if e.complexity.GroupHistory.Operation == nil { + break + } + + return e.complexity.GroupHistory.Operation(childComplexity), true + + case "GroupHistory.ownerID": + if e.complexity.GroupHistory.OwnerID == nil { + break + } + + return e.complexity.GroupHistory.OwnerID(childComplexity), true + + case "GroupHistory.ref": + if e.complexity.GroupHistory.Ref == nil { + break + } + + return e.complexity.GroupHistory.Ref(childComplexity), true + + case "GroupHistory.tags": + if e.complexity.GroupHistory.Tags == nil { + break + } + + return e.complexity.GroupHistory.Tags(childComplexity), true + + case "GroupHistory.updatedAt": + if e.complexity.GroupHistory.UpdatedAt == nil { + break + } + + return e.complexity.GroupHistory.UpdatedAt(childComplexity), true + + case "GroupHistory.updatedBy": + if e.complexity.GroupHistory.UpdatedBy == nil { + break + } + + return e.complexity.GroupHistory.UpdatedBy(childComplexity), true + + case "GroupHistoryConnection.edges": + if e.complexity.GroupHistoryConnection.Edges == nil { + break + } + + return e.complexity.GroupHistoryConnection.Edges(childComplexity), true + + case "GroupHistoryConnection.pageInfo": + if e.complexity.GroupHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.GroupHistoryConnection.PageInfo(childComplexity), true + + case "GroupHistoryConnection.totalCount": + if e.complexity.GroupHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.GroupHistoryConnection.TotalCount(childComplexity), true + + case "GroupHistoryEdge.cursor": + if e.complexity.GroupHistoryEdge.Cursor == nil { + break + } + + return e.complexity.GroupHistoryEdge.Cursor(childComplexity), true + + case "GroupHistoryEdge.node": + if e.complexity.GroupHistoryEdge.Node == nil { + break + } + + return e.complexity.GroupHistoryEdge.Node(childComplexity), true + + case "GroupMembership.createdAt": + if e.complexity.GroupMembership.CreatedAt == nil { + break + } + + return e.complexity.GroupMembership.CreatedAt(childComplexity), true + + case "GroupMembership.createdBy": + if e.complexity.GroupMembership.CreatedBy == nil { + break + } + + return e.complexity.GroupMembership.CreatedBy(childComplexity), true + + case "GroupMembership.deletedAt": + if e.complexity.GroupMembership.DeletedAt == nil { + break + } + + return e.complexity.GroupMembership.DeletedAt(childComplexity), true + + case "GroupMembership.deletedBy": + if e.complexity.GroupMembership.DeletedBy == nil { + break + } + + return e.complexity.GroupMembership.DeletedBy(childComplexity), true + + case "GroupMembership.events": + if e.complexity.GroupMembership.Events == nil { + break + } + + return e.complexity.GroupMembership.Events(childComplexity), true + + case "GroupMembership.group": + if e.complexity.GroupMembership.Group == nil { + break + } + + return e.complexity.GroupMembership.Group(childComplexity), true + + case "GroupMembership.groupID": + if e.complexity.GroupMembership.GroupID == nil { + break + } + + return e.complexity.GroupMembership.GroupID(childComplexity), true + + case "GroupMembership.id": + if e.complexity.GroupMembership.ID == nil { + break + } + + return e.complexity.GroupMembership.ID(childComplexity), true + + case "GroupMembership.role": + if e.complexity.GroupMembership.Role == nil { + break + } + + return e.complexity.GroupMembership.Role(childComplexity), true + + case "GroupMembership.updatedAt": + if e.complexity.GroupMembership.UpdatedAt == nil { + break + } + + return e.complexity.GroupMembership.UpdatedAt(childComplexity), true + + case "GroupMembership.updatedBy": + if e.complexity.GroupMembership.UpdatedBy == nil { + break + } + + return e.complexity.GroupMembership.UpdatedBy(childComplexity), true + + case "GroupMembership.user": + if e.complexity.GroupMembership.User == nil { + break + } + + return e.complexity.GroupMembership.User(childComplexity), true + + case "GroupMembership.userID": + if e.complexity.GroupMembership.UserID == nil { + break + } + + return e.complexity.GroupMembership.UserID(childComplexity), true + + case "GroupMembershipBulkCreatePayload.groupMemberships": + if e.complexity.GroupMembershipBulkCreatePayload.GroupMemberships == nil { + break + } + + return e.complexity.GroupMembershipBulkCreatePayload.GroupMemberships(childComplexity), true + + case "GroupMembershipConnection.edges": + if e.complexity.GroupMembershipConnection.Edges == nil { + break + } + + return e.complexity.GroupMembershipConnection.Edges(childComplexity), true + + case "GroupMembershipConnection.pageInfo": + if e.complexity.GroupMembershipConnection.PageInfo == nil { + break + } + + return e.complexity.GroupMembershipConnection.PageInfo(childComplexity), true + + case "GroupMembershipConnection.totalCount": + if e.complexity.GroupMembershipConnection.TotalCount == nil { + break + } + + return e.complexity.GroupMembershipConnection.TotalCount(childComplexity), true + + case "GroupMembershipCreatePayload.groupMembership": + if e.complexity.GroupMembershipCreatePayload.GroupMembership == nil { + break + } + + return e.complexity.GroupMembershipCreatePayload.GroupMembership(childComplexity), true + + case "GroupMembershipDeletePayload.deletedID": + if e.complexity.GroupMembershipDeletePayload.DeletedID == nil { + break + } + + return e.complexity.GroupMembershipDeletePayload.DeletedID(childComplexity), true + + case "GroupMembershipEdge.cursor": + if e.complexity.GroupMembershipEdge.Cursor == nil { + break + } + + return e.complexity.GroupMembershipEdge.Cursor(childComplexity), true + + case "GroupMembershipEdge.node": + if e.complexity.GroupMembershipEdge.Node == nil { + break + } + + return e.complexity.GroupMembershipEdge.Node(childComplexity), true + + case "GroupMembershipHistory.createdAt": + if e.complexity.GroupMembershipHistory.CreatedAt == nil { + break + } + + return e.complexity.GroupMembershipHistory.CreatedAt(childComplexity), true + + case "GroupMembershipHistory.createdBy": + if e.complexity.GroupMembershipHistory.CreatedBy == nil { + break + } + + return e.complexity.GroupMembershipHistory.CreatedBy(childComplexity), true + + case "GroupMembershipHistory.deletedAt": + if e.complexity.GroupMembershipHistory.DeletedAt == nil { + break + } + + return e.complexity.GroupMembershipHistory.DeletedAt(childComplexity), true + + case "GroupMembershipHistory.deletedBy": + if e.complexity.GroupMembershipHistory.DeletedBy == nil { + break + } + + return e.complexity.GroupMembershipHistory.DeletedBy(childComplexity), true + + case "GroupMembershipHistory.groupID": + if e.complexity.GroupMembershipHistory.GroupID == nil { + break + } + + return e.complexity.GroupMembershipHistory.GroupID(childComplexity), true + + case "GroupMembershipHistory.historyTime": + if e.complexity.GroupMembershipHistory.HistoryTime == nil { + break + } + + return e.complexity.GroupMembershipHistory.HistoryTime(childComplexity), true + + case "GroupMembershipHistory.id": + if e.complexity.GroupMembershipHistory.ID == nil { + break + } + + return e.complexity.GroupMembershipHistory.ID(childComplexity), true + + case "GroupMembershipHistory.operation": + if e.complexity.GroupMembershipHistory.Operation == nil { + break + } + + return e.complexity.GroupMembershipHistory.Operation(childComplexity), true + + case "GroupMembershipHistory.ref": + if e.complexity.GroupMembershipHistory.Ref == nil { + break + } + + return e.complexity.GroupMembershipHistory.Ref(childComplexity), true + + case "GroupMembershipHistory.role": + if e.complexity.GroupMembershipHistory.Role == nil { + break + } + + return e.complexity.GroupMembershipHistory.Role(childComplexity), true + + case "GroupMembershipHistory.updatedAt": + if e.complexity.GroupMembershipHistory.UpdatedAt == nil { + break + } + + return e.complexity.GroupMembershipHistory.UpdatedAt(childComplexity), true + + case "GroupMembershipHistory.updatedBy": + if e.complexity.GroupMembershipHistory.UpdatedBy == nil { + break + } + + return e.complexity.GroupMembershipHistory.UpdatedBy(childComplexity), true + + case "GroupMembershipHistory.userID": + if e.complexity.GroupMembershipHistory.UserID == nil { + break + } + + return e.complexity.GroupMembershipHistory.UserID(childComplexity), true + + case "GroupMembershipHistoryConnection.edges": + if e.complexity.GroupMembershipHistoryConnection.Edges == nil { + break + } + + return e.complexity.GroupMembershipHistoryConnection.Edges(childComplexity), true + + case "GroupMembershipHistoryConnection.pageInfo": + if e.complexity.GroupMembershipHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.GroupMembershipHistoryConnection.PageInfo(childComplexity), true + + case "GroupMembershipHistoryConnection.totalCount": + if e.complexity.GroupMembershipHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.GroupMembershipHistoryConnection.TotalCount(childComplexity), true + + case "GroupMembershipHistoryEdge.cursor": + if e.complexity.GroupMembershipHistoryEdge.Cursor == nil { + break + } + + return e.complexity.GroupMembershipHistoryEdge.Cursor(childComplexity), true + + case "GroupMembershipHistoryEdge.node": + if e.complexity.GroupMembershipHistoryEdge.Node == nil { + break + } + + return e.complexity.GroupMembershipHistoryEdge.Node(childComplexity), true + + case "GroupMembershipUpdatePayload.groupMembership": + if e.complexity.GroupMembershipUpdatePayload.GroupMembership == nil { + break + } + + return e.complexity.GroupMembershipUpdatePayload.GroupMembership(childComplexity), true + + case "GroupSearchResult.groups": + if e.complexity.GroupSearchResult.Groups == nil { + break + } + + return e.complexity.GroupSearchResult.Groups(childComplexity), true + + case "GroupSetting.createdAt": + if e.complexity.GroupSetting.CreatedAt == nil { + break + } + + return e.complexity.GroupSetting.CreatedAt(childComplexity), true + + case "GroupSetting.createdBy": + if e.complexity.GroupSetting.CreatedBy == nil { + break + } + + return e.complexity.GroupSetting.CreatedBy(childComplexity), true + + case "GroupSetting.deletedAt": + if e.complexity.GroupSetting.DeletedAt == nil { + break + } + + return e.complexity.GroupSetting.DeletedAt(childComplexity), true + + case "GroupSetting.deletedBy": + if e.complexity.GroupSetting.DeletedBy == nil { + break + } + + return e.complexity.GroupSetting.DeletedBy(childComplexity), true + + case "GroupSetting.group": + if e.complexity.GroupSetting.Group == nil { + break + } + + return e.complexity.GroupSetting.Group(childComplexity), true + + case "GroupSetting.groupID": + if e.complexity.GroupSetting.GroupID == nil { + break + } + + return e.complexity.GroupSetting.GroupID(childComplexity), true + + case "GroupSetting.id": + if e.complexity.GroupSetting.ID == nil { + break + } + + return e.complexity.GroupSetting.ID(childComplexity), true + + case "GroupSetting.joinPolicy": + if e.complexity.GroupSetting.JoinPolicy == nil { + break + } + + return e.complexity.GroupSetting.JoinPolicy(childComplexity), true + + case "GroupSetting.syncToGithub": + if e.complexity.GroupSetting.SyncToGithub == nil { + break + } + + return e.complexity.GroupSetting.SyncToGithub(childComplexity), true + + case "GroupSetting.syncToSlack": + if e.complexity.GroupSetting.SyncToSlack == nil { + break + } + + return e.complexity.GroupSetting.SyncToSlack(childComplexity), true + + case "GroupSetting.tags": + if e.complexity.GroupSetting.Tags == nil { + break + } + + return e.complexity.GroupSetting.Tags(childComplexity), true + + case "GroupSetting.updatedAt": + if e.complexity.GroupSetting.UpdatedAt == nil { + break + } + + return e.complexity.GroupSetting.UpdatedAt(childComplexity), true + + case "GroupSetting.updatedBy": + if e.complexity.GroupSetting.UpdatedBy == nil { + break + } + + return e.complexity.GroupSetting.UpdatedBy(childComplexity), true + + case "GroupSetting.visibility": + if e.complexity.GroupSetting.Visibility == nil { + break + } + + return e.complexity.GroupSetting.Visibility(childComplexity), true + + case "GroupSettingBulkCreatePayload.groupSettings": + if e.complexity.GroupSettingBulkCreatePayload.GroupSettings == nil { + break + } + + return e.complexity.GroupSettingBulkCreatePayload.GroupSettings(childComplexity), true + + case "GroupSettingConnection.edges": + if e.complexity.GroupSettingConnection.Edges == nil { + break + } + + return e.complexity.GroupSettingConnection.Edges(childComplexity), true + + case "GroupSettingConnection.pageInfo": + if e.complexity.GroupSettingConnection.PageInfo == nil { + break + } + + return e.complexity.GroupSettingConnection.PageInfo(childComplexity), true + + case "GroupSettingConnection.totalCount": + if e.complexity.GroupSettingConnection.TotalCount == nil { + break + } + + return e.complexity.GroupSettingConnection.TotalCount(childComplexity), true + + case "GroupSettingCreatePayload.groupSetting": + if e.complexity.GroupSettingCreatePayload.GroupSetting == nil { + break + } + + return e.complexity.GroupSettingCreatePayload.GroupSetting(childComplexity), true + + case "GroupSettingDeletePayload.deletedID": + if e.complexity.GroupSettingDeletePayload.DeletedID == nil { + break + } + + return e.complexity.GroupSettingDeletePayload.DeletedID(childComplexity), true + + case "GroupSettingEdge.cursor": + if e.complexity.GroupSettingEdge.Cursor == nil { + break + } + + return e.complexity.GroupSettingEdge.Cursor(childComplexity), true + + case "GroupSettingEdge.node": + if e.complexity.GroupSettingEdge.Node == nil { + break + } + + return e.complexity.GroupSettingEdge.Node(childComplexity), true + + case "GroupSettingHistory.createdAt": + if e.complexity.GroupSettingHistory.CreatedAt == nil { + break + } + + return e.complexity.GroupSettingHistory.CreatedAt(childComplexity), true + + case "GroupSettingHistory.createdBy": + if e.complexity.GroupSettingHistory.CreatedBy == nil { + break + } + + return e.complexity.GroupSettingHistory.CreatedBy(childComplexity), true + + case "GroupSettingHistory.deletedAt": + if e.complexity.GroupSettingHistory.DeletedAt == nil { + break + } + + return e.complexity.GroupSettingHistory.DeletedAt(childComplexity), true + + case "GroupSettingHistory.deletedBy": + if e.complexity.GroupSettingHistory.DeletedBy == nil { + break + } + + return e.complexity.GroupSettingHistory.DeletedBy(childComplexity), true + + case "GroupSettingHistory.groupID": + if e.complexity.GroupSettingHistory.GroupID == nil { + break + } + + return e.complexity.GroupSettingHistory.GroupID(childComplexity), true + + case "GroupSettingHistory.historyTime": + if e.complexity.GroupSettingHistory.HistoryTime == nil { + break + } + + return e.complexity.GroupSettingHistory.HistoryTime(childComplexity), true + + case "GroupSettingHistory.id": + if e.complexity.GroupSettingHistory.ID == nil { + break + } + + return e.complexity.GroupSettingHistory.ID(childComplexity), true + + case "GroupSettingHistory.joinPolicy": + if e.complexity.GroupSettingHistory.JoinPolicy == nil { + break + } + + return e.complexity.GroupSettingHistory.JoinPolicy(childComplexity), true + + case "GroupSettingHistory.operation": + if e.complexity.GroupSettingHistory.Operation == nil { + break + } + + return e.complexity.GroupSettingHistory.Operation(childComplexity), true + + case "GroupSettingHistory.ref": + if e.complexity.GroupSettingHistory.Ref == nil { + break + } + + return e.complexity.GroupSettingHistory.Ref(childComplexity), true + + case "GroupSettingHistory.syncToGithub": + if e.complexity.GroupSettingHistory.SyncToGithub == nil { + break + } + + return e.complexity.GroupSettingHistory.SyncToGithub(childComplexity), true + + case "GroupSettingHistory.syncToSlack": + if e.complexity.GroupSettingHistory.SyncToSlack == nil { + break + } + + return e.complexity.GroupSettingHistory.SyncToSlack(childComplexity), true + + case "GroupSettingHistory.tags": + if e.complexity.GroupSettingHistory.Tags == nil { + break + } + + return e.complexity.GroupSettingHistory.Tags(childComplexity), true + + case "GroupSettingHistory.updatedAt": + if e.complexity.GroupSettingHistory.UpdatedAt == nil { + break + } + + return e.complexity.GroupSettingHistory.UpdatedAt(childComplexity), true + + case "GroupSettingHistory.updatedBy": + if e.complexity.GroupSettingHistory.UpdatedBy == nil { + break + } + + return e.complexity.GroupSettingHistory.UpdatedBy(childComplexity), true + + case "GroupSettingHistory.visibility": + if e.complexity.GroupSettingHistory.Visibility == nil { + break + } + + return e.complexity.GroupSettingHistory.Visibility(childComplexity), true + + case "GroupSettingHistoryConnection.edges": + if e.complexity.GroupSettingHistoryConnection.Edges == nil { + break + } + + return e.complexity.GroupSettingHistoryConnection.Edges(childComplexity), true + + case "GroupSettingHistoryConnection.pageInfo": + if e.complexity.GroupSettingHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.GroupSettingHistoryConnection.PageInfo(childComplexity), true + + case "GroupSettingHistoryConnection.totalCount": + if e.complexity.GroupSettingHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.GroupSettingHistoryConnection.TotalCount(childComplexity), true + + case "GroupSettingHistoryEdge.cursor": + if e.complexity.GroupSettingHistoryEdge.Cursor == nil { + break + } + + return e.complexity.GroupSettingHistoryEdge.Cursor(childComplexity), true + + case "GroupSettingHistoryEdge.node": + if e.complexity.GroupSettingHistoryEdge.Node == nil { + break + } + + return e.complexity.GroupSettingHistoryEdge.Node(childComplexity), true + + case "GroupSettingSearchResult.groupSettings": + if e.complexity.GroupSettingSearchResult.GroupSettings == nil { + break + } + + return e.complexity.GroupSettingSearchResult.GroupSettings(childComplexity), true + + case "GroupSettingUpdatePayload.groupSetting": + if e.complexity.GroupSettingUpdatePayload.GroupSetting == nil { + break + } + + return e.complexity.GroupSettingUpdatePayload.GroupSetting(childComplexity), true + + case "GroupUpdatePayload.group": + if e.complexity.GroupUpdatePayload.Group == nil { + break + } + + return e.complexity.GroupUpdatePayload.Group(childComplexity), true + + case "Hush.createdAt": + if e.complexity.Hush.CreatedAt == nil { + break + } + + return e.complexity.Hush.CreatedAt(childComplexity), true + + case "Hush.createdBy": + if e.complexity.Hush.CreatedBy == nil { + break + } + + return e.complexity.Hush.CreatedBy(childComplexity), true + + case "Hush.deletedAt": + if e.complexity.Hush.DeletedAt == nil { + break + } + + return e.complexity.Hush.DeletedAt(childComplexity), true + + case "Hush.deletedBy": + if e.complexity.Hush.DeletedBy == nil { + break + } + + return e.complexity.Hush.DeletedBy(childComplexity), true + + case "Hush.description": + if e.complexity.Hush.Description == nil { + break + } + + return e.complexity.Hush.Description(childComplexity), true + + case "Hush.events": + if e.complexity.Hush.Events == nil { + break + } + + return e.complexity.Hush.Events(childComplexity), true + + case "Hush.id": + if e.complexity.Hush.ID == nil { + break + } + + return e.complexity.Hush.ID(childComplexity), true + + case "Hush.integrations": + if e.complexity.Hush.Integrations == nil { + break + } + + return e.complexity.Hush.Integrations(childComplexity), true + + case "Hush.kind": + if e.complexity.Hush.Kind == nil { + break + } + + return e.complexity.Hush.Kind(childComplexity), true + + case "Hush.name": + if e.complexity.Hush.Name == nil { + break + } + + return e.complexity.Hush.Name(childComplexity), true + + case "Hush.organization": + if e.complexity.Hush.Organization == nil { + break + } + + return e.complexity.Hush.Organization(childComplexity), true + + case "Hush.secretName": + if e.complexity.Hush.SecretName == nil { + break + } + + return e.complexity.Hush.SecretName(childComplexity), true + + case "Hush.updatedAt": + if e.complexity.Hush.UpdatedAt == nil { + break + } + + return e.complexity.Hush.UpdatedAt(childComplexity), true + + case "Hush.updatedBy": + if e.complexity.Hush.UpdatedBy == nil { + break + } + + return e.complexity.Hush.UpdatedBy(childComplexity), true + + case "HushBulkCreatePayload.hushes": + if e.complexity.HushBulkCreatePayload.Hushes == nil { + break + } + + return e.complexity.HushBulkCreatePayload.Hushes(childComplexity), true + + case "HushConnection.edges": + if e.complexity.HushConnection.Edges == nil { + break + } + + return e.complexity.HushConnection.Edges(childComplexity), true + + case "HushConnection.pageInfo": + if e.complexity.HushConnection.PageInfo == nil { + break + } + + return e.complexity.HushConnection.PageInfo(childComplexity), true + + case "HushConnection.totalCount": + if e.complexity.HushConnection.TotalCount == nil { + break + } + + return e.complexity.HushConnection.TotalCount(childComplexity), true + + case "HushCreatePayload.hush": + if e.complexity.HushCreatePayload.Hush == nil { + break + } + + return e.complexity.HushCreatePayload.Hush(childComplexity), true + + case "HushDeletePayload.deletedID": + if e.complexity.HushDeletePayload.DeletedID == nil { + break + } + + return e.complexity.HushDeletePayload.DeletedID(childComplexity), true + + case "HushEdge.cursor": + if e.complexity.HushEdge.Cursor == nil { + break + } + + return e.complexity.HushEdge.Cursor(childComplexity), true + + case "HushEdge.node": + if e.complexity.HushEdge.Node == nil { + break + } + + return e.complexity.HushEdge.Node(childComplexity), true + + case "HushHistory.createdAt": + if e.complexity.HushHistory.CreatedAt == nil { + break + } + + return e.complexity.HushHistory.CreatedAt(childComplexity), true + + case "HushHistory.createdBy": + if e.complexity.HushHistory.CreatedBy == nil { + break + } + + return e.complexity.HushHistory.CreatedBy(childComplexity), true + + case "HushHistory.deletedAt": + if e.complexity.HushHistory.DeletedAt == nil { + break + } + + return e.complexity.HushHistory.DeletedAt(childComplexity), true + + case "HushHistory.deletedBy": + if e.complexity.HushHistory.DeletedBy == nil { + break + } + + return e.complexity.HushHistory.DeletedBy(childComplexity), true + + case "HushHistory.description": + if e.complexity.HushHistory.Description == nil { + break + } + + return e.complexity.HushHistory.Description(childComplexity), true + + case "HushHistory.historyTime": + if e.complexity.HushHistory.HistoryTime == nil { + break + } + + return e.complexity.HushHistory.HistoryTime(childComplexity), true + + case "HushHistory.id": + if e.complexity.HushHistory.ID == nil { + break + } + + return e.complexity.HushHistory.ID(childComplexity), true + + case "HushHistory.kind": + if e.complexity.HushHistory.Kind == nil { + break + } + + return e.complexity.HushHistory.Kind(childComplexity), true + + case "HushHistory.name": + if e.complexity.HushHistory.Name == nil { + break + } + + return e.complexity.HushHistory.Name(childComplexity), true + + case "HushHistory.operation": + if e.complexity.HushHistory.Operation == nil { + break + } + + return e.complexity.HushHistory.Operation(childComplexity), true + + case "HushHistory.ref": + if e.complexity.HushHistory.Ref == nil { + break + } + + return e.complexity.HushHistory.Ref(childComplexity), true + + case "HushHistory.secretName": + if e.complexity.HushHistory.SecretName == nil { + break + } + + return e.complexity.HushHistory.SecretName(childComplexity), true + + case "HushHistory.updatedAt": + if e.complexity.HushHistory.UpdatedAt == nil { + break + } + + return e.complexity.HushHistory.UpdatedAt(childComplexity), true + + case "HushHistory.updatedBy": + if e.complexity.HushHistory.UpdatedBy == nil { + break + } + + return e.complexity.HushHistory.UpdatedBy(childComplexity), true + + case "HushHistoryConnection.edges": + if e.complexity.HushHistoryConnection.Edges == nil { + break + } + + return e.complexity.HushHistoryConnection.Edges(childComplexity), true + + case "HushHistoryConnection.pageInfo": + if e.complexity.HushHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.HushHistoryConnection.PageInfo(childComplexity), true + + case "HushHistoryConnection.totalCount": + if e.complexity.HushHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.HushHistoryConnection.TotalCount(childComplexity), true + + case "HushHistoryEdge.cursor": + if e.complexity.HushHistoryEdge.Cursor == nil { + break + } + + return e.complexity.HushHistoryEdge.Cursor(childComplexity), true + + case "HushHistoryEdge.node": + if e.complexity.HushHistoryEdge.Node == nil { + break + } + + return e.complexity.HushHistoryEdge.Node(childComplexity), true + + case "HushUpdatePayload.hush": + if e.complexity.HushUpdatePayload.Hush == nil { + break + } + + return e.complexity.HushUpdatePayload.Hush(childComplexity), true + + case "Integration.createdAt": + if e.complexity.Integration.CreatedAt == nil { + break + } + + return e.complexity.Integration.CreatedAt(childComplexity), true + + case "Integration.createdBy": + if e.complexity.Integration.CreatedBy == nil { + break + } + + return e.complexity.Integration.CreatedBy(childComplexity), true + + case "Integration.deletedAt": + if e.complexity.Integration.DeletedAt == nil { + break + } + + return e.complexity.Integration.DeletedAt(childComplexity), true + + case "Integration.deletedBy": + if e.complexity.Integration.DeletedBy == nil { + break + } + + return e.complexity.Integration.DeletedBy(childComplexity), true + + case "Integration.description": + if e.complexity.Integration.Description == nil { + break + } + + return e.complexity.Integration.Description(childComplexity), true + + case "Integration.events": + if e.complexity.Integration.Events == nil { + break + } + + return e.complexity.Integration.Events(childComplexity), true + + case "Integration.id": + if e.complexity.Integration.ID == nil { + break + } + + return e.complexity.Integration.ID(childComplexity), true + + case "Integration.kind": + if e.complexity.Integration.Kind == nil { + break + } + + return e.complexity.Integration.Kind(childComplexity), true + + case "Integration.name": + if e.complexity.Integration.Name == nil { + break + } + + return e.complexity.Integration.Name(childComplexity), true + + case "Integration.owner": + if e.complexity.Integration.Owner == nil { + break + } + + return e.complexity.Integration.Owner(childComplexity), true + + case "Integration.ownerID": + if e.complexity.Integration.OwnerID == nil { + break + } + + return e.complexity.Integration.OwnerID(childComplexity), true + + case "Integration.secrets": + if e.complexity.Integration.Secrets == nil { + break + } + + return e.complexity.Integration.Secrets(childComplexity), true + + case "Integration.tags": + if e.complexity.Integration.Tags == nil { + break + } + + return e.complexity.Integration.Tags(childComplexity), true + + case "Integration.updatedAt": + if e.complexity.Integration.UpdatedAt == nil { + break + } + + return e.complexity.Integration.UpdatedAt(childComplexity), true + + case "Integration.updatedBy": + if e.complexity.Integration.UpdatedBy == nil { + break + } + + return e.complexity.Integration.UpdatedBy(childComplexity), true + + case "IntegrationBulkCreatePayload.integrations": + if e.complexity.IntegrationBulkCreatePayload.Integrations == nil { + break + } + + return e.complexity.IntegrationBulkCreatePayload.Integrations(childComplexity), true + + case "IntegrationConnection.edges": + if e.complexity.IntegrationConnection.Edges == nil { + break + } + + return e.complexity.IntegrationConnection.Edges(childComplexity), true + + case "IntegrationConnection.pageInfo": + if e.complexity.IntegrationConnection.PageInfo == nil { + break + } + + return e.complexity.IntegrationConnection.PageInfo(childComplexity), true + + case "IntegrationConnection.totalCount": + if e.complexity.IntegrationConnection.TotalCount == nil { + break + } + + return e.complexity.IntegrationConnection.TotalCount(childComplexity), true + + case "IntegrationCreatePayload.integration": + if e.complexity.IntegrationCreatePayload.Integration == nil { + break + } + + return e.complexity.IntegrationCreatePayload.Integration(childComplexity), true + + case "IntegrationDeletePayload.deletedID": + if e.complexity.IntegrationDeletePayload.DeletedID == nil { + break + } + + return e.complexity.IntegrationDeletePayload.DeletedID(childComplexity), true + + case "IntegrationEdge.cursor": + if e.complexity.IntegrationEdge.Cursor == nil { + break + } + + return e.complexity.IntegrationEdge.Cursor(childComplexity), true + + case "IntegrationEdge.node": + if e.complexity.IntegrationEdge.Node == nil { + break + } + + return e.complexity.IntegrationEdge.Node(childComplexity), true + + case "IntegrationHistory.createdAt": + if e.complexity.IntegrationHistory.CreatedAt == nil { + break + } + + return e.complexity.IntegrationHistory.CreatedAt(childComplexity), true + + case "IntegrationHistory.createdBy": + if e.complexity.IntegrationHistory.CreatedBy == nil { + break + } + + return e.complexity.IntegrationHistory.CreatedBy(childComplexity), true + + case "IntegrationHistory.deletedAt": + if e.complexity.IntegrationHistory.DeletedAt == nil { + break + } + + return e.complexity.IntegrationHistory.DeletedAt(childComplexity), true + + case "IntegrationHistory.deletedBy": + if e.complexity.IntegrationHistory.DeletedBy == nil { + break + } + + return e.complexity.IntegrationHistory.DeletedBy(childComplexity), true + + case "IntegrationHistory.description": + if e.complexity.IntegrationHistory.Description == nil { + break + } + + return e.complexity.IntegrationHistory.Description(childComplexity), true + + case "IntegrationHistory.historyTime": + if e.complexity.IntegrationHistory.HistoryTime == nil { + break + } + + return e.complexity.IntegrationHistory.HistoryTime(childComplexity), true + + case "IntegrationHistory.id": + if e.complexity.IntegrationHistory.ID == nil { + break + } + + return e.complexity.IntegrationHistory.ID(childComplexity), true + + case "IntegrationHistory.kind": + if e.complexity.IntegrationHistory.Kind == nil { + break + } + + return e.complexity.IntegrationHistory.Kind(childComplexity), true + + case "IntegrationHistory.name": + if e.complexity.IntegrationHistory.Name == nil { + break + } + + return e.complexity.IntegrationHistory.Name(childComplexity), true + + case "IntegrationHistory.operation": + if e.complexity.IntegrationHistory.Operation == nil { + break + } + + return e.complexity.IntegrationHistory.Operation(childComplexity), true + + case "IntegrationHistory.ownerID": + if e.complexity.IntegrationHistory.OwnerID == nil { + break + } + + return e.complexity.IntegrationHistory.OwnerID(childComplexity), true + + case "IntegrationHistory.ref": + if e.complexity.IntegrationHistory.Ref == nil { + break + } + + return e.complexity.IntegrationHistory.Ref(childComplexity), true + + case "IntegrationHistory.tags": + if e.complexity.IntegrationHistory.Tags == nil { + break + } + + return e.complexity.IntegrationHistory.Tags(childComplexity), true + + case "IntegrationHistory.updatedAt": + if e.complexity.IntegrationHistory.UpdatedAt == nil { + break + } + + return e.complexity.IntegrationHistory.UpdatedAt(childComplexity), true + + case "IntegrationHistory.updatedBy": + if e.complexity.IntegrationHistory.UpdatedBy == nil { + break + } + + return e.complexity.IntegrationHistory.UpdatedBy(childComplexity), true + + case "IntegrationHistoryConnection.edges": + if e.complexity.IntegrationHistoryConnection.Edges == nil { + break + } + + return e.complexity.IntegrationHistoryConnection.Edges(childComplexity), true + + case "IntegrationHistoryConnection.pageInfo": + if e.complexity.IntegrationHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.IntegrationHistoryConnection.PageInfo(childComplexity), true + + case "IntegrationHistoryConnection.totalCount": + if e.complexity.IntegrationHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.IntegrationHistoryConnection.TotalCount(childComplexity), true + + case "IntegrationHistoryEdge.cursor": + if e.complexity.IntegrationHistoryEdge.Cursor == nil { + break + } + + return e.complexity.IntegrationHistoryEdge.Cursor(childComplexity), true + + case "IntegrationHistoryEdge.node": + if e.complexity.IntegrationHistoryEdge.Node == nil { + break + } + + return e.complexity.IntegrationHistoryEdge.Node(childComplexity), true + + case "IntegrationSearchResult.integrations": + if e.complexity.IntegrationSearchResult.Integrations == nil { + break + } + + return e.complexity.IntegrationSearchResult.Integrations(childComplexity), true + + case "IntegrationUpdatePayload.integration": + if e.complexity.IntegrationUpdatePayload.Integration == nil { + break + } + + return e.complexity.IntegrationUpdatePayload.Integration(childComplexity), true + + case "InternalPolicy.background": + if e.complexity.InternalPolicy.Background == nil { + break + } + + return e.complexity.InternalPolicy.Background(childComplexity), true + + case "InternalPolicy.blockedGroups": + if e.complexity.InternalPolicy.BlockedGroups == nil { + break + } + + return e.complexity.InternalPolicy.BlockedGroups(childComplexity), true + + case "InternalPolicy.controlObjectives": + if e.complexity.InternalPolicy.ControlObjectives == nil { + break + } + + return e.complexity.InternalPolicy.ControlObjectives(childComplexity), true + + case "InternalPolicy.controls": + if e.complexity.InternalPolicy.Controls == nil { + break + } + + return e.complexity.InternalPolicy.Controls(childComplexity), true + + case "InternalPolicy.createdAt": + if e.complexity.InternalPolicy.CreatedAt == nil { + break + } + + return e.complexity.InternalPolicy.CreatedAt(childComplexity), true + + case "InternalPolicy.createdBy": + if e.complexity.InternalPolicy.CreatedBy == nil { + break + } + + return e.complexity.InternalPolicy.CreatedBy(childComplexity), true + + case "InternalPolicy.deletedAt": + if e.complexity.InternalPolicy.DeletedAt == nil { + break + } + + return e.complexity.InternalPolicy.DeletedAt(childComplexity), true + + case "InternalPolicy.deletedBy": + if e.complexity.InternalPolicy.DeletedBy == nil { + break + } + + return e.complexity.InternalPolicy.DeletedBy(childComplexity), true + + case "InternalPolicy.description": + if e.complexity.InternalPolicy.Description == nil { + break + } + + return e.complexity.InternalPolicy.Description(childComplexity), true + + case "InternalPolicy.details": + if e.complexity.InternalPolicy.Details == nil { + break + } + + return e.complexity.InternalPolicy.Details(childComplexity), true + + case "InternalPolicy.editors": + if e.complexity.InternalPolicy.Editors == nil { + break + } + + return e.complexity.InternalPolicy.Editors(childComplexity), true + + case "InternalPolicy.id": + if e.complexity.InternalPolicy.ID == nil { + break + } + + return e.complexity.InternalPolicy.ID(childComplexity), true + + case "InternalPolicy.name": + if e.complexity.InternalPolicy.Name == nil { + break + } + + return e.complexity.InternalPolicy.Name(childComplexity), true + + case "InternalPolicy.narratives": + if e.complexity.InternalPolicy.Narratives == nil { + break + } + + return e.complexity.InternalPolicy.Narratives(childComplexity), true + + case "InternalPolicy.owner": + if e.complexity.InternalPolicy.Owner == nil { + break + } + + return e.complexity.InternalPolicy.Owner(childComplexity), true + + case "InternalPolicy.ownerID": + if e.complexity.InternalPolicy.OwnerID == nil { + break + } + + return e.complexity.InternalPolicy.OwnerID(childComplexity), true + + case "InternalPolicy.policyType": + if e.complexity.InternalPolicy.PolicyType == nil { + break + } + + return e.complexity.InternalPolicy.PolicyType(childComplexity), true + + case "InternalPolicy.procedures": + if e.complexity.InternalPolicy.Procedures == nil { + break + } + + return e.complexity.InternalPolicy.Procedures(childComplexity), true + + case "InternalPolicy.programs": + if e.complexity.InternalPolicy.Programs == nil { + break + } + + return e.complexity.InternalPolicy.Programs(childComplexity), true + + case "InternalPolicy.purposeAndScope": + if e.complexity.InternalPolicy.PurposeAndScope == nil { + break + } + + return e.complexity.InternalPolicy.PurposeAndScope(childComplexity), true + + case "InternalPolicy.status": + if e.complexity.InternalPolicy.Status == nil { + break + } + + return e.complexity.InternalPolicy.Status(childComplexity), true + + case "InternalPolicy.tags": + if e.complexity.InternalPolicy.Tags == nil { + break + } + + return e.complexity.InternalPolicy.Tags(childComplexity), true + + case "InternalPolicy.tasks": + if e.complexity.InternalPolicy.Tasks == nil { + break + } + + return e.complexity.InternalPolicy.Tasks(childComplexity), true + + case "InternalPolicy.updatedAt": + if e.complexity.InternalPolicy.UpdatedAt == nil { + break + } + + return e.complexity.InternalPolicy.UpdatedAt(childComplexity), true + + case "InternalPolicy.updatedBy": + if e.complexity.InternalPolicy.UpdatedBy == nil { + break + } + + return e.complexity.InternalPolicy.UpdatedBy(childComplexity), true + + case "InternalPolicy.version": + if e.complexity.InternalPolicy.Version == nil { + break + } + + return e.complexity.InternalPolicy.Version(childComplexity), true + + case "InternalPolicyBulkCreatePayload.internalPolicies": + if e.complexity.InternalPolicyBulkCreatePayload.InternalPolicies == nil { + break + } + + return e.complexity.InternalPolicyBulkCreatePayload.InternalPolicies(childComplexity), true + + case "InternalPolicyConnection.edges": + if e.complexity.InternalPolicyConnection.Edges == nil { + break + } + + return e.complexity.InternalPolicyConnection.Edges(childComplexity), true + + case "InternalPolicyConnection.pageInfo": + if e.complexity.InternalPolicyConnection.PageInfo == nil { + break + } + + return e.complexity.InternalPolicyConnection.PageInfo(childComplexity), true + + case "InternalPolicyConnection.totalCount": + if e.complexity.InternalPolicyConnection.TotalCount == nil { + break + } + + return e.complexity.InternalPolicyConnection.TotalCount(childComplexity), true + + case "InternalPolicyCreatePayload.internalPolicy": + if e.complexity.InternalPolicyCreatePayload.InternalPolicy == nil { + break + } + + return e.complexity.InternalPolicyCreatePayload.InternalPolicy(childComplexity), true + + case "InternalPolicyDeletePayload.deletedID": + if e.complexity.InternalPolicyDeletePayload.DeletedID == nil { + break + } + + return e.complexity.InternalPolicyDeletePayload.DeletedID(childComplexity), true + + case "InternalPolicyEdge.cursor": + if e.complexity.InternalPolicyEdge.Cursor == nil { + break + } + + return e.complexity.InternalPolicyEdge.Cursor(childComplexity), true + + case "InternalPolicyEdge.node": + if e.complexity.InternalPolicyEdge.Node == nil { + break + } + + return e.complexity.InternalPolicyEdge.Node(childComplexity), true + + case "InternalPolicyHistory.background": + if e.complexity.InternalPolicyHistory.Background == nil { + break + } + + return e.complexity.InternalPolicyHistory.Background(childComplexity), true + + case "InternalPolicyHistory.createdAt": + if e.complexity.InternalPolicyHistory.CreatedAt == nil { + break + } + + return e.complexity.InternalPolicyHistory.CreatedAt(childComplexity), true + + case "InternalPolicyHistory.createdBy": + if e.complexity.InternalPolicyHistory.CreatedBy == nil { + break + } + + return e.complexity.InternalPolicyHistory.CreatedBy(childComplexity), true + + case "InternalPolicyHistory.deletedAt": + if e.complexity.InternalPolicyHistory.DeletedAt == nil { + break + } + + return e.complexity.InternalPolicyHistory.DeletedAt(childComplexity), true + + case "InternalPolicyHistory.deletedBy": + if e.complexity.InternalPolicyHistory.DeletedBy == nil { + break + } + + return e.complexity.InternalPolicyHistory.DeletedBy(childComplexity), true + + case "InternalPolicyHistory.description": + if e.complexity.InternalPolicyHistory.Description == nil { + break + } + + return e.complexity.InternalPolicyHistory.Description(childComplexity), true + + case "InternalPolicyHistory.details": + if e.complexity.InternalPolicyHistory.Details == nil { + break + } + + return e.complexity.InternalPolicyHistory.Details(childComplexity), true + + case "InternalPolicyHistory.historyTime": + if e.complexity.InternalPolicyHistory.HistoryTime == nil { + break + } + + return e.complexity.InternalPolicyHistory.HistoryTime(childComplexity), true + + case "InternalPolicyHistory.id": + if e.complexity.InternalPolicyHistory.ID == nil { + break + } + + return e.complexity.InternalPolicyHistory.ID(childComplexity), true + + case "InternalPolicyHistory.name": + if e.complexity.InternalPolicyHistory.Name == nil { + break + } + + return e.complexity.InternalPolicyHistory.Name(childComplexity), true + + case "InternalPolicyHistory.operation": + if e.complexity.InternalPolicyHistory.Operation == nil { + break + } + + return e.complexity.InternalPolicyHistory.Operation(childComplexity), true + + case "InternalPolicyHistory.ownerID": + if e.complexity.InternalPolicyHistory.OwnerID == nil { + break + } + + return e.complexity.InternalPolicyHistory.OwnerID(childComplexity), true + + case "InternalPolicyHistory.policyType": + if e.complexity.InternalPolicyHistory.PolicyType == nil { + break + } + + return e.complexity.InternalPolicyHistory.PolicyType(childComplexity), true + + case "InternalPolicyHistory.purposeAndScope": + if e.complexity.InternalPolicyHistory.PurposeAndScope == nil { + break + } + + return e.complexity.InternalPolicyHistory.PurposeAndScope(childComplexity), true + + case "InternalPolicyHistory.ref": + if e.complexity.InternalPolicyHistory.Ref == nil { + break + } + + return e.complexity.InternalPolicyHistory.Ref(childComplexity), true + + case "InternalPolicyHistory.status": + if e.complexity.InternalPolicyHistory.Status == nil { + break + } + + return e.complexity.InternalPolicyHistory.Status(childComplexity), true + + case "InternalPolicyHistory.tags": + if e.complexity.InternalPolicyHistory.Tags == nil { + break + } + + return e.complexity.InternalPolicyHistory.Tags(childComplexity), true + + case "InternalPolicyHistory.updatedAt": + if e.complexity.InternalPolicyHistory.UpdatedAt == nil { + break + } + + return e.complexity.InternalPolicyHistory.UpdatedAt(childComplexity), true + + case "InternalPolicyHistory.updatedBy": + if e.complexity.InternalPolicyHistory.UpdatedBy == nil { + break + } + + return e.complexity.InternalPolicyHistory.UpdatedBy(childComplexity), true + + case "InternalPolicyHistory.version": + if e.complexity.InternalPolicyHistory.Version == nil { + break + } + + return e.complexity.InternalPolicyHistory.Version(childComplexity), true + + case "InternalPolicyHistoryConnection.edges": + if e.complexity.InternalPolicyHistoryConnection.Edges == nil { + break + } + + return e.complexity.InternalPolicyHistoryConnection.Edges(childComplexity), true + + case "InternalPolicyHistoryConnection.pageInfo": + if e.complexity.InternalPolicyHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.InternalPolicyHistoryConnection.PageInfo(childComplexity), true + + case "InternalPolicyHistoryConnection.totalCount": + if e.complexity.InternalPolicyHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.InternalPolicyHistoryConnection.TotalCount(childComplexity), true + + case "InternalPolicyHistoryEdge.cursor": + if e.complexity.InternalPolicyHistoryEdge.Cursor == nil { + break + } + + return e.complexity.InternalPolicyHistoryEdge.Cursor(childComplexity), true + + case "InternalPolicyHistoryEdge.node": + if e.complexity.InternalPolicyHistoryEdge.Node == nil { + break + } + + return e.complexity.InternalPolicyHistoryEdge.Node(childComplexity), true + + case "InternalPolicySearchResult.internalPolicies": + if e.complexity.InternalPolicySearchResult.InternalPolicies == nil { + break + } + + return e.complexity.InternalPolicySearchResult.InternalPolicies(childComplexity), true + + case "InternalPolicyUpdatePayload.internalPolicy": + if e.complexity.InternalPolicyUpdatePayload.InternalPolicy == nil { + break + } + + return e.complexity.InternalPolicyUpdatePayload.InternalPolicy(childComplexity), true + + case "Invite.createdAt": + if e.complexity.Invite.CreatedAt == nil { + break + } + + return e.complexity.Invite.CreatedAt(childComplexity), true + + case "Invite.createdBy": + if e.complexity.Invite.CreatedBy == nil { + break + } + + return e.complexity.Invite.CreatedBy(childComplexity), true + + case "Invite.deletedAt": + if e.complexity.Invite.DeletedAt == nil { + break + } + + return e.complexity.Invite.DeletedAt(childComplexity), true + + case "Invite.deletedBy": + if e.complexity.Invite.DeletedBy == nil { + break + } + + return e.complexity.Invite.DeletedBy(childComplexity), true + + case "Invite.events": + if e.complexity.Invite.Events == nil { + break + } + + return e.complexity.Invite.Events(childComplexity), true + + case "Invite.expires": + if e.complexity.Invite.Expires == nil { + break + } + + return e.complexity.Invite.Expires(childComplexity), true + + case "Invite.id": + if e.complexity.Invite.ID == nil { + break + } + + return e.complexity.Invite.ID(childComplexity), true + + case "Invite.owner": + if e.complexity.Invite.Owner == nil { + break + } + + return e.complexity.Invite.Owner(childComplexity), true + + case "Invite.ownerID": + if e.complexity.Invite.OwnerID == nil { + break + } + + return e.complexity.Invite.OwnerID(childComplexity), true + + case "Invite.recipient": + if e.complexity.Invite.Recipient == nil { + break + } + + return e.complexity.Invite.Recipient(childComplexity), true + + case "Invite.requestorID": + if e.complexity.Invite.RequestorID == nil { + break + } + + return e.complexity.Invite.RequestorID(childComplexity), true + + case "Invite.role": + if e.complexity.Invite.Role == nil { + break + } + + return e.complexity.Invite.Role(childComplexity), true + + case "Invite.sendAttempts": + if e.complexity.Invite.SendAttempts == nil { + break + } + + return e.complexity.Invite.SendAttempts(childComplexity), true + + case "Invite.status": + if e.complexity.Invite.Status == nil { + break + } + + return e.complexity.Invite.Status(childComplexity), true + + case "Invite.updatedAt": + if e.complexity.Invite.UpdatedAt == nil { + break + } + + return e.complexity.Invite.UpdatedAt(childComplexity), true + + case "Invite.updatedBy": + if e.complexity.Invite.UpdatedBy == nil { + break + } + + return e.complexity.Invite.UpdatedBy(childComplexity), true + + case "InviteBulkCreatePayload.invites": + if e.complexity.InviteBulkCreatePayload.Invites == nil { + break + } + + return e.complexity.InviteBulkCreatePayload.Invites(childComplexity), true + + case "InviteConnection.edges": + if e.complexity.InviteConnection.Edges == nil { + break + } + + return e.complexity.InviteConnection.Edges(childComplexity), true + + case "InviteConnection.pageInfo": + if e.complexity.InviteConnection.PageInfo == nil { + break + } + + return e.complexity.InviteConnection.PageInfo(childComplexity), true + + case "InviteConnection.totalCount": + if e.complexity.InviteConnection.TotalCount == nil { + break + } + + return e.complexity.InviteConnection.TotalCount(childComplexity), true + + case "InviteCreatePayload.invite": + if e.complexity.InviteCreatePayload.Invite == nil { + break + } + + return e.complexity.InviteCreatePayload.Invite(childComplexity), true + + case "InviteDeletePayload.deletedID": + if e.complexity.InviteDeletePayload.DeletedID == nil { + break + } + + return e.complexity.InviteDeletePayload.DeletedID(childComplexity), true + + case "InviteEdge.cursor": + if e.complexity.InviteEdge.Cursor == nil { + break + } + + return e.complexity.InviteEdge.Cursor(childComplexity), true + + case "InviteEdge.node": + if e.complexity.InviteEdge.Node == nil { + break + } + + return e.complexity.InviteEdge.Node(childComplexity), true + + case "InviteUpdatePayload.invite": + if e.complexity.InviteUpdatePayload.Invite == nil { + break + } + + return e.complexity.InviteUpdatePayload.Invite(childComplexity), true + + case "Mutation.createAPIToken": + if e.complexity.Mutation.CreateAPIToken == nil { + break + } + + args, err := ec.field_Mutation_createAPIToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateAPIToken(childComplexity, args["input"].(generated.CreateAPITokenInput)), true + + case "Mutation.createActionPlan": + if e.complexity.Mutation.CreateActionPlan == nil { + break + } + + args, err := ec.field_Mutation_createActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateActionPlan(childComplexity, args["input"].(generated.CreateActionPlanInput)), true + + case "Mutation.createBulkAPIToken": + if e.complexity.Mutation.CreateBulkAPIToken == nil { + break + } + + args, err := ec.field_Mutation_createBulkAPIToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkAPIToken(childComplexity, args["input"].([]*generated.CreateAPITokenInput)), true + + case "Mutation.createBulkActionPlan": + if e.complexity.Mutation.CreateBulkActionPlan == nil { + break + } + + args, err := ec.field_Mutation_createBulkActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkActionPlan(childComplexity, args["input"].([]*generated.CreateActionPlanInput)), true + + case "Mutation.createBulkCSVAPIToken": + if e.complexity.Mutation.CreateBulkCSVAPIToken == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVAPIToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVAPIToken(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVActionPlan": + if e.complexity.Mutation.CreateBulkCSVActionPlan == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVActionPlan(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVContact": + if e.complexity.Mutation.CreateBulkCSVContact == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVContact_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVContact(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVControl": + if e.complexity.Mutation.CreateBulkCSVControl == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVControl(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVControlObjective": + if e.complexity.Mutation.CreateBulkCSVControlObjective == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVControlObjective(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVDocumentData": + if e.complexity.Mutation.CreateBulkCSVDocumentData == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVDocumentData_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVDocumentData(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVEntity": + if e.complexity.Mutation.CreateBulkCSVEntity == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVEntity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVEntity(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVEntityType": + if e.complexity.Mutation.CreateBulkCSVEntityType == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVEntityType_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVEntityType(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVEvent": + if e.complexity.Mutation.CreateBulkCSVEvent == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVEvent_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVEvent(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVGroup": + if e.complexity.Mutation.CreateBulkCSVGroup == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVGroup_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVGroup(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVGroupMembership": + if e.complexity.Mutation.CreateBulkCSVGroupMembership == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVGroupMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVGroupMembership(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVGroupSetting": + if e.complexity.Mutation.CreateBulkCSVGroupSetting == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVGroupSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVGroupSetting(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVHush": + if e.complexity.Mutation.CreateBulkCSVHush == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVHush_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVHush(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVIntegration": + if e.complexity.Mutation.CreateBulkCSVIntegration == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVIntegration_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVIntegration(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVInternalPolicy": + if e.complexity.Mutation.CreateBulkCSVInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVInternalPolicy(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVInvite": + if e.complexity.Mutation.CreateBulkCSVInvite == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVInvite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVInvite(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVNarrative": + if e.complexity.Mutation.CreateBulkCSVNarrative == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVNarrative(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVOrgMembership": + if e.complexity.Mutation.CreateBulkCSVOrgMembership == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVOrgMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVOrgMembership(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVOrgSubscription": + if e.complexity.Mutation.CreateBulkCSVOrgSubscription == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVOrgSubscription_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVOrgSubscription(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVOrganization": + if e.complexity.Mutation.CreateBulkCSVOrganization == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVOrganization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVOrganization(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVOrganizationSetting": + if e.complexity.Mutation.CreateBulkCSVOrganizationSetting == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVOrganizationSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVOrganizationSetting(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVPersonalAccessToken": + if e.complexity.Mutation.CreateBulkCSVPersonalAccessToken == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVPersonalAccessToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVPersonalAccessToken(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVProcedure": + if e.complexity.Mutation.CreateBulkCSVProcedure == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVProcedure(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVProgram": + if e.complexity.Mutation.CreateBulkCSVProgram == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVProgram_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVProgram(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVProgramMembership": + if e.complexity.Mutation.CreateBulkCSVProgramMembership == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVProgramMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVProgramMembership(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVRisk": + if e.complexity.Mutation.CreateBulkCSVRisk == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVRisk(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVStandard": + if e.complexity.Mutation.CreateBulkCSVStandard == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVStandard(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVSubcontrol": + if e.complexity.Mutation.CreateBulkCSVSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVSubcontrol(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVSubscriber": + if e.complexity.Mutation.CreateBulkCSVSubscriber == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVSubscriber_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVSubscriber(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVTask": + if e.complexity.Mutation.CreateBulkCSVTask == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVTask_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVTask(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVTemplate": + if e.complexity.Mutation.CreateBulkCSVTemplate == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVTemplate_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVTemplate(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkCSVUserSetting": + if e.complexity.Mutation.CreateBulkCSVUserSetting == nil { + break + } + + args, err := ec.field_Mutation_createBulkCSVUserSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkCSVUserSetting(childComplexity, args["input"].(graphql.Upload)), true + + case "Mutation.createBulkContact": + if e.complexity.Mutation.CreateBulkContact == nil { + break + } + + args, err := ec.field_Mutation_createBulkContact_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkContact(childComplexity, args["input"].([]*generated.CreateContactInput)), true + + case "Mutation.createBulkControl": + if e.complexity.Mutation.CreateBulkControl == nil { + break + } + + args, err := ec.field_Mutation_createBulkControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkControl(childComplexity, args["input"].([]*generated.CreateControlInput)), true + + case "Mutation.createBulkControlObjective": + if e.complexity.Mutation.CreateBulkControlObjective == nil { + break + } + + args, err := ec.field_Mutation_createBulkControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkControlObjective(childComplexity, args["input"].([]*generated.CreateControlObjectiveInput)), true + + case "Mutation.createBulkDocumentData": + if e.complexity.Mutation.CreateBulkDocumentData == nil { + break + } + + args, err := ec.field_Mutation_createBulkDocumentData_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkDocumentData(childComplexity, args["input"].([]*generated.CreateDocumentDataInput)), true + + case "Mutation.createBulkEntity": + if e.complexity.Mutation.CreateBulkEntity == nil { + break + } + + args, err := ec.field_Mutation_createBulkEntity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkEntity(childComplexity, args["input"].([]*generated.CreateEntityInput)), true + + case "Mutation.createBulkEntityType": + if e.complexity.Mutation.CreateBulkEntityType == nil { + break + } + + args, err := ec.field_Mutation_createBulkEntityType_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkEntityType(childComplexity, args["input"].([]*generated.CreateEntityTypeInput)), true + + case "Mutation.createBulkEvent": + if e.complexity.Mutation.CreateBulkEvent == nil { + break + } + + args, err := ec.field_Mutation_createBulkEvent_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkEvent(childComplexity, args["input"].([]*generated.CreateEventInput)), true + + case "Mutation.createBulkGroup": + if e.complexity.Mutation.CreateBulkGroup == nil { + break + } + + args, err := ec.field_Mutation_createBulkGroup_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkGroup(childComplexity, args["input"].([]*generated.CreateGroupInput)), true + + case "Mutation.createBulkGroupMembership": + if e.complexity.Mutation.CreateBulkGroupMembership == nil { + break + } + + args, err := ec.field_Mutation_createBulkGroupMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkGroupMembership(childComplexity, args["input"].([]*generated.CreateGroupMembershipInput)), true + + case "Mutation.createBulkGroupSetting": + if e.complexity.Mutation.CreateBulkGroupSetting == nil { + break + } + + args, err := ec.field_Mutation_createBulkGroupSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkGroupSetting(childComplexity, args["input"].([]*generated.CreateGroupSettingInput)), true + + case "Mutation.createBulkHush": + if e.complexity.Mutation.CreateBulkHush == nil { + break + } + + args, err := ec.field_Mutation_createBulkHush_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkHush(childComplexity, args["input"].([]*generated.CreateHushInput)), true + + case "Mutation.createBulkIntegration": + if e.complexity.Mutation.CreateBulkIntegration == nil { + break + } + + args, err := ec.field_Mutation_createBulkIntegration_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkIntegration(childComplexity, args["input"].([]*generated.CreateIntegrationInput)), true + + case "Mutation.createBulkInternalPolicy": + if e.complexity.Mutation.CreateBulkInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_createBulkInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkInternalPolicy(childComplexity, args["input"].([]*generated.CreateInternalPolicyInput)), true + + case "Mutation.createBulkInvite": + if e.complexity.Mutation.CreateBulkInvite == nil { + break + } + + args, err := ec.field_Mutation_createBulkInvite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkInvite(childComplexity, args["input"].([]*generated.CreateInviteInput)), true + + case "Mutation.createBulkNarrative": + if e.complexity.Mutation.CreateBulkNarrative == nil { + break + } + + args, err := ec.field_Mutation_createBulkNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkNarrative(childComplexity, args["input"].([]*generated.CreateNarrativeInput)), true + + case "Mutation.createBulkOrgMembership": + if e.complexity.Mutation.CreateBulkOrgMembership == nil { + break + } + + args, err := ec.field_Mutation_createBulkOrgMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkOrgMembership(childComplexity, args["input"].([]*generated.CreateOrgMembershipInput)), true + + case "Mutation.createBulkOrgSubscription": + if e.complexity.Mutation.CreateBulkOrgSubscription == nil { + break + } + + args, err := ec.field_Mutation_createBulkOrgSubscription_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkOrgSubscription(childComplexity, args["input"].([]*generated.CreateOrgSubscriptionInput)), true + + case "Mutation.createBulkOrganization": + if e.complexity.Mutation.CreateBulkOrganization == nil { + break + } + + args, err := ec.field_Mutation_createBulkOrganization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkOrganization(childComplexity, args["input"].([]*generated.CreateOrganizationInput)), true + + case "Mutation.createBulkOrganizationSetting": + if e.complexity.Mutation.CreateBulkOrganizationSetting == nil { + break + } + + args, err := ec.field_Mutation_createBulkOrganizationSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkOrganizationSetting(childComplexity, args["input"].([]*generated.CreateOrganizationSettingInput)), true + + case "Mutation.createBulkPersonalAccessToken": + if e.complexity.Mutation.CreateBulkPersonalAccessToken == nil { + break + } + + args, err := ec.field_Mutation_createBulkPersonalAccessToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkPersonalAccessToken(childComplexity, args["input"].([]*generated.CreatePersonalAccessTokenInput)), true + + case "Mutation.createBulkProcedure": + if e.complexity.Mutation.CreateBulkProcedure == nil { + break + } + + args, err := ec.field_Mutation_createBulkProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkProcedure(childComplexity, args["input"].([]*generated.CreateProcedureInput)), true + + case "Mutation.createBulkProgram": + if e.complexity.Mutation.CreateBulkProgram == nil { + break + } + + args, err := ec.field_Mutation_createBulkProgram_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkProgram(childComplexity, args["input"].([]*generated.CreateProgramInput)), true + + case "Mutation.createBulkProgramMembership": + if e.complexity.Mutation.CreateBulkProgramMembership == nil { + break + } + + args, err := ec.field_Mutation_createBulkProgramMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkProgramMembership(childComplexity, args["input"].([]*generated.CreateProgramMembershipInput)), true + + case "Mutation.createBulkRisk": + if e.complexity.Mutation.CreateBulkRisk == nil { + break + } + + args, err := ec.field_Mutation_createBulkRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkRisk(childComplexity, args["input"].([]*generated.CreateRiskInput)), true + + case "Mutation.createBulkStandard": + if e.complexity.Mutation.CreateBulkStandard == nil { + break + } + + args, err := ec.field_Mutation_createBulkStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkStandard(childComplexity, args["input"].([]*generated.CreateStandardInput)), true + + case "Mutation.createBulkSubcontrol": + if e.complexity.Mutation.CreateBulkSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_createBulkSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkSubcontrol(childComplexity, args["input"].([]*generated.CreateSubcontrolInput)), true + + case "Mutation.createBulkSubscriber": + if e.complexity.Mutation.CreateBulkSubscriber == nil { + break + } + + args, err := ec.field_Mutation_createBulkSubscriber_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkSubscriber(childComplexity, args["input"].([]*generated.CreateSubscriberInput)), true + + case "Mutation.createBulkTask": + if e.complexity.Mutation.CreateBulkTask == nil { + break + } + + args, err := ec.field_Mutation_createBulkTask_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkTask(childComplexity, args["input"].([]*generated.CreateTaskInput)), true + + case "Mutation.createBulkTemplate": + if e.complexity.Mutation.CreateBulkTemplate == nil { + break + } + + args, err := ec.field_Mutation_createBulkTemplate_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkTemplate(childComplexity, args["input"].([]*generated.CreateTemplateInput)), true + + case "Mutation.createBulkUserSetting": + if e.complexity.Mutation.CreateBulkUserSetting == nil { + break + } + + args, err := ec.field_Mutation_createBulkUserSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateBulkUserSetting(childComplexity, args["input"].([]*generated.CreateUserSettingInput)), true + + case "Mutation.createContact": + if e.complexity.Mutation.CreateContact == nil { + break + } + + args, err := ec.field_Mutation_createContact_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateContact(childComplexity, args["input"].(generated.CreateContactInput)), true + + case "Mutation.createControl": + if e.complexity.Mutation.CreateControl == nil { + break + } + + args, err := ec.field_Mutation_createControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateControl(childComplexity, args["input"].(generated.CreateControlInput)), true + + case "Mutation.createControlObjective": + if e.complexity.Mutation.CreateControlObjective == nil { + break + } + + args, err := ec.field_Mutation_createControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateControlObjective(childComplexity, args["input"].(generated.CreateControlObjectiveInput)), true + + case "Mutation.createControlWithSubcontrols": + if e.complexity.Mutation.CreateControlWithSubcontrols == nil { + break + } + + args, err := ec.field_Mutation_createControlWithSubcontrols_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateControlWithSubcontrols(childComplexity, args["input"].(model.CreateControlWithSubcontrolsInput)), true + + case "Mutation.createDocumentData": + if e.complexity.Mutation.CreateDocumentData == nil { + break + } + + args, err := ec.field_Mutation_createDocumentData_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateDocumentData(childComplexity, args["input"].(generated.CreateDocumentDataInput)), true + + case "Mutation.createEntity": + if e.complexity.Mutation.CreateEntity == nil { + break + } + + args, err := ec.field_Mutation_createEntity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateEntity(childComplexity, args["input"].(generated.CreateEntityInput)), true + + case "Mutation.createEntityType": + if e.complexity.Mutation.CreateEntityType == nil { + break + } + + args, err := ec.field_Mutation_createEntityType_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateEntityType(childComplexity, args["input"].(generated.CreateEntityTypeInput)), true + + case "Mutation.createEvent": + if e.complexity.Mutation.CreateEvent == nil { + break + } + + args, err := ec.field_Mutation_createEvent_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateEvent(childComplexity, args["input"].(generated.CreateEventInput)), true + + case "Mutation.createFullProgram": + if e.complexity.Mutation.CreateFullProgram == nil { + break + } + + args, err := ec.field_Mutation_createFullProgram_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateFullProgram(childComplexity, args["input"].(model.CreateFullProgramInput)), true + + case "Mutation.createGroup": + if e.complexity.Mutation.CreateGroup == nil { + break + } + + args, err := ec.field_Mutation_createGroup_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateGroup(childComplexity, args["input"].(generated.CreateGroupInput)), true + + case "Mutation.createGroupMembership": + if e.complexity.Mutation.CreateGroupMembership == nil { + break + } + + args, err := ec.field_Mutation_createGroupMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateGroupMembership(childComplexity, args["input"].(generated.CreateGroupMembershipInput)), true + + case "Mutation.createGroupSetting": + if e.complexity.Mutation.CreateGroupSetting == nil { + break + } + + args, err := ec.field_Mutation_createGroupSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateGroupSetting(childComplexity, args["input"].(generated.CreateGroupSettingInput)), true + + case "Mutation.createHush": + if e.complexity.Mutation.CreateHush == nil { + break + } + + args, err := ec.field_Mutation_createHush_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateHush(childComplexity, args["input"].(generated.CreateHushInput)), true + + case "Mutation.createIntegration": + if e.complexity.Mutation.CreateIntegration == nil { + break + } + + args, err := ec.field_Mutation_createIntegration_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateIntegration(childComplexity, args["input"].(generated.CreateIntegrationInput)), true + + case "Mutation.createInternalPolicy": + if e.complexity.Mutation.CreateInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_createInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateInternalPolicy(childComplexity, args["input"].(generated.CreateInternalPolicyInput)), true + + case "Mutation.createInvite": + if e.complexity.Mutation.CreateInvite == nil { + break + } + + args, err := ec.field_Mutation_createInvite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateInvite(childComplexity, args["input"].(generated.CreateInviteInput)), true + + case "Mutation.createNarrative": + if e.complexity.Mutation.CreateNarrative == nil { + break + } + + args, err := ec.field_Mutation_createNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateNarrative(childComplexity, args["input"].(generated.CreateNarrativeInput)), true + + case "Mutation.createOrgMembership": + if e.complexity.Mutation.CreateOrgMembership == nil { + break + } + + args, err := ec.field_Mutation_createOrgMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateOrgMembership(childComplexity, args["input"].(generated.CreateOrgMembershipInput)), true + + case "Mutation.createOrgSubscription": + if e.complexity.Mutation.CreateOrgSubscription == nil { + break + } + + args, err := ec.field_Mutation_createOrgSubscription_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateOrgSubscription(childComplexity, args["input"].(generated.CreateOrgSubscriptionInput)), true + + case "Mutation.createOrganization": + if e.complexity.Mutation.CreateOrganization == nil { + break + } + + args, err := ec.field_Mutation_createOrganization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateOrganization(childComplexity, args["input"].(generated.CreateOrganizationInput)), true + + case "Mutation.createOrganizationSetting": + if e.complexity.Mutation.CreateOrganizationSetting == nil { + break + } + + args, err := ec.field_Mutation_createOrganizationSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateOrganizationSetting(childComplexity, args["input"].(generated.CreateOrganizationSettingInput)), true + + case "Mutation.createPersonalAccessToken": + if e.complexity.Mutation.CreatePersonalAccessToken == nil { + break + } + + args, err := ec.field_Mutation_createPersonalAccessToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreatePersonalAccessToken(childComplexity, args["input"].(generated.CreatePersonalAccessTokenInput)), true + + case "Mutation.createProcedure": + if e.complexity.Mutation.CreateProcedure == nil { + break + } + + args, err := ec.field_Mutation_createProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateProcedure(childComplexity, args["input"].(generated.CreateProcedureInput)), true + + case "Mutation.createProgram": + if e.complexity.Mutation.CreateProgram == nil { + break + } + + args, err := ec.field_Mutation_createProgram_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateProgram(childComplexity, args["input"].(generated.CreateProgramInput)), true + + case "Mutation.createProgramMembership": + if e.complexity.Mutation.CreateProgramMembership == nil { + break + } + + args, err := ec.field_Mutation_createProgramMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateProgramMembership(childComplexity, args["input"].(generated.CreateProgramMembershipInput)), true + + case "Mutation.createProgramWithMembers": + if e.complexity.Mutation.CreateProgramWithMembers == nil { + break + } + + args, err := ec.field_Mutation_createProgramWithMembers_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateProgramWithMembers(childComplexity, args["input"].(model.CreateProgramWithMembersInput)), true + + case "Mutation.createRisk": + if e.complexity.Mutation.CreateRisk == nil { + break + } + + args, err := ec.field_Mutation_createRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateRisk(childComplexity, args["input"].(generated.CreateRiskInput)), true + + case "Mutation.createStandard": + if e.complexity.Mutation.CreateStandard == nil { + break + } + + args, err := ec.field_Mutation_createStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateStandard(childComplexity, args["input"].(generated.CreateStandardInput)), true + + case "Mutation.createSubcontrol": + if e.complexity.Mutation.CreateSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_createSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateSubcontrol(childComplexity, args["input"].(generated.CreateSubcontrolInput)), true + + case "Mutation.createSubscriber": + if e.complexity.Mutation.CreateSubscriber == nil { + break + } + + args, err := ec.field_Mutation_createSubscriber_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateSubscriber(childComplexity, args["input"].(generated.CreateSubscriberInput)), true + + case "Mutation.createTFASetting": + if e.complexity.Mutation.CreateTFASetting == nil { + break + } + + args, err := ec.field_Mutation_createTFASetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateTFASetting(childComplexity, args["input"].(generated.CreateTFASettingInput)), true + + case "Mutation.createTask": + if e.complexity.Mutation.CreateTask == nil { + break + } + + args, err := ec.field_Mutation_createTask_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateTask(childComplexity, args["input"].(generated.CreateTaskInput)), true + + case "Mutation.createTemplate": + if e.complexity.Mutation.CreateTemplate == nil { + break + } + + args, err := ec.field_Mutation_createTemplate_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateTemplate(childComplexity, args["input"].(generated.CreateTemplateInput)), true + + case "Mutation.createUser": + if e.complexity.Mutation.CreateUser == nil { + break + } + + args, err := ec.field_Mutation_createUser_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateUser(childComplexity, args["input"].(generated.CreateUserInput), args["avatarFile"].(*graphql.Upload)), true + + case "Mutation.createUserSetting": + if e.complexity.Mutation.CreateUserSetting == nil { + break + } + + args, err := ec.field_Mutation_createUserSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.CreateUserSetting(childComplexity, args["input"].(generated.CreateUserSettingInput)), true + + case "Mutation.deleteAPIToken": + if e.complexity.Mutation.DeleteAPIToken == nil { + break + } + + args, err := ec.field_Mutation_deleteAPIToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteAPIToken(childComplexity, args["id"].(string)), true + + case "Mutation.deleteActionPlan": + if e.complexity.Mutation.DeleteActionPlan == nil { + break + } + + args, err := ec.field_Mutation_deleteActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteActionPlan(childComplexity, args["id"].(string)), true + + case "Mutation.deleteContact": + if e.complexity.Mutation.DeleteContact == nil { + break + } + + args, err := ec.field_Mutation_deleteContact_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteContact(childComplexity, args["id"].(string)), true + + case "Mutation.deleteControl": + if e.complexity.Mutation.DeleteControl == nil { + break + } + + args, err := ec.field_Mutation_deleteControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteControl(childComplexity, args["id"].(string)), true + + case "Mutation.deleteControlObjective": + if e.complexity.Mutation.DeleteControlObjective == nil { + break + } + + args, err := ec.field_Mutation_deleteControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteControlObjective(childComplexity, args["id"].(string)), true + + case "Mutation.deleteDocumentData": + if e.complexity.Mutation.DeleteDocumentData == nil { + break + } + + args, err := ec.field_Mutation_deleteDocumentData_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteDocumentData(childComplexity, args["id"].(string)), true + + case "Mutation.deleteEntity": + if e.complexity.Mutation.DeleteEntity == nil { + break + } + + args, err := ec.field_Mutation_deleteEntity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteEntity(childComplexity, args["id"].(string)), true + + case "Mutation.deleteEntityType": + if e.complexity.Mutation.DeleteEntityType == nil { + break + } + + args, err := ec.field_Mutation_deleteEntityType_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteEntityType(childComplexity, args["id"].(string)), true + + case "Mutation.deleteEvent": + if e.complexity.Mutation.DeleteEvent == nil { + break + } + + args, err := ec.field_Mutation_deleteEvent_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteEvent(childComplexity, args["id"].(string)), true + + case "Mutation.deleteFile": + if e.complexity.Mutation.DeleteFile == nil { + break + } + + args, err := ec.field_Mutation_deleteFile_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteFile(childComplexity, args["id"].(string)), true + + case "Mutation.deleteGroup": + if e.complexity.Mutation.DeleteGroup == nil { + break + } + + args, err := ec.field_Mutation_deleteGroup_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteGroup(childComplexity, args["id"].(string)), true + + case "Mutation.deleteGroupMembership": + if e.complexity.Mutation.DeleteGroupMembership == nil { + break + } + + args, err := ec.field_Mutation_deleteGroupMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteGroupMembership(childComplexity, args["id"].(string)), true + + case "Mutation.deleteGroupSetting": + if e.complexity.Mutation.DeleteGroupSetting == nil { + break + } + + args, err := ec.field_Mutation_deleteGroupSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteGroupSetting(childComplexity, args["id"].(string)), true + + case "Mutation.deleteHush": + if e.complexity.Mutation.DeleteHush == nil { + break + } + + args, err := ec.field_Mutation_deleteHush_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteHush(childComplexity, args["id"].(string)), true + + case "Mutation.deleteIntegration": + if e.complexity.Mutation.DeleteIntegration == nil { + break + } + + args, err := ec.field_Mutation_deleteIntegration_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteIntegration(childComplexity, args["id"].(string)), true + + case "Mutation.deleteInternalPolicy": + if e.complexity.Mutation.DeleteInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_deleteInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteInternalPolicy(childComplexity, args["id"].(string)), true + + case "Mutation.deleteInvite": + if e.complexity.Mutation.DeleteInvite == nil { + break + } + + args, err := ec.field_Mutation_deleteInvite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteInvite(childComplexity, args["id"].(string)), true + + case "Mutation.deleteNarrative": + if e.complexity.Mutation.DeleteNarrative == nil { + break + } + + args, err := ec.field_Mutation_deleteNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteNarrative(childComplexity, args["id"].(string)), true + + case "Mutation.deleteOrgMembership": + if e.complexity.Mutation.DeleteOrgMembership == nil { + break + } + + args, err := ec.field_Mutation_deleteOrgMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteOrgMembership(childComplexity, args["id"].(string)), true + + case "Mutation.deleteOrgSubscription": + if e.complexity.Mutation.DeleteOrgSubscription == nil { + break + } + + args, err := ec.field_Mutation_deleteOrgSubscription_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteOrgSubscription(childComplexity, args["id"].(string)), true + + case "Mutation.deleteOrganization": + if e.complexity.Mutation.DeleteOrganization == nil { + break + } + + args, err := ec.field_Mutation_deleteOrganization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteOrganization(childComplexity, args["id"].(string)), true + + case "Mutation.deleteOrganizationSetting": + if e.complexity.Mutation.DeleteOrganizationSetting == nil { + break + } + + args, err := ec.field_Mutation_deleteOrganizationSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteOrganizationSetting(childComplexity, args["id"].(string)), true + + case "Mutation.deletePersonalAccessToken": + if e.complexity.Mutation.DeletePersonalAccessToken == nil { + break + } + + args, err := ec.field_Mutation_deletePersonalAccessToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeletePersonalAccessToken(childComplexity, args["id"].(string)), true + + case "Mutation.deleteProcedure": + if e.complexity.Mutation.DeleteProcedure == nil { + break + } + + args, err := ec.field_Mutation_deleteProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteProcedure(childComplexity, args["id"].(string)), true + + case "Mutation.deleteProgram": + if e.complexity.Mutation.DeleteProgram == nil { + break + } + + args, err := ec.field_Mutation_deleteProgram_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteProgram(childComplexity, args["id"].(string)), true + + case "Mutation.deleteProgramMembership": + if e.complexity.Mutation.DeleteProgramMembership == nil { + break + } + + args, err := ec.field_Mutation_deleteProgramMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteProgramMembership(childComplexity, args["id"].(string)), true + + case "Mutation.deleteRisk": + if e.complexity.Mutation.DeleteRisk == nil { + break + } + + args, err := ec.field_Mutation_deleteRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteRisk(childComplexity, args["id"].(string)), true + + case "Mutation.deleteStandard": + if e.complexity.Mutation.DeleteStandard == nil { + break + } + + args, err := ec.field_Mutation_deleteStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteStandard(childComplexity, args["id"].(string)), true + + case "Mutation.deleteSubcontrol": + if e.complexity.Mutation.DeleteSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_deleteSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteSubcontrol(childComplexity, args["id"].(string)), true + + case "Mutation.deleteSubscriber": + if e.complexity.Mutation.DeleteSubscriber == nil { + break + } + + args, err := ec.field_Mutation_deleteSubscriber_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteSubscriber(childComplexity, args["email"].(string), args["ownerID"].(*string)), true + + case "Mutation.deleteTask": + if e.complexity.Mutation.DeleteTask == nil { + break + } + + args, err := ec.field_Mutation_deleteTask_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteTask(childComplexity, args["id"].(string)), true + + case "Mutation.deleteTemplate": + if e.complexity.Mutation.DeleteTemplate == nil { + break + } + + args, err := ec.field_Mutation_deleteTemplate_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteTemplate(childComplexity, args["id"].(string)), true + + case "Mutation.deleteUser": + if e.complexity.Mutation.DeleteUser == nil { + break + } + + args, err := ec.field_Mutation_deleteUser_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.DeleteUser(childComplexity, args["id"].(string)), true + + case "Mutation.updateAPIToken": + if e.complexity.Mutation.UpdateAPIToken == nil { + break + } + + args, err := ec.field_Mutation_updateAPIToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateAPIToken(childComplexity, args["id"].(string), args["input"].(generated.UpdateAPITokenInput)), true + + case "Mutation.updateActionPlan": + if e.complexity.Mutation.UpdateActionPlan == nil { + break + } + + args, err := ec.field_Mutation_updateActionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateActionPlan(childComplexity, args["id"].(string), args["input"].(generated.UpdateActionPlanInput)), true + + case "Mutation.updateContact": + if e.complexity.Mutation.UpdateContact == nil { + break + } + + args, err := ec.field_Mutation_updateContact_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateContact(childComplexity, args["id"].(string), args["input"].(generated.UpdateContactInput)), true + + case "Mutation.updateControl": + if e.complexity.Mutation.UpdateControl == nil { + break + } + + args, err := ec.field_Mutation_updateControl_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateControl(childComplexity, args["id"].(string), args["input"].(generated.UpdateControlInput)), true + + case "Mutation.updateControlObjective": + if e.complexity.Mutation.UpdateControlObjective == nil { + break + } + + args, err := ec.field_Mutation_updateControlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateControlObjective(childComplexity, args["id"].(string), args["input"].(generated.UpdateControlObjectiveInput)), true + + case "Mutation.updateDocumentData": + if e.complexity.Mutation.UpdateDocumentData == nil { + break + } + + args, err := ec.field_Mutation_updateDocumentData_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateDocumentData(childComplexity, args["id"].(string), args["input"].(generated.UpdateDocumentDataInput)), true + + case "Mutation.updateEntity": + if e.complexity.Mutation.UpdateEntity == nil { + break + } + + args, err := ec.field_Mutation_updateEntity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateEntity(childComplexity, args["id"].(string), args["input"].(generated.UpdateEntityInput)), true + + case "Mutation.updateEntityType": + if e.complexity.Mutation.UpdateEntityType == nil { + break + } + + args, err := ec.field_Mutation_updateEntityType_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateEntityType(childComplexity, args["id"].(string), args["input"].(generated.UpdateEntityTypeInput)), true + + case "Mutation.updateEvent": + if e.complexity.Mutation.UpdateEvent == nil { + break + } + + args, err := ec.field_Mutation_updateEvent_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateEvent(childComplexity, args["id"].(string), args["input"].(generated.UpdateEventInput)), true + + case "Mutation.updateGroup": + if e.complexity.Mutation.UpdateGroup == nil { + break + } + + args, err := ec.field_Mutation_updateGroup_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateGroup(childComplexity, args["id"].(string), args["input"].(generated.UpdateGroupInput)), true + + case "Mutation.updateGroupMembership": + if e.complexity.Mutation.UpdateGroupMembership == nil { + break + } + + args, err := ec.field_Mutation_updateGroupMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateGroupMembership(childComplexity, args["id"].(string), args["input"].(generated.UpdateGroupMembershipInput)), true + + case "Mutation.updateGroupSetting": + if e.complexity.Mutation.UpdateGroupSetting == nil { + break + } + + args, err := ec.field_Mutation_updateGroupSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateGroupSetting(childComplexity, args["id"].(string), args["input"].(generated.UpdateGroupSettingInput)), true + + case "Mutation.updateHush": + if e.complexity.Mutation.UpdateHush == nil { + break + } + + args, err := ec.field_Mutation_updateHush_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateHush(childComplexity, args["id"].(string), args["input"].(generated.UpdateHushInput)), true + + case "Mutation.updateIntegration": + if e.complexity.Mutation.UpdateIntegration == nil { + break + } + + args, err := ec.field_Mutation_updateIntegration_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateIntegration(childComplexity, args["id"].(string), args["input"].(generated.UpdateIntegrationInput)), true + + case "Mutation.updateInternalPolicy": + if e.complexity.Mutation.UpdateInternalPolicy == nil { + break + } + + args, err := ec.field_Mutation_updateInternalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateInternalPolicy(childComplexity, args["id"].(string), args["input"].(generated.UpdateInternalPolicyInput)), true + + case "Mutation.updateInvite": + if e.complexity.Mutation.UpdateInvite == nil { + break + } + + args, err := ec.field_Mutation_updateInvite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateInvite(childComplexity, args["id"].(string), args["input"].(generated.UpdateInviteInput)), true + + case "Mutation.updateNarrative": + if e.complexity.Mutation.UpdateNarrative == nil { + break + } + + args, err := ec.field_Mutation_updateNarrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateNarrative(childComplexity, args["id"].(string), args["input"].(generated.UpdateNarrativeInput)), true + + case "Mutation.updateOrgMembership": + if e.complexity.Mutation.UpdateOrgMembership == nil { + break + } + + args, err := ec.field_Mutation_updateOrgMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateOrgMembership(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrgMembershipInput)), true + + case "Mutation.updateOrgSubscription": + if e.complexity.Mutation.UpdateOrgSubscription == nil { + break + } + + args, err := ec.field_Mutation_updateOrgSubscription_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateOrgSubscription(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrgSubscriptionInput)), true + + case "Mutation.updateOrganization": + if e.complexity.Mutation.UpdateOrganization == nil { + break + } + + args, err := ec.field_Mutation_updateOrganization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateOrganization(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrganizationInput)), true + + case "Mutation.updateOrganizationSetting": + if e.complexity.Mutation.UpdateOrganizationSetting == nil { + break + } + + args, err := ec.field_Mutation_updateOrganizationSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateOrganizationSetting(childComplexity, args["id"].(string), args["input"].(generated.UpdateOrganizationSettingInput)), true + + case "Mutation.updatePersonalAccessToken": + if e.complexity.Mutation.UpdatePersonalAccessToken == nil { + break + } + + args, err := ec.field_Mutation_updatePersonalAccessToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdatePersonalAccessToken(childComplexity, args["id"].(string), args["input"].(generated.UpdatePersonalAccessTokenInput)), true + + case "Mutation.updateProcedure": + if e.complexity.Mutation.UpdateProcedure == nil { + break + } + + args, err := ec.field_Mutation_updateProcedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateProcedure(childComplexity, args["id"].(string), args["input"].(generated.UpdateProcedureInput)), true + + case "Mutation.updateProgram": + if e.complexity.Mutation.UpdateProgram == nil { + break + } + + args, err := ec.field_Mutation_updateProgram_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateProgram(childComplexity, args["id"].(string), args["input"].(generated.UpdateProgramInput)), true + + case "Mutation.updateProgramMembership": + if e.complexity.Mutation.UpdateProgramMembership == nil { + break + } + + args, err := ec.field_Mutation_updateProgramMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateProgramMembership(childComplexity, args["id"].(string), args["input"].(generated.UpdateProgramMembershipInput)), true + + case "Mutation.updateRisk": + if e.complexity.Mutation.UpdateRisk == nil { + break + } + + args, err := ec.field_Mutation_updateRisk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateRisk(childComplexity, args["id"].(string), args["input"].(generated.UpdateRiskInput)), true + + case "Mutation.updateStandard": + if e.complexity.Mutation.UpdateStandard == nil { + break + } + + args, err := ec.field_Mutation_updateStandard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateStandard(childComplexity, args["id"].(string), args["input"].(generated.UpdateStandardInput)), true + + case "Mutation.updateSubcontrol": + if e.complexity.Mutation.UpdateSubcontrol == nil { + break + } + + args, err := ec.field_Mutation_updateSubcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateSubcontrol(childComplexity, args["id"].(string), args["input"].(generated.UpdateSubcontrolInput)), true + + case "Mutation.updateSubscriber": + if e.complexity.Mutation.UpdateSubscriber == nil { + break + } + + args, err := ec.field_Mutation_updateSubscriber_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateSubscriber(childComplexity, args["email"].(string), args["input"].(generated.UpdateSubscriberInput)), true + + case "Mutation.updateTFASetting": + if e.complexity.Mutation.UpdateTFASetting == nil { + break + } + + args, err := ec.field_Mutation_updateTFASetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateTFASetting(childComplexity, args["input"].(generated.UpdateTFASettingInput)), true + + case "Mutation.updateTask": + if e.complexity.Mutation.UpdateTask == nil { + break + } + + args, err := ec.field_Mutation_updateTask_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateTask(childComplexity, args["id"].(string), args["input"].(generated.UpdateTaskInput)), true + + case "Mutation.updateTemplate": + if e.complexity.Mutation.UpdateTemplate == nil { + break + } + + args, err := ec.field_Mutation_updateTemplate_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateTemplate(childComplexity, args["id"].(string), args["input"].(generated.UpdateTemplateInput)), true + + case "Mutation.updateUser": + if e.complexity.Mutation.UpdateUser == nil { + break + } + + args, err := ec.field_Mutation_updateUser_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateUser(childComplexity, args["id"].(string), args["input"].(generated.UpdateUserInput), args["avatarFile"].(*graphql.Upload)), true + + case "Mutation.updateUserSetting": + if e.complexity.Mutation.UpdateUserSetting == nil { + break + } + + args, err := ec.field_Mutation_updateUserSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Mutation.UpdateUserSetting(childComplexity, args["id"].(string), args["input"].(generated.UpdateUserSettingInput)), true + + case "Narrative.blockedGroups": + if e.complexity.Narrative.BlockedGroups == nil { + break + } + + return e.complexity.Narrative.BlockedGroups(childComplexity), true + + case "Narrative.control": + if e.complexity.Narrative.Control == nil { + break + } + + return e.complexity.Narrative.Control(childComplexity), true + + case "Narrative.controlObjective": + if e.complexity.Narrative.ControlObjective == nil { + break + } + + return e.complexity.Narrative.ControlObjective(childComplexity), true + + case "Narrative.createdAt": + if e.complexity.Narrative.CreatedAt == nil { + break + } + + return e.complexity.Narrative.CreatedAt(childComplexity), true + + case "Narrative.createdBy": + if e.complexity.Narrative.CreatedBy == nil { + break + } + + return e.complexity.Narrative.CreatedBy(childComplexity), true + + case "Narrative.deletedAt": + if e.complexity.Narrative.DeletedAt == nil { + break + } + + return e.complexity.Narrative.DeletedAt(childComplexity), true + + case "Narrative.deletedBy": + if e.complexity.Narrative.DeletedBy == nil { + break + } + + return e.complexity.Narrative.DeletedBy(childComplexity), true + + case "Narrative.description": + if e.complexity.Narrative.Description == nil { + break + } + + return e.complexity.Narrative.Description(childComplexity), true + + case "Narrative.details": + if e.complexity.Narrative.Details == nil { + break + } + + return e.complexity.Narrative.Details(childComplexity), true + + case "Narrative.editors": + if e.complexity.Narrative.Editors == nil { + break + } + + return e.complexity.Narrative.Editors(childComplexity), true + + case "Narrative.id": + if e.complexity.Narrative.ID == nil { + break + } + + return e.complexity.Narrative.ID(childComplexity), true + + case "Narrative.internalPolicy": + if e.complexity.Narrative.InternalPolicy == nil { + break + } + + return e.complexity.Narrative.InternalPolicy(childComplexity), true + + case "Narrative.name": + if e.complexity.Narrative.Name == nil { + break + } + + return e.complexity.Narrative.Name(childComplexity), true + + case "Narrative.owner": + if e.complexity.Narrative.Owner == nil { + break + } + + return e.complexity.Narrative.Owner(childComplexity), true + + case "Narrative.ownerID": + if e.complexity.Narrative.OwnerID == nil { + break + } + + return e.complexity.Narrative.OwnerID(childComplexity), true + + case "Narrative.procedure": + if e.complexity.Narrative.Procedure == nil { + break + } + + return e.complexity.Narrative.Procedure(childComplexity), true + + case "Narrative.programs": + if e.complexity.Narrative.Programs == nil { + break + } + + return e.complexity.Narrative.Programs(childComplexity), true + + case "Narrative.satisfies": + if e.complexity.Narrative.Satisfies == nil { + break + } + + return e.complexity.Narrative.Satisfies(childComplexity), true + + case "Narrative.tags": + if e.complexity.Narrative.Tags == nil { + break + } + + return e.complexity.Narrative.Tags(childComplexity), true + + case "Narrative.updatedAt": + if e.complexity.Narrative.UpdatedAt == nil { + break + } + + return e.complexity.Narrative.UpdatedAt(childComplexity), true + + case "Narrative.updatedBy": + if e.complexity.Narrative.UpdatedBy == nil { + break + } + + return e.complexity.Narrative.UpdatedBy(childComplexity), true + + case "Narrative.viewers": + if e.complexity.Narrative.Viewers == nil { + break + } + + return e.complexity.Narrative.Viewers(childComplexity), true + + case "NarrativeBulkCreatePayload.narratives": + if e.complexity.NarrativeBulkCreatePayload.Narratives == nil { + break + } + + return e.complexity.NarrativeBulkCreatePayload.Narratives(childComplexity), true + + case "NarrativeConnection.edges": + if e.complexity.NarrativeConnection.Edges == nil { + break + } + + return e.complexity.NarrativeConnection.Edges(childComplexity), true + + case "NarrativeConnection.pageInfo": + if e.complexity.NarrativeConnection.PageInfo == nil { + break + } + + return e.complexity.NarrativeConnection.PageInfo(childComplexity), true + + case "NarrativeConnection.totalCount": + if e.complexity.NarrativeConnection.TotalCount == nil { + break + } + + return e.complexity.NarrativeConnection.TotalCount(childComplexity), true + + case "NarrativeCreatePayload.narrative": + if e.complexity.NarrativeCreatePayload.Narrative == nil { + break + } + + return e.complexity.NarrativeCreatePayload.Narrative(childComplexity), true + + case "NarrativeDeletePayload.deletedID": + if e.complexity.NarrativeDeletePayload.DeletedID == nil { + break + } + + return e.complexity.NarrativeDeletePayload.DeletedID(childComplexity), true + + case "NarrativeEdge.cursor": + if e.complexity.NarrativeEdge.Cursor == nil { + break + } + + return e.complexity.NarrativeEdge.Cursor(childComplexity), true + + case "NarrativeEdge.node": + if e.complexity.NarrativeEdge.Node == nil { + break + } + + return e.complexity.NarrativeEdge.Node(childComplexity), true + + case "NarrativeHistory.createdAt": + if e.complexity.NarrativeHistory.CreatedAt == nil { + break + } + + return e.complexity.NarrativeHistory.CreatedAt(childComplexity), true + + case "NarrativeHistory.createdBy": + if e.complexity.NarrativeHistory.CreatedBy == nil { + break + } + + return e.complexity.NarrativeHistory.CreatedBy(childComplexity), true + + case "NarrativeHistory.deletedAt": + if e.complexity.NarrativeHistory.DeletedAt == nil { + break + } + + return e.complexity.NarrativeHistory.DeletedAt(childComplexity), true + + case "NarrativeHistory.deletedBy": + if e.complexity.NarrativeHistory.DeletedBy == nil { + break + } + + return e.complexity.NarrativeHistory.DeletedBy(childComplexity), true + + case "NarrativeHistory.description": + if e.complexity.NarrativeHistory.Description == nil { + break + } + + return e.complexity.NarrativeHistory.Description(childComplexity), true + + case "NarrativeHistory.details": + if e.complexity.NarrativeHistory.Details == nil { + break + } + + return e.complexity.NarrativeHistory.Details(childComplexity), true + + case "NarrativeHistory.historyTime": + if e.complexity.NarrativeHistory.HistoryTime == nil { + break + } + + return e.complexity.NarrativeHistory.HistoryTime(childComplexity), true + + case "NarrativeHistory.id": + if e.complexity.NarrativeHistory.ID == nil { + break + } + + return e.complexity.NarrativeHistory.ID(childComplexity), true + + case "NarrativeHistory.name": + if e.complexity.NarrativeHistory.Name == nil { + break + } + + return e.complexity.NarrativeHistory.Name(childComplexity), true + + case "NarrativeHistory.operation": + if e.complexity.NarrativeHistory.Operation == nil { + break + } + + return e.complexity.NarrativeHistory.Operation(childComplexity), true + + case "NarrativeHistory.ownerID": + if e.complexity.NarrativeHistory.OwnerID == nil { + break + } + + return e.complexity.NarrativeHistory.OwnerID(childComplexity), true + + case "NarrativeHistory.ref": + if e.complexity.NarrativeHistory.Ref == nil { + break + } + + return e.complexity.NarrativeHistory.Ref(childComplexity), true + + case "NarrativeHistory.satisfies": + if e.complexity.NarrativeHistory.Satisfies == nil { + break + } + + return e.complexity.NarrativeHistory.Satisfies(childComplexity), true + + case "NarrativeHistory.tags": + if e.complexity.NarrativeHistory.Tags == nil { + break + } + + return e.complexity.NarrativeHistory.Tags(childComplexity), true + + case "NarrativeHistory.updatedAt": + if e.complexity.NarrativeHistory.UpdatedAt == nil { + break + } + + return e.complexity.NarrativeHistory.UpdatedAt(childComplexity), true + + case "NarrativeHistory.updatedBy": + if e.complexity.NarrativeHistory.UpdatedBy == nil { + break + } + + return e.complexity.NarrativeHistory.UpdatedBy(childComplexity), true + + case "NarrativeHistoryConnection.edges": + if e.complexity.NarrativeHistoryConnection.Edges == nil { + break + } + + return e.complexity.NarrativeHistoryConnection.Edges(childComplexity), true + + case "NarrativeHistoryConnection.pageInfo": + if e.complexity.NarrativeHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.NarrativeHistoryConnection.PageInfo(childComplexity), true + + case "NarrativeHistoryConnection.totalCount": + if e.complexity.NarrativeHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.NarrativeHistoryConnection.TotalCount(childComplexity), true + + case "NarrativeHistoryEdge.cursor": + if e.complexity.NarrativeHistoryEdge.Cursor == nil { + break + } + + return e.complexity.NarrativeHistoryEdge.Cursor(childComplexity), true + + case "NarrativeHistoryEdge.node": + if e.complexity.NarrativeHistoryEdge.Node == nil { + break + } + + return e.complexity.NarrativeHistoryEdge.Node(childComplexity), true + + case "NarrativeSearchResult.narratives": + if e.complexity.NarrativeSearchResult.Narratives == nil { + break + } + + return e.complexity.NarrativeSearchResult.Narratives(childComplexity), true + + case "NarrativeUpdatePayload.narrative": + if e.complexity.NarrativeUpdatePayload.Narrative == nil { + break + } + + return e.complexity.NarrativeUpdatePayload.Narrative(childComplexity), true + + case "Note.createdAt": + if e.complexity.Note.CreatedAt == nil { + break + } + + return e.complexity.Note.CreatedAt(childComplexity), true + + case "Note.createdBy": + if e.complexity.Note.CreatedBy == nil { + break + } + + return e.complexity.Note.CreatedBy(childComplexity), true + + case "Note.deletedAt": + if e.complexity.Note.DeletedAt == nil { + break + } + + return e.complexity.Note.DeletedAt(childComplexity), true + + case "Note.deletedBy": + if e.complexity.Note.DeletedBy == nil { + break + } + + return e.complexity.Note.DeletedBy(childComplexity), true + + case "Note.entity": + if e.complexity.Note.Entity == nil { + break + } + + return e.complexity.Note.Entity(childComplexity), true + + case "Note.id": + if e.complexity.Note.ID == nil { + break + } + + return e.complexity.Note.ID(childComplexity), true + + case "Note.owner": + if e.complexity.Note.Owner == nil { + break + } + + return e.complexity.Note.Owner(childComplexity), true + + case "Note.ownerID": + if e.complexity.Note.OwnerID == nil { + break + } + + return e.complexity.Note.OwnerID(childComplexity), true + + case "Note.program": + if e.complexity.Note.Program == nil { + break + } + + return e.complexity.Note.Program(childComplexity), true + + case "Note.subcontrols": + if e.complexity.Note.Subcontrols == nil { + break + } + + return e.complexity.Note.Subcontrols(childComplexity), true + + case "Note.tags": + if e.complexity.Note.Tags == nil { + break + } + + return e.complexity.Note.Tags(childComplexity), true + + case "Note.text": + if e.complexity.Note.Text == nil { + break + } + + return e.complexity.Note.Text(childComplexity), true + + case "Note.updatedAt": + if e.complexity.Note.UpdatedAt == nil { + break + } + + return e.complexity.Note.UpdatedAt(childComplexity), true + + case "Note.updatedBy": + if e.complexity.Note.UpdatedBy == nil { + break + } + + return e.complexity.Note.UpdatedBy(childComplexity), true + + case "NoteConnection.edges": + if e.complexity.NoteConnection.Edges == nil { + break + } + + return e.complexity.NoteConnection.Edges(childComplexity), true + + case "NoteConnection.pageInfo": + if e.complexity.NoteConnection.PageInfo == nil { + break + } + + return e.complexity.NoteConnection.PageInfo(childComplexity), true + + case "NoteConnection.totalCount": + if e.complexity.NoteConnection.TotalCount == nil { + break + } + + return e.complexity.NoteConnection.TotalCount(childComplexity), true + + case "NoteEdge.cursor": + if e.complexity.NoteEdge.Cursor == nil { + break + } + + return e.complexity.NoteEdge.Cursor(childComplexity), true + + case "NoteEdge.node": + if e.complexity.NoteEdge.Node == nil { + break + } + + return e.complexity.NoteEdge.Node(childComplexity), true + + case "NoteHistory.createdAt": + if e.complexity.NoteHistory.CreatedAt == nil { + break + } + + return e.complexity.NoteHistory.CreatedAt(childComplexity), true + + case "NoteHistory.createdBy": + if e.complexity.NoteHistory.CreatedBy == nil { + break + } + + return e.complexity.NoteHistory.CreatedBy(childComplexity), true + + case "NoteHistory.deletedAt": + if e.complexity.NoteHistory.DeletedAt == nil { + break + } + + return e.complexity.NoteHistory.DeletedAt(childComplexity), true + + case "NoteHistory.deletedBy": + if e.complexity.NoteHistory.DeletedBy == nil { + break + } + + return e.complexity.NoteHistory.DeletedBy(childComplexity), true + + case "NoteHistory.historyTime": + if e.complexity.NoteHistory.HistoryTime == nil { + break + } + + return e.complexity.NoteHistory.HistoryTime(childComplexity), true + + case "NoteHistory.id": + if e.complexity.NoteHistory.ID == nil { + break + } + + return e.complexity.NoteHistory.ID(childComplexity), true + + case "NoteHistory.operation": + if e.complexity.NoteHistory.Operation == nil { + break + } + + return e.complexity.NoteHistory.Operation(childComplexity), true + + case "NoteHistory.ownerID": + if e.complexity.NoteHistory.OwnerID == nil { + break + } + + return e.complexity.NoteHistory.OwnerID(childComplexity), true + + case "NoteHistory.ref": + if e.complexity.NoteHistory.Ref == nil { + break + } + + return e.complexity.NoteHistory.Ref(childComplexity), true + + case "NoteHistory.tags": + if e.complexity.NoteHistory.Tags == nil { + break + } + + return e.complexity.NoteHistory.Tags(childComplexity), true + + case "NoteHistory.text": + if e.complexity.NoteHistory.Text == nil { + break + } + + return e.complexity.NoteHistory.Text(childComplexity), true + + case "NoteHistory.updatedAt": + if e.complexity.NoteHistory.UpdatedAt == nil { + break + } + + return e.complexity.NoteHistory.UpdatedAt(childComplexity), true + + case "NoteHistory.updatedBy": + if e.complexity.NoteHistory.UpdatedBy == nil { + break + } + + return e.complexity.NoteHistory.UpdatedBy(childComplexity), true + + case "NoteHistoryConnection.edges": + if e.complexity.NoteHistoryConnection.Edges == nil { + break + } + + return e.complexity.NoteHistoryConnection.Edges(childComplexity), true + + case "NoteHistoryConnection.pageInfo": + if e.complexity.NoteHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.NoteHistoryConnection.PageInfo(childComplexity), true + + case "NoteHistoryConnection.totalCount": + if e.complexity.NoteHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.NoteHistoryConnection.TotalCount(childComplexity), true + + case "NoteHistoryEdge.cursor": + if e.complexity.NoteHistoryEdge.Cursor == nil { + break + } + + return e.complexity.NoteHistoryEdge.Cursor(childComplexity), true + + case "NoteHistoryEdge.node": + if e.complexity.NoteHistoryEdge.Node == nil { + break + } + + return e.complexity.NoteHistoryEdge.Node(childComplexity), true + + case "OrgMembership.createdAt": + if e.complexity.OrgMembership.CreatedAt == nil { + break + } + + return e.complexity.OrgMembership.CreatedAt(childComplexity), true + + case "OrgMembership.createdBy": + if e.complexity.OrgMembership.CreatedBy == nil { + break + } + + return e.complexity.OrgMembership.CreatedBy(childComplexity), true + + case "OrgMembership.deletedAt": + if e.complexity.OrgMembership.DeletedAt == nil { + break + } + + return e.complexity.OrgMembership.DeletedAt(childComplexity), true + + case "OrgMembership.deletedBy": + if e.complexity.OrgMembership.DeletedBy == nil { + break + } + + return e.complexity.OrgMembership.DeletedBy(childComplexity), true + + case "OrgMembership.events": + if e.complexity.OrgMembership.Events == nil { + break + } + + return e.complexity.OrgMembership.Events(childComplexity), true + + case "OrgMembership.id": + if e.complexity.OrgMembership.ID == nil { + break + } + + return e.complexity.OrgMembership.ID(childComplexity), true + + case "OrgMembership.organization": + if e.complexity.OrgMembership.Organization == nil { + break + } + + return e.complexity.OrgMembership.Organization(childComplexity), true + + case "OrgMembership.organizationID": + if e.complexity.OrgMembership.OrganizationID == nil { + break + } + + return e.complexity.OrgMembership.OrganizationID(childComplexity), true + + case "OrgMembership.role": + if e.complexity.OrgMembership.Role == nil { + break + } + + return e.complexity.OrgMembership.Role(childComplexity), true + + case "OrgMembership.updatedAt": + if e.complexity.OrgMembership.UpdatedAt == nil { + break + } + + return e.complexity.OrgMembership.UpdatedAt(childComplexity), true + + case "OrgMembership.updatedBy": + if e.complexity.OrgMembership.UpdatedBy == nil { + break + } + + return e.complexity.OrgMembership.UpdatedBy(childComplexity), true + + case "OrgMembership.user": + if e.complexity.OrgMembership.User == nil { + break + } + + return e.complexity.OrgMembership.User(childComplexity), true + + case "OrgMembership.userID": + if e.complexity.OrgMembership.UserID == nil { + break + } + + return e.complexity.OrgMembership.UserID(childComplexity), true + + case "OrgMembershipBulkCreatePayload.orgMemberships": + if e.complexity.OrgMembershipBulkCreatePayload.OrgMemberships == nil { + break + } + + return e.complexity.OrgMembershipBulkCreatePayload.OrgMemberships(childComplexity), true + + case "OrgMembershipConnection.edges": + if e.complexity.OrgMembershipConnection.Edges == nil { + break + } + + return e.complexity.OrgMembershipConnection.Edges(childComplexity), true + + case "OrgMembershipConnection.pageInfo": + if e.complexity.OrgMembershipConnection.PageInfo == nil { + break + } + + return e.complexity.OrgMembershipConnection.PageInfo(childComplexity), true + + case "OrgMembershipConnection.totalCount": + if e.complexity.OrgMembershipConnection.TotalCount == nil { + break + } + + return e.complexity.OrgMembershipConnection.TotalCount(childComplexity), true + + case "OrgMembershipCreatePayload.orgMembership": + if e.complexity.OrgMembershipCreatePayload.OrgMembership == nil { + break + } + + return e.complexity.OrgMembershipCreatePayload.OrgMembership(childComplexity), true + + case "OrgMembershipDeletePayload.deletedID": + if e.complexity.OrgMembershipDeletePayload.DeletedID == nil { + break + } + + return e.complexity.OrgMembershipDeletePayload.DeletedID(childComplexity), true + + case "OrgMembershipEdge.cursor": + if e.complexity.OrgMembershipEdge.Cursor == nil { + break + } + + return e.complexity.OrgMembershipEdge.Cursor(childComplexity), true + + case "OrgMembershipEdge.node": + if e.complexity.OrgMembershipEdge.Node == nil { + break + } + + return e.complexity.OrgMembershipEdge.Node(childComplexity), true + + case "OrgMembershipHistory.createdAt": + if e.complexity.OrgMembershipHistory.CreatedAt == nil { + break + } + + return e.complexity.OrgMembershipHistory.CreatedAt(childComplexity), true + + case "OrgMembershipHistory.createdBy": + if e.complexity.OrgMembershipHistory.CreatedBy == nil { + break + } + + return e.complexity.OrgMembershipHistory.CreatedBy(childComplexity), true + + case "OrgMembershipHistory.deletedAt": + if e.complexity.OrgMembershipHistory.DeletedAt == nil { + break + } + + return e.complexity.OrgMembershipHistory.DeletedAt(childComplexity), true + + case "OrgMembershipHistory.deletedBy": + if e.complexity.OrgMembershipHistory.DeletedBy == nil { + break + } + + return e.complexity.OrgMembershipHistory.DeletedBy(childComplexity), true + + case "OrgMembershipHistory.historyTime": + if e.complexity.OrgMembershipHistory.HistoryTime == nil { + break + } + + return e.complexity.OrgMembershipHistory.HistoryTime(childComplexity), true + + case "OrgMembershipHistory.id": + if e.complexity.OrgMembershipHistory.ID == nil { + break + } + + return e.complexity.OrgMembershipHistory.ID(childComplexity), true + + case "OrgMembershipHistory.operation": + if e.complexity.OrgMembershipHistory.Operation == nil { + break + } + + return e.complexity.OrgMembershipHistory.Operation(childComplexity), true + + case "OrgMembershipHistory.organizationID": + if e.complexity.OrgMembershipHistory.OrganizationID == nil { + break + } + + return e.complexity.OrgMembershipHistory.OrganizationID(childComplexity), true + + case "OrgMembershipHistory.ref": + if e.complexity.OrgMembershipHistory.Ref == nil { + break + } + + return e.complexity.OrgMembershipHistory.Ref(childComplexity), true + + case "OrgMembershipHistory.role": + if e.complexity.OrgMembershipHistory.Role == nil { + break + } + + return e.complexity.OrgMembershipHistory.Role(childComplexity), true + + case "OrgMembershipHistory.updatedAt": + if e.complexity.OrgMembershipHistory.UpdatedAt == nil { + break + } + + return e.complexity.OrgMembershipHistory.UpdatedAt(childComplexity), true + + case "OrgMembershipHistory.updatedBy": + if e.complexity.OrgMembershipHistory.UpdatedBy == nil { + break + } + + return e.complexity.OrgMembershipHistory.UpdatedBy(childComplexity), true + + case "OrgMembershipHistory.userID": + if e.complexity.OrgMembershipHistory.UserID == nil { + break + } + + return e.complexity.OrgMembershipHistory.UserID(childComplexity), true + + case "OrgMembershipHistoryConnection.edges": + if e.complexity.OrgMembershipHistoryConnection.Edges == nil { + break + } + + return e.complexity.OrgMembershipHistoryConnection.Edges(childComplexity), true + + case "OrgMembershipHistoryConnection.pageInfo": + if e.complexity.OrgMembershipHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.OrgMembershipHistoryConnection.PageInfo(childComplexity), true + + case "OrgMembershipHistoryConnection.totalCount": + if e.complexity.OrgMembershipHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.OrgMembershipHistoryConnection.TotalCount(childComplexity), true + + case "OrgMembershipHistoryEdge.cursor": + if e.complexity.OrgMembershipHistoryEdge.Cursor == nil { + break + } + + return e.complexity.OrgMembershipHistoryEdge.Cursor(childComplexity), true + + case "OrgMembershipHistoryEdge.node": + if e.complexity.OrgMembershipHistoryEdge.Node == nil { + break + } + + return e.complexity.OrgMembershipHistoryEdge.Node(childComplexity), true + + case "OrgMembershipUpdatePayload.orgMembership": + if e.complexity.OrgMembershipUpdatePayload.OrgMembership == nil { + break + } + + return e.complexity.OrgMembershipUpdatePayload.OrgMembership(childComplexity), true + + case "OrgSubscription.active": + if e.complexity.OrgSubscription.Active == nil { + break + } + + return e.complexity.OrgSubscription.Active(childComplexity), true + + case "OrgSubscription.createdAt": + if e.complexity.OrgSubscription.CreatedAt == nil { + break + } + + return e.complexity.OrgSubscription.CreatedAt(childComplexity), true + + case "OrgSubscription.createdBy": + if e.complexity.OrgSubscription.CreatedBy == nil { + break + } + + return e.complexity.OrgSubscription.CreatedBy(childComplexity), true + + case "OrgSubscription.deletedAt": + if e.complexity.OrgSubscription.DeletedAt == nil { + break + } + + return e.complexity.OrgSubscription.DeletedAt(childComplexity), true + + case "OrgSubscription.deletedBy": + if e.complexity.OrgSubscription.DeletedBy == nil { + break + } + + return e.complexity.OrgSubscription.DeletedBy(childComplexity), true + + case "OrgSubscription.expiresAt": + if e.complexity.OrgSubscription.ExpiresAt == nil { + break + } + + return e.complexity.OrgSubscription.ExpiresAt(childComplexity), true + + case "OrgSubscription.features": + if e.complexity.OrgSubscription.Features == nil { + break + } + + return e.complexity.OrgSubscription.Features(childComplexity), true + + case "OrgSubscription.id": + if e.complexity.OrgSubscription.ID == nil { + break + } + + return e.complexity.OrgSubscription.ID(childComplexity), true + + case "OrgSubscription.owner": + if e.complexity.OrgSubscription.Owner == nil { + break + } + + return e.complexity.OrgSubscription.Owner(childComplexity), true + + case "OrgSubscription.ownerID": + if e.complexity.OrgSubscription.OwnerID == nil { + break + } + + return e.complexity.OrgSubscription.OwnerID(childComplexity), true + + case "OrgSubscription.productTier": + if e.complexity.OrgSubscription.ProductTier == nil { + break + } + + return e.complexity.OrgSubscription.ProductTier(childComplexity), true + + case "OrgSubscription.stripeCustomerID": + if e.complexity.OrgSubscription.StripeCustomerID == nil { + break + } + + return e.complexity.OrgSubscription.StripeCustomerID(childComplexity), true + + case "OrgSubscription.stripeProductTierID": + if e.complexity.OrgSubscription.StripeProductTierID == nil { + break + } + + return e.complexity.OrgSubscription.StripeProductTierID(childComplexity), true + + case "OrgSubscription.stripeSubscriptionID": + if e.complexity.OrgSubscription.StripeSubscriptionID == nil { + break + } + + return e.complexity.OrgSubscription.StripeSubscriptionID(childComplexity), true + + case "OrgSubscription.stripeSubscriptionStatus": + if e.complexity.OrgSubscription.StripeSubscriptionStatus == nil { + break + } + + return e.complexity.OrgSubscription.StripeSubscriptionStatus(childComplexity), true + + case "OrgSubscription.tags": + if e.complexity.OrgSubscription.Tags == nil { + break + } + + return e.complexity.OrgSubscription.Tags(childComplexity), true + + case "OrgSubscription.updatedAt": + if e.complexity.OrgSubscription.UpdatedAt == nil { + break + } + + return e.complexity.OrgSubscription.UpdatedAt(childComplexity), true + + case "OrgSubscription.updatedBy": + if e.complexity.OrgSubscription.UpdatedBy == nil { + break + } + + return e.complexity.OrgSubscription.UpdatedBy(childComplexity), true + + case "OrgSubscriptionBulkCreatePayload.orgSubscriptions": + if e.complexity.OrgSubscriptionBulkCreatePayload.OrgSubscriptions == nil { + break + } + + return e.complexity.OrgSubscriptionBulkCreatePayload.OrgSubscriptions(childComplexity), true + + case "OrgSubscriptionConnection.edges": + if e.complexity.OrgSubscriptionConnection.Edges == nil { + break + } + + return e.complexity.OrgSubscriptionConnection.Edges(childComplexity), true + + case "OrgSubscriptionConnection.pageInfo": + if e.complexity.OrgSubscriptionConnection.PageInfo == nil { + break + } + + return e.complexity.OrgSubscriptionConnection.PageInfo(childComplexity), true + + case "OrgSubscriptionConnection.totalCount": + if e.complexity.OrgSubscriptionConnection.TotalCount == nil { + break + } + + return e.complexity.OrgSubscriptionConnection.TotalCount(childComplexity), true + + case "OrgSubscriptionCreatePayload.orgSubscription": + if e.complexity.OrgSubscriptionCreatePayload.OrgSubscription == nil { + break + } + + return e.complexity.OrgSubscriptionCreatePayload.OrgSubscription(childComplexity), true + + case "OrgSubscriptionDeletePayload.deletedID": + if e.complexity.OrgSubscriptionDeletePayload.DeletedID == nil { + break + } + + return e.complexity.OrgSubscriptionDeletePayload.DeletedID(childComplexity), true + + case "OrgSubscriptionEdge.cursor": + if e.complexity.OrgSubscriptionEdge.Cursor == nil { + break + } + + return e.complexity.OrgSubscriptionEdge.Cursor(childComplexity), true + + case "OrgSubscriptionEdge.node": + if e.complexity.OrgSubscriptionEdge.Node == nil { + break + } + + return e.complexity.OrgSubscriptionEdge.Node(childComplexity), true + + case "OrgSubscriptionHistory.active": + if e.complexity.OrgSubscriptionHistory.Active == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.Active(childComplexity), true + + case "OrgSubscriptionHistory.createdAt": + if e.complexity.OrgSubscriptionHistory.CreatedAt == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.CreatedAt(childComplexity), true + + case "OrgSubscriptionHistory.createdBy": + if e.complexity.OrgSubscriptionHistory.CreatedBy == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.CreatedBy(childComplexity), true + + case "OrgSubscriptionHistory.deletedAt": + if e.complexity.OrgSubscriptionHistory.DeletedAt == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.DeletedAt(childComplexity), true + + case "OrgSubscriptionHistory.deletedBy": + if e.complexity.OrgSubscriptionHistory.DeletedBy == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.DeletedBy(childComplexity), true + + case "OrgSubscriptionHistory.expiresAt": + if e.complexity.OrgSubscriptionHistory.ExpiresAt == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.ExpiresAt(childComplexity), true + + case "OrgSubscriptionHistory.features": + if e.complexity.OrgSubscriptionHistory.Features == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.Features(childComplexity), true + + case "OrgSubscriptionHistory.historyTime": + if e.complexity.OrgSubscriptionHistory.HistoryTime == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.HistoryTime(childComplexity), true + + case "OrgSubscriptionHistory.id": + if e.complexity.OrgSubscriptionHistory.ID == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.ID(childComplexity), true + + case "OrgSubscriptionHistory.operation": + if e.complexity.OrgSubscriptionHistory.Operation == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.Operation(childComplexity), true + + case "OrgSubscriptionHistory.ownerID": + if e.complexity.OrgSubscriptionHistory.OwnerID == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.OwnerID(childComplexity), true + + case "OrgSubscriptionHistory.productTier": + if e.complexity.OrgSubscriptionHistory.ProductTier == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.ProductTier(childComplexity), true + + case "OrgSubscriptionHistory.ref": + if e.complexity.OrgSubscriptionHistory.Ref == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.Ref(childComplexity), true + + case "OrgSubscriptionHistory.stripeCustomerID": + if e.complexity.OrgSubscriptionHistory.StripeCustomerID == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.StripeCustomerID(childComplexity), true + + case "OrgSubscriptionHistory.stripeProductTierID": + if e.complexity.OrgSubscriptionHistory.StripeProductTierID == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.StripeProductTierID(childComplexity), true + + case "OrgSubscriptionHistory.stripeSubscriptionID": + if e.complexity.OrgSubscriptionHistory.StripeSubscriptionID == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.StripeSubscriptionID(childComplexity), true + + case "OrgSubscriptionHistory.stripeSubscriptionStatus": + if e.complexity.OrgSubscriptionHistory.StripeSubscriptionStatus == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.StripeSubscriptionStatus(childComplexity), true + + case "OrgSubscriptionHistory.tags": + if e.complexity.OrgSubscriptionHistory.Tags == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.Tags(childComplexity), true + + case "OrgSubscriptionHistory.updatedAt": + if e.complexity.OrgSubscriptionHistory.UpdatedAt == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.UpdatedAt(childComplexity), true + + case "OrgSubscriptionHistory.updatedBy": + if e.complexity.OrgSubscriptionHistory.UpdatedBy == nil { + break + } + + return e.complexity.OrgSubscriptionHistory.UpdatedBy(childComplexity), true + + case "OrgSubscriptionHistoryConnection.edges": + if e.complexity.OrgSubscriptionHistoryConnection.Edges == nil { + break + } + + return e.complexity.OrgSubscriptionHistoryConnection.Edges(childComplexity), true + + case "OrgSubscriptionHistoryConnection.pageInfo": + if e.complexity.OrgSubscriptionHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.OrgSubscriptionHistoryConnection.PageInfo(childComplexity), true + + case "OrgSubscriptionHistoryConnection.totalCount": + if e.complexity.OrgSubscriptionHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.OrgSubscriptionHistoryConnection.TotalCount(childComplexity), true + + case "OrgSubscriptionHistoryEdge.cursor": + if e.complexity.OrgSubscriptionHistoryEdge.Cursor == nil { + break + } + + return e.complexity.OrgSubscriptionHistoryEdge.Cursor(childComplexity), true + + case "OrgSubscriptionHistoryEdge.node": + if e.complexity.OrgSubscriptionHistoryEdge.Node == nil { + break + } + + return e.complexity.OrgSubscriptionHistoryEdge.Node(childComplexity), true + + case "OrgSubscriptionSearchResult.orgSubscriptions": + if e.complexity.OrgSubscriptionSearchResult.OrgSubscriptions == nil { + break + } + + return e.complexity.OrgSubscriptionSearchResult.OrgSubscriptions(childComplexity), true + + case "OrgSubscriptionUpdatePayload.orgSubscription": + if e.complexity.OrgSubscriptionUpdatePayload.OrgSubscription == nil { + break + } + + return e.complexity.OrgSubscriptionUpdatePayload.OrgSubscription(childComplexity), true + + case "Organization.apiTokens": + if e.complexity.Organization.APITokens == nil { + break + } + + return e.complexity.Organization.APITokens(childComplexity), true + + case "Organization.avatarRemoteURL": + if e.complexity.Organization.AvatarRemoteURL == nil { + break + } + + return e.complexity.Organization.AvatarRemoteURL(childComplexity), true + + case "Organization.children": + if e.complexity.Organization.Children == nil { + break + } + + args, err := ec.field_Organization_children_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Organization.Children(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.OrganizationOrder), args["where"].(*generated.OrganizationWhereInput)), true + + case "Organization.contacts": + if e.complexity.Organization.Contacts == nil { + break + } + + return e.complexity.Organization.Contacts(childComplexity), true + + case "Organization.controlCreators": + if e.complexity.Organization.ControlCreators == nil { + break + } + + return e.complexity.Organization.ControlCreators(childComplexity), true + + case "Organization.controlObjectiveCreators": + if e.complexity.Organization.ControlObjectiveCreators == nil { + break + } + + return e.complexity.Organization.ControlObjectiveCreators(childComplexity), true + + case "Organization.controlObjectives": + if e.complexity.Organization.ControlObjectives == nil { + break + } + + return e.complexity.Organization.ControlObjectives(childComplexity), true + + case "Organization.controls": + if e.complexity.Organization.Controls == nil { + break + } + + return e.complexity.Organization.Controls(childComplexity), true + + case "Organization.createdAt": + if e.complexity.Organization.CreatedAt == nil { + break + } + + return e.complexity.Organization.CreatedAt(childComplexity), true + + case "Organization.createdBy": + if e.complexity.Organization.CreatedBy == nil { + break + } + + return e.complexity.Organization.CreatedBy(childComplexity), true + + case "Organization.dedicatedDb": + if e.complexity.Organization.DedicatedDb == nil { + break + } + + return e.complexity.Organization.DedicatedDb(childComplexity), true + + case "Organization.deletedAt": + if e.complexity.Organization.DeletedAt == nil { + break + } + + return e.complexity.Organization.DeletedAt(childComplexity), true + + case "Organization.deletedBy": + if e.complexity.Organization.DeletedBy == nil { + break + } + + return e.complexity.Organization.DeletedBy(childComplexity), true + + case "Organization.description": + if e.complexity.Organization.Description == nil { + break + } + + return e.complexity.Organization.Description(childComplexity), true + + case "Organization.displayName": + if e.complexity.Organization.DisplayName == nil { + break + } + + return e.complexity.Organization.DisplayName(childComplexity), true + + case "Organization.documentData": + if e.complexity.Organization.DocumentData == nil { + break + } + + return e.complexity.Organization.DocumentData(childComplexity), true + + case "Organization.entities": + if e.complexity.Organization.Entities == nil { + break + } + + return e.complexity.Organization.Entities(childComplexity), true + + case "Organization.entityTypes": + if e.complexity.Organization.EntityTypes == nil { + break + } + + return e.complexity.Organization.EntityTypes(childComplexity), true + + case "Organization.events": + if e.complexity.Organization.Events == nil { + break + } + + return e.complexity.Organization.Events(childComplexity), true + + case "Organization.files": + if e.complexity.Organization.Files == nil { + break + } + + return e.complexity.Organization.Files(childComplexity), true + + case "Organization.groupCreators": + if e.complexity.Organization.GroupCreators == nil { + break + } + + return e.complexity.Organization.GroupCreators(childComplexity), true + + case "Organization.groups": + if e.complexity.Organization.Groups == nil { + break + } + + return e.complexity.Organization.Groups(childComplexity), true + + case "Organization.id": + if e.complexity.Organization.ID == nil { + break + } + + return e.complexity.Organization.ID(childComplexity), true + + case "Organization.integrations": + if e.complexity.Organization.Integrations == nil { + break + } + + return e.complexity.Organization.Integrations(childComplexity), true + + case "Organization.internalPolicies": + if e.complexity.Organization.InternalPolicies == nil { + break + } + + return e.complexity.Organization.InternalPolicies(childComplexity), true + + case "Organization.internalPolicyCreators": + if e.complexity.Organization.InternalPolicyCreators == nil { + break + } + + return e.complexity.Organization.InternalPolicyCreators(childComplexity), true + + case "Organization.invites": + if e.complexity.Organization.Invites == nil { + break + } + + return e.complexity.Organization.Invites(childComplexity), true + + case "Organization.members": + if e.complexity.Organization.Members == nil { + break + } + + return e.complexity.Organization.Members(childComplexity), true + + case "Organization.name": + if e.complexity.Organization.Name == nil { + break + } + + return e.complexity.Organization.Name(childComplexity), true + + case "Organization.narrativeCreators": + if e.complexity.Organization.NarrativeCreators == nil { + break + } + + return e.complexity.Organization.NarrativeCreators(childComplexity), true + + case "Organization.narratives": + if e.complexity.Organization.Narratives == nil { + break + } + + return e.complexity.Organization.Narratives(childComplexity), true + + case "Organization.notes": + if e.complexity.Organization.Notes == nil { + break + } + + return e.complexity.Organization.Notes(childComplexity), true + + case "Organization.orgSubscriptions": + if e.complexity.Organization.OrgSubscriptions == nil { + break + } + + return e.complexity.Organization.OrgSubscriptions(childComplexity), true + + case "Organization.parent": + if e.complexity.Organization.Parent == nil { + break + } + + return e.complexity.Organization.Parent(childComplexity), true + + case "Organization.personalAccessTokens": + if e.complexity.Organization.PersonalAccessTokens == nil { + break + } + + return e.complexity.Organization.PersonalAccessTokens(childComplexity), true + + case "Organization.personalOrg": + if e.complexity.Organization.PersonalOrg == nil { + break + } + + return e.complexity.Organization.PersonalOrg(childComplexity), true + + case "Organization.procedureCreators": + if e.complexity.Organization.ProcedureCreators == nil { + break + } + + return e.complexity.Organization.ProcedureCreators(childComplexity), true + + case "Organization.procedures": + if e.complexity.Organization.Procedures == nil { + break + } + + return e.complexity.Organization.Procedures(childComplexity), true + + case "Organization.programCreators": + if e.complexity.Organization.ProgramCreators == nil { + break + } + + return e.complexity.Organization.ProgramCreators(childComplexity), true + + case "Organization.programs": + if e.complexity.Organization.Programs == nil { + break + } + + return e.complexity.Organization.Programs(childComplexity), true + + case "Organization.riskCreators": + if e.complexity.Organization.RiskCreators == nil { + break + } + + return e.complexity.Organization.RiskCreators(childComplexity), true + + case "Organization.risks": + if e.complexity.Organization.Risks == nil { + break + } + + return e.complexity.Organization.Risks(childComplexity), true + + case "Organization.secrets": + if e.complexity.Organization.Secrets == nil { + break + } + + return e.complexity.Organization.Secrets(childComplexity), true + + case "Organization.setting": + if e.complexity.Organization.Setting == nil { + break + } + + return e.complexity.Organization.Setting(childComplexity), true + + case "Organization.subcontrols": + if e.complexity.Organization.Subcontrols == nil { + break + } + + return e.complexity.Organization.Subcontrols(childComplexity), true + + case "Organization.subscribers": + if e.complexity.Organization.Subscribers == nil { + break + } + + return e.complexity.Organization.Subscribers(childComplexity), true + + case "Organization.tags": + if e.complexity.Organization.Tags == nil { + break + } + + return e.complexity.Organization.Tags(childComplexity), true + + case "Organization.tasks": + if e.complexity.Organization.Tasks == nil { + break + } + + return e.complexity.Organization.Tasks(childComplexity), true + + case "Organization.templateCreators": + if e.complexity.Organization.TemplateCreators == nil { + break + } + + return e.complexity.Organization.TemplateCreators(childComplexity), true + + case "Organization.templates": + if e.complexity.Organization.Templates == nil { + break + } + + return e.complexity.Organization.Templates(childComplexity), true + + case "Organization.updatedAt": + if e.complexity.Organization.UpdatedAt == nil { + break + } + + return e.complexity.Organization.UpdatedAt(childComplexity), true + + case "Organization.updatedBy": + if e.complexity.Organization.UpdatedBy == nil { + break + } + + return e.complexity.Organization.UpdatedBy(childComplexity), true + + case "Organization.users": + if e.complexity.Organization.Users == nil { + break + } + + return e.complexity.Organization.Users(childComplexity), true + + case "OrganizationBulkCreatePayload.organizations": + if e.complexity.OrganizationBulkCreatePayload.Organizations == nil { + break + } + + return e.complexity.OrganizationBulkCreatePayload.Organizations(childComplexity), 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 "OrganizationConnection.totalCount": + if e.complexity.OrganizationConnection.TotalCount == nil { + break + } + + return e.complexity.OrganizationConnection.TotalCount(childComplexity), true + + case "OrganizationCreatePayload.organization": + if e.complexity.OrganizationCreatePayload.Organization == nil { + break + } + + return e.complexity.OrganizationCreatePayload.Organization(childComplexity), true + + case "OrganizationDeletePayload.deletedID": + if e.complexity.OrganizationDeletePayload.DeletedID == nil { + break + } + + return e.complexity.OrganizationDeletePayload.DeletedID(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 "OrganizationHistory.avatarRemoteURL": + if e.complexity.OrganizationHistory.AvatarRemoteURL == nil { + break + } + + return e.complexity.OrganizationHistory.AvatarRemoteURL(childComplexity), true + + case "OrganizationHistory.createdAt": + if e.complexity.OrganizationHistory.CreatedAt == nil { + break + } + + return e.complexity.OrganizationHistory.CreatedAt(childComplexity), true + + case "OrganizationHistory.createdBy": + if e.complexity.OrganizationHistory.CreatedBy == nil { + break + } + + return e.complexity.OrganizationHistory.CreatedBy(childComplexity), true + + case "OrganizationHistory.dedicatedDb": + if e.complexity.OrganizationHistory.DedicatedDb == nil { + break + } + + return e.complexity.OrganizationHistory.DedicatedDb(childComplexity), true + + case "OrganizationHistory.deletedAt": + if e.complexity.OrganizationHistory.DeletedAt == nil { + break + } + + return e.complexity.OrganizationHistory.DeletedAt(childComplexity), true + + case "OrganizationHistory.deletedBy": + if e.complexity.OrganizationHistory.DeletedBy == nil { + break + } + + return e.complexity.OrganizationHistory.DeletedBy(childComplexity), true + + case "OrganizationHistory.description": + if e.complexity.OrganizationHistory.Description == nil { + break + } + + return e.complexity.OrganizationHistory.Description(childComplexity), true + + case "OrganizationHistory.displayName": + if e.complexity.OrganizationHistory.DisplayName == nil { + break + } + + return e.complexity.OrganizationHistory.DisplayName(childComplexity), true + + case "OrganizationHistory.historyTime": + if e.complexity.OrganizationHistory.HistoryTime == nil { + break + } + + return e.complexity.OrganizationHistory.HistoryTime(childComplexity), true + + case "OrganizationHistory.id": + if e.complexity.OrganizationHistory.ID == nil { + break + } + + return e.complexity.OrganizationHistory.ID(childComplexity), true + + case "OrganizationHistory.name": + if e.complexity.OrganizationHistory.Name == nil { + break + } + + return e.complexity.OrganizationHistory.Name(childComplexity), true + + case "OrganizationHistory.operation": + if e.complexity.OrganizationHistory.Operation == nil { + break + } + + return e.complexity.OrganizationHistory.Operation(childComplexity), true + + case "OrganizationHistory.personalOrg": + if e.complexity.OrganizationHistory.PersonalOrg == nil { + break + } + + return e.complexity.OrganizationHistory.PersonalOrg(childComplexity), true + + case "OrganizationHistory.ref": + if e.complexity.OrganizationHistory.Ref == nil { + break + } + + return e.complexity.OrganizationHistory.Ref(childComplexity), true + + case "OrganizationHistory.tags": + if e.complexity.OrganizationHistory.Tags == nil { + break + } + + return e.complexity.OrganizationHistory.Tags(childComplexity), true + + case "OrganizationHistory.updatedAt": + if e.complexity.OrganizationHistory.UpdatedAt == nil { + break + } + + return e.complexity.OrganizationHistory.UpdatedAt(childComplexity), true + + case "OrganizationHistory.updatedBy": + if e.complexity.OrganizationHistory.UpdatedBy == nil { + break + } + + return e.complexity.OrganizationHistory.UpdatedBy(childComplexity), true + + case "OrganizationHistoryConnection.edges": + if e.complexity.OrganizationHistoryConnection.Edges == nil { + break + } + + return e.complexity.OrganizationHistoryConnection.Edges(childComplexity), true + + case "OrganizationHistoryConnection.pageInfo": + if e.complexity.OrganizationHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.OrganizationHistoryConnection.PageInfo(childComplexity), true + + case "OrganizationHistoryConnection.totalCount": + if e.complexity.OrganizationHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.OrganizationHistoryConnection.TotalCount(childComplexity), true + + case "OrganizationHistoryEdge.cursor": + if e.complexity.OrganizationHistoryEdge.Cursor == nil { + break + } + + return e.complexity.OrganizationHistoryEdge.Cursor(childComplexity), true + + case "OrganizationHistoryEdge.node": + if e.complexity.OrganizationHistoryEdge.Node == nil { + break + } + + return e.complexity.OrganizationHistoryEdge.Node(childComplexity), true + + case "OrganizationSearchResult.organizations": + if e.complexity.OrganizationSearchResult.Organizations == nil { + break + } + + return e.complexity.OrganizationSearchResult.Organizations(childComplexity), true + + case "OrganizationSetting.billingAddress": + if e.complexity.OrganizationSetting.BillingAddress == nil { + break + } + + return e.complexity.OrganizationSetting.BillingAddress(childComplexity), true + + case "OrganizationSetting.billingContact": + if e.complexity.OrganizationSetting.BillingContact == nil { + break + } + + return e.complexity.OrganizationSetting.BillingContact(childComplexity), true + + case "OrganizationSetting.billingEmail": + if e.complexity.OrganizationSetting.BillingEmail == nil { + break + } + + return e.complexity.OrganizationSetting.BillingEmail(childComplexity), true + + case "OrganizationSetting.billingPhone": + if e.complexity.OrganizationSetting.BillingPhone == nil { + break + } + + return e.complexity.OrganizationSetting.BillingPhone(childComplexity), true + + case "OrganizationSetting.createdAt": + if e.complexity.OrganizationSetting.CreatedAt == nil { + break + } + + return e.complexity.OrganizationSetting.CreatedAt(childComplexity), true + + case "OrganizationSetting.createdBy": + if e.complexity.OrganizationSetting.CreatedBy == nil { + break + } + + return e.complexity.OrganizationSetting.CreatedBy(childComplexity), true + + case "OrganizationSetting.deletedAt": + if e.complexity.OrganizationSetting.DeletedAt == nil { + break + } + + return e.complexity.OrganizationSetting.DeletedAt(childComplexity), true + + case "OrganizationSetting.deletedBy": + if e.complexity.OrganizationSetting.DeletedBy == nil { + break + } + + return e.complexity.OrganizationSetting.DeletedBy(childComplexity), true + + case "OrganizationSetting.domains": + if e.complexity.OrganizationSetting.Domains == nil { + break + } + + return e.complexity.OrganizationSetting.Domains(childComplexity), true + + case "OrganizationSetting.files": + if e.complexity.OrganizationSetting.Files == nil { + break + } + + return e.complexity.OrganizationSetting.Files(childComplexity), true + + case "OrganizationSetting.geoLocation": + if e.complexity.OrganizationSetting.GeoLocation == nil { + break + } + + return e.complexity.OrganizationSetting.GeoLocation(childComplexity), true + + case "OrganizationSetting.id": + if e.complexity.OrganizationSetting.ID == nil { + break + } + + return e.complexity.OrganizationSetting.ID(childComplexity), true + + case "OrganizationSetting.organization": + if e.complexity.OrganizationSetting.Organization == nil { + break + } + + return e.complexity.OrganizationSetting.Organization(childComplexity), true + + case "OrganizationSetting.organizationID": + if e.complexity.OrganizationSetting.OrganizationID == nil { + break + } + + return e.complexity.OrganizationSetting.OrganizationID(childComplexity), true + + case "OrganizationSetting.stripeID": + if e.complexity.OrganizationSetting.StripeID == nil { + break + } + + return e.complexity.OrganizationSetting.StripeID(childComplexity), true + + case "OrganizationSetting.tags": + if e.complexity.OrganizationSetting.Tags == nil { + break + } + + return e.complexity.OrganizationSetting.Tags(childComplexity), true + + case "OrganizationSetting.taxIdentifier": + if e.complexity.OrganizationSetting.TaxIdentifier == nil { + break + } + + return e.complexity.OrganizationSetting.TaxIdentifier(childComplexity), true + + case "OrganizationSetting.updatedAt": + if e.complexity.OrganizationSetting.UpdatedAt == nil { + break + } + + return e.complexity.OrganizationSetting.UpdatedAt(childComplexity), true + + case "OrganizationSetting.updatedBy": + if e.complexity.OrganizationSetting.UpdatedBy == nil { + break + } + + return e.complexity.OrganizationSetting.UpdatedBy(childComplexity), true + + case "OrganizationSettingBulkCreatePayload.organizationSettings": + if e.complexity.OrganizationSettingBulkCreatePayload.OrganizationSettings == nil { + break + } + + return e.complexity.OrganizationSettingBulkCreatePayload.OrganizationSettings(childComplexity), true + + case "OrganizationSettingConnection.edges": + if e.complexity.OrganizationSettingConnection.Edges == nil { + break + } + + return e.complexity.OrganizationSettingConnection.Edges(childComplexity), true + + case "OrganizationSettingConnection.pageInfo": + if e.complexity.OrganizationSettingConnection.PageInfo == nil { + break + } + + return e.complexity.OrganizationSettingConnection.PageInfo(childComplexity), true + + case "OrganizationSettingConnection.totalCount": + if e.complexity.OrganizationSettingConnection.TotalCount == nil { + break + } + + return e.complexity.OrganizationSettingConnection.TotalCount(childComplexity), true + + case "OrganizationSettingCreatePayload.organizationSetting": + if e.complexity.OrganizationSettingCreatePayload.OrganizationSetting == nil { + break + } + + return e.complexity.OrganizationSettingCreatePayload.OrganizationSetting(childComplexity), true + + case "OrganizationSettingDeletePayload.deletedID": + if e.complexity.OrganizationSettingDeletePayload.DeletedID == nil { + break + } + + return e.complexity.OrganizationSettingDeletePayload.DeletedID(childComplexity), true + + case "OrganizationSettingEdge.cursor": + if e.complexity.OrganizationSettingEdge.Cursor == nil { + break + } + + return e.complexity.OrganizationSettingEdge.Cursor(childComplexity), true + + case "OrganizationSettingEdge.node": + if e.complexity.OrganizationSettingEdge.Node == nil { + break + } + + return e.complexity.OrganizationSettingEdge.Node(childComplexity), true + + case "OrganizationSettingHistory.billingAddress": + if e.complexity.OrganizationSettingHistory.BillingAddress == nil { + break + } + + return e.complexity.OrganizationSettingHistory.BillingAddress(childComplexity), true + + case "OrganizationSettingHistory.billingContact": + if e.complexity.OrganizationSettingHistory.BillingContact == nil { + break + } + + return e.complexity.OrganizationSettingHistory.BillingContact(childComplexity), true + + case "OrganizationSettingHistory.billingEmail": + if e.complexity.OrganizationSettingHistory.BillingEmail == nil { + break + } + + return e.complexity.OrganizationSettingHistory.BillingEmail(childComplexity), true + + case "OrganizationSettingHistory.billingPhone": + if e.complexity.OrganizationSettingHistory.BillingPhone == nil { + break + } + + return e.complexity.OrganizationSettingHistory.BillingPhone(childComplexity), true + + case "OrganizationSettingHistory.createdAt": + if e.complexity.OrganizationSettingHistory.CreatedAt == nil { + break + } + + return e.complexity.OrganizationSettingHistory.CreatedAt(childComplexity), true + + case "OrganizationSettingHistory.createdBy": + if e.complexity.OrganizationSettingHistory.CreatedBy == nil { + break + } + + return e.complexity.OrganizationSettingHistory.CreatedBy(childComplexity), true + + case "OrganizationSettingHistory.deletedAt": + if e.complexity.OrganizationSettingHistory.DeletedAt == nil { + break + } + + return e.complexity.OrganizationSettingHistory.DeletedAt(childComplexity), true + + case "OrganizationSettingHistory.deletedBy": + if e.complexity.OrganizationSettingHistory.DeletedBy == nil { + break + } + + return e.complexity.OrganizationSettingHistory.DeletedBy(childComplexity), true + + case "OrganizationSettingHistory.domains": + if e.complexity.OrganizationSettingHistory.Domains == nil { + break + } + + return e.complexity.OrganizationSettingHistory.Domains(childComplexity), true + + case "OrganizationSettingHistory.geoLocation": + if e.complexity.OrganizationSettingHistory.GeoLocation == nil { + break + } + + return e.complexity.OrganizationSettingHistory.GeoLocation(childComplexity), true + + case "OrganizationSettingHistory.historyTime": + if e.complexity.OrganizationSettingHistory.HistoryTime == nil { + break + } + + return e.complexity.OrganizationSettingHistory.HistoryTime(childComplexity), true + + case "OrganizationSettingHistory.id": + if e.complexity.OrganizationSettingHistory.ID == nil { + break + } + + return e.complexity.OrganizationSettingHistory.ID(childComplexity), true + + case "OrganizationSettingHistory.operation": + if e.complexity.OrganizationSettingHistory.Operation == nil { + break + } + + return e.complexity.OrganizationSettingHistory.Operation(childComplexity), true + + case "OrganizationSettingHistory.organizationID": + if e.complexity.OrganizationSettingHistory.OrganizationID == nil { + break + } + + return e.complexity.OrganizationSettingHistory.OrganizationID(childComplexity), true + + case "OrganizationSettingHistory.ref": + if e.complexity.OrganizationSettingHistory.Ref == nil { + break + } + + return e.complexity.OrganizationSettingHistory.Ref(childComplexity), true + + case "OrganizationSettingHistory.stripeID": + if e.complexity.OrganizationSettingHistory.StripeID == nil { + break + } + + return e.complexity.OrganizationSettingHistory.StripeID(childComplexity), true + + case "OrganizationSettingHistory.tags": + if e.complexity.OrganizationSettingHistory.Tags == nil { + break + } + + return e.complexity.OrganizationSettingHistory.Tags(childComplexity), true + + case "OrganizationSettingHistory.taxIdentifier": + if e.complexity.OrganizationSettingHistory.TaxIdentifier == nil { + break + } + + return e.complexity.OrganizationSettingHistory.TaxIdentifier(childComplexity), true + + case "OrganizationSettingHistory.updatedAt": + if e.complexity.OrganizationSettingHistory.UpdatedAt == nil { + break + } + + return e.complexity.OrganizationSettingHistory.UpdatedAt(childComplexity), true + + case "OrganizationSettingHistory.updatedBy": + if e.complexity.OrganizationSettingHistory.UpdatedBy == nil { + break + } + + return e.complexity.OrganizationSettingHistory.UpdatedBy(childComplexity), true + + case "OrganizationSettingHistoryConnection.edges": + if e.complexity.OrganizationSettingHistoryConnection.Edges == nil { + break + } + + return e.complexity.OrganizationSettingHistoryConnection.Edges(childComplexity), true + + case "OrganizationSettingHistoryConnection.pageInfo": + if e.complexity.OrganizationSettingHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.OrganizationSettingHistoryConnection.PageInfo(childComplexity), true + + case "OrganizationSettingHistoryConnection.totalCount": + if e.complexity.OrganizationSettingHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.OrganizationSettingHistoryConnection.TotalCount(childComplexity), true + + case "OrganizationSettingHistoryEdge.cursor": + if e.complexity.OrganizationSettingHistoryEdge.Cursor == nil { + break + } + + return e.complexity.OrganizationSettingHistoryEdge.Cursor(childComplexity), true + + case "OrganizationSettingHistoryEdge.node": + if e.complexity.OrganizationSettingHistoryEdge.Node == nil { + break + } + + return e.complexity.OrganizationSettingHistoryEdge.Node(childComplexity), true + + case "OrganizationSettingSearchResult.organizationSettings": + if e.complexity.OrganizationSettingSearchResult.OrganizationSettings == nil { + break + } + + return e.complexity.OrganizationSettingSearchResult.OrganizationSettings(childComplexity), true + + case "OrganizationSettingUpdatePayload.organizationSetting": + if e.complexity.OrganizationSettingUpdatePayload.OrganizationSetting == nil { + break + } + + return e.complexity.OrganizationSettingUpdatePayload.OrganizationSetting(childComplexity), true + + case "OrganizationUpdatePayload.organization": + if e.complexity.OrganizationUpdatePayload.Organization == nil { + break + } + + return e.complexity.OrganizationUpdatePayload.Organization(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 "PersonalAccessToken.createdAt": + if e.complexity.PersonalAccessToken.CreatedAt == nil { + break + } + + return e.complexity.PersonalAccessToken.CreatedAt(childComplexity), true + + case "PersonalAccessToken.createdBy": + if e.complexity.PersonalAccessToken.CreatedBy == nil { + break + } + + return e.complexity.PersonalAccessToken.CreatedBy(childComplexity), true + + case "PersonalAccessToken.deletedAt": + if e.complexity.PersonalAccessToken.DeletedAt == nil { + break + } + + return e.complexity.PersonalAccessToken.DeletedAt(childComplexity), true + + case "PersonalAccessToken.deletedBy": + if e.complexity.PersonalAccessToken.DeletedBy == nil { + break + } + + return e.complexity.PersonalAccessToken.DeletedBy(childComplexity), true + + case "PersonalAccessToken.description": + if e.complexity.PersonalAccessToken.Description == nil { + break + } + + return e.complexity.PersonalAccessToken.Description(childComplexity), true + + case "PersonalAccessToken.events": + if e.complexity.PersonalAccessToken.Events == nil { + break + } + + return e.complexity.PersonalAccessToken.Events(childComplexity), true + + case "PersonalAccessToken.expiresAt": + if e.complexity.PersonalAccessToken.ExpiresAt == nil { + break + } + + return e.complexity.PersonalAccessToken.ExpiresAt(childComplexity), true + + case "PersonalAccessToken.id": + if e.complexity.PersonalAccessToken.ID == nil { + break + } + + return e.complexity.PersonalAccessToken.ID(childComplexity), true + + case "PersonalAccessToken.lastUsedAt": + if e.complexity.PersonalAccessToken.LastUsedAt == nil { + break + } + + return e.complexity.PersonalAccessToken.LastUsedAt(childComplexity), true + + case "PersonalAccessToken.name": + if e.complexity.PersonalAccessToken.Name == nil { + break + } + + return e.complexity.PersonalAccessToken.Name(childComplexity), true + + case "PersonalAccessToken.organizations": + if e.complexity.PersonalAccessToken.Organizations == nil { + break + } + + return e.complexity.PersonalAccessToken.Organizations(childComplexity), true + + case "PersonalAccessToken.owner": + if e.complexity.PersonalAccessToken.Owner == nil { + break + } + + return e.complexity.PersonalAccessToken.Owner(childComplexity), true + + case "PersonalAccessToken.scopes": + if e.complexity.PersonalAccessToken.Scopes == nil { + break + } + + return e.complexity.PersonalAccessToken.Scopes(childComplexity), true + + case "PersonalAccessToken.tags": + if e.complexity.PersonalAccessToken.Tags == nil { + break + } + + return e.complexity.PersonalAccessToken.Tags(childComplexity), true + + case "PersonalAccessToken.token": + if e.complexity.PersonalAccessToken.Token == nil { + break + } + + return e.complexity.PersonalAccessToken.Token(childComplexity), true + + case "PersonalAccessToken.updatedAt": + if e.complexity.PersonalAccessToken.UpdatedAt == nil { + break + } + + return e.complexity.PersonalAccessToken.UpdatedAt(childComplexity), true + + case "PersonalAccessToken.updatedBy": + if e.complexity.PersonalAccessToken.UpdatedBy == nil { + break + } + + return e.complexity.PersonalAccessToken.UpdatedBy(childComplexity), true + + case "PersonalAccessTokenBulkCreatePayload.personalAccessTokens": + if e.complexity.PersonalAccessTokenBulkCreatePayload.PersonalAccessTokens == nil { + break + } + + return e.complexity.PersonalAccessTokenBulkCreatePayload.PersonalAccessTokens(childComplexity), true + + case "PersonalAccessTokenConnection.edges": + if e.complexity.PersonalAccessTokenConnection.Edges == nil { + break + } + + return e.complexity.PersonalAccessTokenConnection.Edges(childComplexity), true + + case "PersonalAccessTokenConnection.pageInfo": + if e.complexity.PersonalAccessTokenConnection.PageInfo == nil { + break + } + + return e.complexity.PersonalAccessTokenConnection.PageInfo(childComplexity), true + + case "PersonalAccessTokenConnection.totalCount": + if e.complexity.PersonalAccessTokenConnection.TotalCount == nil { + break + } + + return e.complexity.PersonalAccessTokenConnection.TotalCount(childComplexity), true + + case "PersonalAccessTokenCreatePayload.personalAccessToken": + if e.complexity.PersonalAccessTokenCreatePayload.PersonalAccessToken == nil { + break + } + + return e.complexity.PersonalAccessTokenCreatePayload.PersonalAccessToken(childComplexity), true + + case "PersonalAccessTokenDeletePayload.deletedID": + if e.complexity.PersonalAccessTokenDeletePayload.DeletedID == nil { + break + } + + return e.complexity.PersonalAccessTokenDeletePayload.DeletedID(childComplexity), true + + case "PersonalAccessTokenEdge.cursor": + if e.complexity.PersonalAccessTokenEdge.Cursor == nil { + break + } + + return e.complexity.PersonalAccessTokenEdge.Cursor(childComplexity), true + + case "PersonalAccessTokenEdge.node": + if e.complexity.PersonalAccessTokenEdge.Node == nil { + break + } + + return e.complexity.PersonalAccessTokenEdge.Node(childComplexity), true + + case "PersonalAccessTokenSearchResult.personalAccessTokens": + if e.complexity.PersonalAccessTokenSearchResult.PersonalAccessTokens == nil { + break + } + + return e.complexity.PersonalAccessTokenSearchResult.PersonalAccessTokens(childComplexity), true + + case "PersonalAccessTokenUpdatePayload.personalAccessToken": + if e.complexity.PersonalAccessTokenUpdatePayload.PersonalAccessToken == nil { + break + } + + return e.complexity.PersonalAccessTokenUpdatePayload.PersonalAccessToken(childComplexity), true + + case "Procedure.background": + if e.complexity.Procedure.Background == nil { + break + } + + return e.complexity.Procedure.Background(childComplexity), true + + case "Procedure.blockedGroups": + if e.complexity.Procedure.BlockedGroups == nil { + break + } + + return e.complexity.Procedure.BlockedGroups(childComplexity), true + + case "Procedure.controls": + if e.complexity.Procedure.Controls == nil { + break + } + + return e.complexity.Procedure.Controls(childComplexity), true + + case "Procedure.createdAt": + if e.complexity.Procedure.CreatedAt == nil { + break + } + + return e.complexity.Procedure.CreatedAt(childComplexity), true + + case "Procedure.createdBy": + if e.complexity.Procedure.CreatedBy == nil { + break + } + + return e.complexity.Procedure.CreatedBy(childComplexity), true + + case "Procedure.deletedAt": + if e.complexity.Procedure.DeletedAt == nil { + break + } + + return e.complexity.Procedure.DeletedAt(childComplexity), true + + case "Procedure.deletedBy": + if e.complexity.Procedure.DeletedBy == nil { + break + } + + return e.complexity.Procedure.DeletedBy(childComplexity), true + + case "Procedure.description": + if e.complexity.Procedure.Description == nil { + break + } + + return e.complexity.Procedure.Description(childComplexity), true + + case "Procedure.details": + if e.complexity.Procedure.Details == nil { + break + } + + return e.complexity.Procedure.Details(childComplexity), true + + case "Procedure.editors": + if e.complexity.Procedure.Editors == nil { + break + } + + return e.complexity.Procedure.Editors(childComplexity), true + + case "Procedure.id": + if e.complexity.Procedure.ID == nil { + break + } + + return e.complexity.Procedure.ID(childComplexity), true + + case "Procedure.internalPolicies": + if e.complexity.Procedure.InternalPolicies == nil { + break + } + + return e.complexity.Procedure.InternalPolicies(childComplexity), true + + case "Procedure.name": + if e.complexity.Procedure.Name == nil { + break + } + + return e.complexity.Procedure.Name(childComplexity), true + + case "Procedure.narratives": + if e.complexity.Procedure.Narratives == nil { + break + } + + return e.complexity.Procedure.Narratives(childComplexity), true + + case "Procedure.owner": + if e.complexity.Procedure.Owner == nil { + break + } + + return e.complexity.Procedure.Owner(childComplexity), true + + case "Procedure.ownerID": + if e.complexity.Procedure.OwnerID == nil { + break + } + + return e.complexity.Procedure.OwnerID(childComplexity), true + + case "Procedure.procedureType": + if e.complexity.Procedure.ProcedureType == nil { + break + } + + return e.complexity.Procedure.ProcedureType(childComplexity), true + + case "Procedure.programs": + if e.complexity.Procedure.Programs == nil { + break + } + + return e.complexity.Procedure.Programs(childComplexity), true + + case "Procedure.purposeAndScope": + if e.complexity.Procedure.PurposeAndScope == nil { + break + } + + return e.complexity.Procedure.PurposeAndScope(childComplexity), true + + case "Procedure.risks": + if e.complexity.Procedure.Risks == nil { + break + } + + return e.complexity.Procedure.Risks(childComplexity), true + + case "Procedure.satisfies": + if e.complexity.Procedure.Satisfies == nil { + break + } + + return e.complexity.Procedure.Satisfies(childComplexity), true + + case "Procedure.status": + if e.complexity.Procedure.Status == nil { + break + } + + return e.complexity.Procedure.Status(childComplexity), true + + case "Procedure.tags": + if e.complexity.Procedure.Tags == nil { + break + } + + return e.complexity.Procedure.Tags(childComplexity), true + + case "Procedure.tasks": + if e.complexity.Procedure.Tasks == nil { + break + } + + return e.complexity.Procedure.Tasks(childComplexity), true + + case "Procedure.updatedAt": + if e.complexity.Procedure.UpdatedAt == nil { + break + } + + return e.complexity.Procedure.UpdatedAt(childComplexity), true + + case "Procedure.updatedBy": + if e.complexity.Procedure.UpdatedBy == nil { + break + } + + return e.complexity.Procedure.UpdatedBy(childComplexity), true + + case "Procedure.version": + if e.complexity.Procedure.Version == nil { + break + } + + return e.complexity.Procedure.Version(childComplexity), true + + case "ProcedureBulkCreatePayload.procedures": + if e.complexity.ProcedureBulkCreatePayload.Procedures == nil { + break + } + + return e.complexity.ProcedureBulkCreatePayload.Procedures(childComplexity), true + + case "ProcedureConnection.edges": + if e.complexity.ProcedureConnection.Edges == nil { + break + } + + return e.complexity.ProcedureConnection.Edges(childComplexity), true + + case "ProcedureConnection.pageInfo": + if e.complexity.ProcedureConnection.PageInfo == nil { + break + } + + return e.complexity.ProcedureConnection.PageInfo(childComplexity), true + + case "ProcedureConnection.totalCount": + if e.complexity.ProcedureConnection.TotalCount == nil { + break + } + + return e.complexity.ProcedureConnection.TotalCount(childComplexity), true + + case "ProcedureCreatePayload.procedure": + if e.complexity.ProcedureCreatePayload.Procedure == nil { + break + } + + return e.complexity.ProcedureCreatePayload.Procedure(childComplexity), true + + case "ProcedureDeletePayload.deletedID": + if e.complexity.ProcedureDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ProcedureDeletePayload.DeletedID(childComplexity), true + + case "ProcedureEdge.cursor": + if e.complexity.ProcedureEdge.Cursor == nil { + break + } + + return e.complexity.ProcedureEdge.Cursor(childComplexity), true + + case "ProcedureEdge.node": + if e.complexity.ProcedureEdge.Node == nil { + break + } + + return e.complexity.ProcedureEdge.Node(childComplexity), true + + case "ProcedureHistory.background": + if e.complexity.ProcedureHistory.Background == nil { + break + } + + return e.complexity.ProcedureHistory.Background(childComplexity), true + + case "ProcedureHistory.createdAt": + if e.complexity.ProcedureHistory.CreatedAt == nil { + break + } + + return e.complexity.ProcedureHistory.CreatedAt(childComplexity), true + + case "ProcedureHistory.createdBy": + if e.complexity.ProcedureHistory.CreatedBy == nil { + break + } + + return e.complexity.ProcedureHistory.CreatedBy(childComplexity), true + + case "ProcedureHistory.deletedAt": + if e.complexity.ProcedureHistory.DeletedAt == nil { + break + } + + return e.complexity.ProcedureHistory.DeletedAt(childComplexity), true + + case "ProcedureHistory.deletedBy": + if e.complexity.ProcedureHistory.DeletedBy == nil { + break + } + + return e.complexity.ProcedureHistory.DeletedBy(childComplexity), true + + case "ProcedureHistory.description": + if e.complexity.ProcedureHistory.Description == nil { + break + } + + return e.complexity.ProcedureHistory.Description(childComplexity), true + + case "ProcedureHistory.details": + if e.complexity.ProcedureHistory.Details == nil { + break + } + + return e.complexity.ProcedureHistory.Details(childComplexity), true + + case "ProcedureHistory.historyTime": + if e.complexity.ProcedureHistory.HistoryTime == nil { + break + } + + return e.complexity.ProcedureHistory.HistoryTime(childComplexity), true + + case "ProcedureHistory.id": + if e.complexity.ProcedureHistory.ID == nil { + break + } + + return e.complexity.ProcedureHistory.ID(childComplexity), true + + case "ProcedureHistory.name": + if e.complexity.ProcedureHistory.Name == nil { + break + } + + return e.complexity.ProcedureHistory.Name(childComplexity), true + + case "ProcedureHistory.operation": + if e.complexity.ProcedureHistory.Operation == nil { + break + } + + return e.complexity.ProcedureHistory.Operation(childComplexity), true + + case "ProcedureHistory.ownerID": + if e.complexity.ProcedureHistory.OwnerID == nil { + break + } + + return e.complexity.ProcedureHistory.OwnerID(childComplexity), true + + case "ProcedureHistory.procedureType": + if e.complexity.ProcedureHistory.ProcedureType == nil { + break + } + + return e.complexity.ProcedureHistory.ProcedureType(childComplexity), true + + case "ProcedureHistory.purposeAndScope": + if e.complexity.ProcedureHistory.PurposeAndScope == nil { + break + } + + return e.complexity.ProcedureHistory.PurposeAndScope(childComplexity), true + + case "ProcedureHistory.ref": + if e.complexity.ProcedureHistory.Ref == nil { + break + } + + return e.complexity.ProcedureHistory.Ref(childComplexity), true + + case "ProcedureHistory.satisfies": + if e.complexity.ProcedureHistory.Satisfies == nil { + break + } + + return e.complexity.ProcedureHistory.Satisfies(childComplexity), true + + case "ProcedureHistory.status": + if e.complexity.ProcedureHistory.Status == nil { + break + } + + return e.complexity.ProcedureHistory.Status(childComplexity), true + + case "ProcedureHistory.tags": + if e.complexity.ProcedureHistory.Tags == nil { + break + } + + return e.complexity.ProcedureHistory.Tags(childComplexity), true + + case "ProcedureHistory.updatedAt": + if e.complexity.ProcedureHistory.UpdatedAt == nil { + break + } + + return e.complexity.ProcedureHistory.UpdatedAt(childComplexity), true + + case "ProcedureHistory.updatedBy": + if e.complexity.ProcedureHistory.UpdatedBy == nil { + break + } + + return e.complexity.ProcedureHistory.UpdatedBy(childComplexity), true + + case "ProcedureHistory.version": + if e.complexity.ProcedureHistory.Version == nil { + break + } + + return e.complexity.ProcedureHistory.Version(childComplexity), true + + case "ProcedureHistoryConnection.edges": + if e.complexity.ProcedureHistoryConnection.Edges == nil { + break + } + + return e.complexity.ProcedureHistoryConnection.Edges(childComplexity), true + + case "ProcedureHistoryConnection.pageInfo": + if e.complexity.ProcedureHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ProcedureHistoryConnection.PageInfo(childComplexity), true + + case "ProcedureHistoryConnection.totalCount": + if e.complexity.ProcedureHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ProcedureHistoryConnection.TotalCount(childComplexity), true + + case "ProcedureHistoryEdge.cursor": + if e.complexity.ProcedureHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ProcedureHistoryEdge.Cursor(childComplexity), true + + case "ProcedureHistoryEdge.node": + if e.complexity.ProcedureHistoryEdge.Node == nil { + break + } + + return e.complexity.ProcedureHistoryEdge.Node(childComplexity), true + + case "ProcedureSearchResult.procedures": + if e.complexity.ProcedureSearchResult.Procedures == nil { + break + } + + return e.complexity.ProcedureSearchResult.Procedures(childComplexity), true + + case "ProcedureUpdatePayload.procedure": + if e.complexity.ProcedureUpdatePayload.Procedure == nil { + break + } + + return e.complexity.ProcedureUpdatePayload.Procedure(childComplexity), true + + case "Program.actionPlans": + if e.complexity.Program.ActionPlans == nil { + break + } + + return e.complexity.Program.ActionPlans(childComplexity), true + + case "Program.auditorReadComments": + if e.complexity.Program.AuditorReadComments == nil { + break + } + + return e.complexity.Program.AuditorReadComments(childComplexity), true + + case "Program.auditorReady": + if e.complexity.Program.AuditorReady == nil { + break + } + + return e.complexity.Program.AuditorReady(childComplexity), true + + case "Program.auditorWriteComments": + if e.complexity.Program.AuditorWriteComments == nil { + break + } + + return e.complexity.Program.AuditorWriteComments(childComplexity), true + + case "Program.blockedGroups": + if e.complexity.Program.BlockedGroups == nil { + break + } + + return e.complexity.Program.BlockedGroups(childComplexity), true + + case "Program.controlObjectives": + if e.complexity.Program.ControlObjectives == nil { + break + } + + return e.complexity.Program.ControlObjectives(childComplexity), true + + case "Program.controls": + if e.complexity.Program.Controls == nil { + break + } + + return e.complexity.Program.Controls(childComplexity), true + + case "Program.createdAt": + if e.complexity.Program.CreatedAt == nil { + break + } + + return e.complexity.Program.CreatedAt(childComplexity), true + + case "Program.createdBy": + if e.complexity.Program.CreatedBy == nil { + break + } + + return e.complexity.Program.CreatedBy(childComplexity), true + + case "Program.deletedAt": + if e.complexity.Program.DeletedAt == nil { + break + } + + return e.complexity.Program.DeletedAt(childComplexity), true + + case "Program.deletedBy": + if e.complexity.Program.DeletedBy == nil { + break + } + + return e.complexity.Program.DeletedBy(childComplexity), true + + case "Program.description": + if e.complexity.Program.Description == nil { + break + } + + return e.complexity.Program.Description(childComplexity), true + + case "Program.editors": + if e.complexity.Program.Editors == nil { + break + } + + return e.complexity.Program.Editors(childComplexity), true + + case "Program.endDate": + if e.complexity.Program.EndDate == nil { + break + } + + return e.complexity.Program.EndDate(childComplexity), true + + case "Program.files": + if e.complexity.Program.Files == nil { + break + } + + return e.complexity.Program.Files(childComplexity), true + + case "Program.id": + if e.complexity.Program.ID == nil { + break + } + + return e.complexity.Program.ID(childComplexity), true + + case "Program.internalPolicies": + if e.complexity.Program.InternalPolicies == nil { + break + } + + return e.complexity.Program.InternalPolicies(childComplexity), true + + case "Program.members": + if e.complexity.Program.Members == nil { + break + } + + return e.complexity.Program.Members(childComplexity), true + + case "Program.name": + if e.complexity.Program.Name == nil { + break + } + + return e.complexity.Program.Name(childComplexity), true + + case "Program.narratives": + if e.complexity.Program.Narratives == nil { + break + } + + return e.complexity.Program.Narratives(childComplexity), true + + case "Program.notes": + if e.complexity.Program.Notes == nil { + break + } + + return e.complexity.Program.Notes(childComplexity), true + + case "Program.owner": + if e.complexity.Program.Owner == nil { + break + } + + return e.complexity.Program.Owner(childComplexity), true + + case "Program.ownerID": + if e.complexity.Program.OwnerID == nil { + break + } + + return e.complexity.Program.OwnerID(childComplexity), true + + case "Program.procedures": + if e.complexity.Program.Procedures == nil { + break + } + + return e.complexity.Program.Procedures(childComplexity), true + + case "Program.risks": + if e.complexity.Program.Risks == nil { + break + } + + return e.complexity.Program.Risks(childComplexity), true + + case "Program.standards": + if e.complexity.Program.Standards == nil { + break + } + + return e.complexity.Program.Standards(childComplexity), true + + case "Program.startDate": + if e.complexity.Program.StartDate == nil { + break + } + + return e.complexity.Program.StartDate(childComplexity), true + + case "Program.status": + if e.complexity.Program.Status == nil { + break + } + + return e.complexity.Program.Status(childComplexity), true + + case "Program.subcontrols": + if e.complexity.Program.Subcontrols == nil { + break + } + + return e.complexity.Program.Subcontrols(childComplexity), true + + case "Program.tags": + if e.complexity.Program.Tags == nil { + break + } + + return e.complexity.Program.Tags(childComplexity), true + + case "Program.tasks": + if e.complexity.Program.Tasks == nil { + break + } + + return e.complexity.Program.Tasks(childComplexity), true + + case "Program.updatedAt": + if e.complexity.Program.UpdatedAt == nil { + break + } + + return e.complexity.Program.UpdatedAt(childComplexity), true + + case "Program.updatedBy": + if e.complexity.Program.UpdatedBy == nil { + break + } + + return e.complexity.Program.UpdatedBy(childComplexity), true + + case "Program.users": + if e.complexity.Program.Users == nil { + break + } + + return e.complexity.Program.Users(childComplexity), true + + case "Program.viewers": + if e.complexity.Program.Viewers == nil { + break + } + + return e.complexity.Program.Viewers(childComplexity), true + + case "ProgramBulkCreatePayload.programs": + if e.complexity.ProgramBulkCreatePayload.Programs == nil { + break + } + + return e.complexity.ProgramBulkCreatePayload.Programs(childComplexity), true + + case "ProgramConnection.edges": + if e.complexity.ProgramConnection.Edges == nil { + break + } + + return e.complexity.ProgramConnection.Edges(childComplexity), true + + case "ProgramConnection.pageInfo": + if e.complexity.ProgramConnection.PageInfo == nil { + break + } + + return e.complexity.ProgramConnection.PageInfo(childComplexity), true + + case "ProgramConnection.totalCount": + if e.complexity.ProgramConnection.TotalCount == nil { + break + } + + return e.complexity.ProgramConnection.TotalCount(childComplexity), true + + case "ProgramCreatePayload.program": + if e.complexity.ProgramCreatePayload.Program == nil { + break + } + + return e.complexity.ProgramCreatePayload.Program(childComplexity), true + + case "ProgramDeletePayload.deletedID": + if e.complexity.ProgramDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ProgramDeletePayload.DeletedID(childComplexity), true + + case "ProgramEdge.cursor": + if e.complexity.ProgramEdge.Cursor == nil { + break + } + + return e.complexity.ProgramEdge.Cursor(childComplexity), true + + case "ProgramEdge.node": + if e.complexity.ProgramEdge.Node == nil { + break + } + + return e.complexity.ProgramEdge.Node(childComplexity), true + + case "ProgramHistory.auditorReadComments": + if e.complexity.ProgramHistory.AuditorReadComments == nil { + break + } + + return e.complexity.ProgramHistory.AuditorReadComments(childComplexity), true + + case "ProgramHistory.auditorReady": + if e.complexity.ProgramHistory.AuditorReady == nil { + break + } + + return e.complexity.ProgramHistory.AuditorReady(childComplexity), true + + case "ProgramHistory.auditorWriteComments": + if e.complexity.ProgramHistory.AuditorWriteComments == nil { + break + } + + return e.complexity.ProgramHistory.AuditorWriteComments(childComplexity), true + + case "ProgramHistory.createdAt": + if e.complexity.ProgramHistory.CreatedAt == nil { + break + } + + return e.complexity.ProgramHistory.CreatedAt(childComplexity), true + + case "ProgramHistory.createdBy": + if e.complexity.ProgramHistory.CreatedBy == nil { + break + } + + return e.complexity.ProgramHistory.CreatedBy(childComplexity), true + + case "ProgramHistory.deletedAt": + if e.complexity.ProgramHistory.DeletedAt == nil { + break + } + + return e.complexity.ProgramHistory.DeletedAt(childComplexity), true + + case "ProgramHistory.deletedBy": + if e.complexity.ProgramHistory.DeletedBy == nil { + break + } + + return e.complexity.ProgramHistory.DeletedBy(childComplexity), true + + case "ProgramHistory.description": + if e.complexity.ProgramHistory.Description == nil { + break + } + + return e.complexity.ProgramHistory.Description(childComplexity), true + + case "ProgramHistory.endDate": + if e.complexity.ProgramHistory.EndDate == nil { + break + } + + return e.complexity.ProgramHistory.EndDate(childComplexity), true + + case "ProgramHistory.historyTime": + if e.complexity.ProgramHistory.HistoryTime == nil { + break + } + + return e.complexity.ProgramHistory.HistoryTime(childComplexity), true + + case "ProgramHistory.id": + if e.complexity.ProgramHistory.ID == nil { + break + } + + return e.complexity.ProgramHistory.ID(childComplexity), true + + case "ProgramHistory.name": + if e.complexity.ProgramHistory.Name == nil { + break + } + + return e.complexity.ProgramHistory.Name(childComplexity), true + + case "ProgramHistory.operation": + if e.complexity.ProgramHistory.Operation == nil { + break + } + + return e.complexity.ProgramHistory.Operation(childComplexity), true + + case "ProgramHistory.ownerID": + if e.complexity.ProgramHistory.OwnerID == nil { + break + } + + return e.complexity.ProgramHistory.OwnerID(childComplexity), true + + case "ProgramHistory.ref": + if e.complexity.ProgramHistory.Ref == nil { + break + } + + return e.complexity.ProgramHistory.Ref(childComplexity), true + + case "ProgramHistory.startDate": + if e.complexity.ProgramHistory.StartDate == nil { + break + } + + return e.complexity.ProgramHistory.StartDate(childComplexity), true + + case "ProgramHistory.status": + if e.complexity.ProgramHistory.Status == nil { + break + } + + return e.complexity.ProgramHistory.Status(childComplexity), true + + case "ProgramHistory.tags": + if e.complexity.ProgramHistory.Tags == nil { + break + } + + return e.complexity.ProgramHistory.Tags(childComplexity), true + + case "ProgramHistory.updatedAt": + if e.complexity.ProgramHistory.UpdatedAt == nil { + break + } + + return e.complexity.ProgramHistory.UpdatedAt(childComplexity), true + + case "ProgramHistory.updatedBy": + if e.complexity.ProgramHistory.UpdatedBy == nil { + break + } + + return e.complexity.ProgramHistory.UpdatedBy(childComplexity), true + + case "ProgramHistoryConnection.edges": + if e.complexity.ProgramHistoryConnection.Edges == nil { + break + } + + return e.complexity.ProgramHistoryConnection.Edges(childComplexity), true + + case "ProgramHistoryConnection.pageInfo": + if e.complexity.ProgramHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ProgramHistoryConnection.PageInfo(childComplexity), true + + case "ProgramHistoryConnection.totalCount": + if e.complexity.ProgramHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ProgramHistoryConnection.TotalCount(childComplexity), true + + case "ProgramHistoryEdge.cursor": + if e.complexity.ProgramHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ProgramHistoryEdge.Cursor(childComplexity), true + + case "ProgramHistoryEdge.node": + if e.complexity.ProgramHistoryEdge.Node == nil { + break + } + + return e.complexity.ProgramHistoryEdge.Node(childComplexity), true + + case "ProgramMembership.createdAt": + if e.complexity.ProgramMembership.CreatedAt == nil { + break + } + + return e.complexity.ProgramMembership.CreatedAt(childComplexity), true + + case "ProgramMembership.createdBy": + if e.complexity.ProgramMembership.CreatedBy == nil { + break + } + + return e.complexity.ProgramMembership.CreatedBy(childComplexity), true + + case "ProgramMembership.deletedAt": + if e.complexity.ProgramMembership.DeletedAt == nil { + break + } + + return e.complexity.ProgramMembership.DeletedAt(childComplexity), true + + case "ProgramMembership.deletedBy": + if e.complexity.ProgramMembership.DeletedBy == nil { + break + } + + return e.complexity.ProgramMembership.DeletedBy(childComplexity), true + + case "ProgramMembership.id": + if e.complexity.ProgramMembership.ID == nil { + break + } + + return e.complexity.ProgramMembership.ID(childComplexity), true + + case "ProgramMembership.program": + if e.complexity.ProgramMembership.Program == nil { + break + } + + return e.complexity.ProgramMembership.Program(childComplexity), true + + case "ProgramMembership.programID": + if e.complexity.ProgramMembership.ProgramID == nil { + break + } + + return e.complexity.ProgramMembership.ProgramID(childComplexity), true + + case "ProgramMembership.role": + if e.complexity.ProgramMembership.Role == nil { + break + } + + return e.complexity.ProgramMembership.Role(childComplexity), true + + case "ProgramMembership.updatedAt": + if e.complexity.ProgramMembership.UpdatedAt == nil { + break + } + + return e.complexity.ProgramMembership.UpdatedAt(childComplexity), true + + case "ProgramMembership.updatedBy": + if e.complexity.ProgramMembership.UpdatedBy == nil { + break + } + + return e.complexity.ProgramMembership.UpdatedBy(childComplexity), true + + case "ProgramMembership.user": + if e.complexity.ProgramMembership.User == nil { + break + } + + return e.complexity.ProgramMembership.User(childComplexity), true + + case "ProgramMembership.userID": + if e.complexity.ProgramMembership.UserID == nil { + break + } + + return e.complexity.ProgramMembership.UserID(childComplexity), true + + case "ProgramMembershipBulkCreatePayload.programMemberships": + if e.complexity.ProgramMembershipBulkCreatePayload.ProgramMemberships == nil { + break + } + + return e.complexity.ProgramMembershipBulkCreatePayload.ProgramMemberships(childComplexity), true + + case "ProgramMembershipConnection.edges": + if e.complexity.ProgramMembershipConnection.Edges == nil { + break + } + + return e.complexity.ProgramMembershipConnection.Edges(childComplexity), true + + case "ProgramMembershipConnection.pageInfo": + if e.complexity.ProgramMembershipConnection.PageInfo == nil { + break + } + + return e.complexity.ProgramMembershipConnection.PageInfo(childComplexity), true + + case "ProgramMembershipConnection.totalCount": + if e.complexity.ProgramMembershipConnection.TotalCount == nil { + break + } + + return e.complexity.ProgramMembershipConnection.TotalCount(childComplexity), true + + case "ProgramMembershipCreatePayload.programMembership": + if e.complexity.ProgramMembershipCreatePayload.ProgramMembership == nil { + break + } + + return e.complexity.ProgramMembershipCreatePayload.ProgramMembership(childComplexity), true + + case "ProgramMembershipDeletePayload.deletedID": + if e.complexity.ProgramMembershipDeletePayload.DeletedID == nil { + break + } + + return e.complexity.ProgramMembershipDeletePayload.DeletedID(childComplexity), true + + case "ProgramMembershipEdge.cursor": + if e.complexity.ProgramMembershipEdge.Cursor == nil { + break + } + + return e.complexity.ProgramMembershipEdge.Cursor(childComplexity), true + + case "ProgramMembershipEdge.node": + if e.complexity.ProgramMembershipEdge.Node == nil { + break + } + + return e.complexity.ProgramMembershipEdge.Node(childComplexity), true + + case "ProgramMembershipHistory.createdAt": + if e.complexity.ProgramMembershipHistory.CreatedAt == nil { + break + } + + return e.complexity.ProgramMembershipHistory.CreatedAt(childComplexity), true + + case "ProgramMembershipHistory.createdBy": + if e.complexity.ProgramMembershipHistory.CreatedBy == nil { + break + } + + return e.complexity.ProgramMembershipHistory.CreatedBy(childComplexity), true + + case "ProgramMembershipHistory.deletedAt": + if e.complexity.ProgramMembershipHistory.DeletedAt == nil { + break + } + + return e.complexity.ProgramMembershipHistory.DeletedAt(childComplexity), true + + case "ProgramMembershipHistory.deletedBy": + if e.complexity.ProgramMembershipHistory.DeletedBy == nil { + break + } + + return e.complexity.ProgramMembershipHistory.DeletedBy(childComplexity), true + + case "ProgramMembershipHistory.historyTime": + if e.complexity.ProgramMembershipHistory.HistoryTime == nil { + break + } + + return e.complexity.ProgramMembershipHistory.HistoryTime(childComplexity), true + + case "ProgramMembershipHistory.id": + if e.complexity.ProgramMembershipHistory.ID == nil { + break + } + + return e.complexity.ProgramMembershipHistory.ID(childComplexity), true + + case "ProgramMembershipHistory.operation": + if e.complexity.ProgramMembershipHistory.Operation == nil { + break + } + + return e.complexity.ProgramMembershipHistory.Operation(childComplexity), true + + case "ProgramMembershipHistory.programID": + if e.complexity.ProgramMembershipHistory.ProgramID == nil { + break + } + + return e.complexity.ProgramMembershipHistory.ProgramID(childComplexity), true + + case "ProgramMembershipHistory.ref": + if e.complexity.ProgramMembershipHistory.Ref == nil { + break + } + + return e.complexity.ProgramMembershipHistory.Ref(childComplexity), true + + case "ProgramMembershipHistory.role": + if e.complexity.ProgramMembershipHistory.Role == nil { + break + } + + return e.complexity.ProgramMembershipHistory.Role(childComplexity), true + + case "ProgramMembershipHistory.updatedAt": + if e.complexity.ProgramMembershipHistory.UpdatedAt == nil { + break + } + + return e.complexity.ProgramMembershipHistory.UpdatedAt(childComplexity), true + + case "ProgramMembershipHistory.updatedBy": + if e.complexity.ProgramMembershipHistory.UpdatedBy == nil { + break + } + + return e.complexity.ProgramMembershipHistory.UpdatedBy(childComplexity), true + + case "ProgramMembershipHistory.userID": + if e.complexity.ProgramMembershipHistory.UserID == nil { + break + } + + return e.complexity.ProgramMembershipHistory.UserID(childComplexity), true + + case "ProgramMembershipHistoryConnection.edges": + if e.complexity.ProgramMembershipHistoryConnection.Edges == nil { + break + } + + return e.complexity.ProgramMembershipHistoryConnection.Edges(childComplexity), true + + case "ProgramMembershipHistoryConnection.pageInfo": + if e.complexity.ProgramMembershipHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.ProgramMembershipHistoryConnection.PageInfo(childComplexity), true + + case "ProgramMembershipHistoryConnection.totalCount": + if e.complexity.ProgramMembershipHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.ProgramMembershipHistoryConnection.TotalCount(childComplexity), true + + case "ProgramMembershipHistoryEdge.cursor": + if e.complexity.ProgramMembershipHistoryEdge.Cursor == nil { + break + } + + return e.complexity.ProgramMembershipHistoryEdge.Cursor(childComplexity), true + + case "ProgramMembershipHistoryEdge.node": + if e.complexity.ProgramMembershipHistoryEdge.Node == nil { + break + } + + return e.complexity.ProgramMembershipHistoryEdge.Node(childComplexity), true + + case "ProgramMembershipUpdatePayload.programMembership": + if e.complexity.ProgramMembershipUpdatePayload.ProgramMembership == nil { + break + } + + return e.complexity.ProgramMembershipUpdatePayload.ProgramMembership(childComplexity), true + + case "ProgramSearchResult.programs": + if e.complexity.ProgramSearchResult.Programs == nil { + break + } + + return e.complexity.ProgramSearchResult.Programs(childComplexity), true + + case "ProgramUpdatePayload.program": + if e.complexity.ProgramUpdatePayload.Program == nil { + break + } + + return e.complexity.ProgramUpdatePayload.Program(childComplexity), true + + case "Query.apiToken": + if e.complexity.Query.APIToken == nil { + break + } + + args, err := ec.field_Query_apiToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.APIToken(childComplexity, args["id"].(string)), true + + case "Query.apiTokenSearch": + if e.complexity.Query.APITokenSearch == nil { + break + } + + args, err := ec.field_Query_apiTokenSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.APITokenSearch(childComplexity, args["query"].(string)), true + + case "Query.apiTokens": + if e.complexity.Query.APITokens == nil { + break + } + + args, err := ec.field_Query_apiTokens_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.APITokens(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.APITokenWhereInput)), true + + case "Query.actionPlan": + if e.complexity.Query.ActionPlan == nil { + break + } + + args, err := ec.field_Query_actionPlan_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlan(childComplexity, args["id"].(string)), true + + case "Query.actionPlanHistories": + if e.complexity.Query.ActionPlanHistories == nil { + break + } + + args, err := ec.field_Query_actionPlanHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlanHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ActionPlanHistoryWhereInput)), true + + case "Query.actionPlanSearch": + if e.complexity.Query.ActionPlanSearch == nil { + break + } + + args, err := ec.field_Query_actionPlanSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlanSearch(childComplexity, args["query"].(string)), true + + case "Query.actionPlans": + if e.complexity.Query.ActionPlans == nil { + break + } + + args, err := ec.field_Query_actionPlans_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ActionPlans(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ActionPlanWhereInput)), true + + case "Query.adminAPITokenSearch": + if e.complexity.Query.AdminAPITokenSearch == nil { + break + } + + args, err := ec.field_Query_adminAPITokenSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminAPITokenSearch(childComplexity, args["query"].(string)), true + + case "Query.adminActionPlanSearch": + if e.complexity.Query.AdminActionPlanSearch == nil { + break + } + + args, err := ec.field_Query_adminActionPlanSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminActionPlanSearch(childComplexity, args["query"].(string)), true + + case "Query.adminContactSearch": + if e.complexity.Query.AdminContactSearch == nil { + break + } + + args, err := ec.field_Query_adminContactSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminContactSearch(childComplexity, args["query"].(string)), true + + case "Query.adminControlObjectiveSearch": + if e.complexity.Query.AdminControlObjectiveSearch == nil { + break + } + + args, err := ec.field_Query_adminControlObjectiveSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminControlObjectiveSearch(childComplexity, args["query"].(string)), true + + case "Query.adminControlSearch": + if e.complexity.Query.AdminControlSearch == nil { + break + } + + args, err := ec.field_Query_adminControlSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminControlSearch(childComplexity, args["query"].(string)), true + + case "Query.adminDocumentDataSearch": + if e.complexity.Query.AdminDocumentDataSearch == nil { + break + } + + args, err := ec.field_Query_adminDocumentDataSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminDocumentDataSearch(childComplexity, args["query"].(string)), true + + case "Query.adminEntitySearch": + if e.complexity.Query.AdminEntitySearch == nil { + break + } + + args, err := ec.field_Query_adminEntitySearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminEntitySearch(childComplexity, args["query"].(string)), true + + case "Query.adminEntityTypeSearch": + if e.complexity.Query.AdminEntityTypeSearch == nil { + break + } + + args, err := ec.field_Query_adminEntityTypeSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminEntityTypeSearch(childComplexity, args["query"].(string)), true + + case "Query.adminEventSearch": + if e.complexity.Query.AdminEventSearch == nil { + break + } + + args, err := ec.field_Query_adminEventSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminEventSearch(childComplexity, args["query"].(string)), true + + case "Query.adminFileSearch": + if e.complexity.Query.AdminFileSearch == nil { + break + } + + args, err := ec.field_Query_adminFileSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminFileSearch(childComplexity, args["query"].(string)), true + + case "Query.adminGroupSearch": + if e.complexity.Query.AdminGroupSearch == nil { + break + } + + args, err := ec.field_Query_adminGroupSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminGroupSearch(childComplexity, args["query"].(string)), true + + case "Query.adminGroupSettingSearch": + if e.complexity.Query.AdminGroupSettingSearch == nil { + break + } + + args, err := ec.field_Query_adminGroupSettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminGroupSettingSearch(childComplexity, args["query"].(string)), true + + case "Query.adminIntegrationSearch": + if e.complexity.Query.AdminIntegrationSearch == nil { + break + } + + args, err := ec.field_Query_adminIntegrationSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminIntegrationSearch(childComplexity, args["query"].(string)), true + + case "Query.adminInternalPolicySearch": + if e.complexity.Query.AdminInternalPolicySearch == nil { + break + } + + args, err := ec.field_Query_adminInternalPolicySearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminInternalPolicySearch(childComplexity, args["query"].(string)), true + + case "Query.adminNarrativeSearch": + if e.complexity.Query.AdminNarrativeSearch == nil { + break + } + + args, err := ec.field_Query_adminNarrativeSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminNarrativeSearch(childComplexity, args["query"].(string)), true + + case "Query.adminOrgSubscriptionSearch": + if e.complexity.Query.AdminOrgSubscriptionSearch == nil { + break + } + + args, err := ec.field_Query_adminOrgSubscriptionSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminOrgSubscriptionSearch(childComplexity, args["query"].(string)), true + + case "Query.adminOrganizationSearch": + if e.complexity.Query.AdminOrganizationSearch == nil { + break + } + + args, err := ec.field_Query_adminOrganizationSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminOrganizationSearch(childComplexity, args["query"].(string)), true + + case "Query.adminOrganizationSettingSearch": + if e.complexity.Query.AdminOrganizationSettingSearch == nil { + break + } + + args, err := ec.field_Query_adminOrganizationSettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminOrganizationSettingSearch(childComplexity, args["query"].(string)), true + + case "Query.adminPersonalAccessTokenSearch": + if e.complexity.Query.AdminPersonalAccessTokenSearch == nil { + break + } + + args, err := ec.field_Query_adminPersonalAccessTokenSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminPersonalAccessTokenSearch(childComplexity, args["query"].(string)), true + + case "Query.adminProcedureSearch": + if e.complexity.Query.AdminProcedureSearch == nil { + break + } + + args, err := ec.field_Query_adminProcedureSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminProcedureSearch(childComplexity, args["query"].(string)), true + + case "Query.adminProgramSearch": + if e.complexity.Query.AdminProgramSearch == nil { + break + } + + args, err := ec.field_Query_adminProgramSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminProgramSearch(childComplexity, args["query"].(string)), true + + case "Query.adminRiskSearch": + if e.complexity.Query.AdminRiskSearch == nil { + break + } + + args, err := ec.field_Query_adminRiskSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminRiskSearch(childComplexity, args["query"].(string)), true + + case "Query.adminSearch": + if e.complexity.Query.AdminSearch == nil { + break + } + + args, err := ec.field_Query_adminSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminSearch(childComplexity, args["query"].(string)), true + + case "Query.adminStandardSearch": + if e.complexity.Query.AdminStandardSearch == nil { + break + } + + args, err := ec.field_Query_adminStandardSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminStandardSearch(childComplexity, args["query"].(string)), true + + case "Query.adminSubcontrolSearch": + if e.complexity.Query.AdminSubcontrolSearch == nil { + break + } + + args, err := ec.field_Query_adminSubcontrolSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminSubcontrolSearch(childComplexity, args["query"].(string)), true + + case "Query.adminSubscriberSearch": + if e.complexity.Query.AdminSubscriberSearch == nil { + break + } + + args, err := ec.field_Query_adminSubscriberSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminSubscriberSearch(childComplexity, args["query"].(string)), true + + case "Query.adminTFASettingSearch": + if e.complexity.Query.AdminTFASettingSearch == nil { + break + } + + args, err := ec.field_Query_adminTFASettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminTFASettingSearch(childComplexity, args["query"].(string)), true + + case "Query.adminTaskSearch": + if e.complexity.Query.AdminTaskSearch == nil { + break + } + + args, err := ec.field_Query_adminTaskSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminTaskSearch(childComplexity, args["query"].(string)), true + + case "Query.adminTemplateSearch": + if e.complexity.Query.AdminTemplateSearch == nil { + break + } + + args, err := ec.field_Query_adminTemplateSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminTemplateSearch(childComplexity, args["query"].(string)), true + + case "Query.adminUserSearch": + if e.complexity.Query.AdminUserSearch == nil { + break + } + + args, err := ec.field_Query_adminUserSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminUserSearch(childComplexity, args["query"].(string)), true + + case "Query.adminUserSettingSearch": + if e.complexity.Query.AdminUserSettingSearch == nil { + break + } + + args, err := ec.field_Query_adminUserSettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AdminUserSettingSearch(childComplexity, args["query"].(string)), true + + case "Query.auditLogs": + if e.complexity.Query.AuditLogs == nil { + break + } + + args, err := ec.field_Query_auditLogs_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.AuditLogs(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*model.AuditLogWhereInput)), true + + case "Query.contact": + if e.complexity.Query.Contact == nil { + break + } + + args, err := ec.field_Query_contact_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Contact(childComplexity, args["id"].(string)), true + + case "Query.contactHistories": + if e.complexity.Query.ContactHistories == nil { + break + } + + args, err := ec.field_Query_contactHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ContactHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ContactHistoryWhereInput)), true + + case "Query.contactSearch": + if e.complexity.Query.ContactSearch == nil { + break + } + + args, err := ec.field_Query_contactSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ContactSearch(childComplexity, args["query"].(string)), true + + case "Query.contacts": + if e.complexity.Query.Contacts == nil { + break + } + + args, err := ec.field_Query_contacts_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Contacts(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ContactWhereInput)), true + + case "Query.control": + if e.complexity.Query.Control == nil { + break + } + + args, err := ec.field_Query_control_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Control(childComplexity, args["id"].(string)), true + + case "Query.controlHistories": + if e.complexity.Query.ControlHistories == nil { + break + } + + args, err := ec.field_Query_controlHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlHistoryWhereInput)), true + + case "Query.controlObjective": + if e.complexity.Query.ControlObjective == nil { + break + } + + args, err := ec.field_Query_controlObjective_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjective(childComplexity, args["id"].(string)), true + + case "Query.controlObjectiveHistories": + if e.complexity.Query.ControlObjectiveHistories == nil { + break + } + + args, err := ec.field_Query_controlObjectiveHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjectiveHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlObjectiveHistoryWhereInput)), true + + case "Query.controlObjectiveSearch": + if e.complexity.Query.ControlObjectiveSearch == nil { + break + } + + args, err := ec.field_Query_controlObjectiveSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjectiveSearch(childComplexity, args["query"].(string)), true + + case "Query.controlObjectives": + if e.complexity.Query.ControlObjectives == nil { + break + } + + args, err := ec.field_Query_controlObjectives_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlObjectives(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlObjectiveWhereInput)), true + + case "Query.controlSearch": + if e.complexity.Query.ControlSearch == nil { + break + } + + args, err := ec.field_Query_controlSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ControlSearch(childComplexity, args["query"].(string)), true + + case "Query.controls": + if e.complexity.Query.Controls == nil { + break + } + + args, err := ec.field_Query_controls_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Controls(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ControlWhereInput)), true + + case "Query.documentData": + if e.complexity.Query.DocumentData == nil { + break + } + + args, err := ec.field_Query_documentData_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.DocumentData(childComplexity, args["id"].(string)), true + + case "Query.documentDataHistories": + if e.complexity.Query.DocumentDataHistories == nil { + break + } + + args, err := ec.field_Query_documentDataHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.DocumentDataHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.DocumentDataHistoryWhereInput)), true + + case "Query.documentDataSearch": + if e.complexity.Query.DocumentDataSearch == nil { + break + } + + args, err := ec.field_Query_documentDataSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.DocumentDataSearch(childComplexity, args["query"].(string)), true + + case "Query.documentDataSlice": + if e.complexity.Query.DocumentDataSlice == nil { + break + } + + args, err := ec.field_Query_documentDataSlice_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.DocumentDataSlice(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.DocumentDataWhereInput)), true + + case "Query.entities": + if e.complexity.Query.Entities == nil { + break + } + + args, err := ec.field_Query_entities_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Entities(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityOrder), args["where"].(*generated.EntityWhereInput)), true + + case "Query.entity": + if e.complexity.Query.Entity == nil { + break + } + + args, err := ec.field_Query_entity_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Entity(childComplexity, args["id"].(string)), true + + case "Query.entityHistories": + if e.complexity.Query.EntityHistories == nil { + break + } + + args, err := ec.field_Query_entityHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EntityHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityHistoryOrder), args["where"].(*generated.EntityHistoryWhereInput)), true + + case "Query.entitySearch": + if e.complexity.Query.EntitySearch == nil { + break + } + + args, err := ec.field_Query_entitySearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EntitySearch(childComplexity, args["query"].(string)), true + + case "Query.entityType": + if e.complexity.Query.EntityType == nil { + break + } + + args, err := ec.field_Query_entityType_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EntityType(childComplexity, args["id"].(string)), true + + case "Query.entityTypeHistories": + if e.complexity.Query.EntityTypeHistories == nil { + break + } + + args, err := ec.field_Query_entityTypeHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EntityTypeHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityTypeHistoryOrder), args["where"].(*generated.EntityTypeHistoryWhereInput)), true + + case "Query.entityTypeSearch": + if e.complexity.Query.EntityTypeSearch == nil { + break + } + + args, err := ec.field_Query_entityTypeSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EntityTypeSearch(childComplexity, args["query"].(string)), true + + case "Query.entityTypes": + if e.complexity.Query.EntityTypes == nil { + break + } + + args, err := ec.field_Query_entityTypes_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EntityTypes(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.EntityTypeOrder), args["where"].(*generated.EntityTypeWhereInput)), true + + case "Query.event": + if e.complexity.Query.Event == nil { + break + } + + args, err := ec.field_Query_event_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Event(childComplexity, args["id"].(string)), true + + case "Query.eventHistories": + if e.complexity.Query.EventHistories == nil { + break + } + + args, err := ec.field_Query_eventHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EventHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.EventHistoryWhereInput)), true + + case "Query.eventSearch": + if e.complexity.Query.EventSearch == nil { + break + } + + args, err := ec.field_Query_eventSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.EventSearch(childComplexity, args["query"].(string)), true + + case "Query.events": + if e.complexity.Query.Events == nil { + break + } + + args, err := ec.field_Query_events_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Events(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.EventWhereInput)), true + + case "Query.file": + if e.complexity.Query.File == nil { + break + } + + args, err := ec.field_Query_file_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.File(childComplexity, args["id"].(string)), true + + case "Query.fileHistories": + if e.complexity.Query.FileHistories == nil { + break + } + + args, err := ec.field_Query_fileHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.FileHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.FileHistoryWhereInput)), true + + case "Query.fileSearch": + if e.complexity.Query.FileSearch == nil { + break + } + + args, err := ec.field_Query_fileSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.FileSearch(childComplexity, args["query"].(string)), true + + case "Query.files": + if e.complexity.Query.Files == nil { + break + } + + args, err := ec.field_Query_files_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Files(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.FileWhereInput)), true + + case "Query.group": + if e.complexity.Query.Group == nil { + break + } + + args, err := ec.field_Query_group_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Group(childComplexity, args["id"].(string)), true + + case "Query.groupHistories": + if e.complexity.Query.GroupHistories == nil { + break + } + + args, err := ec.field_Query_groupHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.GroupHistoryOrder), args["where"].(*generated.GroupHistoryWhereInput)), true + + case "Query.groupMembership": + if e.complexity.Query.GroupMembership == nil { + break + } + + args, err := ec.field_Query_groupMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupMembership(childComplexity, args["id"].(string)), true + + case "Query.groupMembershipHistories": + if e.complexity.Query.GroupMembershipHistories == nil { + break + } + + args, err := ec.field_Query_groupMembershipHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupMembershipHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupMembershipHistoryWhereInput)), true + + case "Query.groupMemberships": + if e.complexity.Query.GroupMemberships == nil { + break + } + + args, err := ec.field_Query_groupMemberships_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupMemberships(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupMembershipWhereInput)), true + + case "Query.groupSearch": + if e.complexity.Query.GroupSearch == nil { + break + } + + args, err := ec.field_Query_groupSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupSearch(childComplexity, args["query"].(string)), true + + case "Query.groupSetting": + if e.complexity.Query.GroupSetting == nil { + break + } + + args, err := ec.field_Query_groupSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupSetting(childComplexity, args["id"].(string)), true + + case "Query.groupSettingHistories": + if e.complexity.Query.GroupSettingHistories == nil { + break + } + + args, err := ec.field_Query_groupSettingHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupSettingHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupSettingHistoryWhereInput)), true + + case "Query.groupSettingSearch": + if e.complexity.Query.GroupSettingSearch == nil { + break + } + + args, err := ec.field_Query_groupSettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupSettingSearch(childComplexity, args["query"].(string)), true + + case "Query.groupSettings": + if e.complexity.Query.GroupSettings == nil { + break + } + + args, err := ec.field_Query_groupSettings_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.GroupSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.GroupSettingWhereInput)), true + + case "Query.groups": + if e.complexity.Query.Groups == nil { + break + } + + args, err := ec.field_Query_groups_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Groups(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.GroupOrder), args["where"].(*generated.GroupWhereInput)), true + + case "Query.hush": + if e.complexity.Query.Hush == nil { + break + } + + args, err := ec.field_Query_hush_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Hush(childComplexity, args["id"].(string)), true + + case "Query.hushHistories": + if e.complexity.Query.HushHistories == nil { + break + } + + args, err := ec.field_Query_hushHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.HushHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.HushHistoryOrder), args["where"].(*generated.HushHistoryWhereInput)), true + + case "Query.hushes": + if e.complexity.Query.Hushes == nil { + break + } + + args, err := ec.field_Query_hushes_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Hushes(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.HushOrder), args["where"].(*generated.HushWhereInput)), true + + case "Query.integration": + if e.complexity.Query.Integration == nil { + break + } + + args, err := ec.field_Query_integration_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Integration(childComplexity, args["id"].(string)), true + + case "Query.integrationHistories": + if e.complexity.Query.IntegrationHistories == nil { + break + } + + args, err := ec.field_Query_integrationHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.IntegrationHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.IntegrationHistoryOrder), args["where"].(*generated.IntegrationHistoryWhereInput)), true + + case "Query.integrationSearch": + if e.complexity.Query.IntegrationSearch == nil { + break + } + + args, err := ec.field_Query_integrationSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.IntegrationSearch(childComplexity, args["query"].(string)), true + + case "Query.integrations": + if e.complexity.Query.Integrations == nil { + break + } + + args, err := ec.field_Query_integrations_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Integrations(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.IntegrationOrder), args["where"].(*generated.IntegrationWhereInput)), true + + case "Query.internalPolicies": + if e.complexity.Query.InternalPolicies == nil { + break + } + + args, err := ec.field_Query_internalPolicies_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicies(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InternalPolicyWhereInput)), true + + case "Query.internalPolicy": + if e.complexity.Query.InternalPolicy == nil { + break + } + + args, err := ec.field_Query_internalPolicy_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicy(childComplexity, args["id"].(string)), true + + case "Query.internalPolicyHistories": + if e.complexity.Query.InternalPolicyHistories == nil { + break + } + + args, err := ec.field_Query_internalPolicyHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicyHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InternalPolicyHistoryWhereInput)), true + + case "Query.internalPolicySearch": + if e.complexity.Query.InternalPolicySearch == nil { + break + } + + args, err := ec.field_Query_internalPolicySearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.InternalPolicySearch(childComplexity, args["query"].(string)), true + + case "Query.invite": + if e.complexity.Query.Invite == nil { + break + } + + args, err := ec.field_Query_invite_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Invite(childComplexity, args["id"].(string)), true + + case "Query.invites": + if e.complexity.Query.Invites == nil { + break + } + + args, err := ec.field_Query_invites_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Invites(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.InviteWhereInput)), true + + case "Query.narrative": + if e.complexity.Query.Narrative == nil { + break + } + + args, err := ec.field_Query_narrative_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Narrative(childComplexity, args["id"].(string)), true + + case "Query.narrativeHistories": + if e.complexity.Query.NarrativeHistories == nil { + break + } + + args, err := ec.field_Query_narrativeHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.NarrativeHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NarrativeHistoryWhereInput)), true + + case "Query.narrativeSearch": + if e.complexity.Query.NarrativeSearch == nil { + break + } + + args, err := ec.field_Query_narrativeSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.NarrativeSearch(childComplexity, args["query"].(string)), true + + case "Query.narratives": + if e.complexity.Query.Narratives == nil { + break + } + + args, err := ec.field_Query_narratives_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Narratives(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NarrativeWhereInput)), true + + case "Query.node": + if e.complexity.Query.Node == nil { + break + } + + args, err := ec.field_Query_node_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Node(childComplexity, args["id"].(string)), true + + case "Query.nodes": + if e.complexity.Query.Nodes == nil { + break + } + + args, err := ec.field_Query_nodes_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Nodes(childComplexity, args["ids"].([]string)), true + + case "Query.noteHistories": + if e.complexity.Query.NoteHistories == nil { + break + } + + args, err := ec.field_Query_noteHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.NoteHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NoteHistoryWhereInput)), true + + case "Query.notes": + if e.complexity.Query.Notes == nil { + break + } + + args, err := ec.field_Query_notes_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Notes(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.NoteWhereInput)), true + + case "Query.orgMembership": + if e.complexity.Query.OrgMembership == nil { + break + } + + args, err := ec.field_Query_orgMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrgMembership(childComplexity, args["id"].(string)), true + + case "Query.orgMembershipHistories": + if e.complexity.Query.OrgMembershipHistories == nil { + break + } + + args, err := ec.field_Query_orgMembershipHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrgMembershipHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgMembershipHistoryWhereInput)), true + + case "Query.orgMemberships": + if e.complexity.Query.OrgMemberships == nil { + break + } + + args, err := ec.field_Query_orgMemberships_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrgMemberships(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgMembershipWhereInput)), true + + case "Query.orgSubscription": + if e.complexity.Query.OrgSubscription == nil { + break + } + + args, err := ec.field_Query_orgSubscription_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrgSubscription(childComplexity, args["id"].(string)), true + + case "Query.orgSubscriptionHistories": + if e.complexity.Query.OrgSubscriptionHistories == nil { + break + } + + args, err := ec.field_Query_orgSubscriptionHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrgSubscriptionHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgSubscriptionHistoryWhereInput)), true + + case "Query.orgSubscriptionSearch": + if e.complexity.Query.OrgSubscriptionSearch == nil { + break + } + + args, err := ec.field_Query_orgSubscriptionSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrgSubscriptionSearch(childComplexity, args["query"].(string)), true + + case "Query.orgSubscriptions": + if e.complexity.Query.OrgSubscriptions == nil { + break + } + + args, err := ec.field_Query_orgSubscriptions_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrgSubscriptions(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrgSubscriptionWhereInput)), true + + case "Query.organization": + if e.complexity.Query.Organization == nil { + break + } + + args, err := ec.field_Query_organization_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Organization(childComplexity, args["id"].(string)), true + + case "Query.organizationHistories": + if e.complexity.Query.OrganizationHistories == nil { + break + } + + args, err := ec.field_Query_organizationHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrganizationHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.OrganizationHistoryOrder), args["where"].(*generated.OrganizationHistoryWhereInput)), true + + case "Query.organizationSearch": + if e.complexity.Query.OrganizationSearch == nil { + break + } + + args, err := ec.field_Query_organizationSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrganizationSearch(childComplexity, args["query"].(string)), true + + case "Query.organizationSetting": + if e.complexity.Query.OrganizationSetting == nil { + break + } + + args, err := ec.field_Query_organizationSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrganizationSetting(childComplexity, args["id"].(string)), true + + case "Query.organizationSettingHistories": + if e.complexity.Query.OrganizationSettingHistories == nil { + break + } + + args, err := ec.field_Query_organizationSettingHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrganizationSettingHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrganizationSettingHistoryWhereInput)), true + + case "Query.organizationSettingSearch": + if e.complexity.Query.OrganizationSettingSearch == nil { + break + } + + args, err := ec.field_Query_organizationSettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrganizationSettingSearch(childComplexity, args["query"].(string)), true + + case "Query.organizationSettings": + if e.complexity.Query.OrganizationSettings == nil { + break + } + + args, err := ec.field_Query_organizationSettings_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.OrganizationSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.OrganizationSettingWhereInput)), true + + case "Query.organizations": + if e.complexity.Query.Organizations == nil { + break + } + + args, err := ec.field_Query_organizations_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Organizations(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.OrganizationOrder), args["where"].(*generated.OrganizationWhereInput)), true + + case "Query.personalAccessToken": + if e.complexity.Query.PersonalAccessToken == nil { + break + } + + args, err := ec.field_Query_personalAccessToken_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PersonalAccessToken(childComplexity, args["id"].(string)), true + + case "Query.personalAccessTokenSearch": + if e.complexity.Query.PersonalAccessTokenSearch == nil { + break + } + + args, err := ec.field_Query_personalAccessTokenSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PersonalAccessTokenSearch(childComplexity, args["query"].(string)), true + + case "Query.personalAccessTokens": + if e.complexity.Query.PersonalAccessTokens == nil { + break + } + + args, err := ec.field_Query_personalAccessTokens_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.PersonalAccessTokens(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.PersonalAccessTokenWhereInput)), true + + case "Query.procedure": + if e.complexity.Query.Procedure == nil { + break + } + + args, err := ec.field_Query_procedure_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Procedure(childComplexity, args["id"].(string)), true + + case "Query.procedureHistories": + if e.complexity.Query.ProcedureHistories == nil { + break + } + + args, err := ec.field_Query_procedureHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProcedureHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProcedureHistoryWhereInput)), true + + case "Query.procedureSearch": + if e.complexity.Query.ProcedureSearch == nil { + break + } + + args, err := ec.field_Query_procedureSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProcedureSearch(childComplexity, args["query"].(string)), true + + case "Query.procedures": + if e.complexity.Query.Procedures == nil { + break + } + + args, err := ec.field_Query_procedures_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Procedures(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProcedureWhereInput)), true + + case "Query.program": + if e.complexity.Query.Program == nil { + break + } + + args, err := ec.field_Query_program_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Program(childComplexity, args["id"].(string)), true + + case "Query.programHistories": + if e.complexity.Query.ProgramHistories == nil { + break + } + + args, err := ec.field_Query_programHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProgramHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramHistoryWhereInput)), true + + case "Query.programMembership": + if e.complexity.Query.ProgramMembership == nil { + break + } + + args, err := ec.field_Query_programMembership_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProgramMembership(childComplexity, args["id"].(string)), true + + case "Query.programMembershipHistories": + if e.complexity.Query.ProgramMembershipHistories == nil { + break + } + + args, err := ec.field_Query_programMembershipHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProgramMembershipHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramMembershipHistoryWhereInput)), true + + case "Query.programMemberships": + if e.complexity.Query.ProgramMemberships == nil { + break + } + + args, err := ec.field_Query_programMemberships_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProgramMemberships(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramMembershipWhereInput)), true + + case "Query.programSearch": + if e.complexity.Query.ProgramSearch == nil { + break + } + + args, err := ec.field_Query_programSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.ProgramSearch(childComplexity, args["query"].(string)), true + + case "Query.programs": + if e.complexity.Query.Programs == nil { + break + } + + args, err := ec.field_Query_programs_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Programs(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.ProgramWhereInput)), true + + case "Query.risk": + if e.complexity.Query.Risk == nil { + break + } + + args, err := ec.field_Query_risk_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Risk(childComplexity, args["id"].(string)), true + + case "Query.riskHistories": + if e.complexity.Query.RiskHistories == nil { + break + } + + args, err := ec.field_Query_riskHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.RiskHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.RiskHistoryWhereInput)), true + + case "Query.riskSearch": + if e.complexity.Query.RiskSearch == nil { + break + } + + args, err := ec.field_Query_riskSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.RiskSearch(childComplexity, args["query"].(string)), true + + case "Query.risks": + if e.complexity.Query.Risks == nil { + break + } + + args, err := ec.field_Query_risks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Risks(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.RiskWhereInput)), true + + case "Query.search": + if e.complexity.Query.Search == nil { + break + } + + args, err := ec.field_Query_search_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Search(childComplexity, args["query"].(string)), true + + case "Query.standard": + if e.complexity.Query.Standard == nil { + break + } + + args, err := ec.field_Query_standard_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Standard(childComplexity, args["id"].(string)), true + + case "Query.standardHistories": + if e.complexity.Query.StandardHistories == nil { + break + } + + args, err := ec.field_Query_standardHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.StandardHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.StandardHistoryWhereInput)), true + + case "Query.standardSearch": + if e.complexity.Query.StandardSearch == nil { + break + } + + args, err := ec.field_Query_standardSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.StandardSearch(childComplexity, args["query"].(string)), true + + case "Query.standards": + if e.complexity.Query.Standards == nil { + break + } + + args, err := ec.field_Query_standards_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Standards(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.StandardWhereInput)), true + + case "Query.subcontrol": + if e.complexity.Query.Subcontrol == nil { + break + } + + args, err := ec.field_Query_subcontrol_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Subcontrol(childComplexity, args["id"].(string)), true + + case "Query.subcontrolHistories": + if e.complexity.Query.SubcontrolHistories == nil { + break + } + + args, err := ec.field_Query_subcontrolHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.SubcontrolHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubcontrolHistoryWhereInput)), true + + case "Query.subcontrolSearch": + if e.complexity.Query.SubcontrolSearch == nil { + break + } + + args, err := ec.field_Query_subcontrolSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.SubcontrolSearch(childComplexity, args["query"].(string)), true + + case "Query.subcontrols": + if e.complexity.Query.Subcontrols == nil { + break + } + + args, err := ec.field_Query_subcontrols_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Subcontrols(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubcontrolWhereInput)), true + + case "Query.subscriber": + if e.complexity.Query.Subscriber == nil { + break + } + + args, err := ec.field_Query_subscriber_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Subscriber(childComplexity, args["email"].(string)), true + + case "Query.subscriberSearch": + if e.complexity.Query.SubscriberSearch == nil { + break + } + + args, err := ec.field_Query_subscriberSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.SubscriberSearch(childComplexity, args["query"].(string)), true + + case "Query.subscribers": + if e.complexity.Query.Subscribers == nil { + break + } + + args, err := ec.field_Query_subscribers_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Subscribers(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.SubscriberWhereInput)), true + + case "Query.tFASettingSearch": + if e.complexity.Query.TFASettingSearch == nil { + break + } + + args, err := ec.field_Query_tFASettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TFASettingSearch(childComplexity, args["query"].(string)), true + + case "Query.task": + if e.complexity.Query.Task == nil { + break + } + + args, err := ec.field_Query_task_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Task(childComplexity, args["id"].(string)), true + + case "Query.taskHistories": + if e.complexity.Query.TaskHistories == nil { + break + } + + args, err := ec.field_Query_taskHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TaskHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.TaskHistoryWhereInput)), true + + case "Query.taskSearch": + if e.complexity.Query.TaskSearch == nil { + break + } + + args, err := ec.field_Query_taskSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TaskSearch(childComplexity, args["query"].(string)), true + + case "Query.tasks": + if e.complexity.Query.Tasks == nil { + break + } + + args, err := ec.field_Query_tasks_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Tasks(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.TaskWhereInput)), true + + case "Query.template": + if e.complexity.Query.Template == nil { + break + } + + args, err := ec.field_Query_template_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Template(childComplexity, args["id"].(string)), true + + case "Query.templateHistories": + if e.complexity.Query.TemplateHistories == nil { + break + } + + args, err := ec.field_Query_templateHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TemplateHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.TemplateHistoryOrder), args["where"].(*generated.TemplateHistoryWhereInput)), true + + case "Query.templateSearch": + if e.complexity.Query.TemplateSearch == nil { + break + } + + args, err := ec.field_Query_templateSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TemplateSearch(childComplexity, args["query"].(string)), true + + case "Query.templates": + if e.complexity.Query.Templates == nil { + break + } + + args, err := ec.field_Query_templates_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Templates(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.TemplateOrder), args["where"].(*generated.TemplateWhereInput)), true + + case "Query.tfaSetting": + if e.complexity.Query.TfaSetting == nil { + break + } + + args, err := ec.field_Query_tfaSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TfaSetting(childComplexity, args["id"].(*string)), true + + case "Query.tfaSettings": + if e.complexity.Query.TfaSettings == nil { + break + } + + args, err := ec.field_Query_tfaSettings_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.TfaSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.TFASettingWhereInput)), true + + case "Query.user": + if e.complexity.Query.User == nil { + break + } + + args, err := ec.field_Query_user_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.User(childComplexity, args["id"].(string)), true + + case "Query.userHistories": + if e.complexity.Query.UserHistories == nil { + break + } + + args, err := ec.field_Query_userHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.UserHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.UserHistoryOrder), args["where"].(*generated.UserHistoryWhereInput)), true + + case "Query.userSearch": + if e.complexity.Query.UserSearch == nil { + break + } + + args, err := ec.field_Query_userSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.UserSearch(childComplexity, args["query"].(string)), true + + case "Query.userSetting": + if e.complexity.Query.UserSetting == nil { + break + } + + args, err := ec.field_Query_userSetting_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.UserSetting(childComplexity, args["id"].(string)), true + + case "Query.userSettingHistories": + if e.complexity.Query.UserSettingHistories == nil { + break + } + + args, err := ec.field_Query_userSettingHistories_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.UserSettingHistories(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.UserSettingHistoryWhereInput)), true + + case "Query.userSettingSearch": + if e.complexity.Query.UserSettingSearch == nil { + break + } + + args, err := ec.field_Query_userSettingSearch_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.UserSettingSearch(childComplexity, args["query"].(string)), true + + case "Query.userSettings": + if e.complexity.Query.UserSettings == nil { + break + } + + args, err := ec.field_Query_userSettings_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.UserSettings(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["where"].(*generated.UserSettingWhereInput)), true + + case "Query.users": + if e.complexity.Query.Users == nil { + break + } + + args, err := ec.field_Query_users_args(context.TODO(), rawArgs) + if err != nil { + return 0, false + } + + return e.complexity.Query.Users(childComplexity, args["after"].(*entgql.Cursor[string]), args["first"].(*int), args["before"].(*entgql.Cursor[string]), args["last"].(*int), args["orderBy"].(*generated.UserOrder), args["where"].(*generated.UserWhereInput)), true + + case "Risk.actionPlans": + if e.complexity.Risk.ActionPlans == nil { + break + } + + return e.complexity.Risk.ActionPlans(childComplexity), true + + case "Risk.blockedGroups": + if e.complexity.Risk.BlockedGroups == nil { + break + } + + return e.complexity.Risk.BlockedGroups(childComplexity), true + + case "Risk.businessCosts": + if e.complexity.Risk.BusinessCosts == nil { + break + } + + return e.complexity.Risk.BusinessCosts(childComplexity), true + + case "Risk.control": + if e.complexity.Risk.Control == nil { + break + } + + return e.complexity.Risk.Control(childComplexity), true + + case "Risk.createdAt": + if e.complexity.Risk.CreatedAt == nil { + break + } + + return e.complexity.Risk.CreatedAt(childComplexity), true + + case "Risk.createdBy": + if e.complexity.Risk.CreatedBy == nil { + break + } + + return e.complexity.Risk.CreatedBy(childComplexity), true + + case "Risk.deletedAt": + if e.complexity.Risk.DeletedAt == nil { + break + } + + return e.complexity.Risk.DeletedAt(childComplexity), true + + case "Risk.deletedBy": + if e.complexity.Risk.DeletedBy == nil { + break + } + + return e.complexity.Risk.DeletedBy(childComplexity), true + + case "Risk.description": + if e.complexity.Risk.Description == nil { + break + } + + return e.complexity.Risk.Description(childComplexity), true + + case "Risk.details": + if e.complexity.Risk.Details == nil { + break + } + + return e.complexity.Risk.Details(childComplexity), true + + case "Risk.editors": + if e.complexity.Risk.Editors == nil { + break + } + + return e.complexity.Risk.Editors(childComplexity), true + + case "Risk.id": + if e.complexity.Risk.ID == nil { + break + } + + return e.complexity.Risk.ID(childComplexity), true + + case "Risk.impact": + if e.complexity.Risk.Impact == nil { + break + } + + return e.complexity.Risk.Impact(childComplexity), true + + case "Risk.likelihood": + if e.complexity.Risk.Likelihood == nil { + break + } + + return e.complexity.Risk.Likelihood(childComplexity), true + + case "Risk.mitigation": + if e.complexity.Risk.Mitigation == nil { + break + } + + return e.complexity.Risk.Mitigation(childComplexity), true + + case "Risk.name": + if e.complexity.Risk.Name == nil { + break + } + + return e.complexity.Risk.Name(childComplexity), true + + case "Risk.owner": + if e.complexity.Risk.Owner == nil { + break + } + + return e.complexity.Risk.Owner(childComplexity), true + + case "Risk.ownerID": + if e.complexity.Risk.OwnerID == nil { + break + } + + return e.complexity.Risk.OwnerID(childComplexity), true + + case "Risk.procedure": + if e.complexity.Risk.Procedure == nil { + break + } + + return e.complexity.Risk.Procedure(childComplexity), true + + case "Risk.programs": + if e.complexity.Risk.Programs == nil { + break + } + + return e.complexity.Risk.Programs(childComplexity), true + + case "Risk.riskType": + if e.complexity.Risk.RiskType == nil { + break + } + + return e.complexity.Risk.RiskType(childComplexity), true + + case "Risk.satisfies": + if e.complexity.Risk.Satisfies == nil { + break + } + + return e.complexity.Risk.Satisfies(childComplexity), true + + case "Risk.status": + if e.complexity.Risk.Status == nil { + break + } + + return e.complexity.Risk.Status(childComplexity), true + + case "Risk.tags": + if e.complexity.Risk.Tags == nil { + break + } + + return e.complexity.Risk.Tags(childComplexity), true + + case "Risk.updatedAt": + if e.complexity.Risk.UpdatedAt == nil { + break + } + + return e.complexity.Risk.UpdatedAt(childComplexity), true + + case "Risk.updatedBy": + if e.complexity.Risk.UpdatedBy == nil { + break + } + + return e.complexity.Risk.UpdatedBy(childComplexity), true + + case "Risk.viewers": + if e.complexity.Risk.Viewers == nil { + break + } + + return e.complexity.Risk.Viewers(childComplexity), true + + case "RiskBulkCreatePayload.risks": + if e.complexity.RiskBulkCreatePayload.Risks == nil { + break + } + + return e.complexity.RiskBulkCreatePayload.Risks(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 "RiskCreatePayload.risk": + if e.complexity.RiskCreatePayload.Risk == nil { + break + } + + return e.complexity.RiskCreatePayload.Risk(childComplexity), true + + case "RiskDeletePayload.deletedID": + if e.complexity.RiskDeletePayload.DeletedID == nil { + break + } + + return e.complexity.RiskDeletePayload.DeletedID(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 "RiskHistory.businessCosts": + if e.complexity.RiskHistory.BusinessCosts == nil { + break + } + + return e.complexity.RiskHistory.BusinessCosts(childComplexity), true + + case "RiskHistory.createdAt": + if e.complexity.RiskHistory.CreatedAt == nil { + break + } + + return e.complexity.RiskHistory.CreatedAt(childComplexity), true + + case "RiskHistory.createdBy": + if e.complexity.RiskHistory.CreatedBy == nil { + break + } + + return e.complexity.RiskHistory.CreatedBy(childComplexity), true + + case "RiskHistory.deletedAt": + if e.complexity.RiskHistory.DeletedAt == nil { + break + } + + return e.complexity.RiskHistory.DeletedAt(childComplexity), true + + case "RiskHistory.deletedBy": + if e.complexity.RiskHistory.DeletedBy == nil { + break + } + + return e.complexity.RiskHistory.DeletedBy(childComplexity), true + + case "RiskHistory.description": + if e.complexity.RiskHistory.Description == nil { + break + } + + return e.complexity.RiskHistory.Description(childComplexity), true + + case "RiskHistory.details": + if e.complexity.RiskHistory.Details == nil { + break + } + + return e.complexity.RiskHistory.Details(childComplexity), true + + case "RiskHistory.historyTime": + if e.complexity.RiskHistory.HistoryTime == nil { + break + } + + return e.complexity.RiskHistory.HistoryTime(childComplexity), true + + case "RiskHistory.id": + if e.complexity.RiskHistory.ID == nil { + break + } + + return e.complexity.RiskHistory.ID(childComplexity), true + + case "RiskHistory.impact": + if e.complexity.RiskHistory.Impact == nil { + break + } + + return e.complexity.RiskHistory.Impact(childComplexity), true + + case "RiskHistory.likelihood": + if e.complexity.RiskHistory.Likelihood == nil { + break + } + + return e.complexity.RiskHistory.Likelihood(childComplexity), true + + case "RiskHistory.mitigation": + if e.complexity.RiskHistory.Mitigation == nil { + break + } + + return e.complexity.RiskHistory.Mitigation(childComplexity), true + + case "RiskHistory.name": + if e.complexity.RiskHistory.Name == nil { + break + } + + return e.complexity.RiskHistory.Name(childComplexity), true + + case "RiskHistory.operation": + if e.complexity.RiskHistory.Operation == nil { + break + } + + return e.complexity.RiskHistory.Operation(childComplexity), true + + case "RiskHistory.ownerID": + if e.complexity.RiskHistory.OwnerID == nil { + break + } + + return e.complexity.RiskHistory.OwnerID(childComplexity), true + + case "RiskHistory.ref": + if e.complexity.RiskHistory.Ref == nil { + break + } + + return e.complexity.RiskHistory.Ref(childComplexity), true + + case "RiskHistory.riskType": + if e.complexity.RiskHistory.RiskType == nil { + break + } + + return e.complexity.RiskHistory.RiskType(childComplexity), true + + case "RiskHistory.satisfies": + if e.complexity.RiskHistory.Satisfies == nil { + break + } + + return e.complexity.RiskHistory.Satisfies(childComplexity), true + + case "RiskHistory.status": + if e.complexity.RiskHistory.Status == nil { + break + } + + return e.complexity.RiskHistory.Status(childComplexity), true + + case "RiskHistory.tags": + if e.complexity.RiskHistory.Tags == nil { + break + } + + return e.complexity.RiskHistory.Tags(childComplexity), true + + case "RiskHistory.updatedAt": + if e.complexity.RiskHistory.UpdatedAt == nil { + break + } + + return e.complexity.RiskHistory.UpdatedAt(childComplexity), true + + case "RiskHistory.updatedBy": + if e.complexity.RiskHistory.UpdatedBy == nil { + break + } + + return e.complexity.RiskHistory.UpdatedBy(childComplexity), true + + case "RiskHistoryConnection.edges": + if e.complexity.RiskHistoryConnection.Edges == nil { + break + } + + return e.complexity.RiskHistoryConnection.Edges(childComplexity), true + + case "RiskHistoryConnection.pageInfo": + if e.complexity.RiskHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.RiskHistoryConnection.PageInfo(childComplexity), true + + case "RiskHistoryConnection.totalCount": + if e.complexity.RiskHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.RiskHistoryConnection.TotalCount(childComplexity), true + + case "RiskHistoryEdge.cursor": + if e.complexity.RiskHistoryEdge.Cursor == nil { + break + } + + return e.complexity.RiskHistoryEdge.Cursor(childComplexity), true + + case "RiskHistoryEdge.node": + if e.complexity.RiskHistoryEdge.Node == nil { + break + } + + return e.complexity.RiskHistoryEdge.Node(childComplexity), true + + case "RiskSearchResult.risks": + if e.complexity.RiskSearchResult.Risks == nil { + break + } + + return e.complexity.RiskSearchResult.Risks(childComplexity), true + + case "RiskUpdatePayload.risk": + if e.complexity.RiskUpdatePayload.Risk == nil { + break + } + + return e.complexity.RiskUpdatePayload.Risk(childComplexity), true + + case "SearchResultConnection.nodes": + if e.complexity.SearchResultConnection.Nodes == nil { + break + } + + return e.complexity.SearchResultConnection.Nodes(childComplexity), true + + case "SearchResultConnection.page": + if e.complexity.SearchResultConnection.Page == nil { + break + } + + return e.complexity.SearchResultConnection.Page(childComplexity), true + + case "Standard.actionPlans": + if e.complexity.Standard.ActionPlans == nil { + break + } + + return e.complexity.Standard.ActionPlans(childComplexity), true + + case "Standard.background": + if e.complexity.Standard.Background == nil { + break + } + + return e.complexity.Standard.Background(childComplexity), true + + case "Standard.controlObjectives": + if e.complexity.Standard.ControlObjectives == nil { + break + } + + return e.complexity.Standard.ControlObjectives(childComplexity), true + + case "Standard.controls": + if e.complexity.Standard.Controls == nil { + break + } + + return e.complexity.Standard.Controls(childComplexity), true + + case "Standard.createdAt": + if e.complexity.Standard.CreatedAt == nil { + break + } + + return e.complexity.Standard.CreatedAt(childComplexity), true + + case "Standard.createdBy": + if e.complexity.Standard.CreatedBy == nil { + break + } + + return e.complexity.Standard.CreatedBy(childComplexity), true + + case "Standard.deletedAt": + if e.complexity.Standard.DeletedAt == nil { + break + } + + return e.complexity.Standard.DeletedAt(childComplexity), true + + case "Standard.deletedBy": + if e.complexity.Standard.DeletedBy == nil { + break + } + + return e.complexity.Standard.DeletedBy(childComplexity), true + + case "Standard.description": + if e.complexity.Standard.Description == nil { + break + } + + return e.complexity.Standard.Description(childComplexity), true + + case "Standard.details": + if e.complexity.Standard.Details == nil { + break + } + + return e.complexity.Standard.Details(childComplexity), true + + case "Standard.family": + if e.complexity.Standard.Family == nil { + break + } + + return e.complexity.Standard.Family(childComplexity), true + + case "Standard.id": + if e.complexity.Standard.ID == nil { + break + } + + return e.complexity.Standard.ID(childComplexity), true + + case "Standard.name": + if e.complexity.Standard.Name == nil { + break + } + + return e.complexity.Standard.Name(childComplexity), true + + case "Standard.procedures": + if e.complexity.Standard.Procedures == nil { + break + } + + return e.complexity.Standard.Procedures(childComplexity), true + + case "Standard.programs": + if e.complexity.Standard.Programs == nil { + break + } + + return e.complexity.Standard.Programs(childComplexity), true + + case "Standard.purposeAndScope": + if e.complexity.Standard.PurposeAndScope == nil { + break + } + + return e.complexity.Standard.PurposeAndScope(childComplexity), true + + case "Standard.satisfies": + if e.complexity.Standard.Satisfies == nil { + break + } + + return e.complexity.Standard.Satisfies(childComplexity), true + + case "Standard.standardType": + if e.complexity.Standard.StandardType == nil { + break + } + + return e.complexity.Standard.StandardType(childComplexity), true + + case "Standard.status": + if e.complexity.Standard.Status == nil { + break + } + + return e.complexity.Standard.Status(childComplexity), true + + case "Standard.tags": + if e.complexity.Standard.Tags == nil { + break + } + + return e.complexity.Standard.Tags(childComplexity), true + + case "Standard.updatedAt": + if e.complexity.Standard.UpdatedAt == nil { + break + } + + return e.complexity.Standard.UpdatedAt(childComplexity), true + + case "Standard.updatedBy": + if e.complexity.Standard.UpdatedBy == nil { + break + } + + return e.complexity.Standard.UpdatedBy(childComplexity), true + + case "Standard.version": + if e.complexity.Standard.Version == nil { + break + } + + return e.complexity.Standard.Version(childComplexity), true + + case "StandardBulkCreatePayload.standards": + if e.complexity.StandardBulkCreatePayload.Standards == nil { + break + } + + return e.complexity.StandardBulkCreatePayload.Standards(childComplexity), true + + case "StandardConnection.edges": + if e.complexity.StandardConnection.Edges == nil { + break + } + + return e.complexity.StandardConnection.Edges(childComplexity), true + + case "StandardConnection.pageInfo": + if e.complexity.StandardConnection.PageInfo == nil { + break + } + + return e.complexity.StandardConnection.PageInfo(childComplexity), true + + case "StandardConnection.totalCount": + if e.complexity.StandardConnection.TotalCount == nil { + break + } + + return e.complexity.StandardConnection.TotalCount(childComplexity), true + + case "StandardCreatePayload.standard": + if e.complexity.StandardCreatePayload.Standard == nil { + break + } + + return e.complexity.StandardCreatePayload.Standard(childComplexity), true + + case "StandardDeletePayload.deletedID": + if e.complexity.StandardDeletePayload.DeletedID == nil { + break + } + + return e.complexity.StandardDeletePayload.DeletedID(childComplexity), true + + case "StandardEdge.cursor": + if e.complexity.StandardEdge.Cursor == nil { + break + } + + return e.complexity.StandardEdge.Cursor(childComplexity), true + + case "StandardEdge.node": + if e.complexity.StandardEdge.Node == nil { + break + } + + return e.complexity.StandardEdge.Node(childComplexity), true + + case "StandardHistory.background": + if e.complexity.StandardHistory.Background == nil { + break + } + + return e.complexity.StandardHistory.Background(childComplexity), true + + case "StandardHistory.createdAt": + if e.complexity.StandardHistory.CreatedAt == nil { + break + } + + return e.complexity.StandardHistory.CreatedAt(childComplexity), true + + case "StandardHistory.createdBy": + if e.complexity.StandardHistory.CreatedBy == nil { + break + } + + return e.complexity.StandardHistory.CreatedBy(childComplexity), true + + case "StandardHistory.deletedAt": + if e.complexity.StandardHistory.DeletedAt == nil { + break + } + + return e.complexity.StandardHistory.DeletedAt(childComplexity), true + + case "StandardHistory.deletedBy": + if e.complexity.StandardHistory.DeletedBy == nil { + break + } + + return e.complexity.StandardHistory.DeletedBy(childComplexity), true + + case "StandardHistory.description": + if e.complexity.StandardHistory.Description == nil { + break + } + + return e.complexity.StandardHistory.Description(childComplexity), true + + case "StandardHistory.details": + if e.complexity.StandardHistory.Details == nil { + break + } + + return e.complexity.StandardHistory.Details(childComplexity), true + + case "StandardHistory.family": + if e.complexity.StandardHistory.Family == nil { + break + } + + return e.complexity.StandardHistory.Family(childComplexity), true + + case "StandardHistory.historyTime": + if e.complexity.StandardHistory.HistoryTime == nil { + break + } + + return e.complexity.StandardHistory.HistoryTime(childComplexity), true + + case "StandardHistory.id": + if e.complexity.StandardHistory.ID == nil { + break + } + + return e.complexity.StandardHistory.ID(childComplexity), true + + case "StandardHistory.name": + if e.complexity.StandardHistory.Name == nil { + break + } + + return e.complexity.StandardHistory.Name(childComplexity), true + + case "StandardHistory.operation": + if e.complexity.StandardHistory.Operation == nil { + break + } + + return e.complexity.StandardHistory.Operation(childComplexity), true + + case "StandardHistory.purposeAndScope": + if e.complexity.StandardHistory.PurposeAndScope == nil { + break + } + + return e.complexity.StandardHistory.PurposeAndScope(childComplexity), true + + case "StandardHistory.ref": + if e.complexity.StandardHistory.Ref == nil { + break + } + + return e.complexity.StandardHistory.Ref(childComplexity), true + + case "StandardHistory.satisfies": + if e.complexity.StandardHistory.Satisfies == nil { + break + } + + return e.complexity.StandardHistory.Satisfies(childComplexity), true + + case "StandardHistory.standardType": + if e.complexity.StandardHistory.StandardType == nil { + break + } + + return e.complexity.StandardHistory.StandardType(childComplexity), true + + case "StandardHistory.status": + if e.complexity.StandardHistory.Status == nil { + break + } + + return e.complexity.StandardHistory.Status(childComplexity), true + + case "StandardHistory.tags": + if e.complexity.StandardHistory.Tags == nil { + break + } + + return e.complexity.StandardHistory.Tags(childComplexity), true + + case "StandardHistory.updatedAt": + if e.complexity.StandardHistory.UpdatedAt == nil { + break + } + + return e.complexity.StandardHistory.UpdatedAt(childComplexity), true + + case "StandardHistory.updatedBy": + if e.complexity.StandardHistory.UpdatedBy == nil { + break + } + + return e.complexity.StandardHistory.UpdatedBy(childComplexity), true + + case "StandardHistory.version": + if e.complexity.StandardHistory.Version == nil { + break + } + + return e.complexity.StandardHistory.Version(childComplexity), true + + case "StandardHistoryConnection.edges": + if e.complexity.StandardHistoryConnection.Edges == nil { + break + } + + return e.complexity.StandardHistoryConnection.Edges(childComplexity), true + + case "StandardHistoryConnection.pageInfo": + if e.complexity.StandardHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.StandardHistoryConnection.PageInfo(childComplexity), true + + case "StandardHistoryConnection.totalCount": + if e.complexity.StandardHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.StandardHistoryConnection.TotalCount(childComplexity), true + + case "StandardHistoryEdge.cursor": + if e.complexity.StandardHistoryEdge.Cursor == nil { + break + } + + return e.complexity.StandardHistoryEdge.Cursor(childComplexity), true + + case "StandardHistoryEdge.node": + if e.complexity.StandardHistoryEdge.Node == nil { + break + } + + return e.complexity.StandardHistoryEdge.Node(childComplexity), true + + case "StandardSearchResult.standards": + if e.complexity.StandardSearchResult.Standards == nil { + break + } + + return e.complexity.StandardSearchResult.Standards(childComplexity), true + + case "StandardUpdatePayload.standard": + if e.complexity.StandardUpdatePayload.Standard == nil { + break + } + + return e.complexity.StandardUpdatePayload.Standard(childComplexity), true + + case "Subcontrol.class": + if e.complexity.Subcontrol.Class == nil { + break + } + + return e.complexity.Subcontrol.Class(childComplexity), true + + case "Subcontrol.controls": + if e.complexity.Subcontrol.Controls == nil { + break + } + + return e.complexity.Subcontrol.Controls(childComplexity), true + + case "Subcontrol.createdAt": + if e.complexity.Subcontrol.CreatedAt == nil { + break + } + + return e.complexity.Subcontrol.CreatedAt(childComplexity), true + + case "Subcontrol.createdBy": + if e.complexity.Subcontrol.CreatedBy == nil { + break + } + + return e.complexity.Subcontrol.CreatedBy(childComplexity), true + + case "Subcontrol.deletedAt": + if e.complexity.Subcontrol.DeletedAt == nil { + break + } + + return e.complexity.Subcontrol.DeletedAt(childComplexity), true + + case "Subcontrol.deletedBy": + if e.complexity.Subcontrol.DeletedBy == nil { + break + } + + return e.complexity.Subcontrol.DeletedBy(childComplexity), true + + case "Subcontrol.description": + if e.complexity.Subcontrol.Description == nil { + break + } + + return e.complexity.Subcontrol.Description(childComplexity), true + + case "Subcontrol.details": + if e.complexity.Subcontrol.Details == nil { + break + } + + return e.complexity.Subcontrol.Details(childComplexity), true + + case "Subcontrol.family": + if e.complexity.Subcontrol.Family == nil { + break + } + + return e.complexity.Subcontrol.Family(childComplexity), true + + case "Subcontrol.id": + if e.complexity.Subcontrol.ID == nil { + break + } + + return e.complexity.Subcontrol.ID(childComplexity), true + + case "Subcontrol.implementationDate": + if e.complexity.Subcontrol.ImplementationDate == nil { + break + } + + return e.complexity.Subcontrol.ImplementationDate(childComplexity), true + + case "Subcontrol.implementationEvidence": + if e.complexity.Subcontrol.ImplementationEvidence == nil { + break + } + + return e.complexity.Subcontrol.ImplementationEvidence(childComplexity), true + + case "Subcontrol.implementationStatus": + if e.complexity.Subcontrol.ImplementationStatus == nil { + break + } + + return e.complexity.Subcontrol.ImplementationStatus(childComplexity), true + + case "Subcontrol.implementationVerification": + if e.complexity.Subcontrol.ImplementationVerification == nil { + break + } + + return e.complexity.Subcontrol.ImplementationVerification(childComplexity), true + + case "Subcontrol.implementationVerificationDate": + if e.complexity.Subcontrol.ImplementationVerificationDate == nil { + break + } + + return e.complexity.Subcontrol.ImplementationVerificationDate(childComplexity), true + + case "Subcontrol.mappedFrameworks": + if e.complexity.Subcontrol.MappedFrameworks == nil { + break + } + + return e.complexity.Subcontrol.MappedFrameworks(childComplexity), true + + case "Subcontrol.name": + if e.complexity.Subcontrol.Name == nil { + break + } + + return e.complexity.Subcontrol.Name(childComplexity), true + + case "Subcontrol.notes": + if e.complexity.Subcontrol.Notes == nil { + break + } + + return e.complexity.Subcontrol.Notes(childComplexity), true + + case "Subcontrol.owner": + if e.complexity.Subcontrol.Owner == nil { + break + } + + return e.complexity.Subcontrol.Owner(childComplexity), true + + case "Subcontrol.ownerID": + if e.complexity.Subcontrol.OwnerID == nil { + break + } + + return e.complexity.Subcontrol.OwnerID(childComplexity), true + + case "Subcontrol.programs": + if e.complexity.Subcontrol.Programs == nil { + break + } + + return e.complexity.Subcontrol.Programs(childComplexity), true + + case "Subcontrol.source": + if e.complexity.Subcontrol.Source == nil { + break + } + + return e.complexity.Subcontrol.Source(childComplexity), true + + case "Subcontrol.status": + if e.complexity.Subcontrol.Status == nil { + break + } + + return e.complexity.Subcontrol.Status(childComplexity), true + + case "Subcontrol.subcontrolNumber": + if e.complexity.Subcontrol.SubcontrolNumber == nil { + break + } + + return e.complexity.Subcontrol.SubcontrolNumber(childComplexity), true + + case "Subcontrol.subcontrolType": + if e.complexity.Subcontrol.SubcontrolType == nil { + break + } + + return e.complexity.Subcontrol.SubcontrolType(childComplexity), true + + case "Subcontrol.tags": + if e.complexity.Subcontrol.Tags == nil { + break + } + + return e.complexity.Subcontrol.Tags(childComplexity), true + + case "Subcontrol.tasks": + if e.complexity.Subcontrol.Tasks == nil { + break + } + + return e.complexity.Subcontrol.Tasks(childComplexity), true + + case "Subcontrol.updatedAt": + if e.complexity.Subcontrol.UpdatedAt == nil { + break + } + + return e.complexity.Subcontrol.UpdatedAt(childComplexity), true + + case "Subcontrol.updatedBy": + if e.complexity.Subcontrol.UpdatedBy == nil { + break + } + + return e.complexity.Subcontrol.UpdatedBy(childComplexity), true + + case "Subcontrol.user": + if e.complexity.Subcontrol.User == nil { + break + } + + return e.complexity.Subcontrol.User(childComplexity), true + + case "Subcontrol.version": + if e.complexity.Subcontrol.Version == nil { + break + } + + return e.complexity.Subcontrol.Version(childComplexity), true + + case "SubcontrolBulkCreatePayload.subcontrols": + if e.complexity.SubcontrolBulkCreatePayload.Subcontrols == nil { + break + } + + return e.complexity.SubcontrolBulkCreatePayload.Subcontrols(childComplexity), true + + case "SubcontrolConnection.edges": + if e.complexity.SubcontrolConnection.Edges == nil { + break + } + + return e.complexity.SubcontrolConnection.Edges(childComplexity), true + + case "SubcontrolConnection.pageInfo": + if e.complexity.SubcontrolConnection.PageInfo == nil { + break + } + + return e.complexity.SubcontrolConnection.PageInfo(childComplexity), true + + case "SubcontrolConnection.totalCount": + if e.complexity.SubcontrolConnection.TotalCount == nil { + break + } + + return e.complexity.SubcontrolConnection.TotalCount(childComplexity), true + + case "SubcontrolCreatePayload.subcontrol": + if e.complexity.SubcontrolCreatePayload.Subcontrol == nil { + break + } + + return e.complexity.SubcontrolCreatePayload.Subcontrol(childComplexity), true + + case "SubcontrolDeletePayload.deletedID": + if e.complexity.SubcontrolDeletePayload.DeletedID == nil { + break + } + + return e.complexity.SubcontrolDeletePayload.DeletedID(childComplexity), true + + case "SubcontrolEdge.cursor": + if e.complexity.SubcontrolEdge.Cursor == nil { + break + } + + return e.complexity.SubcontrolEdge.Cursor(childComplexity), true + + case "SubcontrolEdge.node": + if e.complexity.SubcontrolEdge.Node == nil { + break + } + + return e.complexity.SubcontrolEdge.Node(childComplexity), true + + case "SubcontrolHistory.class": + if e.complexity.SubcontrolHistory.Class == nil { + break + } + + return e.complexity.SubcontrolHistory.Class(childComplexity), true + + case "SubcontrolHistory.createdAt": + if e.complexity.SubcontrolHistory.CreatedAt == nil { + break + } + + return e.complexity.SubcontrolHistory.CreatedAt(childComplexity), true + + case "SubcontrolHistory.createdBy": + if e.complexity.SubcontrolHistory.CreatedBy == nil { + break + } + + return e.complexity.SubcontrolHistory.CreatedBy(childComplexity), true + + case "SubcontrolHistory.deletedAt": + if e.complexity.SubcontrolHistory.DeletedAt == nil { + break + } + + return e.complexity.SubcontrolHistory.DeletedAt(childComplexity), true + + case "SubcontrolHistory.deletedBy": + if e.complexity.SubcontrolHistory.DeletedBy == nil { + break + } + + return e.complexity.SubcontrolHistory.DeletedBy(childComplexity), true + + case "SubcontrolHistory.description": + if e.complexity.SubcontrolHistory.Description == nil { + break + } + + return e.complexity.SubcontrolHistory.Description(childComplexity), true + + case "SubcontrolHistory.details": + if e.complexity.SubcontrolHistory.Details == nil { + break + } + + return e.complexity.SubcontrolHistory.Details(childComplexity), true + + case "SubcontrolHistory.family": + if e.complexity.SubcontrolHistory.Family == nil { + break + } + + return e.complexity.SubcontrolHistory.Family(childComplexity), true + + case "SubcontrolHistory.historyTime": + if e.complexity.SubcontrolHistory.HistoryTime == nil { + break + } + + return e.complexity.SubcontrolHistory.HistoryTime(childComplexity), true + + case "SubcontrolHistory.id": + if e.complexity.SubcontrolHistory.ID == nil { + break + } + + return e.complexity.SubcontrolHistory.ID(childComplexity), true + + case "SubcontrolHistory.implementationDate": + if e.complexity.SubcontrolHistory.ImplementationDate == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationDate(childComplexity), true + + case "SubcontrolHistory.implementationEvidence": + if e.complexity.SubcontrolHistory.ImplementationEvidence == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationEvidence(childComplexity), true + + case "SubcontrolHistory.implementationStatus": + if e.complexity.SubcontrolHistory.ImplementationStatus == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationStatus(childComplexity), true + + case "SubcontrolHistory.implementationVerification": + if e.complexity.SubcontrolHistory.ImplementationVerification == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationVerification(childComplexity), true + + case "SubcontrolHistory.implementationVerificationDate": + if e.complexity.SubcontrolHistory.ImplementationVerificationDate == nil { + break + } + + return e.complexity.SubcontrolHistory.ImplementationVerificationDate(childComplexity), true + + case "SubcontrolHistory.mappedFrameworks": + if e.complexity.SubcontrolHistory.MappedFrameworks == nil { + break + } + + return e.complexity.SubcontrolHistory.MappedFrameworks(childComplexity), true + + case "SubcontrolHistory.name": + if e.complexity.SubcontrolHistory.Name == nil { + break + } + + return e.complexity.SubcontrolHistory.Name(childComplexity), true + + case "SubcontrolHistory.operation": + if e.complexity.SubcontrolHistory.Operation == nil { + break + } + + return e.complexity.SubcontrolHistory.Operation(childComplexity), true + + case "SubcontrolHistory.ownerID": + if e.complexity.SubcontrolHistory.OwnerID == nil { + break + } + + return e.complexity.SubcontrolHistory.OwnerID(childComplexity), true + + case "SubcontrolHistory.ref": + if e.complexity.SubcontrolHistory.Ref == nil { + break + } + + return e.complexity.SubcontrolHistory.Ref(childComplexity), true + + case "SubcontrolHistory.source": + if e.complexity.SubcontrolHistory.Source == nil { + break + } + + return e.complexity.SubcontrolHistory.Source(childComplexity), true + + case "SubcontrolHistory.status": + if e.complexity.SubcontrolHistory.Status == nil { + break + } + + return e.complexity.SubcontrolHistory.Status(childComplexity), true + + case "SubcontrolHistory.subcontrolNumber": + if e.complexity.SubcontrolHistory.SubcontrolNumber == nil { + break + } + + return e.complexity.SubcontrolHistory.SubcontrolNumber(childComplexity), true + + case "SubcontrolHistory.subcontrolType": + if e.complexity.SubcontrolHistory.SubcontrolType == nil { + break + } + + return e.complexity.SubcontrolHistory.SubcontrolType(childComplexity), true + + case "SubcontrolHistory.tags": + if e.complexity.SubcontrolHistory.Tags == nil { + break + } + + return e.complexity.SubcontrolHistory.Tags(childComplexity), true + + case "SubcontrolHistory.updatedAt": + if e.complexity.SubcontrolHistory.UpdatedAt == nil { + break + } + + return e.complexity.SubcontrolHistory.UpdatedAt(childComplexity), true + + case "SubcontrolHistory.updatedBy": + if e.complexity.SubcontrolHistory.UpdatedBy == nil { + break + } + + return e.complexity.SubcontrolHistory.UpdatedBy(childComplexity), true + + case "SubcontrolHistory.version": + if e.complexity.SubcontrolHistory.Version == nil { + break + } + + return e.complexity.SubcontrolHistory.Version(childComplexity), true + + case "SubcontrolHistoryConnection.edges": + if e.complexity.SubcontrolHistoryConnection.Edges == nil { + break + } + + return e.complexity.SubcontrolHistoryConnection.Edges(childComplexity), true + + case "SubcontrolHistoryConnection.pageInfo": + if e.complexity.SubcontrolHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.SubcontrolHistoryConnection.PageInfo(childComplexity), true + + case "SubcontrolHistoryConnection.totalCount": + if e.complexity.SubcontrolHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.SubcontrolHistoryConnection.TotalCount(childComplexity), true + + case "SubcontrolHistoryEdge.cursor": + if e.complexity.SubcontrolHistoryEdge.Cursor == nil { + break + } + + return e.complexity.SubcontrolHistoryEdge.Cursor(childComplexity), true + + case "SubcontrolHistoryEdge.node": + if e.complexity.SubcontrolHistoryEdge.Node == nil { + break + } + + return e.complexity.SubcontrolHistoryEdge.Node(childComplexity), true + + case "SubcontrolSearchResult.subcontrols": + if e.complexity.SubcontrolSearchResult.Subcontrols == nil { + break + } + + return e.complexity.SubcontrolSearchResult.Subcontrols(childComplexity), true + + case "SubcontrolUpdatePayload.subcontrol": + if e.complexity.SubcontrolUpdatePayload.Subcontrol == nil { + break + } + + return e.complexity.SubcontrolUpdatePayload.Subcontrol(childComplexity), true + + case "Subscriber.active": + if e.complexity.Subscriber.Active == nil { + break + } + + return e.complexity.Subscriber.Active(childComplexity), true + + case "Subscriber.createdAt": + if e.complexity.Subscriber.CreatedAt == nil { + break + } + + return e.complexity.Subscriber.CreatedAt(childComplexity), true + + case "Subscriber.createdBy": + if e.complexity.Subscriber.CreatedBy == nil { + break + } + + return e.complexity.Subscriber.CreatedBy(childComplexity), true + + case "Subscriber.deletedAt": + if e.complexity.Subscriber.DeletedAt == nil { + break + } + + return e.complexity.Subscriber.DeletedAt(childComplexity), true + + case "Subscriber.deletedBy": + if e.complexity.Subscriber.DeletedBy == nil { + break + } + + return e.complexity.Subscriber.DeletedBy(childComplexity), true + + case "Subscriber.email": + if e.complexity.Subscriber.Email == nil { + break + } + + return e.complexity.Subscriber.Email(childComplexity), true + + case "Subscriber.events": + if e.complexity.Subscriber.Events == nil { + break + } + + return e.complexity.Subscriber.Events(childComplexity), true + + case "Subscriber.id": + if e.complexity.Subscriber.ID == nil { + break + } + + return e.complexity.Subscriber.ID(childComplexity), true + + case "Subscriber.owner": + if e.complexity.Subscriber.Owner == nil { + break + } + + return e.complexity.Subscriber.Owner(childComplexity), true + + case "Subscriber.ownerID": + if e.complexity.Subscriber.OwnerID == nil { + break + } + + return e.complexity.Subscriber.OwnerID(childComplexity), true + + case "Subscriber.phoneNumber": + if e.complexity.Subscriber.PhoneNumber == nil { + break + } + + return e.complexity.Subscriber.PhoneNumber(childComplexity), true + + case "Subscriber.tags": + if e.complexity.Subscriber.Tags == nil { + break + } + + return e.complexity.Subscriber.Tags(childComplexity), true + + case "Subscriber.updatedAt": + if e.complexity.Subscriber.UpdatedAt == nil { + break + } + + return e.complexity.Subscriber.UpdatedAt(childComplexity), true + + case "Subscriber.updatedBy": + if e.complexity.Subscriber.UpdatedBy == nil { + break + } + + return e.complexity.Subscriber.UpdatedBy(childComplexity), true + + case "Subscriber.verifiedEmail": + if e.complexity.Subscriber.VerifiedEmail == nil { + break + } + + return e.complexity.Subscriber.VerifiedEmail(childComplexity), true + + case "Subscriber.verifiedPhone": + if e.complexity.Subscriber.VerifiedPhone == nil { + break + } + + return e.complexity.Subscriber.VerifiedPhone(childComplexity), true + + case "SubscriberBulkCreatePayload.subscribers": + if e.complexity.SubscriberBulkCreatePayload.Subscribers == nil { + break + } + + return e.complexity.SubscriberBulkCreatePayload.Subscribers(childComplexity), true + + case "SubscriberConnection.edges": + if e.complexity.SubscriberConnection.Edges == nil { + break + } + + return e.complexity.SubscriberConnection.Edges(childComplexity), true + + case "SubscriberConnection.pageInfo": + if e.complexity.SubscriberConnection.PageInfo == nil { + break + } + + return e.complexity.SubscriberConnection.PageInfo(childComplexity), true + + case "SubscriberConnection.totalCount": + if e.complexity.SubscriberConnection.TotalCount == nil { + break + } + + return e.complexity.SubscriberConnection.TotalCount(childComplexity), true + + case "SubscriberCreatePayload.subscriber": + if e.complexity.SubscriberCreatePayload.Subscriber == nil { + break + } + + return e.complexity.SubscriberCreatePayload.Subscriber(childComplexity), true + + case "SubscriberDeletePayload.email": + if e.complexity.SubscriberDeletePayload.Email == nil { + break + } + + return e.complexity.SubscriberDeletePayload.Email(childComplexity), true + + case "SubscriberEdge.cursor": + if e.complexity.SubscriberEdge.Cursor == nil { + break + } + + return e.complexity.SubscriberEdge.Cursor(childComplexity), true + + case "SubscriberEdge.node": + if e.complexity.SubscriberEdge.Node == nil { + break + } + + return e.complexity.SubscriberEdge.Node(childComplexity), true + + case "SubscriberSearchResult.subscribers": + if e.complexity.SubscriberSearchResult.Subscribers == nil { + break + } + + return e.complexity.SubscriberSearchResult.Subscribers(childComplexity), true + + case "SubscriberUpdatePayload.subscriber": + if e.complexity.SubscriberUpdatePayload.Subscriber == nil { + break + } + + return e.complexity.SubscriberUpdatePayload.Subscriber(childComplexity), true + + case "TFASetting.createdAt": + if e.complexity.TFASetting.CreatedAt == nil { + break + } + + return e.complexity.TFASetting.CreatedAt(childComplexity), true + + case "TFASetting.createdBy": + if e.complexity.TFASetting.CreatedBy == nil { + break + } + + return e.complexity.TFASetting.CreatedBy(childComplexity), true + + case "TFASetting.deletedAt": + if e.complexity.TFASetting.DeletedAt == nil { + break + } + + return e.complexity.TFASetting.DeletedAt(childComplexity), true + + case "TFASetting.deletedBy": + if e.complexity.TFASetting.DeletedBy == nil { + break + } + + return e.complexity.TFASetting.DeletedBy(childComplexity), true + + case "TFASetting.id": + if e.complexity.TFASetting.ID == nil { + break + } + + return e.complexity.TFASetting.ID(childComplexity), true + + case "TFASetting.owner": + if e.complexity.TFASetting.Owner == nil { + break + } + + return e.complexity.TFASetting.Owner(childComplexity), true + + case "TFASetting.recoveryCodes": + if e.complexity.TFASetting.RecoveryCodes == nil { + break + } + + return e.complexity.TFASetting.RecoveryCodes(childComplexity), true + + case "TFASetting.tags": + if e.complexity.TFASetting.Tags == nil { + break + } + + return e.complexity.TFASetting.Tags(childComplexity), true + + case "TFASetting.tfaSecret": + if e.complexity.TFASetting.TfaSecret == nil { + break + } + + return e.complexity.TFASetting.TfaSecret(childComplexity), true + + case "TFASetting.totpAllowed": + if e.complexity.TFASetting.TotpAllowed == nil { + break + } + + return e.complexity.TFASetting.TotpAllowed(childComplexity), true + + case "TFASetting.updatedAt": + if e.complexity.TFASetting.UpdatedAt == nil { + break + } + + return e.complexity.TFASetting.UpdatedAt(childComplexity), true + + case "TFASetting.updatedBy": + if e.complexity.TFASetting.UpdatedBy == nil { + break + } + + return e.complexity.TFASetting.UpdatedBy(childComplexity), true + + case "TFASetting.verified": + if e.complexity.TFASetting.Verified == nil { + break + } + + return e.complexity.TFASetting.Verified(childComplexity), true + + case "TFASettingConnection.edges": + if e.complexity.TFASettingConnection.Edges == nil { + break + } + + return e.complexity.TFASettingConnection.Edges(childComplexity), true + + case "TFASettingConnection.pageInfo": + if e.complexity.TFASettingConnection.PageInfo == nil { + break + } + + return e.complexity.TFASettingConnection.PageInfo(childComplexity), true + + case "TFASettingConnection.totalCount": + if e.complexity.TFASettingConnection.TotalCount == nil { + break + } + + return e.complexity.TFASettingConnection.TotalCount(childComplexity), true + + case "TFASettingCreatePayload.tfaSetting": + if e.complexity.TFASettingCreatePayload.TfaSetting == nil { + break + } + + return e.complexity.TFASettingCreatePayload.TfaSetting(childComplexity), true + + case "TFASettingEdge.cursor": + if e.complexity.TFASettingEdge.Cursor == nil { + break + } + + return e.complexity.TFASettingEdge.Cursor(childComplexity), true + + case "TFASettingEdge.node": + if e.complexity.TFASettingEdge.Node == nil { + break + } + + return e.complexity.TFASettingEdge.Node(childComplexity), true + + case "TFASettingSearchResult.tFASettings": + if e.complexity.TFASettingSearchResult.TFASettings == nil { + break + } + + return e.complexity.TFASettingSearchResult.TFASettings(childComplexity), true + + case "TFASettingUpdatePayload.tfaSetting": + if e.complexity.TFASettingUpdatePayload.TfaSetting == nil { + break + } + + return e.complexity.TFASettingUpdatePayload.TfaSetting(childComplexity), true + + case "Task.assignee": + if e.complexity.Task.Assignee == nil { + break + } + + return e.complexity.Task.Assignee(childComplexity), true + + case "Task.assigner": + if e.complexity.Task.Assigner == nil { + break + } + + return e.complexity.Task.Assigner(childComplexity), true + + case "Task.completed": + if e.complexity.Task.Completed == nil { + break + } + + return e.complexity.Task.Completed(childComplexity), true + + case "Task.control": + if e.complexity.Task.Control == nil { + break + } + + return e.complexity.Task.Control(childComplexity), true + + case "Task.controlObjective": + if e.complexity.Task.ControlObjective == nil { + break + } + + return e.complexity.Task.ControlObjective(childComplexity), true + + case "Task.createdAt": + if e.complexity.Task.CreatedAt == nil { + break + } + + return e.complexity.Task.CreatedAt(childComplexity), true + + case "Task.createdBy": + if e.complexity.Task.CreatedBy == nil { + break + } + + return e.complexity.Task.CreatedBy(childComplexity), true + + case "Task.deletedAt": + if e.complexity.Task.DeletedAt == nil { + break + } + + return e.complexity.Task.DeletedAt(childComplexity), true + + case "Task.deletedBy": + if e.complexity.Task.DeletedBy == nil { + break + } + + return e.complexity.Task.DeletedBy(childComplexity), true + + case "Task.description": + if e.complexity.Task.Description == nil { + break + } + + return e.complexity.Task.Description(childComplexity), true + + case "Task.details": + if e.complexity.Task.Details == nil { + break + } + + return e.complexity.Task.Details(childComplexity), true + + case "Task.due": + if e.complexity.Task.Due == nil { + break + } + + return e.complexity.Task.Due(childComplexity), true + + case "Task.group": + if e.complexity.Task.Group == nil { + break + } + + return e.complexity.Task.Group(childComplexity), true + + case "Task.id": + if e.complexity.Task.ID == nil { + break + } + + return e.complexity.Task.ID(childComplexity), true + + case "Task.internalPolicy": + if e.complexity.Task.InternalPolicy == nil { + break + } + + return e.complexity.Task.InternalPolicy(childComplexity), true + + case "Task.organization": + if e.complexity.Task.Organization == nil { + break + } + + return e.complexity.Task.Organization(childComplexity), true + + case "Task.procedure": + if e.complexity.Task.Procedure == nil { + break + } + + return e.complexity.Task.Procedure(childComplexity), true + + case "Task.program": + if e.complexity.Task.Program == nil { + break + } + + return e.complexity.Task.Program(childComplexity), true + + case "Task.status": + if e.complexity.Task.Status == nil { + break + } + + return e.complexity.Task.Status(childComplexity), true + + case "Task.subcontrol": + if e.complexity.Task.Subcontrol == nil { + break + } + + return e.complexity.Task.Subcontrol(childComplexity), true + + case "Task.tags": + if e.complexity.Task.Tags == nil { + break + } + + return e.complexity.Task.Tags(childComplexity), true + + case "Task.title": + if e.complexity.Task.Title == nil { + break + } + + return e.complexity.Task.Title(childComplexity), true + + case "Task.updatedAt": + if e.complexity.Task.UpdatedAt == nil { + break + } + + return e.complexity.Task.UpdatedAt(childComplexity), true + + case "Task.updatedBy": + if e.complexity.Task.UpdatedBy == nil { + break + } + + return e.complexity.Task.UpdatedBy(childComplexity), true + + case "TaskBulkCreatePayload.tasks": + if e.complexity.TaskBulkCreatePayload.Tasks == nil { + break + } + + return e.complexity.TaskBulkCreatePayload.Tasks(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 "TaskCreatePayload.task": + if e.complexity.TaskCreatePayload.Task == nil { + break + } + + return e.complexity.TaskCreatePayload.Task(childComplexity), true + + case "TaskDeletePayload.deletedID": + if e.complexity.TaskDeletePayload.DeletedID == nil { + break + } + + return e.complexity.TaskDeletePayload.DeletedID(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 "TaskHistory.completed": + if e.complexity.TaskHistory.Completed == nil { + break + } + + return e.complexity.TaskHistory.Completed(childComplexity), true + + case "TaskHistory.createdAt": + if e.complexity.TaskHistory.CreatedAt == nil { + break + } + + return e.complexity.TaskHistory.CreatedAt(childComplexity), true + + case "TaskHistory.createdBy": + if e.complexity.TaskHistory.CreatedBy == nil { + break + } + + return e.complexity.TaskHistory.CreatedBy(childComplexity), true + + case "TaskHistory.deletedAt": + if e.complexity.TaskHistory.DeletedAt == nil { + break + } + + return e.complexity.TaskHistory.DeletedAt(childComplexity), true + + case "TaskHistory.deletedBy": + if e.complexity.TaskHistory.DeletedBy == nil { + break + } + + return e.complexity.TaskHistory.DeletedBy(childComplexity), true + + case "TaskHistory.description": + if e.complexity.TaskHistory.Description == nil { + break + } + + return e.complexity.TaskHistory.Description(childComplexity), true + + case "TaskHistory.details": + if e.complexity.TaskHistory.Details == nil { + break + } + + return e.complexity.TaskHistory.Details(childComplexity), true + + case "TaskHistory.due": + if e.complexity.TaskHistory.Due == nil { + break + } + + return e.complexity.TaskHistory.Due(childComplexity), true + + case "TaskHistory.historyTime": + if e.complexity.TaskHistory.HistoryTime == nil { + break + } + + return e.complexity.TaskHistory.HistoryTime(childComplexity), true + + case "TaskHistory.id": + if e.complexity.TaskHistory.ID == nil { + break + } + + return e.complexity.TaskHistory.ID(childComplexity), true + + case "TaskHistory.operation": + if e.complexity.TaskHistory.Operation == nil { + break + } + + return e.complexity.TaskHistory.Operation(childComplexity), true + + case "TaskHistory.ref": + if e.complexity.TaskHistory.Ref == nil { + break + } + + return e.complexity.TaskHistory.Ref(childComplexity), true + + case "TaskHistory.status": + if e.complexity.TaskHistory.Status == nil { + break + } + + return e.complexity.TaskHistory.Status(childComplexity), true + + case "TaskHistory.tags": + if e.complexity.TaskHistory.Tags == nil { + break + } + + return e.complexity.TaskHistory.Tags(childComplexity), true + + case "TaskHistory.title": + if e.complexity.TaskHistory.Title == nil { + break + } + + return e.complexity.TaskHistory.Title(childComplexity), true + + case "TaskHistory.updatedAt": + if e.complexity.TaskHistory.UpdatedAt == nil { + break + } + + return e.complexity.TaskHistory.UpdatedAt(childComplexity), true + + case "TaskHistory.updatedBy": + if e.complexity.TaskHistory.UpdatedBy == nil { + break + } + + return e.complexity.TaskHistory.UpdatedBy(childComplexity), true + + case "TaskHistoryConnection.edges": + if e.complexity.TaskHistoryConnection.Edges == nil { + break + } + + return e.complexity.TaskHistoryConnection.Edges(childComplexity), true + + case "TaskHistoryConnection.pageInfo": + if e.complexity.TaskHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.TaskHistoryConnection.PageInfo(childComplexity), true + + case "TaskHistoryConnection.totalCount": + if e.complexity.TaskHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.TaskHistoryConnection.TotalCount(childComplexity), true + + case "TaskHistoryEdge.cursor": + if e.complexity.TaskHistoryEdge.Cursor == nil { + break + } + + return e.complexity.TaskHistoryEdge.Cursor(childComplexity), true + + case "TaskHistoryEdge.node": + if e.complexity.TaskHistoryEdge.Node == nil { + break + } + + return e.complexity.TaskHistoryEdge.Node(childComplexity), true + + case "TaskSearchResult.tasks": + if e.complexity.TaskSearchResult.Tasks == nil { + break + } + + return e.complexity.TaskSearchResult.Tasks(childComplexity), true + + case "TaskUpdatePayload.task": + if e.complexity.TaskUpdatePayload.Task == nil { + break + } + + return e.complexity.TaskUpdatePayload.Task(childComplexity), true + + case "Template.createdAt": + if e.complexity.Template.CreatedAt == nil { + break + } + + return e.complexity.Template.CreatedAt(childComplexity), true + + case "Template.createdBy": + if e.complexity.Template.CreatedBy == nil { + break + } + + return e.complexity.Template.CreatedBy(childComplexity), true + + case "Template.deletedAt": + if e.complexity.Template.DeletedAt == nil { + break + } + + return e.complexity.Template.DeletedAt(childComplexity), true + + case "Template.deletedBy": + if e.complexity.Template.DeletedBy == nil { + break + } + + return e.complexity.Template.DeletedBy(childComplexity), true + + case "Template.description": + if e.complexity.Template.Description == nil { + break + } + + return e.complexity.Template.Description(childComplexity), true + + case "Template.documents": + if e.complexity.Template.Documents == nil { + break + } + + return e.complexity.Template.Documents(childComplexity), true + + case "Template.files": + if e.complexity.Template.Files == nil { + break + } + + return e.complexity.Template.Files(childComplexity), true + + case "Template.id": + if e.complexity.Template.ID == nil { + break + } + + return e.complexity.Template.ID(childComplexity), true + + case "Template.jsonconfig": + if e.complexity.Template.Jsonconfig == nil { + break + } + + return e.complexity.Template.Jsonconfig(childComplexity), true + + case "Template.name": + if e.complexity.Template.Name == nil { + break + } + + return e.complexity.Template.Name(childComplexity), true + + case "Template.owner": + if e.complexity.Template.Owner == nil { + break + } + + return e.complexity.Template.Owner(childComplexity), true + + case "Template.ownerID": + if e.complexity.Template.OwnerID == nil { + break + } + + return e.complexity.Template.OwnerID(childComplexity), true + + case "Template.tags": + if e.complexity.Template.Tags == nil { + break + } + + return e.complexity.Template.Tags(childComplexity), true + + case "Template.templateType": + if e.complexity.Template.TemplateType == nil { + break + } + + return e.complexity.Template.TemplateType(childComplexity), true + + case "Template.uischema": + if e.complexity.Template.Uischema == nil { + break + } + + return e.complexity.Template.Uischema(childComplexity), true + + case "Template.updatedAt": + if e.complexity.Template.UpdatedAt == nil { + break + } + + return e.complexity.Template.UpdatedAt(childComplexity), true + + case "Template.updatedBy": + if e.complexity.Template.UpdatedBy == nil { + break + } + + return e.complexity.Template.UpdatedBy(childComplexity), true + + case "TemplateBulkCreatePayload.templates": + if e.complexity.TemplateBulkCreatePayload.Templates == nil { + break + } + + return e.complexity.TemplateBulkCreatePayload.Templates(childComplexity), true + + case "TemplateConnection.edges": + if e.complexity.TemplateConnection.Edges == nil { + break + } + + return e.complexity.TemplateConnection.Edges(childComplexity), true + + case "TemplateConnection.pageInfo": + if e.complexity.TemplateConnection.PageInfo == nil { + break + } + + return e.complexity.TemplateConnection.PageInfo(childComplexity), true + + case "TemplateConnection.totalCount": + if e.complexity.TemplateConnection.TotalCount == nil { + break + } + + return e.complexity.TemplateConnection.TotalCount(childComplexity), true + + case "TemplateCreatePayload.template": + if e.complexity.TemplateCreatePayload.Template == nil { + break + } + + return e.complexity.TemplateCreatePayload.Template(childComplexity), true + + case "TemplateDeletePayload.deletedID": + if e.complexity.TemplateDeletePayload.DeletedID == nil { + break + } + + return e.complexity.TemplateDeletePayload.DeletedID(childComplexity), true + + case "TemplateEdge.cursor": + if e.complexity.TemplateEdge.Cursor == nil { + break + } + + return e.complexity.TemplateEdge.Cursor(childComplexity), true + + case "TemplateEdge.node": + if e.complexity.TemplateEdge.Node == nil { + break + } + + return e.complexity.TemplateEdge.Node(childComplexity), true + + case "TemplateHistory.createdAt": + if e.complexity.TemplateHistory.CreatedAt == nil { + break + } + + return e.complexity.TemplateHistory.CreatedAt(childComplexity), true + + case "TemplateHistory.createdBy": + if e.complexity.TemplateHistory.CreatedBy == nil { + break + } + + return e.complexity.TemplateHistory.CreatedBy(childComplexity), true + + case "TemplateHistory.deletedAt": + if e.complexity.TemplateHistory.DeletedAt == nil { + break + } + + return e.complexity.TemplateHistory.DeletedAt(childComplexity), true + + case "TemplateHistory.deletedBy": + if e.complexity.TemplateHistory.DeletedBy == nil { + break + } + + return e.complexity.TemplateHistory.DeletedBy(childComplexity), true + + case "TemplateHistory.description": + if e.complexity.TemplateHistory.Description == nil { + break + } + + return e.complexity.TemplateHistory.Description(childComplexity), true + + case "TemplateHistory.historyTime": + if e.complexity.TemplateHistory.HistoryTime == nil { + break + } + + return e.complexity.TemplateHistory.HistoryTime(childComplexity), true + + case "TemplateHistory.id": + if e.complexity.TemplateHistory.ID == nil { + break + } + + return e.complexity.TemplateHistory.ID(childComplexity), true + + case "TemplateHistory.jsonconfig": + if e.complexity.TemplateHistory.Jsonconfig == nil { + break + } + + return e.complexity.TemplateHistory.Jsonconfig(childComplexity), true + + case "TemplateHistory.name": + if e.complexity.TemplateHistory.Name == nil { + break + } + + return e.complexity.TemplateHistory.Name(childComplexity), true + + case "TemplateHistory.operation": + if e.complexity.TemplateHistory.Operation == nil { + break + } + + return e.complexity.TemplateHistory.Operation(childComplexity), true + + case "TemplateHistory.ownerID": + if e.complexity.TemplateHistory.OwnerID == nil { + break + } + + return e.complexity.TemplateHistory.OwnerID(childComplexity), true + + case "TemplateHistory.ref": + if e.complexity.TemplateHistory.Ref == nil { + break + } + + return e.complexity.TemplateHistory.Ref(childComplexity), true + + case "TemplateHistory.tags": + if e.complexity.TemplateHistory.Tags == nil { + break + } + + return e.complexity.TemplateHistory.Tags(childComplexity), true + + case "TemplateHistory.templateType": + if e.complexity.TemplateHistory.TemplateType == nil { + break + } + + return e.complexity.TemplateHistory.TemplateType(childComplexity), true + + case "TemplateHistory.uischema": + if e.complexity.TemplateHistory.Uischema == nil { + break + } + + return e.complexity.TemplateHistory.Uischema(childComplexity), true + + case "TemplateHistory.updatedAt": + if e.complexity.TemplateHistory.UpdatedAt == nil { + break + } + + return e.complexity.TemplateHistory.UpdatedAt(childComplexity), true + + case "TemplateHistory.updatedBy": + if e.complexity.TemplateHistory.UpdatedBy == nil { + break + } + + return e.complexity.TemplateHistory.UpdatedBy(childComplexity), true + + case "TemplateHistoryConnection.edges": + if e.complexity.TemplateHistoryConnection.Edges == nil { + break + } + + return e.complexity.TemplateHistoryConnection.Edges(childComplexity), true + + case "TemplateHistoryConnection.pageInfo": + if e.complexity.TemplateHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.TemplateHistoryConnection.PageInfo(childComplexity), true + + case "TemplateHistoryConnection.totalCount": + if e.complexity.TemplateHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.TemplateHistoryConnection.TotalCount(childComplexity), true + + case "TemplateHistoryEdge.cursor": + if e.complexity.TemplateHistoryEdge.Cursor == nil { + break + } + + return e.complexity.TemplateHistoryEdge.Cursor(childComplexity), true + + case "TemplateHistoryEdge.node": + if e.complexity.TemplateHistoryEdge.Node == nil { + break + } + + return e.complexity.TemplateHistoryEdge.Node(childComplexity), true + + case "TemplateSearchResult.templates": + if e.complexity.TemplateSearchResult.Templates == nil { + break + } + + return e.complexity.TemplateSearchResult.Templates(childComplexity), true + + case "TemplateUpdatePayload.template": + if e.complexity.TemplateUpdatePayload.Template == nil { + break + } + + return e.complexity.TemplateUpdatePayload.Template(childComplexity), true + + case "User.actionPlans": + if e.complexity.User.ActionPlans == nil { + break + } + + return e.complexity.User.ActionPlans(childComplexity), true + + case "User.assigneeTasks": + if e.complexity.User.AssigneeTasks == nil { + break + } + + return e.complexity.User.AssigneeTasks(childComplexity), true + + case "User.assignerTasks": + if e.complexity.User.AssignerTasks == nil { + break + } + + return e.complexity.User.AssignerTasks(childComplexity), true + + case "User.authProvider": + if e.complexity.User.AuthProvider == nil { + break + } + + return e.complexity.User.AuthProvider(childComplexity), true + + case "User.avatarLocalFile": + if e.complexity.User.AvatarLocalFile == nil { + break + } + + return e.complexity.User.AvatarLocalFile(childComplexity), true + + case "User.avatarLocalFileID": + if e.complexity.User.AvatarLocalFileID == nil { + break + } + + return e.complexity.User.AvatarLocalFileID(childComplexity), true + + case "User.avatarRemoteURL": + if e.complexity.User.AvatarRemoteURL == nil { + break + } + + return e.complexity.User.AvatarRemoteURL(childComplexity), true + + case "User.avatarUpdatedAt": + if e.complexity.User.AvatarUpdatedAt == nil { + break + } + + return e.complexity.User.AvatarUpdatedAt(childComplexity), true + + case "User.createdAt": + if e.complexity.User.CreatedAt == nil { + break + } + + return e.complexity.User.CreatedAt(childComplexity), true + + case "User.createdBy": + if e.complexity.User.CreatedBy == nil { + break + } + + return e.complexity.User.CreatedBy(childComplexity), true + + case "User.deletedAt": + if e.complexity.User.DeletedAt == nil { + break + } + + return e.complexity.User.DeletedAt(childComplexity), true + + case "User.deletedBy": + if e.complexity.User.DeletedBy == nil { + break + } + + return e.complexity.User.DeletedBy(childComplexity), true + + case "User.displayName": + if e.complexity.User.DisplayName == nil { + break + } + + return e.complexity.User.DisplayName(childComplexity), true + + case "User.email": + if e.complexity.User.Email == nil { + break + } + + return e.complexity.User.Email(childComplexity), true + + case "User.events": + if e.complexity.User.Events == nil { + break + } + + return e.complexity.User.Events(childComplexity), true + + case "User.file": + if e.complexity.User.File == nil { + break + } + + return e.complexity.User.File(childComplexity), true + + case "User.files": + if e.complexity.User.Files == nil { + break + } + + return e.complexity.User.Files(childComplexity), true + + case "User.firstName": + if e.complexity.User.FirstName == nil { + break + } + + return e.complexity.User.FirstName(childComplexity), true + + case "User.groupMemberships": + if e.complexity.User.GroupMemberships == nil { + break + } + + return e.complexity.User.GroupMemberships(childComplexity), true + + case "User.groups": + if e.complexity.User.Groups == nil { + break + } + + return e.complexity.User.Groups(childComplexity), true + + case "User.id": + if e.complexity.User.ID == nil { + break + } + + return e.complexity.User.ID(childComplexity), true + + case "User.lastName": + if e.complexity.User.LastName == nil { + break + } + + return e.complexity.User.LastName(childComplexity), true + + case "User.lastSeen": + if e.complexity.User.LastSeen == nil { + break + } + + return e.complexity.User.LastSeen(childComplexity), true + + case "User.orgMemberships": + if e.complexity.User.OrgMemberships == nil { + break + } + + return e.complexity.User.OrgMemberships(childComplexity), true + + case "User.organizations": + if e.complexity.User.Organizations == nil { + break + } + + return e.complexity.User.Organizations(childComplexity), true + + case "User.personalAccessTokens": + if e.complexity.User.PersonalAccessTokens == nil { + break + } + + return e.complexity.User.PersonalAccessTokens(childComplexity), true + + case "User.programMemberships": + if e.complexity.User.ProgramMemberships == nil { + break + } + + return e.complexity.User.ProgramMemberships(childComplexity), true + + case "User.programs": + if e.complexity.User.Programs == nil { + break + } + + return e.complexity.User.Programs(childComplexity), true + + case "User.role": + if e.complexity.User.Role == nil { + break + } + + return e.complexity.User.Role(childComplexity), true + + case "User.setting": + if e.complexity.User.Setting == nil { + break + } + + return e.complexity.User.Setting(childComplexity), true + + case "User.sub": + if e.complexity.User.Sub == nil { + break + } + + return e.complexity.User.Sub(childComplexity), true + + case "User.subcontrols": + if e.complexity.User.Subcontrols == nil { + break + } + + return e.complexity.User.Subcontrols(childComplexity), true + + case "User.tags": + if e.complexity.User.Tags == nil { + break + } + + return e.complexity.User.Tags(childComplexity), true + + case "User.tfaSettings": + if e.complexity.User.TfaSettings == nil { + break + } + + return e.complexity.User.TfaSettings(childComplexity), true + + case "User.updatedAt": + if e.complexity.User.UpdatedAt == nil { + break + } + + return e.complexity.User.UpdatedAt(childComplexity), true + + case "User.updatedBy": + if e.complexity.User.UpdatedBy == nil { + break + } + + return e.complexity.User.UpdatedBy(childComplexity), true + + case "UserBulkCreatePayload.users": + if e.complexity.UserBulkCreatePayload.Users == nil { + break + } + + return e.complexity.UserBulkCreatePayload.Users(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 "UserConnection.totalCount": + if e.complexity.UserConnection.TotalCount == nil { + break + } + + return e.complexity.UserConnection.TotalCount(childComplexity), true + + case "UserCreatePayload.user": + if e.complexity.UserCreatePayload.User == nil { + break + } + + return e.complexity.UserCreatePayload.User(childComplexity), true + + case "UserDeletePayload.deletedID": + if e.complexity.UserDeletePayload.DeletedID == nil { + break + } + + return e.complexity.UserDeletePayload.DeletedID(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 "UserHistory.authProvider": + if e.complexity.UserHistory.AuthProvider == nil { + break + } + + return e.complexity.UserHistory.AuthProvider(childComplexity), true + + case "UserHistory.avatarLocalFile": + if e.complexity.UserHistory.AvatarLocalFile == nil { + break + } + + return e.complexity.UserHistory.AvatarLocalFile(childComplexity), true + + case "UserHistory.avatarLocalFileID": + if e.complexity.UserHistory.AvatarLocalFileID == nil { + break + } + + return e.complexity.UserHistory.AvatarLocalFileID(childComplexity), true + + case "UserHistory.avatarRemoteURL": + if e.complexity.UserHistory.AvatarRemoteURL == nil { + break + } + + return e.complexity.UserHistory.AvatarRemoteURL(childComplexity), true + + case "UserHistory.avatarUpdatedAt": + if e.complexity.UserHistory.AvatarUpdatedAt == nil { + break + } + + return e.complexity.UserHistory.AvatarUpdatedAt(childComplexity), true + + case "UserHistory.createdAt": + if e.complexity.UserHistory.CreatedAt == nil { + break + } + + return e.complexity.UserHistory.CreatedAt(childComplexity), true + + case "UserHistory.createdBy": + if e.complexity.UserHistory.CreatedBy == nil { + break + } + + return e.complexity.UserHistory.CreatedBy(childComplexity), true + + case "UserHistory.deletedAt": + if e.complexity.UserHistory.DeletedAt == nil { + break + } + + return e.complexity.UserHistory.DeletedAt(childComplexity), true + + case "UserHistory.deletedBy": + if e.complexity.UserHistory.DeletedBy == nil { + break + } + + return e.complexity.UserHistory.DeletedBy(childComplexity), true + + case "UserHistory.displayName": + if e.complexity.UserHistory.DisplayName == nil { + break + } + + return e.complexity.UserHistory.DisplayName(childComplexity), true + + case "UserHistory.email": + if e.complexity.UserHistory.Email == nil { + break + } + + return e.complexity.UserHistory.Email(childComplexity), true + + case "UserHistory.firstName": + if e.complexity.UserHistory.FirstName == nil { + break + } + + return e.complexity.UserHistory.FirstName(childComplexity), true + + case "UserHistory.historyTime": + if e.complexity.UserHistory.HistoryTime == nil { + break + } + + return e.complexity.UserHistory.HistoryTime(childComplexity), true + + case "UserHistory.id": + if e.complexity.UserHistory.ID == nil { + break + } + + return e.complexity.UserHistory.ID(childComplexity), true + + case "UserHistory.lastName": + if e.complexity.UserHistory.LastName == nil { + break + } + + return e.complexity.UserHistory.LastName(childComplexity), true + + case "UserHistory.lastSeen": + if e.complexity.UserHistory.LastSeen == nil { + break + } + + return e.complexity.UserHistory.LastSeen(childComplexity), true + + case "UserHistory.operation": + if e.complexity.UserHistory.Operation == nil { + break + } + + return e.complexity.UserHistory.Operation(childComplexity), true + + case "UserHistory.ref": + if e.complexity.UserHistory.Ref == nil { + break + } + + return e.complexity.UserHistory.Ref(childComplexity), true + + case "UserHistory.role": + if e.complexity.UserHistory.Role == nil { + break + } + + return e.complexity.UserHistory.Role(childComplexity), true + + case "UserHistory.sub": + if e.complexity.UserHistory.Sub == nil { + break + } + + return e.complexity.UserHistory.Sub(childComplexity), true + + case "UserHistory.tags": + if e.complexity.UserHistory.Tags == nil { + break + } + + return e.complexity.UserHistory.Tags(childComplexity), true + + case "UserHistory.updatedAt": + if e.complexity.UserHistory.UpdatedAt == nil { + break + } + + return e.complexity.UserHistory.UpdatedAt(childComplexity), true + + case "UserHistory.updatedBy": + if e.complexity.UserHistory.UpdatedBy == nil { + break + } + + return e.complexity.UserHistory.UpdatedBy(childComplexity), true + + case "UserHistoryConnection.edges": + if e.complexity.UserHistoryConnection.Edges == nil { + break + } + + return e.complexity.UserHistoryConnection.Edges(childComplexity), true + + case "UserHistoryConnection.pageInfo": + if e.complexity.UserHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.UserHistoryConnection.PageInfo(childComplexity), true + + case "UserHistoryConnection.totalCount": + if e.complexity.UserHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.UserHistoryConnection.TotalCount(childComplexity), true + + case "UserHistoryEdge.cursor": + if e.complexity.UserHistoryEdge.Cursor == nil { + break + } + + return e.complexity.UserHistoryEdge.Cursor(childComplexity), true + + case "UserHistoryEdge.node": + if e.complexity.UserHistoryEdge.Node == nil { + break + } + + return e.complexity.UserHistoryEdge.Node(childComplexity), true + + case "UserSearchResult.users": + if e.complexity.UserSearchResult.Users == nil { + break + } + + return e.complexity.UserSearchResult.Users(childComplexity), true + + case "UserSetting.createdAt": + if e.complexity.UserSetting.CreatedAt == nil { + break + } + + return e.complexity.UserSetting.CreatedAt(childComplexity), true + + case "UserSetting.createdBy": + if e.complexity.UserSetting.CreatedBy == nil { + break + } + + return e.complexity.UserSetting.CreatedBy(childComplexity), true + + case "UserSetting.defaultOrg": + if e.complexity.UserSetting.DefaultOrg == nil { + break + } + + return e.complexity.UserSetting.DefaultOrg(childComplexity), true + + case "UserSetting.deletedAt": + if e.complexity.UserSetting.DeletedAt == nil { + break + } + + return e.complexity.UserSetting.DeletedAt(childComplexity), true + + case "UserSetting.deletedBy": + if e.complexity.UserSetting.DeletedBy == nil { + break + } + + return e.complexity.UserSetting.DeletedBy(childComplexity), true + + case "UserSetting.emailConfirmed": + if e.complexity.UserSetting.EmailConfirmed == nil { + break + } + + return e.complexity.UserSetting.EmailConfirmed(childComplexity), true + + case "UserSetting.files": + if e.complexity.UserSetting.Files == nil { + break + } + + return e.complexity.UserSetting.Files(childComplexity), true + + case "UserSetting.id": + if e.complexity.UserSetting.ID == nil { + break + } + + return e.complexity.UserSetting.ID(childComplexity), true + + case "UserSetting.isTfaEnabled": + if e.complexity.UserSetting.IsTfaEnabled == nil { + break + } + + return e.complexity.UserSetting.IsTfaEnabled(childComplexity), true + + case "UserSetting.isWebauthnAllowed": + if e.complexity.UserSetting.IsWebauthnAllowed == nil { + break + } + + return e.complexity.UserSetting.IsWebauthnAllowed(childComplexity), true + + case "UserSetting.locked": + if e.complexity.UserSetting.Locked == nil { + break + } + + return e.complexity.UserSetting.Locked(childComplexity), true + + case "UserSetting.silencedAt": + if e.complexity.UserSetting.SilencedAt == nil { + break + } + + return e.complexity.UserSetting.SilencedAt(childComplexity), true + + case "UserSetting.status": + if e.complexity.UserSetting.Status == nil { + break + } + + return e.complexity.UserSetting.Status(childComplexity), true + + case "UserSetting.suspendedAt": + if e.complexity.UserSetting.SuspendedAt == nil { + break + } + + return e.complexity.UserSetting.SuspendedAt(childComplexity), true + + case "UserSetting.tags": + if e.complexity.UserSetting.Tags == nil { + break + } + + return e.complexity.UserSetting.Tags(childComplexity), true + + case "UserSetting.updatedAt": + if e.complexity.UserSetting.UpdatedAt == nil { + break + } + + return e.complexity.UserSetting.UpdatedAt(childComplexity), true + + case "UserSetting.updatedBy": + if e.complexity.UserSetting.UpdatedBy == nil { + break + } + + return e.complexity.UserSetting.UpdatedBy(childComplexity), true + + case "UserSetting.user": + if e.complexity.UserSetting.User == nil { + break + } + + return e.complexity.UserSetting.User(childComplexity), true + + case "UserSetting.userID": + if e.complexity.UserSetting.UserID == nil { + break + } + + return e.complexity.UserSetting.UserID(childComplexity), true + + case "UserSettingBulkCreatePayload.userSettings": + if e.complexity.UserSettingBulkCreatePayload.UserSettings == nil { + break + } + + return e.complexity.UserSettingBulkCreatePayload.UserSettings(childComplexity), true + + case "UserSettingConnection.edges": + if e.complexity.UserSettingConnection.Edges == nil { + break + } + + return e.complexity.UserSettingConnection.Edges(childComplexity), true + + case "UserSettingConnection.pageInfo": + if e.complexity.UserSettingConnection.PageInfo == nil { + break + } + + return e.complexity.UserSettingConnection.PageInfo(childComplexity), true + + case "UserSettingConnection.totalCount": + if e.complexity.UserSettingConnection.TotalCount == nil { + break + } + + return e.complexity.UserSettingConnection.TotalCount(childComplexity), true + + case "UserSettingCreatePayload.userSetting": + if e.complexity.UserSettingCreatePayload.UserSetting == nil { + break + } + + return e.complexity.UserSettingCreatePayload.UserSetting(childComplexity), true + + case "UserSettingEdge.cursor": + if e.complexity.UserSettingEdge.Cursor == nil { + break + } + + return e.complexity.UserSettingEdge.Cursor(childComplexity), true + + case "UserSettingEdge.node": + if e.complexity.UserSettingEdge.Node == nil { + break + } + + return e.complexity.UserSettingEdge.Node(childComplexity), true + + case "UserSettingHistory.createdAt": + if e.complexity.UserSettingHistory.CreatedAt == nil { + break + } + + return e.complexity.UserSettingHistory.CreatedAt(childComplexity), true + + case "UserSettingHistory.createdBy": + if e.complexity.UserSettingHistory.CreatedBy == nil { + break + } + + return e.complexity.UserSettingHistory.CreatedBy(childComplexity), true + + case "UserSettingHistory.deletedAt": + if e.complexity.UserSettingHistory.DeletedAt == nil { + break + } + + return e.complexity.UserSettingHistory.DeletedAt(childComplexity), true + + case "UserSettingHistory.deletedBy": + if e.complexity.UserSettingHistory.DeletedBy == nil { + break + } + + return e.complexity.UserSettingHistory.DeletedBy(childComplexity), true + + case "UserSettingHistory.emailConfirmed": + if e.complexity.UserSettingHistory.EmailConfirmed == nil { + break + } + + return e.complexity.UserSettingHistory.EmailConfirmed(childComplexity), true + + case "UserSettingHistory.historyTime": + if e.complexity.UserSettingHistory.HistoryTime == nil { + break + } + + return e.complexity.UserSettingHistory.HistoryTime(childComplexity), true + + case "UserSettingHistory.id": + if e.complexity.UserSettingHistory.ID == nil { + break + } + + return e.complexity.UserSettingHistory.ID(childComplexity), true + + case "UserSettingHistory.isTfaEnabled": + if e.complexity.UserSettingHistory.IsTfaEnabled == nil { + break + } + + return e.complexity.UserSettingHistory.IsTfaEnabled(childComplexity), true + + case "UserSettingHistory.isWebauthnAllowed": + if e.complexity.UserSettingHistory.IsWebauthnAllowed == nil { + break + } + + return e.complexity.UserSettingHistory.IsWebauthnAllowed(childComplexity), true + + case "UserSettingHistory.locked": + if e.complexity.UserSettingHistory.Locked == nil { + break + } + + return e.complexity.UserSettingHistory.Locked(childComplexity), true + + case "UserSettingHistory.operation": + if e.complexity.UserSettingHistory.Operation == nil { + break + } + + return e.complexity.UserSettingHistory.Operation(childComplexity), true + + case "UserSettingHistory.ref": + if e.complexity.UserSettingHistory.Ref == nil { + break + } + + return e.complexity.UserSettingHistory.Ref(childComplexity), true + + case "UserSettingHistory.silencedAt": + if e.complexity.UserSettingHistory.SilencedAt == nil { + break + } + + return e.complexity.UserSettingHistory.SilencedAt(childComplexity), true + + case "UserSettingHistory.status": + if e.complexity.UserSettingHistory.Status == nil { + break + } + + return e.complexity.UserSettingHistory.Status(childComplexity), true + + case "UserSettingHistory.suspendedAt": + if e.complexity.UserSettingHistory.SuspendedAt == nil { + break + } + + return e.complexity.UserSettingHistory.SuspendedAt(childComplexity), true + + case "UserSettingHistory.tags": + if e.complexity.UserSettingHistory.Tags == nil { + break + } + + return e.complexity.UserSettingHistory.Tags(childComplexity), true + + case "UserSettingHistory.updatedAt": + if e.complexity.UserSettingHistory.UpdatedAt == nil { + break + } + + return e.complexity.UserSettingHistory.UpdatedAt(childComplexity), true + + case "UserSettingHistory.updatedBy": + if e.complexity.UserSettingHistory.UpdatedBy == nil { + break + } + + return e.complexity.UserSettingHistory.UpdatedBy(childComplexity), true + + case "UserSettingHistory.userID": + if e.complexity.UserSettingHistory.UserID == nil { + break + } + + return e.complexity.UserSettingHistory.UserID(childComplexity), true + + case "UserSettingHistoryConnection.edges": + if e.complexity.UserSettingHistoryConnection.Edges == nil { + break + } + + return e.complexity.UserSettingHistoryConnection.Edges(childComplexity), true + + case "UserSettingHistoryConnection.pageInfo": + if e.complexity.UserSettingHistoryConnection.PageInfo == nil { + break + } + + return e.complexity.UserSettingHistoryConnection.PageInfo(childComplexity), true + + case "UserSettingHistoryConnection.totalCount": + if e.complexity.UserSettingHistoryConnection.TotalCount == nil { + break + } + + return e.complexity.UserSettingHistoryConnection.TotalCount(childComplexity), true + + case "UserSettingHistoryEdge.cursor": + if e.complexity.UserSettingHistoryEdge.Cursor == nil { + break + } + + return e.complexity.UserSettingHistoryEdge.Cursor(childComplexity), true + + case "UserSettingHistoryEdge.node": + if e.complexity.UserSettingHistoryEdge.Node == nil { + break + } + + return e.complexity.UserSettingHistoryEdge.Node(childComplexity), true + + case "UserSettingSearchResult.userSettings": + if e.complexity.UserSettingSearchResult.UserSettings == nil { + break + } + + return e.complexity.UserSettingSearchResult.UserSettings(childComplexity), true + + case "UserSettingUpdatePayload.userSetting": + if e.complexity.UserSettingUpdatePayload.UserSetting == nil { + break + } + + return e.complexity.UserSettingUpdatePayload.UserSetting(childComplexity), true + + case "UserUpdatePayload.user": + if e.complexity.UserUpdatePayload.User == nil { + break + } + + return e.complexity.UserUpdatePayload.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.unmarshalInputAPITokenWhereInput, + ec.unmarshalInputActionPlanHistoryWhereInput, + ec.unmarshalInputActionPlanWhereInput, + ec.unmarshalInputAuditLogWhereInput, + ec.unmarshalInputContactHistoryWhereInput, + ec.unmarshalInputContactWhereInput, + ec.unmarshalInputControlHistoryWhereInput, + ec.unmarshalInputControlObjectiveHistoryWhereInput, + ec.unmarshalInputControlObjectiveWhereInput, + ec.unmarshalInputControlWhereInput, + ec.unmarshalInputCreateAPITokenInput, + ec.unmarshalInputCreateActionPlanInput, + ec.unmarshalInputCreateContactInput, + ec.unmarshalInputCreateControlInput, + ec.unmarshalInputCreateControlObjectiveInput, + ec.unmarshalInputCreateControlWithSubcontrolsInput, + ec.unmarshalInputCreateDocumentDataInput, + ec.unmarshalInputCreateEntityInput, + ec.unmarshalInputCreateEntityTypeInput, + ec.unmarshalInputCreateEventInput, + ec.unmarshalInputCreateFileInput, + ec.unmarshalInputCreateFullProgramInput, + ec.unmarshalInputCreateGroupInput, + ec.unmarshalInputCreateGroupMembershipInput, + ec.unmarshalInputCreateGroupSettingInput, + ec.unmarshalInputCreateHushInput, + ec.unmarshalInputCreateIntegrationInput, + ec.unmarshalInputCreateInternalPolicyInput, + ec.unmarshalInputCreateInviteInput, + ec.unmarshalInputCreateMemberWithProgramInput, + ec.unmarshalInputCreateNarrativeInput, + ec.unmarshalInputCreateNoteInput, + ec.unmarshalInputCreateOrgMembershipInput, + ec.unmarshalInputCreateOrgSubscriptionInput, + ec.unmarshalInputCreateOrganizationInput, + ec.unmarshalInputCreateOrganizationSettingInput, + ec.unmarshalInputCreatePersonalAccessTokenInput, + ec.unmarshalInputCreateProcedureInput, + ec.unmarshalInputCreateProgramInput, + ec.unmarshalInputCreateProgramMembershipInput, + ec.unmarshalInputCreateProgramWithMembersInput, + ec.unmarshalInputCreateRiskInput, + ec.unmarshalInputCreateStandardInput, + ec.unmarshalInputCreateSubcontrolInput, + ec.unmarshalInputCreateSubscriberInput, + ec.unmarshalInputCreateTFASettingInput, + ec.unmarshalInputCreateTaskInput, + ec.unmarshalInputCreateTemplateInput, + ec.unmarshalInputCreateUserInput, + ec.unmarshalInputCreateUserSettingInput, + ec.unmarshalInputDocumentDataHistoryWhereInput, + ec.unmarshalInputDocumentDataWhereInput, + ec.unmarshalInputEntityHistoryOrder, + ec.unmarshalInputEntityHistoryWhereInput, + ec.unmarshalInputEntityOrder, + ec.unmarshalInputEntityTypeHistoryOrder, + ec.unmarshalInputEntityTypeHistoryWhereInput, + ec.unmarshalInputEntityTypeOrder, + ec.unmarshalInputEntityTypeWhereInput, + ec.unmarshalInputEntityWhereInput, + ec.unmarshalInputEventHistoryWhereInput, + ec.unmarshalInputEventWhereInput, + ec.unmarshalInputFileHistoryWhereInput, + ec.unmarshalInputFileWhereInput, + ec.unmarshalInputGroupHistoryOrder, + ec.unmarshalInputGroupHistoryWhereInput, + ec.unmarshalInputGroupMembershipHistoryWhereInput, + ec.unmarshalInputGroupMembershipWhereInput, + ec.unmarshalInputGroupOrder, + ec.unmarshalInputGroupSettingHistoryWhereInput, + ec.unmarshalInputGroupSettingWhereInput, + ec.unmarshalInputGroupWhereInput, + ec.unmarshalInputHushHistoryOrder, + ec.unmarshalInputHushHistoryWhereInput, + ec.unmarshalInputHushOrder, + ec.unmarshalInputHushWhereInput, + ec.unmarshalInputIntegrationHistoryOrder, + ec.unmarshalInputIntegrationHistoryWhereInput, + ec.unmarshalInputIntegrationOrder, + ec.unmarshalInputIntegrationWhereInput, + ec.unmarshalInputInternalPolicyHistoryWhereInput, + ec.unmarshalInputInternalPolicyWhereInput, + ec.unmarshalInputInviteWhereInput, + ec.unmarshalInputNarrativeHistoryWhereInput, + ec.unmarshalInputNarrativeWhereInput, + ec.unmarshalInputNoteHistoryWhereInput, + ec.unmarshalInputNoteWhereInput, + ec.unmarshalInputOrgMembershipHistoryWhereInput, + ec.unmarshalInputOrgMembershipWhereInput, + ec.unmarshalInputOrgSubscriptionHistoryWhereInput, + ec.unmarshalInputOrgSubscriptionWhereInput, + ec.unmarshalInputOrganizationHistoryOrder, + ec.unmarshalInputOrganizationHistoryWhereInput, + ec.unmarshalInputOrganizationOrder, + ec.unmarshalInputOrganizationSettingHistoryWhereInput, + ec.unmarshalInputOrganizationSettingWhereInput, + ec.unmarshalInputOrganizationWhereInput, + ec.unmarshalInputPersonalAccessTokenWhereInput, + ec.unmarshalInputProcedureHistoryWhereInput, + ec.unmarshalInputProcedureWhereInput, + ec.unmarshalInputProgramHistoryWhereInput, + ec.unmarshalInputProgramMembershipHistoryWhereInput, + ec.unmarshalInputProgramMembershipWhereInput, + ec.unmarshalInputProgramWhereInput, + ec.unmarshalInputRiskHistoryWhereInput, + ec.unmarshalInputRiskWhereInput, + ec.unmarshalInputStandardHistoryWhereInput, + ec.unmarshalInputStandardWhereInput, + ec.unmarshalInputSubcontrolHistoryWhereInput, + ec.unmarshalInputSubcontrolWhereInput, + ec.unmarshalInputSubscriberWhereInput, + ec.unmarshalInputTFASettingWhereInput, + ec.unmarshalInputTaskHistoryWhereInput, + ec.unmarshalInputTaskWhereInput, + ec.unmarshalInputTemplateHistoryOrder, + ec.unmarshalInputTemplateHistoryWhereInput, + ec.unmarshalInputTemplateOrder, + ec.unmarshalInputTemplateWhereInput, + ec.unmarshalInputUpdateAPITokenInput, + ec.unmarshalInputUpdateActionPlanInput, + ec.unmarshalInputUpdateContactInput, + ec.unmarshalInputUpdateControlInput, + ec.unmarshalInputUpdateControlObjectiveInput, + ec.unmarshalInputUpdateDocumentDataInput, + ec.unmarshalInputUpdateEntityInput, + ec.unmarshalInputUpdateEntityTypeInput, + ec.unmarshalInputUpdateEventInput, + ec.unmarshalInputUpdateFileInput, + ec.unmarshalInputUpdateGroupInput, + ec.unmarshalInputUpdateGroupMembershipInput, + ec.unmarshalInputUpdateGroupSettingInput, + ec.unmarshalInputUpdateHushInput, + ec.unmarshalInputUpdateIntegrationInput, + ec.unmarshalInputUpdateInternalPolicyInput, + ec.unmarshalInputUpdateInviteInput, + ec.unmarshalInputUpdateNarrativeInput, + ec.unmarshalInputUpdateNoteInput, + ec.unmarshalInputUpdateOrgMembershipInput, + ec.unmarshalInputUpdateOrgSubscriptionInput, + ec.unmarshalInputUpdateOrganizationInput, + ec.unmarshalInputUpdateOrganizationSettingInput, + ec.unmarshalInputUpdatePersonalAccessTokenInput, + ec.unmarshalInputUpdateProcedureInput, + ec.unmarshalInputUpdateProgramInput, + ec.unmarshalInputUpdateProgramMembershipInput, + ec.unmarshalInputUpdateRiskInput, + ec.unmarshalInputUpdateStandardInput, + ec.unmarshalInputUpdateSubcontrolInput, + ec.unmarshalInputUpdateSubscriberInput, + ec.unmarshalInputUpdateTFASettingInput, + ec.unmarshalInputUpdateTaskInput, + ec.unmarshalInputUpdateTemplateInput, + ec.unmarshalInputUpdateUserInput, + ec.unmarshalInputUpdateUserSettingInput, + ec.unmarshalInputUserHistoryOrder, + ec.unmarshalInputUserHistoryWhereInput, + ec.unmarshalInputUserOrder, + ec.unmarshalInputUserSettingHistoryWhereInput, + ec.unmarshalInputUserSettingWhereInput, + ec.unmarshalInputUserWhereInput, + ) + 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/actionplan.graphql", Input: `extend type Query { + """ + Look up actionPlan by ID + """ + actionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlan! +} + +extend type Mutation{ + """ + Create a new actionPlan + """ + createActionPlan( + """ + values of the actionPlan + """ + input: CreateActionPlanInput! + ): ActionPlanCreatePayload! + """ + Create multiple new actionPlans + """ + createBulkActionPlan( + """ + values of the actionPlan + """ + input: [CreateActionPlanInput!] + ): ActionPlanBulkCreatePayload! + """ + Create multiple new actionPlans via file upload + """ + createBulkCSVActionPlan( + """ + csv file containing values of the actionPlan + """ + input: Upload! + ): ActionPlanBulkCreatePayload! + """ + Update an existing actionPlan + """ + updateActionPlan( + """ + ID of the actionPlan + """ + id: ID! + """ + New values for the actionPlan + """ + input: UpdateActionPlanInput! + ): ActionPlanUpdatePayload! + """ + Delete an existing actionPlan + """ + deleteActionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlanDeletePayload! +} + +""" +Return response for createActionPlan mutation +""" +type ActionPlanCreatePayload { + """ + Created actionPlan + """ + actionPlan: ActionPlan! +} + +""" +Return response for updateActionPlan mutation +""" +type ActionPlanUpdatePayload { + """ + Updated actionPlan + """ + actionPlan: ActionPlan! +} + +""" +Return response for deleteActionPlan mutation +""" +type ActionPlanDeletePayload { + """ + Deleted actionPlan ID + """ + deletedID: ID! +} + +""" +Return response for createBulkActionPlan mutation +""" +type ActionPlanBulkCreatePayload { + """ + Created actionPlans + """ + actionPlans: [ActionPlan!] +}`, BuiltIn: false}, + {Name: "../schema/adminsearch.graphql", Input: `extend type Query{ + """ + Search across APIToken objects + """ + adminAPITokenSearch( + """ + Search query + """ + query: String! + ): APITokenSearchResult + """ + Search across ActionPlan objects + """ + adminActionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ + Search across Contact objects + """ + adminContactSearch( + """ + Search query + """ + query: String! + ): ContactSearchResult + """ + Search across Control objects + """ + adminControlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + adminControlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ + Search across DocumentData objects + """ + adminDocumentDataSearch( + """ + Search query + """ + query: String! + ): DocumentDataSearchResult + """ + Search across Entity objects + """ + adminEntitySearch( + """ + Search query + """ + query: String! + ): EntitySearchResult + """ + Search across EntityType objects + """ + adminEntityTypeSearch( + """ + Search query + """ + query: String! + ): EntityTypeSearchResult + """ + Search across Event objects + """ + adminEventSearch( + """ + Search query + """ + query: String! + ): EventSearchResult + """ + Search across File objects + """ + adminFileSearch( + """ + Search query + """ + query: String! + ): FileSearchResult + """ + Search across Group objects + """ + adminGroupSearch( + """ + Search query + """ + query: String! + ): GroupSearchResult + """ + Search across GroupSetting objects + """ + adminGroupSettingSearch( + """ + Search query + """ + query: String! + ): GroupSettingSearchResult + """ + Search across Integration objects + """ + adminIntegrationSearch( + """ + Search query + """ + query: String! + ): IntegrationSearchResult + """ + Search across InternalPolicy objects + """ + adminInternalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + adminNarrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ + Search across OrgSubscription objects + """ + adminOrgSubscriptionSearch( + """ + Search query + """ + query: String! + ): OrgSubscriptionSearchResult + """ + Search across Organization objects + """ + adminOrganizationSearch( + """ + Search query + """ + query: String! + ): OrganizationSearchResult + """ + Search across OrganizationSetting objects + """ + adminOrganizationSettingSearch( + """ + Search query + """ + query: String! + ): OrganizationSettingSearchResult + """ + Search across PersonalAccessToken objects + """ + adminPersonalAccessTokenSearch( + """ + Search query + """ + query: String! + ): PersonalAccessTokenSearchResult + """ + Search across Procedure objects + """ + adminProcedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Program objects + """ + adminProgramSearch( + """ + Search query + """ + query: String! + ): ProgramSearchResult + """ + Search across Risk objects + """ + adminRiskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + adminStandardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + adminSubcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ + Search across Subscriber objects + """ + adminSubscriberSearch( + """ + Search query + """ + query: String! + ): SubscriberSearchResult + """ + Search across TFASetting objects + """ + adminTFASettingSearch( + """ + Search query + """ + query: String! + ): TFASettingSearchResult + """ + Search across Task objects + """ + adminTaskSearch( + """ + Search query + """ + query: String! + ): TaskSearchResult + """ + Search across Template objects + """ + adminTemplateSearch( + """ + Search query + """ + query: String! + ): TemplateSearchResult + """ + Search across User objects + """ + adminUserSearch( + """ + Search query + """ + query: String! + ): UserSearchResult + """ + Search across UserSetting objects + """ + adminUserSettingSearch( + """ + Search query + """ + query: String! + ): UserSettingSearchResult +}`, BuiltIn: false}, + {Name: "../schema/apitoken.graphql", Input: `extend type Query { + """ + Look up apiToken by ID + """ + apiToken( + """ + ID of the apiToken + """ + id: ID! + ): APIToken! +} + +extend type Mutation{ + """ + Create a new apiToken + """ + createAPIToken( + """ + values of the apiToken + """ + input: CreateAPITokenInput! + ): APITokenCreatePayload! + """ + Create multiple new apiTokens + """ + createBulkAPIToken( + """ + values of the apiToken + """ + input: [CreateAPITokenInput!] + ): APITokenBulkCreatePayload! + """ + Create multiple new apiTokens via file upload + """ + createBulkCSVAPIToken( + """ + csv file containing values of the apiToken + """ + input: Upload! + ): APITokenBulkCreatePayload! + """ + Update an existing apiToken + """ + updateAPIToken( + """ + ID of the apiToken + """ + id: ID! + """ + New values for the apiToken + """ + input: UpdateAPITokenInput! + ): APITokenUpdatePayload! + """ + Delete an existing apiToken + """ + deleteAPIToken( + """ + ID of the apiToken + """ + id: ID! + ): APITokenDeletePayload! +} + +""" +Return response for createAPIToken mutation +""" +type APITokenCreatePayload { + """ + Created apiToken + """ + apiToken: APIToken! +} + +""" +Return response for updateAPIToken mutation +""" +type APITokenUpdatePayload { + """ + Updated apiToken + """ + apiToken: APIToken! +} + +""" +Return response for deleteAPIToken mutation +""" +type APITokenDeletePayload { + """ + Deleted apiToken ID + """ + deletedID: ID! +} + +""" +Return response for createBulkAPIToken mutation +""" +type APITokenBulkCreatePayload { + """ + Created apiTokens + """ + apiTokens: [APIToken!] +}`, BuiltIn: false}, + {Name: "../schema/audit.graphql", Input: `extend type Query { + auditLogs( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for AuditLogs returned from the connection. + """ + where: AuditLogWhereInput + ): AuditLogConnection! +} + +""" +A connection to a list of items. +""" +type AuditLogConnection { + """ + A list of edges. + """ + edges: [AuditLogEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} + +""" +An edge in a connection. +""" +type AuditLogEdge { + """ + The item at the end of the edge. + """ + node: AuditLog + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} + +type AuditLog implements Node { + table: String + time: Time + id: ID! + operation: String + changes: [String!] + updatedBy: ID +} + +extend input AuditLogWhereInput { + refID: ID + updatedBy: ID + operation: String + table: ID + before: Time + after: Time +}`, BuiltIn: false}, + {Name: "../schema/contact.graphql", Input: `extend type Query { + """ + Look up contact by ID + """ + contact( + """ + ID of the contact + """ + id: ID! + ): Contact! +} + +extend type Mutation{ + """ + Create a new contact + """ + createContact( + """ + values of the contact + """ + input: CreateContactInput! + ): ContactCreatePayload! + """ + Create multiple new contacts + """ + createBulkContact( + """ + values of the contact + """ + input: [CreateContactInput!] + ): ContactBulkCreatePayload! + """ + Create multiple new contacts via file upload + """ + createBulkCSVContact( + """ + csv file containing values of the contact + """ + input: Upload! + ): ContactBulkCreatePayload! + """ + Update an existing contact + """ + updateContact( + """ + ID of the contact + """ + id: ID! + """ + New values for the contact + """ + input: UpdateContactInput! + ): ContactUpdatePayload! + """ + Delete an existing contact + """ + deleteContact( + """ + ID of the contact + """ + id: ID! + ): ContactDeletePayload! +} + +""" +Return response for createContact mutation +""" +type ContactCreatePayload { + """ + Created contact + """ + contact: Contact! +} + +""" +Return response for updateContact mutation +""" +type ContactUpdatePayload { + """ + Updated contact + """ + contact: Contact! +} + +""" +Return response for deleteContact mutation +""" +type ContactDeletePayload { + """ + Deleted contact ID + """ + deletedID: ID! +} + +""" +Return response for createBulkContact mutation +""" +type ContactBulkCreatePayload { + """ + Created contacts + """ + contacts: [Contact!] +}`, BuiltIn: false}, + {Name: "../schema/control.graphql", Input: `extend type Query { + """ + Look up control by ID + """ + control( + """ + ID of the control + """ + id: ID! + ): Control! +} + +extend type Mutation{ + """ + Create a new control + """ + createControl( + """ + values of the control + """ + input: CreateControlInput! + ): ControlCreatePayload! + """ + Create multiple new controls + """ + createBulkControl( + """ + values of the control + """ + input: [CreateControlInput!] + ): ControlBulkCreatePayload! + """ + Create multiple new controls via file upload + """ + createBulkCSVControl( + """ + csv file containing values of the control + """ + input: Upload! + ): ControlBulkCreatePayload! + """ + Update an existing control + """ + updateControl( + """ + ID of the control + """ + id: ID! + """ + New values for the control + """ + input: UpdateControlInput! + ): ControlUpdatePayload! + """ + Delete an existing control + """ + deleteControl( + """ + ID of the control + """ + id: ID! + ): ControlDeletePayload! +} + +""" +Return response for createControl mutation +""" +type ControlCreatePayload { + """ + Created control + """ + control: Control! +} + +""" +Return response for updateControl mutation +""" +type ControlUpdatePayload { + """ + Updated control + """ + control: Control! +} + +""" +Return response for deleteControl mutation +""" +type ControlDeletePayload { + """ + Deleted control ID + """ + deletedID: ID! +} + +""" +Return response for createBulkControl mutation +""" +type ControlBulkCreatePayload { + """ + Created controls + """ + controls: [Control!] +}`, BuiltIn: false}, + {Name: "../schema/controlobjective.graphql", Input: `extend type Query { + """ + Look up controlObjective by ID + """ + controlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjective! +} + +extend type Mutation{ + """ + Create a new controlObjective + """ + createControlObjective( + """ + values of the controlObjective + """ + input: CreateControlObjectiveInput! + ): ControlObjectiveCreatePayload! + """ + Create multiple new controlObjectives + """ + createBulkControlObjective( + """ + values of the controlObjective + """ + input: [CreateControlObjectiveInput!] + ): ControlObjectiveBulkCreatePayload! + """ + Create multiple new controlObjectives via file upload + """ + createBulkCSVControlObjective( + """ + csv file containing values of the controlObjective + """ + input: Upload! + ): ControlObjectiveBulkCreatePayload! + """ + Update an existing controlObjective + """ + updateControlObjective( + """ + ID of the controlObjective + """ + id: ID! + """ + New values for the controlObjective + """ + input: UpdateControlObjectiveInput! + ): ControlObjectiveUpdatePayload! + """ + Delete an existing controlObjective + """ + deleteControlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjectiveDeletePayload! +} + +""" +Return response for createControlObjective mutation +""" +type ControlObjectiveCreatePayload { + """ + Created controlObjective + """ + controlObjective: ControlObjective! +} + +""" +Return response for updateControlObjective mutation +""" +type ControlObjectiveUpdatePayload { + """ + Updated controlObjective + """ + controlObjective: ControlObjective! +} + +""" +Return response for deleteControlObjective mutation +""" +type ControlObjectiveDeletePayload { + """ + Deleted controlObjective ID + """ + deletedID: ID! +} + +""" +Return response for createBulkControlObjective mutation +""" +type ControlObjectiveBulkCreatePayload { + """ + Created controlObjectives + """ + controlObjectives: [ControlObjective!] +}`, BuiltIn: false}, + {Name: "../schema/documentdata.graphql", Input: `extend type Query { + """ + Look up documentData by ID + """ + documentData( + """ + ID of the documentData + """ + id: ID! + ): DocumentData! +} + +extend type Mutation{ + """ + Create a new documentData + """ + createDocumentData( + """ + values of the documentData + """ + input: CreateDocumentDataInput! + ): DocumentDataCreatePayload! + """ + Create multiple new documentData + """ + createBulkDocumentData( + """ + values of the documentData + """ + input: [CreateDocumentDataInput!] + ): DocumentDataBulkCreatePayload! + """ + Create multiple new documentData via file upload + """ + createBulkCSVDocumentData( + """ + csv file containing values of the documentData + """ + input: Upload! + ): DocumentDataBulkCreatePayload! + """ + Update an existing documentData + """ + updateDocumentData( + """ + ID of the documentData + """ + id: ID! + """ + New values for the documentData + """ + input: UpdateDocumentDataInput! + ): DocumentDataUpdatePayload! + """ + Delete an existing documentData + """ + deleteDocumentData( + """ + ID of the documentData + """ + id: ID! + ): DocumentDataDeletePayload! +} + +""" +Return response for createDocumentData mutation +""" +type DocumentDataCreatePayload { + """ + Created documentData + """ + documentData: DocumentData! +} + +""" +Return response for updateDocumentData mutation +""" +type DocumentDataUpdatePayload { + """ + Updated documentData + """ + documentData: DocumentData! +} + +""" +Return response for deleteDocumentData mutation +""" +type DocumentDataDeletePayload { + """ + Deleted documentData ID + """ + deletedID: ID! +} + +""" +Return response for createBulkDocumentData mutation +""" +type DocumentDataBulkCreatePayload { + """ + Created documentData + """ + documentData: [DocumentData!] +}`, BuiltIn: false}, + {Name: "../schema/ent.graphql", Input: `directive @goField(forceResolver: Boolean, name: String, omittable: Boolean) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION +directive @goModel(model: String, models: [String!], forceGenerate: Boolean) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION +type APIToken implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name associated with the token + """ + name: String! + token: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + owner: Organization +} +""" +A connection to a list of items. +""" +type APITokenConnection { + """ + A list of edges. + """ + edges: [APITokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type APITokenEdge { + """ + The item at the end of the edge. + """ + node: APIToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +APITokenWhereInput is used for filtering APIToken objects. +Input was generated by ent. +""" +input APITokenWhereInput { + not: APITokenWhereInput + and: [APITokenWhereInput!] + or: [APITokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + last_used_at field predicates + """ + lastUsedAt: Time + lastUsedAtNEQ: Time + lastUsedAtIn: [Time!] + lastUsedAtNotIn: [Time!] + lastUsedAtGT: Time + lastUsedAtGTE: Time + lastUsedAtLT: Time + lastUsedAtLTE: Time + lastUsedAtIsNil: Boolean + lastUsedAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] +} +type ActionPlan implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the action plan + """ + name: String! + """ + description of the action plan + """ + description: String + """ + status of the action plan + """ + status: String + """ + due date of the action plan + """ + dueDate: Time + """ + priority of the action plan + """ + priority: String + """ + source of the action plan + """ + source: String + """ + json data including details of the action plan + """ + details: Map + standard: [Standard!] + risk: [Risk!] + control: [Control!] + user: [User!] + program: [Program!] +} +""" +A connection to a list of items. +""" +type ActionPlanConnection { + """ + A list of edges. + """ + edges: [ActionPlanEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ActionPlanEdge { + """ + The item at the end of the edge. + """ + node: ActionPlan + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ActionPlanHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ActionPlanHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the action plan + """ + name: String! + """ + description of the action plan + """ + description: String + """ + status of the action plan + """ + status: String + """ + due date of the action plan + """ + dueDate: Time + """ + priority of the action plan + """ + priority: String + """ + source of the action plan + """ + source: String + """ + json data including details of the action plan + """ + details: Map +} +""" +A connection to a list of items. +""" +type ActionPlanHistoryConnection { + """ + A list of edges. + """ + edges: [ActionPlanHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ActionPlanHistoryEdge { + """ + The item at the end of the edge. + """ + node: ActionPlanHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ActionPlanHistoryOpType is enum for the field operation +""" +enum ActionPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ActionPlanHistoryWhereInput is used for filtering ActionPlanHistory objects. +Input was generated by ent. +""" +input ActionPlanHistoryWhereInput { + not: ActionPlanHistoryWhereInput + and: [ActionPlanHistoryWhereInput!] + or: [ActionPlanHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ActionPlanHistoryOpType + operationNEQ: ActionPlanHistoryOpType + operationIn: [ActionPlanHistoryOpType!] + operationNotIn: [ActionPlanHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String +} +""" +ActionPlanWhereInput is used for filtering ActionPlan objects. +Input was generated by ent. +""" +input ActionPlanWhereInput { + not: ActionPlanWhereInput + and: [ActionPlanWhereInput!] + or: [ActionPlanWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + risk edge predicates + """ + hasRisk: Boolean + hasRiskWith: [RiskWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +type Contact implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactUserStatus! + owner: Organization + entities: [Entity!] + files: [File!] +} +""" +A connection to a list of items. +""" +type ContactConnection { + """ + A list of edges. + """ + edges: [ContactEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ContactEdge { + """ + The item at the end of the edge. + """ + node: Contact + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ContactHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ContactHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactHistoryUserStatus! +} +""" +A connection to a list of items. +""" +type ContactHistoryConnection { + """ + A list of edges. + """ + edges: [ContactHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ContactHistoryEdge { + """ + The item at the end of the edge. + """ + node: ContactHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ContactHistoryOpType is enum for the field operation +""" +enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ContactHistoryUserStatus is enum for the field status +""" +enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +ContactHistoryWhereInput is used for filtering ContactHistory objects. +Input was generated by ent. +""" +input ContactHistoryWhereInput { + not: ContactHistoryWhereInput + and: [ContactHistoryWhereInput!] + or: [ContactHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ContactHistoryOpType + operationNEQ: ContactHistoryOpType + operationIn: [ContactHistoryOpType!] + operationNotIn: [ContactHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String + """ + company field predicates + """ + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String + """ + phone_number field predicates + """ + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String + """ + address field predicates + """ + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String + """ + status field predicates + """ + status: ContactHistoryUserStatus + statusNEQ: ContactHistoryUserStatus + statusIn: [ContactHistoryUserStatus!] + statusNotIn: [ContactHistoryUserStatus!] +} +""" +ContactUserStatus is enum for the field status +""" +enum ContactUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +ContactWhereInput is used for filtering Contact objects. +Input was generated by ent. +""" +input ContactWhereInput { + not: ContactWhereInput + and: [ContactWhereInput!] + or: [ContactWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String + """ + company field predicates + """ + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String + """ + phone_number field predicates + """ + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String + """ + address field predicates + """ + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String + """ + status field predicates + """ + status: ContactUserStatus + statusNEQ: ContactUserStatus + statusIn: [ContactUserStatus!] + statusNotIn: [ContactUserStatus!] + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +type Control implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the control + """ + name: String! + """ + description of the control + """ + description: String + """ + status of the control + """ + status: String + """ + type of the control + """ + controlType: String + """ + version of the control + """ + version: String + """ + control number or identifier + """ + controlNumber: String + """ + family associated with the control + """ + family: String + """ + class associated with the control + """ + class: String + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + procedures: [Procedure!] + subcontrols: [Subcontrol!] + controlObjectives: [ControlObjective!] + standard: [Standard!] + narratives: [Narrative!] + risks: [Risk!] + actionPlans: [ActionPlan!] + tasks: [Task!] + programs: [Program!] +} +""" +A connection to a list of items. +""" +type ControlConnection { + """ + A list of edges. + """ + edges: [ControlEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlEdge { + """ + The item at the end of the edge. + """ + node: Control + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ControlHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the control + """ + name: String! + """ + description of the control + """ + description: String + """ + status of the control + """ + status: String + """ + type of the control + """ + controlType: String + """ + version of the control + """ + version: String + """ + control number or identifier + """ + controlNumber: String + """ + family associated with the control + """ + family: String + """ + class associated with the control + """ + class: String + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map +} +""" +A connection to a list of items. +""" +type ControlHistoryConnection { + """ + A list of edges. + """ + edges: [ControlHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlHistoryEdge { + """ + The item at the end of the edge. + """ + node: ControlHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ControlHistoryOpType is enum for the field operation +""" +enum ControlHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ControlHistoryWhereInput is used for filtering ControlHistory objects. +Input was generated by ent. +""" +input ControlHistoryWhereInput { + not: ControlHistoryWhereInput + and: [ControlHistoryWhereInput!] + or: [ControlHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ControlHistoryOpType + operationNEQ: ControlHistoryOpType + operationIn: [ControlHistoryOpType!] + operationNotIn: [ControlHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +type ControlObjective implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the control objective + """ + name: String! + """ + description of the control objective + """ + description: String + """ + status of the control objective + """ + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + internalPolicies: [InternalPolicy!] + controls: [Control!] + procedures: [Procedure!] + risks: [Risk!] + subcontrols: [Subcontrol!] + standard: [Standard!] + narratives: [Narrative!] + tasks: [Task!] + programs: [Program!] +} +""" +A connection to a list of items. +""" +type ControlObjectiveConnection { + """ + A list of edges. + """ + edges: [ControlObjectiveEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlObjectiveEdge { + """ + The item at the end of the edge. + """ + node: ControlObjective + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ControlObjectiveHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlObjectiveHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the control objective + """ + name: String! + """ + description of the control objective + """ + description: String + """ + status of the control objective + """ + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map +} +""" +A connection to a list of items. +""" +type ControlObjectiveHistoryConnection { + """ + A list of edges. + """ + edges: [ControlObjectiveHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlObjectiveHistoryEdge { + """ + The item at the end of the edge. + """ + node: ControlObjectiveHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ControlObjectiveHistoryOpType is enum for the field operation +""" +enum ControlObjectiveHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ControlObjectiveHistoryWhereInput is used for filtering ControlObjectiveHistory objects. +Input was generated by ent. +""" +input ControlObjectiveHistoryWhereInput { + not: ControlObjectiveHistoryWhereInput + and: [ControlObjectiveHistoryWhereInput!] + or: [ControlObjectiveHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ControlObjectiveHistoryOpType + operationNEQ: ControlObjectiveHistoryOpType + operationIn: [ControlObjectiveHistoryOpType!] + operationNotIn: [ControlObjectiveHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +""" +ControlObjectiveWhereInput is used for filtering ControlObjective objects. +Input was generated by ent. +""" +input ControlObjectiveWhereInput { + not: ControlObjectiveWhereInput + and: [ControlObjectiveWhereInput!] + or: [ControlObjectiveWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +""" +ControlWhereInput is used for filtering Control objects. +Input was generated by ent. +""" +input ControlWhereInput { + not: ControlWhereInput + and: [ControlWhereInput!] + or: [ControlWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +""" +CreateAPITokenInput is used for create APIToken object. +Input was generated by ent. +""" +input CreateAPITokenInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID +} +""" +CreateActionPlanInput is used for create ActionPlan object. +Input was generated by ent. +""" +input CreateActionPlanInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the action plan + """ + name: String! + """ + description of the action plan + """ + description: String + """ + status of the action plan + """ + status: String + """ + due date of the action plan + """ + dueDate: Time + """ + priority of the action plan + """ + priority: String + """ + source of the action plan + """ + source: String + """ + json data including details of the action plan + """ + details: Map + standardIDs: [ID!] + riskIDs: [ID!] + controlIDs: [ID!] + userIDs: [ID!] + programIDs: [ID!] +} +""" +CreateContactInput is used for create Contact object. +Input was generated by ent. +""" +input CreateContactInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + entityIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateControlInput is used for create Control object. +Input was generated by ent. +""" +input CreateControlInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the control + """ + name: String! + """ + description of the control + """ + description: String + """ + status of the control + """ + status: String + """ + type of the control + """ + controlType: String + """ + version of the control + """ + version: String + """ + control number or identifier + """ + controlNumber: String + """ + family associated with the control + """ + family: String + """ + class associated with the control + """ + class: String + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + procedureIDs: [ID!] + subcontrolIDs: [ID!] + controlObjectiveIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] + actionPlanIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateControlObjectiveInput is used for create ControlObjective object. +Input was generated by ent. +""" +input CreateControlObjectiveInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the control objective + """ + name: String! + """ + description of the control objective + """ + description: String + """ + status of the control objective + """ + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + internalPolicyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + riskIDs: [ID!] + subcontrolIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateDocumentDataInput is used for create DocumentData object. +Input was generated by ent. +""" +input CreateDocumentDataInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the json data of the document + """ + data: JSON! + ownerID: ID + templateID: ID! + entityIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateEntityInput is used for create Entity object. +Input was generated by ent. +""" +input CreateEntityInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + status of the entity + """ + status: String + ownerID: ID + contactIDs: [ID!] + documentIDs: [ID!] + noteIDs: [ID!] + fileIDs: [ID!] + entityTypeID: ID +} +""" +CreateEntityTypeInput is used for create EntityType object. +Input was generated by ent. +""" +input CreateEntityTypeInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the entity + """ + name: String! + ownerID: ID + entityIDs: [ID!] +} +""" +CreateEventInput is used for create Event object. +Input was generated by ent. +""" +input CreateEventInput { + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + userIDs: [ID!] + groupIDs: [ID!] + integrationIDs: [ID!] + organizationIDs: [ID!] + inviteIDs: [ID!] + personalAccessTokenIDs: [ID!] + hushIDs: [ID!] + subscriberIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateFileInput is used for create File object. +Input was generated by ent. +""" +input CreateFileInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String! + """ + the extension of the file provided + """ + providedFileExtension: String! + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + userIDs: [ID!] + organizationIDs: [ID!] + groupIDs: [ID!] + contactIDs: [ID!] + entityIDs: [ID!] + userSettingIDs: [ID!] + organizationSettingIDs: [ID!] + templateIDs: [ID!] + documentDatumIDs: [ID!] + eventIDs: [ID!] + programIDs: [ID!] +} +""" +CreateGroupInput is used for create Group object. +Input was generated by ent. +""" +input CreateGroupInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String + ownerID: ID + controlCreatorIDs: [ID!] + controlObjectiveCreatorIDs: [ID!] + groupCreatorIDs: [ID!] + internalPolicyCreatorIDs: [ID!] + narrativeCreatorIDs: [ID!] + procedureCreatorIDs: [ID!] + programCreatorIDs: [ID!] + riskCreatorIDs: [ID!] + templateCreatorIDs: [ID!] + procedureEditorIDs: [ID!] + procedureBlockedGroupIDs: [ID!] + internalPolicyEditorIDs: [ID!] + internalPolicyBlockedGroupIDs: [ID!] + programEditorIDs: [ID!] + programBlockedGroupIDs: [ID!] + programViewerIDs: [ID!] + riskEditorIDs: [ID!] + riskBlockedGroupIDs: [ID!] + riskViewerIDs: [ID!] + controlObjectiveEditorIDs: [ID!] + controlObjectiveBlockedGroupIDs: [ID!] + controlObjectiveViewerIDs: [ID!] + controlEditorIDs: [ID!] + controlBlockedGroupIDs: [ID!] + controlViewerIDs: [ID!] + narrativeEditorIDs: [ID!] + narrativeBlockedGroupIDs: [ID!] + narrativeViewerIDs: [ID!] + settingID: ID! + userIDs: [ID!] + eventIDs: [ID!] + integrationIDs: [ID!] + fileIDs: [ID!] + taskIDs: [ID!] +} +""" +CreateGroupMembershipInput is used for create GroupMembership object. +Input was generated by ent. +""" +input CreateGroupMembershipInput { + role: GroupMembershipRole + groupID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateGroupSettingInput is used for create GroupSetting object. +Input was generated by ent. +""" +input CreateGroupSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + groupID: ID +} +""" +CreateHushInput is used for create Hush object. +Input was generated by ent. +""" +input CreateHushInput { + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String! + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String + """ + the secret value + """ + secretValue: String + integrationIDs: [ID!] + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateIntegrationInput is used for create Integration object. +Input was generated by ent. +""" +input CreateIntegrationInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String + ownerID: ID + secretIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateInternalPolicyInput is used for create InternalPolicy object. +Input was generated by ent. +""" +input CreateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + controlObjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + narrativeIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateInviteInput is used for create Invite object. +Input was generated by ent. +""" +input CreateInviteInput { + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus + role: InviteRole + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int + """ + the user who initiated the invitation + """ + requestorID: String + ownerID: ID + eventIDs: [ID!] +} +""" +CreateNarrativeInput is used for create Narrative object. +Input was generated by ent. +""" +input CreateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + internalPolicyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + controlObjectiveIDs: [ID!] + programIDs: [ID!] +} +""" +CreateNoteInput is used for create Note object. +Input was generated by ent. +""" +input CreateNoteInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the text of the note + """ + text: String! + ownerID: ID + entityID: ID + subcontrolIDs: [ID!] + programIDs: [ID!] +} +""" +CreateOrgMembershipInput is used for create OrgMembership object. +Input was generated by ent. +""" +input CreateOrgMembershipInput { + role: OrgMembershipRole + organizationID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateOrgSubscriptionInput is used for create OrgSubscription object. +Input was generated by ent. +""" +input CreateOrgSubscriptionInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the stripe subscription id + """ + stripeSubscriptionID: String + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + """ + indicates if the subscription is active + """ + active: Boolean + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + """ + the features associated with the subscription + """ + features: [String!] + ownerID: ID +} +""" +CreateOrganizationInput is used for create Organization object. +Input was generated by ent. +""" +input CreateOrganizationInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean + controlCreatorIDs: [ID!] + controlObjectiveCreatorIDs: [ID!] + groupCreatorIDs: [ID!] + internalPolicyCreatorIDs: [ID!] + narrativeCreatorIDs: [ID!] + procedureCreatorIDs: [ID!] + programCreatorIDs: [ID!] + riskCreatorIDs: [ID!] + templateCreatorIDs: [ID!] + parentID: ID + groupIDs: [ID!] + templateIDs: [ID!] + integrationIDs: [ID!] + settingID: ID + documentDatumIDs: [ID!] + orgSubscriptionIDs: [ID!] + personalAccessTokenIDs: [ID!] + apiTokenIDs: [ID!] + userIDs: [ID!] + inviteIDs: [ID!] + subscriberIDs: [ID!] + eventIDs: [ID!] + secretIDs: [ID!] + fileIDs: [ID!] + entityIDs: [ID!] + entityTypeIDs: [ID!] + contactIDs: [ID!] + noteIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] + procedureIDs: [ID!] + internalPolicyIDs: [ID!] + riskIDs: [ID!] + controlObjectiveIDs: [ID!] + narrativeIDs: [ID!] + controlIDs: [ID!] + subcontrolIDs: [ID!] +} +""" +CreateOrganizationSettingInput is used for create OrganizationSetting object. +Input was generated by ent. +""" +input CreateOrganizationSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String + organizationID: ID + fileIDs: [ID!] +} +""" +CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. +Input was generated by ent. +""" +input CreatePersonalAccessTokenInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID! + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateProcedureInput is used for create Procedure object. +Input was generated by ent. +""" +input CreateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + controlIDs: [ID!] + internalPolicyIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateProgramInput is used for create Program object. +Input was generated by ent. +""" +input CreateProgramInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the program + """ + name: String! + """ + the description of the program + """ + description: String + """ + the status of the program + """ + status: ProgramProgramStatus + """ + the start date of the period + """ + startDate: Time + """ + the end date of the period + """ + endDate: Time + """ + is the program ready for the auditor + """ + auditorReady: Boolean + """ + can the auditor write comments + """ + auditorWriteComments: Boolean + """ + can the auditor read comments + """ + auditorReadComments: Boolean + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + controlIDs: [ID!] + subcontrolIDs: [ID!] + controlObjectiveIDs: [ID!] + internalPolicyIDs: [ID!] + procedureIDs: [ID!] + riskIDs: [ID!] + taskIDs: [ID!] + noteIDs: [ID!] + fileIDs: [ID!] + narrativeIDs: [ID!] + actionPlanIDs: [ID!] + standardIDs: [ID!] + userIDs: [ID!] +} +""" +CreateProgramMembershipInput is used for create ProgramMembership object. +Input was generated by ent. +""" +input CreateProgramMembershipInput { + role: ProgramMembershipRole + programID: ID! + userID: ID! +} +""" +CreateRiskInput is used for create Risk object. +Input was generated by ent. +""" +input CreateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + actionPlanIDs: [ID!] + programIDs: [ID!] +} +""" +CreateStandardInput is used for create Standard object. +Input was generated by ent. +""" +input CreateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlObjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + actionPlanIDs: [ID!] + programIDs: [ID!] +} +""" +CreateSubcontrolInput is used for create Subcontrol object. +Input was generated by ent. +""" +input CreateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + ownerID: ID! + controlIDs: [ID!]! + userIDs: [ID!] + taskIDs: [ID!] + notesID: ID + programIDs: [ID!] +} +""" +CreateSubscriberInput is used for create Subscriber object. +Input was generated by ent. +""" +input CreateSubscriberInput { + """ + tags associated with the object + """ + tags: [String!] + """ + email address of the subscriber + """ + email: String! + """ + phone number of the subscriber + """ + phoneNumber: String + ownerID: ID + eventIDs: [ID!] +} +""" +CreateTFASettingInput is used for create TFASetting object. +Input was generated by ent. +""" +input CreateTFASettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + ownerID: ID +} +""" +CreateTaskInput is used for create Task object. +Input was generated by ent. +""" +input CreateTaskInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the title of the task + """ + title: String! + """ + the description of the task + """ + description: String + """ + the details of the task + """ + details: Map + """ + the status of the task + """ + status: TaskTaskStatus + """ + the due date of the task + """ + due: Time + """ + the completion date of the task + """ + completed: Time + assignerID: ID! + assigneeID: ID + organizationIDs: [ID!] + groupIDs: [ID!] + internalPolicyIDs: [ID!] + procedureIDs: [ID!] + controlIDs: [ID!] + controlObjectiveIDs: [ID!] + subcontrolIDs: [ID!] + programIDs: [ID!] +} +""" +CreateTemplateInput is used for create Template object. +Input was generated by ent. +""" +input CreateTemplateInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON + ownerID: ID + documentIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateUserInput is used for create User object. +Input was generated by ent. +""" +input CreateUserInput { + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + user password hash + """ + password: String + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider + """ + the user's role + """ + role: UserRole + personalAccessTokenIDs: [ID!] + tfaSettingIDs: [ID!] + settingID: ID! + emailVerificationTokenIDs: [ID!] + passwordResetTokenIDs: [ID!] + groupIDs: [ID!] + organizationIDs: [ID!] + webauthnIDs: [ID!] + fileIDs: [ID!] + fileID: ID + eventIDs: [ID!] + actionPlanIDs: [ID!] + subcontrolIDs: [ID!] + assignerTaskIDs: [ID!] + assigneeTaskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateUserSettingInput is used for create UserSetting object. +Input was generated by ent. +""" +input CreateUserSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingUserStatus + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + userID: ID + defaultOrgID: ID + fileIDs: [ID!] +} +""" +Define a Relay Cursor type: +https://relay.dev/graphql/connections.htm#sec-Cursor +""" +scalar Cursor +type DocumentData implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the template id of the document + """ + templateID: ID! + """ + the json data of the document + """ + data: JSON! + owner: Organization + template: Template! + entity: [Entity!] + files: [File!] +} +""" +A connection to a list of items. +""" +type DocumentDataConnection { + """ + A list of edges. + """ + edges: [DocumentDataEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type DocumentDataEdge { + """ + The item at the end of the edge. + """ + node: DocumentData + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type DocumentDataHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: DocumentDataHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the template id of the document + """ + templateID: String! + """ + the json data of the document + """ + data: JSON! +} +""" +A connection to a list of items. +""" +type DocumentDataHistoryConnection { + """ + A list of edges. + """ + edges: [DocumentDataHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type DocumentDataHistoryEdge { + """ + The item at the end of the edge. + """ + node: DocumentDataHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +DocumentDataHistoryOpType is enum for the field operation +""" +enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. +Input was generated by ent. +""" +input DocumentDataHistoryWhereInput { + not: DocumentDataHistoryWhereInput + and: [DocumentDataHistoryWhereInput!] + or: [DocumentDataHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: DocumentDataHistoryOpType + operationNEQ: DocumentDataHistoryOpType + operationIn: [DocumentDataHistoryOpType!] + operationNotIn: [DocumentDataHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + template_id field predicates + """ + templateID: String + templateIDNEQ: String + templateIDIn: [String!] + templateIDNotIn: [String!] + templateIDGT: String + templateIDGTE: String + templateIDLT: String + templateIDLTE: String + templateIDContains: String + templateIDHasPrefix: String + templateIDHasSuffix: String + templateIDEqualFold: String + templateIDContainsFold: String +} +""" +DocumentDataWhereInput is used for filtering DocumentData objects. +Input was generated by ent. +""" +input DocumentDataWhereInput { + not: DocumentDataWhereInput + and: [DocumentDataWhereInput!] + or: [DocumentDataWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + template_id field predicates + """ + templateID: ID + templateIDNEQ: ID + templateIDIn: [ID!] + templateIDNotIn: [ID!] + templateIDGT: ID + templateIDGTE: ID + templateIDLT: ID + templateIDLTE: ID + templateIDContains: ID + templateIDHasPrefix: ID + templateIDHasSuffix: ID + templateIDEqualFold: ID + templateIDContainsFold: ID + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + template edge predicates + """ + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +type Entity implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: ID + """ + status of the entity + """ + status: String + owner: Organization + contacts: [Contact!] + documents: [DocumentData!] + notes: [Note!] + files: [File!] + entityType: EntityType +} +""" +A connection to a list of items. +""" +type EntityConnection { + """ + A list of edges. + """ + edges: [EntityEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntityEdge { + """ + The item at the end of the edge. + """ + node: Entity + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EntityHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntityHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: String + """ + status of the entity + """ + status: String +} +""" +A connection to a list of items. +""" +type EntityHistoryConnection { + """ + A list of edges. + """ + edges: [EntityHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntityHistoryEdge { + """ + The item at the end of the edge. + """ + node: EntityHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EntityHistoryOpType is enum for the field operation +""" +enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for EntityHistory connections +""" +input EntityHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityHistories. + """ + field: EntityHistoryOrderField! +} +""" +Properties by which EntityHistory connections can be ordered. +""" +enum EntityHistoryOrderField { + name + display_name +} +""" +EntityHistoryWhereInput is used for filtering EntityHistory objects. +Input was generated by ent. +""" +input EntityHistoryWhereInput { + not: EntityHistoryWhereInput + and: [EntityHistoryWhereInput!] + or: [EntityHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EntityHistoryOpType + operationNEQ: EntityHistoryOpType + operationIn: [EntityHistoryOpType!] + operationNotIn: [EntityHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ + entity_type_id field predicates + """ + entityTypeID: String + entityTypeIDNEQ: String + entityTypeIDIn: [String!] + entityTypeIDNotIn: [String!] + entityTypeIDGT: String + entityTypeIDGTE: String + entityTypeIDLT: String + entityTypeIDLTE: String + entityTypeIDContains: String + entityTypeIDHasPrefix: String + entityTypeIDHasSuffix: String + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: String + entityTypeIDContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String +} +""" +Ordering options for Entity connections +""" +input EntityOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Entities. + """ + field: EntityOrderField! +} +""" +Properties by which Entity connections can be ordered. +""" +enum EntityOrderField { + name + display_name +} +type EntityType implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the entity + """ + name: String! + owner: Organization + entities: [Entity!] +} +""" +A connection to a list of items. +""" +type EntityTypeConnection { + """ + A list of edges. + """ + edges: [EntityTypeEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntityTypeEdge { + """ + The item at the end of the edge. + """ + node: EntityType + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EntityTypeHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntityTypeHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the entity + """ + name: String! +} +""" +A connection to a list of items. +""" +type EntityTypeHistoryConnection { + """ + A list of edges. + """ + edges: [EntityTypeHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntityTypeHistoryEdge { + """ + The item at the end of the edge. + """ + node: EntityTypeHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EntityTypeHistoryOpType is enum for the field operation +""" +enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for EntityTypeHistory connections +""" +input EntityTypeHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypeHistories. + """ + field: EntityTypeHistoryOrderField! +} +""" +Properties by which EntityTypeHistory connections can be ordered. +""" +enum EntityTypeHistoryOrderField { + name +} +""" +EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. +Input was generated by ent. +""" +input EntityTypeHistoryWhereInput { + not: EntityTypeHistoryWhereInput + and: [EntityTypeHistoryWhereInput!] + or: [EntityTypeHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EntityTypeHistoryOpType + operationNEQ: EntityTypeHistoryOpType + operationIn: [EntityTypeHistoryOpType!] + operationNotIn: [EntityTypeHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String +} +""" +Ordering options for EntityType connections +""" +input EntityTypeOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypes. + """ + field: EntityTypeOrderField! +} +""" +Properties by which EntityType connections can be ordered. +""" +enum EntityTypeOrderField { + name +} +""" +EntityTypeWhereInput is used for filtering EntityType objects. +Input was generated by ent. +""" +input EntityTypeWhereInput { + not: EntityTypeWhereInput + and: [EntityTypeWhereInput!] + or: [EntityTypeWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] +} +""" +EntityWhereInput is used for filtering Entity objects. +Input was generated by ent. +""" +input EntityWhereInput { + not: EntityWhereInput + and: [EntityWhereInput!] + or: [EntityWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ + entity_type_id field predicates + """ + entityTypeID: ID + entityTypeIDNEQ: ID + entityTypeIDIn: [ID!] + entityTypeIDNotIn: [ID!] + entityTypeIDGT: ID + entityTypeIDGTE: ID + entityTypeIDLT: ID + entityTypeIDLTE: ID + entityTypeIDContains: ID + entityTypeIDHasPrefix: ID + entityTypeIDHasSuffix: ID + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: ID + entityTypeIDContainsFold: ID + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + documents edge predicates + """ + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entity_type edge predicates + """ + hasEntityType: Boolean + hasEntityTypeWith: [EntityTypeWhereInput!] +} +type Event implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + user: [User!] + group: [Group!] + integration: [Integration!] + organization: [Organization!] + invite: [Invite!] + personalAccessToken: [PersonalAccessToken!] + hush: [Hush!] + orgmembership: [OrgMembership!] + groupmembership: [GroupMembership!] + subscriber: [Subscriber!] + file: [File!] +} +""" +A connection to a list of items. +""" +type EventConnection { + """ + A list of edges. + """ + edges: [EventEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EventEdge { + """ + The item at the end of the edge. + """ + node: Event + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EventHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EventHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map +} +""" +A connection to a list of items. +""" +type EventHistoryConnection { + """ + A list of edges. + """ + edges: [EventHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EventHistoryEdge { + """ + The item at the end of the edge. + """ + node: EventHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EventHistoryOpType is enum for the field operation +""" +enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +EventHistoryWhereInput is used for filtering EventHistory objects. +Input was generated by ent. +""" +input EventHistoryWhereInput { + not: EventHistoryWhereInput + and: [EventHistoryWhereInput!] + or: [EventHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EventHistoryOpType + operationNEQ: EventHistoryOpType + operationIn: [EventHistoryOpType!] + operationNotIn: [EventHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + event_id field predicates + """ + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String + """ + correlation_id field predicates + """ + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String + """ + event_type field predicates + """ + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String +} +""" +EventWhereInput is used for filtering Event objects. +Input was generated by ent. +""" +input EventWhereInput { + not: EventWhereInput + and: [EventWhereInput!] + or: [EventWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + event_id field predicates + """ + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String + """ + correlation_id field predicates + """ + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String + """ + event_type field predicates + """ + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + integration edge predicates + """ + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + invite edge predicates + """ + hasInvite: Boolean + hasInviteWith: [InviteWhereInput!] + """ + personal_access_token edge predicates + """ + hasPersonalAccessToken: Boolean + hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] + """ + hush edge predicates + """ + hasHush: Boolean + hasHushWith: [HushWhereInput!] + """ + orgmembership edge predicates + """ + hasOrgmembership: Boolean + hasOrgmembershipWith: [OrgMembershipWhereInput!] + """ + groupmembership edge predicates + """ + hasGroupmembership: Boolean + hasGroupmembershipWith: [GroupMembershipWhereInput!] + """ + subscriber edge predicates + """ + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] + """ + file edge predicates + """ + hasFile: Boolean + hasFileWith: [FileWhereInput!] +} +type File implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String! + """ + the extension of the file provided + """ + providedFileExtension: String! + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + user: [User!] + organization: [Organization!] + group: [Group!] + contact: [Contact!] + entity: [Entity!] + userSetting: [UserSetting!] + organizationSetting: [OrganizationSetting!] + template: [Template!] + documentData: [DocumentData!] + events: [Event!] + program: [Program!] +} +""" +A connection to a list of items. +""" +type FileConnection { + """ + A list of edges. + """ + edges: [FileEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type FileEdge { + """ + The item at the end of the edge. + """ + node: File + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type FileHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: FileHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String! + """ + the extension of the file provided + """ + providedFileExtension: String! + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String +} +""" +A connection to a list of items. +""" +type FileHistoryConnection { + """ + A list of edges. + """ + edges: [FileHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type FileHistoryEdge { + """ + The item at the end of the edge. + """ + node: FileHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +FileHistoryOpType is enum for the field operation +""" +enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +FileHistoryWhereInput is used for filtering FileHistory objects. +Input was generated by ent. +""" +input FileHistoryWhereInput { + not: FileHistoryWhereInput + and: [FileHistoryWhereInput!] + or: [FileHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: FileHistoryOpType + operationNEQ: FileHistoryOpType + operationIn: [FileHistoryOpType!] + operationNotIn: [FileHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + provided_file_name field predicates + """ + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String + """ + provided_file_extension field predicates + """ + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String + """ + provided_file_size field predicates + """ + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean + """ + persisted_file_size field predicates + """ + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean + """ + detected_mime_type field predicates + """ + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String + """ + md5_hash field predicates + """ + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String + """ + detected_content_type field predicates + """ + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String + """ + store_key field predicates + """ + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String + """ + category_type field predicates + """ + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String + """ + uri field predicates + """ + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String + """ + storage_scheme field predicates + """ + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String + """ + storage_volume field predicates + """ + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String + """ + storage_path field predicates + """ + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String +} +""" +FileWhereInput is used for filtering File objects. +Input was generated by ent. +""" +input FileWhereInput { + not: FileWhereInput + and: [FileWhereInput!] + or: [FileWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + provided_file_name field predicates + """ + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String + """ + provided_file_extension field predicates + """ + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String + """ + provided_file_size field predicates + """ + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean + """ + persisted_file_size field predicates + """ + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean + """ + detected_mime_type field predicates + """ + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String + """ + md5_hash field predicates + """ + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String + """ + detected_content_type field predicates + """ + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String + """ + store_key field predicates + """ + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String + """ + category_type field predicates + """ + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String + """ + uri field predicates + """ + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String + """ + storage_scheme field predicates + """ + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String + """ + storage_volume field predicates + """ + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String + """ + storage_path field predicates + """ + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + contact edge predicates + """ + hasContact: Boolean + hasContactWith: [ContactWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + user_setting edge predicates + """ + hasUserSetting: Boolean + hasUserSettingWith: [UserSettingWhereInput!] + """ + organization_setting edge predicates + """ + hasOrganizationSetting: Boolean + hasOrganizationSettingWith: [OrganizationSettingWhereInput!] + """ + template edge predicates + """ + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] + """ + document_data edge predicates + """ + hasDocumentData: Boolean + hasDocumentDataWith: [DocumentDataWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +type Group implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String! + owner: Organization + controlCreators: [Organization!] + controlObjectiveCreators: [Organization!] + groupCreators: [Organization!] + internalPolicyCreators: [Organization!] + narrativeCreators: [Organization!] + procedureCreators: [Organization!] + programCreators: [Organization!] + riskCreators: [Organization!] + templateCreators: [Organization!] + procedureEditors: [Procedure!] + procedureBlockedGroups: [Procedure!] + internalPolicyEditors: [InternalPolicy!] + internalPolicyBlockedGroups: [InternalPolicy!] + programEditors: [Program!] + programBlockedGroups: [Program!] + programViewers: [Program!] + riskEditors: [Risk!] + riskBlockedGroups: [Risk!] + riskViewers: [Risk!] + controlObjectiveEditors: [ControlObjective!] + controlObjectiveBlockedGroups: [ControlObjective!] + controlObjectiveViewers: [ControlObjective!] + controlEditors: [Control!] + controlBlockedGroups: [Control!] + controlViewers: [Control!] + narrativeEditors: [Narrative!] + narrativeBlockedGroups: [Narrative!] + narrativeViewers: [Narrative!] + setting: GroupSetting! + users: [User!] + events: [Event!] + integrations: [Integration!] + files: [File!] + tasks: [Task!] + members: [GroupMembership!] +} +""" +A connection to a list of items. +""" +type GroupConnection { + """ + A list of edges. + """ + edges: [GroupEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupEdge { + """ + The item at the end of the edge. + """ + node: Group + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type GroupHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String! +} +""" +A connection to a list of items. +""" +type GroupHistoryConnection { + """ + A list of edges. + """ + edges: [GroupHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +GroupHistoryOpType is enum for the field operation +""" +enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for GroupHistory connections +""" +input GroupHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order GroupHistories. + """ + field: GroupHistoryOrderField! +} +""" +Properties by which GroupHistory connections can be ordered. +""" +enum GroupHistoryOrderField { + name + display_name +} +""" +GroupHistoryWhereInput is used for filtering GroupHistory objects. +Input was generated by ent. +""" +input GroupHistoryWhereInput { + not: GroupHistoryWhereInput + and: [GroupHistoryWhereInput!] + or: [GroupHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupHistoryOpType + operationNEQ: GroupHistoryOpType + operationIn: [GroupHistoryOpType!] + operationNotIn: [GroupHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String +} +type GroupMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipRole! + groupID: ID! + userID: ID! + group: Group! + user: User! + events: [Event!] +} +""" +A connection to a list of items. +""" +type GroupMembershipConnection { + """ + A list of edges. + """ + edges: [GroupMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupMembershipEdge { + """ + The item at the end of the edge. + """ + node: GroupMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type GroupMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipHistoryRole! + groupID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type GroupMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [GroupMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +GroupMembershipHistoryOpType is enum for the field operation +""" +enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +GroupMembershipHistoryRole is enum for the field role +""" +enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. +Input was generated by ent. +""" +input GroupMembershipHistoryWhereInput { + not: GroupMembershipHistoryWhereInput + and: [GroupMembershipHistoryWhereInput!] + or: [GroupMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupMembershipHistoryOpType + operationNEQ: GroupMembershipHistoryOpType + operationIn: [GroupMembershipHistoryOpType!] + operationNotIn: [GroupMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: GroupMembershipHistoryRole + roleNEQ: GroupMembershipHistoryRole + roleIn: [GroupMembershipHistoryRole!] + roleNotIn: [GroupMembershipHistoryRole!] + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDEqualFold: String + groupIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +GroupMembershipRole is enum for the field role +""" +enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +GroupMembershipWhereInput is used for filtering GroupMembership objects. +Input was generated by ent. +""" +input GroupMembershipWhereInput { + not: GroupMembershipWhereInput + and: [GroupMembershipWhereInput!] + or: [GroupMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: GroupMembershipRole + roleNEQ: GroupMembershipRole + roleIn: [GroupMembershipRole!] + roleNotIn: [GroupMembershipRole!] +} +""" +Ordering options for Group connections +""" +input GroupOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Groups. + """ + field: GroupOrderField! +} +""" +Properties by which Group connections can be ordered. +""" +enum GroupOrderField { + name + display_name +} +type GroupSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility! + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy! + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + """ + the group id associated with the settings + """ + groupID: ID + group: Group +} +""" +A connection to a list of items. +""" +type GroupSettingConnection { + """ + A list of edges. + """ + edges: [GroupSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupSettingEdge { + """ + The item at the end of the edge. + """ + node: GroupSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type GroupSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingHistoryVisibility! + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingHistoryJoinPolicy! + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + """ + the group id associated with the settings + """ + groupID: String +} +""" +A connection to a list of items. +""" +type GroupSettingHistoryConnection { + """ + A list of edges. + """ + edges: [GroupSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +GroupSettingHistoryJoinPolicy is enum for the field join_policy +""" +enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +""" +GroupSettingHistoryOpType is enum for the field operation +""" +enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +GroupSettingHistoryVisibility is enum for the field visibility +""" +enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +Input was generated by ent. +""" +input GroupSettingHistoryWhereInput { + not: GroupSettingHistoryWhereInput + and: [GroupSettingHistoryWhereInput!] + or: [GroupSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupSettingHistoryOpType + operationNEQ: GroupSettingHistoryOpType + operationIn: [GroupSettingHistoryOpType!] + operationNotIn: [GroupSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + visibility field predicates + """ + visibility: GroupSettingHistoryVisibility + visibilityNEQ: GroupSettingHistoryVisibility + visibilityIn: [GroupSettingHistoryVisibility!] + visibilityNotIn: [GroupSettingHistoryVisibility!] + """ + join_policy field predicates + """ + joinPolicy: GroupSettingHistoryJoinPolicy + joinPolicyNEQ: GroupSettingHistoryJoinPolicy + joinPolicyIn: [GroupSettingHistoryJoinPolicy!] + joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] + """ + sync_to_slack field predicates + """ + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean + """ + sync_to_github field predicates + """ + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String +} +""" +GroupSettingJoinPolicy is enum for the field join_policy +""" +enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +""" +GroupSettingVisibility is enum for the field visibility +""" +enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingWhereInput is used for filtering GroupSetting objects. +Input was generated by ent. +""" +input GroupSettingWhereInput { + not: GroupSettingWhereInput + and: [GroupSettingWhereInput!] + or: [GroupSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + visibility field predicates + """ + visibility: GroupSettingVisibility + visibilityNEQ: GroupSettingVisibility + visibilityIn: [GroupSettingVisibility!] + visibilityNotIn: [GroupSettingVisibility!] + """ + join_policy field predicates + """ + joinPolicy: GroupSettingJoinPolicy + joinPolicyNEQ: GroupSettingJoinPolicy + joinPolicyIn: [GroupSettingJoinPolicy!] + joinPolicyNotIn: [GroupSettingJoinPolicy!] + """ + sync_to_slack field predicates + """ + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean + """ + sync_to_github field predicates + """ + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean + """ + group_id field predicates + """ + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDGT: ID + groupIDGTE: ID + groupIDLT: ID + groupIDLTE: ID + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] +} +""" +GroupWhereInput is used for filtering Group objects. +Input was generated by ent. +""" +input GroupWhereInput { + not: GroupWhereInput + and: [GroupWhereInput!] + or: [GroupWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + control_creators edge predicates + """ + hasControlCreators: Boolean + hasControlCreatorsWith: [OrganizationWhereInput!] + """ + control_objective_creators edge predicates + """ + hasControlObjectiveCreators: Boolean + hasControlObjectiveCreatorsWith: [OrganizationWhereInput!] + """ + group_creators edge predicates + """ + hasGroupCreators: Boolean + hasGroupCreatorsWith: [OrganizationWhereInput!] + """ + internal_policy_creators edge predicates + """ + hasInternalPolicyCreators: Boolean + hasInternalPolicyCreatorsWith: [OrganizationWhereInput!] + """ + narrative_creators edge predicates + """ + hasNarrativeCreators: Boolean + hasNarrativeCreatorsWith: [OrganizationWhereInput!] + """ + procedure_creators edge predicates + """ + hasProcedureCreators: Boolean + hasProcedureCreatorsWith: [OrganizationWhereInput!] + """ + program_creators edge predicates + """ + hasProgramCreators: Boolean + hasProgramCreatorsWith: [OrganizationWhereInput!] + """ + risk_creators edge predicates + """ + hasRiskCreators: Boolean + hasRiskCreatorsWith: [OrganizationWhereInput!] + """ + template_creators edge predicates + """ + hasTemplateCreators: Boolean + hasTemplateCreatorsWith: [OrganizationWhereInput!] + """ + procedure_editors edge predicates + """ + hasProcedureEditors: Boolean + hasProcedureEditorsWith: [ProcedureWhereInput!] + """ + procedure_blocked_groups edge predicates + """ + hasProcedureBlockedGroups: Boolean + hasProcedureBlockedGroupsWith: [ProcedureWhereInput!] + """ + internal_policy_editors edge predicates + """ + hasInternalPolicyEditors: Boolean + hasInternalPolicyEditorsWith: [InternalPolicyWhereInput!] + """ + internal_policy_blocked_groups edge predicates + """ + hasInternalPolicyBlockedGroups: Boolean + hasInternalPolicyBlockedGroupsWith: [InternalPolicyWhereInput!] + """ + program_editors edge predicates + """ + hasProgramEditors: Boolean + hasProgramEditorsWith: [ProgramWhereInput!] + """ + program_blocked_groups edge predicates + """ + hasProgramBlockedGroups: Boolean + hasProgramBlockedGroupsWith: [ProgramWhereInput!] + """ + program_viewers edge predicates + """ + hasProgramViewers: Boolean + hasProgramViewersWith: [ProgramWhereInput!] + """ + risk_editors edge predicates + """ + hasRiskEditors: Boolean + hasRiskEditorsWith: [RiskWhereInput!] + """ + risk_blocked_groups edge predicates + """ + hasRiskBlockedGroups: Boolean + hasRiskBlockedGroupsWith: [RiskWhereInput!] + """ + risk_viewers edge predicates + """ + hasRiskViewers: Boolean + hasRiskViewersWith: [RiskWhereInput!] + """ + control_objective_editors edge predicates + """ + hasControlObjectiveEditors: Boolean + hasControlObjectiveEditorsWith: [ControlObjectiveWhereInput!] + """ + control_objective_blocked_groups edge predicates + """ + hasControlObjectiveBlockedGroups: Boolean + hasControlObjectiveBlockedGroupsWith: [ControlObjectiveWhereInput!] + """ + control_objective_viewers edge predicates + """ + hasControlObjectiveViewers: Boolean + hasControlObjectiveViewersWith: [ControlObjectiveWhereInput!] + """ + control_editors edge predicates + """ + hasControlEditors: Boolean + hasControlEditorsWith: [ControlWhereInput!] + """ + control_blocked_groups edge predicates + """ + hasControlBlockedGroups: Boolean + hasControlBlockedGroupsWith: [ControlWhereInput!] + """ + control_viewers edge predicates + """ + hasControlViewers: Boolean + hasControlViewersWith: [ControlWhereInput!] + """ + narrative_editors edge predicates + """ + hasNarrativeEditors: Boolean + hasNarrativeEditorsWith: [NarrativeWhereInput!] + """ + narrative_blocked_groups edge predicates + """ + hasNarrativeBlockedGroups: Boolean + hasNarrativeBlockedGroupsWith: [NarrativeWhereInput!] + """ + narrative_viewers edge predicates + """ + hasNarrativeViewers: Boolean + hasNarrativeViewersWith: [NarrativeWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [GroupSettingWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [GroupMembershipWhereInput!] +} +type Hush implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String! + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String + """ + the integration associated with the secret + """ + integrations: [Integration!] + organization: [Organization!] + events: [Event!] +} +""" +A connection to a list of items. +""" +type HushConnection { + """ + A list of edges. + """ + edges: [HushEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type HushEdge { + """ + The item at the end of the edge. + """ + node: Hush + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type HushHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: HushHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String! + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String +} +""" +A connection to a list of items. +""" +type HushHistoryConnection { + """ + A list of edges. + """ + edges: [HushHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type HushHistoryEdge { + """ + The item at the end of the edge. + """ + node: HushHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +HushHistoryOpType is enum for the field operation +""" +enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for HushHistory connections +""" +input HushHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order HushHistories. + """ + field: HushHistoryOrderField! +} +""" +Properties by which HushHistory connections can be ordered. +""" +enum HushHistoryOrderField { + name + kind +} +""" +HushHistoryWhereInput is used for filtering HushHistory objects. +Input was generated by ent. +""" +input HushHistoryWhereInput { + not: HushHistoryWhereInput + and: [HushHistoryWhereInput!] + or: [HushHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: HushHistoryOpType + operationNEQ: HushHistoryOpType + operationIn: [HushHistoryOpType!] + operationNotIn: [HushHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + secret_name field predicates + """ + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String +} +""" +Ordering options for Hush connections +""" +input HushOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Hushes. + """ + field: HushOrderField! +} +""" +Properties by which Hush connections can be ordered. +""" +enum HushOrderField { + name + kind +} +""" +HushWhereInput is used for filtering Hush objects. +Input was generated by ent. +""" +input HushWhereInput { + not: HushWhereInput + and: [HushWhereInput!] + or: [HushWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + secret_name field predicates + """ + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Integration implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String + owner: Organization + """ + the secrets associated with the integration + """ + secrets: [Hush!] + events: [Event!] +} +""" +A connection to a list of items. +""" +type IntegrationConnection { + """ + A list of edges. + """ + edges: [IntegrationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type IntegrationEdge { + """ + The item at the end of the edge. + """ + node: Integration + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type IntegrationHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: IntegrationHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String +} +""" +A connection to a list of items. +""" +type IntegrationHistoryConnection { + """ + A list of edges. + """ + edges: [IntegrationHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type IntegrationHistoryEdge { + """ + The item at the end of the edge. + """ + node: IntegrationHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +IntegrationHistoryOpType is enum for the field operation +""" +enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for IntegrationHistory connections +""" +input IntegrationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order IntegrationHistories. + """ + field: IntegrationHistoryOrderField! +} +""" +Properties by which IntegrationHistory connections can be ordered. +""" +enum IntegrationHistoryOrderField { + name + kind +} +""" +IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. +Input was generated by ent. +""" +input IntegrationHistoryWhereInput { + not: IntegrationHistoryWhereInput + and: [IntegrationHistoryWhereInput!] + or: [IntegrationHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: IntegrationHistoryOpType + operationNEQ: IntegrationHistoryOpType + operationIn: [IntegrationHistoryOpType!] + operationNotIn: [IntegrationHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String +} +""" +Ordering options for Integration connections +""" +input IntegrationOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Integrations. + """ + field: IntegrationOrderField! +} +""" +Properties by which Integration connections can be ordered. +""" +enum IntegrationOrderField { + name + kind +} +""" +IntegrationWhereInput is used for filtering Integration objects. +Input was generated by ent. +""" +input IntegrationWhereInput { + not: IntegrationWhereInput + and: [IntegrationWhereInput!] + or: [IntegrationWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + secrets edge predicates + """ + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type InternalPolicy implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map + owner: Organization + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + controlObjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + narratives: [Narrative!] + tasks: [Task!] + programs: [Program!] +} +""" +A connection to a list of items. +""" +type InternalPolicyConnection { + """ + A list of edges. + """ + edges: [InternalPolicyEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type InternalPolicyEdge { + """ + The item at the end of the edge. + """ + node: InternalPolicy + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type InternalPolicyHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: InternalPolicyHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map +} +""" +A connection to a list of items. +""" +type InternalPolicyHistoryConnection { + """ + A list of edges. + """ + edges: [InternalPolicyHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type InternalPolicyHistoryEdge { + """ + The item at the end of the edge. + """ + node: InternalPolicyHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +InternalPolicyHistoryOpType is enum for the field operation +""" +enum InternalPolicyHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +InternalPolicyHistoryWhereInput is used for filtering InternalPolicyHistory objects. +Input was generated by ent. +""" +input InternalPolicyHistoryWhereInput { + not: InternalPolicyHistoryWhereInput + and: [InternalPolicyHistoryWhereInput!] + or: [InternalPolicyHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: InternalPolicyHistoryOpType + operationNEQ: InternalPolicyHistoryOpType + operationIn: [InternalPolicyHistoryOpType!] + operationNotIn: [InternalPolicyHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String +} +""" +InternalPolicyWhereInput is used for filtering InternalPolicy objects. +Input was generated by ent. +""" +input InternalPolicyWhereInput { + not: InternalPolicyWhereInput + and: [InternalPolicyWhereInput!] + or: [InternalPolicyWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Invite implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus! + role: InviteRole! + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int! + """ + the user who initiated the invitation + """ + requestorID: String + owner: Organization + events: [Event!] +} +""" +A connection to a list of items. +""" +type InviteConnection { + """ + A list of edges. + """ + edges: [InviteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type InviteEdge { + """ + The item at the end of the edge. + """ + node: Invite + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +InviteInviteStatus is enum for the field status +""" +enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { + INVITATION_SENT + APPROVAL_REQUIRED + INVITATION_ACCEPTED + INVITATION_EXPIRED +} +""" +InviteRole is enum for the field role +""" +enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +InviteWhereInput is used for filtering Invite objects. +Input was generated by ent. +""" +input InviteWhereInput { + not: InviteWhereInput + and: [InviteWhereInput!] + or: [InviteWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + expires field predicates + """ + expires: Time + expiresNEQ: Time + expiresIn: [Time!] + expiresNotIn: [Time!] + expiresGT: Time + expiresGTE: Time + expiresLT: Time + expiresLTE: Time + expiresIsNil: Boolean + expiresNotNil: Boolean + """ + recipient field predicates + """ + recipient: String + recipientNEQ: String + recipientIn: [String!] + recipientNotIn: [String!] + recipientGT: String + recipientGTE: String + recipientLT: String + recipientLTE: String + recipientContains: String + recipientHasPrefix: String + recipientHasSuffix: String + recipientEqualFold: String + recipientContainsFold: String + """ + status field predicates + """ + status: InviteInviteStatus + statusNEQ: InviteInviteStatus + statusIn: [InviteInviteStatus!] + statusNotIn: [InviteInviteStatus!] + """ + role field predicates + """ + role: InviteRole + roleNEQ: InviteRole + roleIn: [InviteRole!] + roleNotIn: [InviteRole!] + """ + send_attempts field predicates + """ + sendAttempts: Int + sendAttemptsNEQ: Int + sendAttemptsIn: [Int!] + sendAttemptsNotIn: [Int!] + sendAttemptsGT: Int + sendAttemptsGTE: Int + sendAttemptsLT: Int + sendAttemptsLTE: Int + """ + requestor_id field predicates + """ + requestorID: String + requestorIDNEQ: String + requestorIDIn: [String!] + requestorIDNotIn: [String!] + requestorIDGT: String + requestorIDGTE: String + requestorIDLT: String + requestorIDLTE: String + requestorIDContains: String + requestorIDHasPrefix: String + requestorIDHasSuffix: String + requestorIDIsNil: Boolean + requestorIDNotNil: Boolean + requestorIDEqualFold: String + requestorIDContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +""" +A valid JSON string. +""" +scalar JSON +""" +The builtin Map type +""" +scalar Map +type Narrative implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + internalPolicy: [InternalPolicy!] + control: [Control!] + procedure: [Procedure!] + controlObjective: [ControlObjective!] + programs: [Program!] +} +""" +A connection to a list of items. +""" +type NarrativeConnection { + """ + A list of edges. + """ + edges: [NarrativeEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NarrativeEdge { + """ + The item at the end of the edge. + """ + node: Narrative + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NarrativeHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NarrativeHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map +} +""" +A connection to a list of items. +""" +type NarrativeHistoryConnection { + """ + A list of edges. + """ + edges: [NarrativeHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NarrativeHistoryEdge { + """ + The item at the end of the edge. + """ + node: NarrativeHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NarrativeHistoryOpType is enum for the field operation +""" +enum NarrativeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NarrativeHistoryWhereInput is used for filtering NarrativeHistory objects. +Input was generated by ent. +""" +input NarrativeHistoryWhereInput { + not: NarrativeHistoryWhereInput + and: [NarrativeHistoryWhereInput!] + or: [NarrativeHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NarrativeHistoryOpType + operationNEQ: NarrativeHistoryOpType + operationIn: [NarrativeHistoryOpType!] + operationNotIn: [NarrativeHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +NarrativeWhereInput is used for filtering Narrative objects. +Input was generated by ent. +""" +input NarrativeWhereInput { + not: NarrativeWhereInput + and: [NarrativeWhereInput!] + or: [NarrativeWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + internal_policy edge predicates + """ + hasInternalPolicy: Boolean + hasInternalPolicyWith: [InternalPolicyWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + control_objective edge predicates + """ + hasControlObjective: Boolean + hasControlObjectiveWith: [ControlObjectiveWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +""" +An object with an ID. +Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) +""" +interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { + """ + The id of the object. + """ + id: ID! +} +type Note implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the text of the note + """ + text: String! + owner: Organization + entity: Entity + subcontrols: [Subcontrol!] + program: [Program!] +} +""" +A connection to a list of items. +""" +type NoteConnection { + """ + A list of edges. + """ + edges: [NoteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteEdge { + """ + The item at the end of the edge. + """ + node: Note + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NoteHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NoteHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the text of the note + """ + text: String! +} +""" +A connection to a list of items. +""" +type NoteHistoryConnection { + """ + A list of edges. + """ + edges: [NoteHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteHistoryEdge { + """ + The item at the end of the edge. + """ + node: NoteHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NoteHistoryOpType is enum for the field operation +""" +enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NoteHistoryWhereInput is used for filtering NoteHistory objects. +Input was generated by ent. +""" +input NoteHistoryWhereInput { + not: NoteHistoryWhereInput + and: [NoteHistoryWhereInput!] + or: [NoteHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NoteHistoryOpType + operationNEQ: NoteHistoryOpType + operationIn: [NoteHistoryOpType!] + operationNotIn: [NoteHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String +} +""" +NoteWhereInput is used for filtering Note objects. +Input was generated by ent. +""" +input NoteWhereInput { + not: NoteWhereInput + and: [NoteWhereInput!] + or: [NoteWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +""" +Possible directions in which to order a list of items when provided an ` + "`" + `orderBy` + "`" + ` argument. +""" +enum OrderDirection { + """ + Specifies an ascending order for a given ` + "`" + `orderBy` + "`" + ` argument. + """ + ASC + """ + Specifies a descending order for a given ` + "`" + `orderBy` + "`" + ` argument. + """ + DESC +} +type OrgMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipRole! + organizationID: ID! + userID: ID! + organization: Organization! + user: User! + events: [Event!] +} +""" +A connection to a list of items. +""" +type OrgMembershipConnection { + """ + A list of edges. + """ + edges: [OrgMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipEdge { + """ + The item at the end of the edge. + """ + node: OrgMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrgMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrgMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipHistoryRole! + organizationID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type OrgMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [OrgMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrgMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrgMembershipHistoryOpType is enum for the field operation +""" +enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrgMembershipHistoryRole is enum for the field role +""" +enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + OWNER +} +""" +OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +Input was generated by ent. +""" +input OrgMembershipHistoryWhereInput { + not: OrgMembershipHistoryWhereInput + and: [OrgMembershipHistoryWhereInput!] + or: [OrgMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrgMembershipHistoryOpType + operationNEQ: OrgMembershipHistoryOpType + operationIn: [OrgMembershipHistoryOpType!] + operationNotIn: [OrgMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipHistoryRole + roleNEQ: OrgMembershipHistoryRole + roleIn: [OrgMembershipHistoryRole!] + roleNotIn: [OrgMembershipHistoryRole!] + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +OrgMembershipRole is enum for the field role +""" +enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + OWNER +} +""" +OrgMembershipWhereInput is used for filtering OrgMembership objects. +Input was generated by ent. +""" +input OrgMembershipWhereInput { + not: OrgMembershipWhereInput + and: [OrgMembershipWhereInput!] + or: [OrgMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipRole + roleNEQ: OrgMembershipRole + roleIn: [OrgMembershipRole!] + roleNotIn: [OrgMembershipRole!] +} +type OrgSubscription implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the stripe subscription id + """ + stripeSubscriptionID: String + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + """ + indicates if the subscription is active + """ + active: Boolean! + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + """ + the features associated with the subscription + """ + features: [String!] + owner: Organization +} +""" +A connection to a list of items. +""" +type OrgSubscriptionConnection { + """ + A list of edges. + """ + edges: [OrgSubscriptionEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgSubscriptionEdge { + """ + The item at the end of the edge. + """ + node: OrgSubscription + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrgSubscriptionHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrgSubscriptionHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the stripe subscription id + """ + stripeSubscriptionID: String + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + """ + indicates if the subscription is active + """ + active: Boolean! + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + """ + the features associated with the subscription + """ + features: [String!] +} +""" +A connection to a list of items. +""" +type OrgSubscriptionHistoryConnection { + """ + A list of edges. + """ + edges: [OrgSubscriptionHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgSubscriptionHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrgSubscriptionHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrgSubscriptionHistoryOpType is enum for the field operation +""" +enum OrgSubscriptionHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrgSubscriptionHistoryWhereInput is used for filtering OrgSubscriptionHistory objects. +Input was generated by ent. +""" +input OrgSubscriptionHistoryWhereInput { + not: OrgSubscriptionHistoryWhereInput + and: [OrgSubscriptionHistoryWhereInput!] + or: [OrgSubscriptionHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrgSubscriptionHistoryOpType + operationNEQ: OrgSubscriptionHistoryOpType + operationIn: [OrgSubscriptionHistoryOpType!] + operationNotIn: [OrgSubscriptionHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + stripe_subscription_id field predicates + """ + stripeSubscriptionID: String + stripeSubscriptionIDNEQ: String + stripeSubscriptionIDIn: [String!] + stripeSubscriptionIDNotIn: [String!] + stripeSubscriptionIDGT: String + stripeSubscriptionIDGTE: String + stripeSubscriptionIDLT: String + stripeSubscriptionIDLTE: String + stripeSubscriptionIDContains: String + stripeSubscriptionIDHasPrefix: String + stripeSubscriptionIDHasSuffix: String + stripeSubscriptionIDIsNil: Boolean + stripeSubscriptionIDNotNil: Boolean + stripeSubscriptionIDEqualFold: String + stripeSubscriptionIDContainsFold: String + """ + product_tier field predicates + """ + productTier: String + productTierNEQ: String + productTierIn: [String!] + productTierNotIn: [String!] + productTierGT: String + productTierGTE: String + productTierLT: String + productTierLTE: String + productTierContains: String + productTierHasPrefix: String + productTierHasSuffix: String + productTierIsNil: Boolean + productTierNotNil: Boolean + productTierEqualFold: String + productTierContainsFold: String + """ + stripe_product_tier_id field predicates + """ + stripeProductTierID: String + stripeProductTierIDNEQ: String + stripeProductTierIDIn: [String!] + stripeProductTierIDNotIn: [String!] + stripeProductTierIDGT: String + stripeProductTierIDGTE: String + stripeProductTierIDLT: String + stripeProductTierIDLTE: String + stripeProductTierIDContains: String + stripeProductTierIDHasPrefix: String + stripeProductTierIDHasSuffix: String + stripeProductTierIDIsNil: Boolean + stripeProductTierIDNotNil: Boolean + stripeProductTierIDEqualFold: String + stripeProductTierIDContainsFold: String + """ + stripe_subscription_status field predicates + """ + stripeSubscriptionStatus: String + stripeSubscriptionStatusNEQ: String + stripeSubscriptionStatusIn: [String!] + stripeSubscriptionStatusNotIn: [String!] + stripeSubscriptionStatusGT: String + stripeSubscriptionStatusGTE: String + stripeSubscriptionStatusLT: String + stripeSubscriptionStatusLTE: String + stripeSubscriptionStatusContains: String + stripeSubscriptionStatusHasPrefix: String + stripeSubscriptionStatusHasSuffix: String + stripeSubscriptionStatusIsNil: Boolean + stripeSubscriptionStatusNotNil: Boolean + stripeSubscriptionStatusEqualFold: String + stripeSubscriptionStatusContainsFold: String + """ + active field predicates + """ + active: Boolean + activeNEQ: Boolean + """ + stripe_customer_id field predicates + """ + stripeCustomerID: String + stripeCustomerIDNEQ: String + stripeCustomerIDIn: [String!] + stripeCustomerIDNotIn: [String!] + stripeCustomerIDGT: String + stripeCustomerIDGTE: String + stripeCustomerIDLT: String + stripeCustomerIDLTE: String + stripeCustomerIDContains: String + stripeCustomerIDHasPrefix: String + stripeCustomerIDHasSuffix: String + stripeCustomerIDIsNil: Boolean + stripeCustomerIDNotNil: Boolean + stripeCustomerIDEqualFold: String + stripeCustomerIDContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean +} +""" +OrgSubscriptionWhereInput is used for filtering OrgSubscription objects. +Input was generated by ent. +""" +input OrgSubscriptionWhereInput { + not: OrgSubscriptionWhereInput + and: [OrgSubscriptionWhereInput!] + or: [OrgSubscriptionWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + stripe_subscription_id field predicates + """ + stripeSubscriptionID: String + stripeSubscriptionIDNEQ: String + stripeSubscriptionIDIn: [String!] + stripeSubscriptionIDNotIn: [String!] + stripeSubscriptionIDGT: String + stripeSubscriptionIDGTE: String + stripeSubscriptionIDLT: String + stripeSubscriptionIDLTE: String + stripeSubscriptionIDContains: String + stripeSubscriptionIDHasPrefix: String + stripeSubscriptionIDHasSuffix: String + stripeSubscriptionIDIsNil: Boolean + stripeSubscriptionIDNotNil: Boolean + stripeSubscriptionIDEqualFold: String + stripeSubscriptionIDContainsFold: String + """ + product_tier field predicates + """ + productTier: String + productTierNEQ: String + productTierIn: [String!] + productTierNotIn: [String!] + productTierGT: String + productTierGTE: String + productTierLT: String + productTierLTE: String + productTierContains: String + productTierHasPrefix: String + productTierHasSuffix: String + productTierIsNil: Boolean + productTierNotNil: Boolean + productTierEqualFold: String + productTierContainsFold: String + """ + stripe_product_tier_id field predicates + """ + stripeProductTierID: String + stripeProductTierIDNEQ: String + stripeProductTierIDIn: [String!] + stripeProductTierIDNotIn: [String!] + stripeProductTierIDGT: String + stripeProductTierIDGTE: String + stripeProductTierIDLT: String + stripeProductTierIDLTE: String + stripeProductTierIDContains: String + stripeProductTierIDHasPrefix: String + stripeProductTierIDHasSuffix: String + stripeProductTierIDIsNil: Boolean + stripeProductTierIDNotNil: Boolean + stripeProductTierIDEqualFold: String + stripeProductTierIDContainsFold: String + """ + stripe_subscription_status field predicates + """ + stripeSubscriptionStatus: String + stripeSubscriptionStatusNEQ: String + stripeSubscriptionStatusIn: [String!] + stripeSubscriptionStatusNotIn: [String!] + stripeSubscriptionStatusGT: String + stripeSubscriptionStatusGTE: String + stripeSubscriptionStatusLT: String + stripeSubscriptionStatusLTE: String + stripeSubscriptionStatusContains: String + stripeSubscriptionStatusHasPrefix: String + stripeSubscriptionStatusHasSuffix: String + stripeSubscriptionStatusIsNil: Boolean + stripeSubscriptionStatusNotNil: Boolean + stripeSubscriptionStatusEqualFold: String + stripeSubscriptionStatusContainsFold: String + """ + active field predicates + """ + active: Boolean + activeNEQ: Boolean + """ + stripe_customer_id field predicates + """ + stripeCustomerID: String + stripeCustomerIDNEQ: String + stripeCustomerIDIn: [String!] + stripeCustomerIDNotIn: [String!] + stripeCustomerIDGT: String + stripeCustomerIDGTE: String + stripeCustomerIDLT: String + stripeCustomerIDLTE: String + stripeCustomerIDContains: String + stripeCustomerIDHasPrefix: String + stripeCustomerIDHasSuffix: String + stripeCustomerIDIsNil: Boolean + stripeCustomerIDNotNil: Boolean + stripeCustomerIDEqualFold: String + stripeCustomerIDContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] +} +type Organization implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! + """ + groups that are allowed to create controls + """ + controlCreators: [Group!] + """ + groups that are allowed to create control_objectives + """ + controlObjectiveCreators: [Group!] + """ + groups that are allowed to create groups + """ + groupCreators: [Group!] + """ + groups that are allowed to create internal_policys + """ + internalPolicyCreators: [Group!] + """ + groups that are allowed to create narratives + """ + narrativeCreators: [Group!] + """ + groups that are allowed to create procedures + """ + procedureCreators: [Group!] + """ + groups that are allowed to create programs + """ + programCreators: [Group!] + """ + groups that are allowed to create risks + """ + riskCreators: [Group!] + """ + groups that are allowed to create templates + """ + templateCreators: [Group!] + parent: Organization + children( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + groups: [Group!] + templates: [Template!] + integrations: [Integration!] + setting: OrganizationSetting + documentData: [DocumentData!] + orgSubscriptions: [OrgSubscription!] + personalAccessTokens: [PersonalAccessToken!] + apiTokens: [APIToken!] + users: [User!] + invites: [Invite!] + subscribers: [Subscriber!] + events: [Event!] + secrets: [Hush!] + files: [File!] + entities: [Entity!] + entityTypes: [EntityType!] + contacts: [Contact!] + notes: [Note!] + tasks: [Task!] + programs: [Program!] + procedures: [Procedure!] + internalPolicies: [InternalPolicy!] + risks: [Risk!] + controlObjectives: [ControlObjective!] + narratives: [Narrative!] + controls: [Control!] + subcontrols: [Subcontrol!] + members: [OrgMembership!] +} +""" +A connection to a list of items. +""" +type OrganizationConnection { + """ + A list of edges. + """ + edges: [OrganizationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationEdge { + """ + The item at the end of the edge. + """ + node: Organization + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! +} +""" +A connection to a list of items. +""" +type OrganizationHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationHistoryOpType is enum for the field operation +""" +enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for OrganizationHistory connections +""" +input OrganizationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order OrganizationHistories. + """ + field: OrganizationHistoryOrderField! +} +""" +Properties by which OrganizationHistory connections can be ordered. +""" +enum OrganizationHistoryOrderField { + name + display_name +} +""" +OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +Input was generated by ent. +""" +input OrganizationHistoryWhereInput { + not: OrganizationHistoryWhereInput + and: [OrganizationHistoryWhereInput!] + or: [OrganizationHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationHistoryOpType + operationNEQ: OrganizationHistoryOpType + operationIn: [OrganizationHistoryOpType!] + operationNotIn: [OrganizationHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String +} +""" +Ordering options for Organization connections +""" +input OrganizationOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Organizations. + """ + field: OrganizationOrderField! +} +""" +Properties by which Organization connections can be ordered. +""" +enum OrganizationOrderField { + name + display_name +} +type OrganizationSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + """ + the ID of the organization the settings belong to + """ + organizationID: ID + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String + organization: Organization + files: [File!] +} +""" +A connection to a list of items. +""" +type OrganizationSettingConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationSettingEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingHistoryRegion + """ + the ID of the organization the settings belong to + """ + organizationID: String + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String +} +""" +A connection to a list of items. +""" +type OrganizationSettingHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationSettingHistoryOpType is enum for the field operation +""" +enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrganizationSettingHistoryRegion is enum for the field geo_location +""" +enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +""" +OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +Input was generated by ent. +""" +input OrganizationSettingHistoryWhereInput { + not: OrganizationSettingHistoryWhereInput + and: [OrganizationSettingHistoryWhereInput!] + or: [OrganizationSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationSettingHistoryOpType + operationNEQ: OrganizationSettingHistoryOpType + operationIn: [OrganizationSettingHistoryOpType!] + operationNotIn: [OrganizationSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingHistoryRegion + geoLocationNEQ: OrganizationSettingHistoryRegion + geoLocationIn: [OrganizationSettingHistoryRegion!] + geoLocationNotIn: [OrganizationSettingHistoryRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: String + organizationIDContainsFold: String + """ + stripe_id field predicates + """ + stripeID: String + stripeIDNEQ: String + stripeIDIn: [String!] + stripeIDNotIn: [String!] + stripeIDGT: String + stripeIDGTE: String + stripeIDLT: String + stripeIDLTE: String + stripeIDContains: String + stripeIDHasPrefix: String + stripeIDHasSuffix: String + stripeIDIsNil: Boolean + stripeIDNotNil: Boolean + stripeIDEqualFold: String + stripeIDContainsFold: String +} +""" +OrganizationSettingRegion is enum for the field geo_location +""" +enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +""" +OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. +Input was generated by ent. +""" +input OrganizationSettingWhereInput { + not: OrganizationSettingWhereInput + and: [OrganizationSettingWhereInput!] + or: [OrganizationSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingRegion + geoLocationNEQ: OrganizationSettingRegion + geoLocationIn: [OrganizationSettingRegion!] + geoLocationNotIn: [OrganizationSettingRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: ID + organizationIDContainsFold: ID + """ + stripe_id field predicates + """ + stripeID: String + stripeIDNEQ: String + stripeIDIn: [String!] + stripeIDNotIn: [String!] + stripeIDGT: String + stripeIDGTE: String + stripeIDLT: String + stripeIDLTE: String + stripeIDContains: String + stripeIDHasPrefix: String + stripeIDHasSuffix: String + stripeIDIsNil: Boolean + stripeIDNotNil: Boolean + stripeIDEqualFold: String + stripeIDContainsFold: String + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +OrganizationWhereInput is used for filtering Organization objects. +Input was generated by ent. +""" +input OrganizationWhereInput { + not: OrganizationWhereInput + and: [OrganizationWhereInput!] + or: [OrganizationWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + control_creators edge predicates + """ + hasControlCreators: Boolean + hasControlCreatorsWith: [GroupWhereInput!] + """ + control_objective_creators edge predicates + """ + hasControlObjectiveCreators: Boolean + hasControlObjectiveCreatorsWith: [GroupWhereInput!] + """ + group_creators edge predicates + """ + hasGroupCreators: Boolean + hasGroupCreatorsWith: [GroupWhereInput!] + """ + internal_policy_creators edge predicates + """ + hasInternalPolicyCreators: Boolean + hasInternalPolicyCreatorsWith: [GroupWhereInput!] + """ + narrative_creators edge predicates + """ + hasNarrativeCreators: Boolean + hasNarrativeCreatorsWith: [GroupWhereInput!] + """ + procedure_creators edge predicates + """ + hasProcedureCreators: Boolean + hasProcedureCreatorsWith: [GroupWhereInput!] + """ + program_creators edge predicates + """ + hasProgramCreators: Boolean + hasProgramCreatorsWith: [GroupWhereInput!] + """ + risk_creators edge predicates + """ + hasRiskCreators: Boolean + hasRiskCreatorsWith: [GroupWhereInput!] + """ + template_creators edge predicates + """ + hasTemplateCreators: Boolean + hasTemplateCreatorsWith: [GroupWhereInput!] + """ + parent edge predicates + """ + hasParent: Boolean + hasParentWith: [OrganizationWhereInput!] + """ + children edge predicates + """ + hasChildren: Boolean + hasChildrenWith: [OrganizationWhereInput!] + """ + groups edge predicates + """ + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] + """ + templates edge predicates + """ + hasTemplates: Boolean + hasTemplatesWith: [TemplateWhereInput!] + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [OrganizationSettingWhereInput!] + """ + document_data edge predicates + """ + hasDocumentData: Boolean + hasDocumentDataWith: [DocumentDataWhereInput!] + """ + org_subscriptions edge predicates + """ + hasOrgSubscriptions: Boolean + hasOrgSubscriptionsWith: [OrgSubscriptionWhereInput!] + """ + personal_access_tokens edge predicates + """ + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + """ + api_tokens edge predicates + """ + hasAPITokens: Boolean + hasAPITokensWith: [APITokenWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + invites edge predicates + """ + hasInvites: Boolean + hasInvitesWith: [InviteWhereInput!] + """ + subscribers edge predicates + """ + hasSubscribers: Boolean + hasSubscribersWith: [SubscriberWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + secrets edge predicates + """ + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] + """ + entity_types edge predicates + """ + hasEntityTypes: Boolean + hasEntityTypesWith: [EntityTypeWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [OrgMembershipWhereInput!] +} +""" +Information about pagination in a connection. +https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo +""" +type PageInfo { + """ + When paginating forwards, are there more items? + """ + hasNextPage: Boolean! + """ + When paginating backwards, are there more items? + """ + hasPreviousPage: Boolean! + """ + When paginating backwards, the cursor to continue. + """ + startCursor: Cursor + """ + When paginating forwards, the cursor to continue. + """ + endCursor: Cursor +} +type PersonalAccessToken implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + token: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + owner: User! + """ + the organization(s) the token is associated with + """ + organizations: [Organization!] + events: [Event!] +} +""" +A connection to a list of items. +""" +type PersonalAccessTokenConnection { + """ + A list of edges. + """ + edges: [PersonalAccessTokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type PersonalAccessTokenEdge { + """ + The item at the end of the edge. + """ + node: PersonalAccessToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. +Input was generated by ent. +""" +input PersonalAccessTokenWhereInput { + not: PersonalAccessTokenWhereInput + and: [PersonalAccessTokenWhereInput!] + or: [PersonalAccessTokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + last_used_at field predicates + """ + lastUsedAt: Time + lastUsedAtNEQ: Time + lastUsedAtIn: [Time!] + lastUsedAtNotIn: [Time!] + lastUsedAtGT: Time + lastUsedAtGTE: Time + lastUsedAtLT: Time + lastUsedAtLTE: Time + lastUsedAtIsNil: Boolean + lastUsedAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] + """ + organizations edge predicates + """ + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Procedure implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + owner: Organization + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + controls: [Control!] + internalPolicies: [InternalPolicy!] + narratives: [Narrative!] + risks: [Risk!] + tasks: [Task!] + programs: [Program!] +} +""" +A connection to a list of items. +""" +type ProcedureConnection { + """ + A list of edges. + """ + edges: [ProcedureEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProcedureEdge { + """ + The item at the end of the edge. + """ + node: Procedure + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProcedureHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProcedureHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map +} +""" +A connection to a list of items. +""" +type ProcedureHistoryConnection { + """ + A list of edges. + """ + edges: [ProcedureHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProcedureHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProcedureHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProcedureHistoryOpType is enum for the field operation +""" +enum ProcedureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProcedureHistoryWhereInput is used for filtering ProcedureHistory objects. +Input was generated by ent. +""" +input ProcedureHistoryWhereInput { + not: ProcedureHistoryWhereInput + and: [ProcedureHistoryWhereInput!] + or: [ProcedureHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProcedureHistoryOpType + operationNEQ: ProcedureHistoryOpType + operationIn: [ProcedureHistoryOpType!] + operationNotIn: [ProcedureHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +ProcedureWhereInput is used for filtering Procedure objects. +Input was generated by ent. +""" +input ProcedureWhereInput { + not: ProcedureWhereInput + and: [ProcedureWhereInput!] + or: [ProcedureWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Program implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the program + """ + name: String! + """ + the description of the program + """ + description: String + """ + the status of the program + """ + status: ProgramProgramStatus! + """ + the start date of the period + """ + startDate: Time + """ + the end date of the period + """ + endDate: Time + """ + is the program ready for the auditor + """ + auditorReady: Boolean! + """ + can the auditor write comments + """ + auditorWriteComments: Boolean! + """ + can the auditor read comments + """ + auditorReadComments: Boolean! + owner: Organization + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + controls: [Control!] + subcontrols: [Subcontrol!] + controlObjectives: [ControlObjective!] + internalPolicies: [InternalPolicy!] + procedures: [Procedure!] + risks: [Risk!] + tasks: [Task!] + notes: [Note!] + files: [File!] + narratives: [Narrative!] + actionPlans: [ActionPlan!] + """ + the framework(s) that the program is based on + """ + standards: [Standard!] + users: [User!] + members: [ProgramMembership!] +} +""" +A connection to a list of items. +""" +type ProgramConnection { + """ + A list of edges. + """ + edges: [ProgramEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProgramEdge { + """ + The item at the end of the edge. + """ + node: Program + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProgramHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProgramHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the program + """ + name: String! + """ + the description of the program + """ + description: String + """ + the status of the program + """ + status: ProgramHistoryProgramStatus! + """ + the start date of the period + """ + startDate: Time + """ + the end date of the period + """ + endDate: Time + """ + is the program ready for the auditor + """ + auditorReady: Boolean! + """ + can the auditor write comments + """ + auditorWriteComments: Boolean! + """ + can the auditor read comments + """ + auditorReadComments: Boolean! +} +""" +A connection to a list of items. +""" +type ProgramHistoryConnection { + """ + A list of edges. + """ + edges: [ProgramHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProgramHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProgramHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProgramHistoryOpType is enum for the field operation +""" +enum ProgramHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProgramHistoryProgramStatus is enum for the field status +""" +enum ProgramHistoryProgramStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.ProgramStatus") { + NOT_STARTED + IN_PROGRESS + READY_FOR_AUDITOR + COMPLETED + ACTION_REQUIRED +} +""" +ProgramHistoryWhereInput is used for filtering ProgramHistory objects. +Input was generated by ent. +""" +input ProgramHistoryWhereInput { + not: ProgramHistoryWhereInput + and: [ProgramHistoryWhereInput!] + or: [ProgramHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProgramHistoryOpType + operationNEQ: ProgramHistoryOpType + operationIn: [ProgramHistoryOpType!] + operationNotIn: [ProgramHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: ProgramHistoryProgramStatus + statusNEQ: ProgramHistoryProgramStatus + statusIn: [ProgramHistoryProgramStatus!] + statusNotIn: [ProgramHistoryProgramStatus!] + """ + start_date field predicates + """ + startDate: Time + startDateNEQ: Time + startDateIn: [Time!] + startDateNotIn: [Time!] + startDateGT: Time + startDateGTE: Time + startDateLT: Time + startDateLTE: Time + startDateIsNil: Boolean + startDateNotNil: Boolean + """ + end_date field predicates + """ + endDate: Time + endDateNEQ: Time + endDateIn: [Time!] + endDateNotIn: [Time!] + endDateGT: Time + endDateGTE: Time + endDateLT: Time + endDateLTE: Time + endDateIsNil: Boolean + endDateNotNil: Boolean + """ + auditor_ready field predicates + """ + auditorReady: Boolean + auditorReadyNEQ: Boolean + """ + auditor_write_comments field predicates + """ + auditorWriteComments: Boolean + auditorWriteCommentsNEQ: Boolean + """ + auditor_read_comments field predicates + """ + auditorReadComments: Boolean + auditorReadCommentsNEQ: Boolean +} +type ProgramMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: ProgramMembershipRole! + programID: ID! + userID: ID! + program: Program! + user: User! +} +""" +A connection to a list of items. +""" +type ProgramMembershipConnection { + """ + A list of edges. + """ + edges: [ProgramMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProgramMembershipEdge { + """ + The item at the end of the edge. + """ + node: ProgramMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProgramMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProgramMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: ProgramMembershipHistoryRole! + programID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type ProgramMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [ProgramMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProgramMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProgramMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProgramMembershipHistoryOpType is enum for the field operation +""" +enum ProgramMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProgramMembershipHistoryRole is enum for the field role +""" +enum ProgramMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +ProgramMembershipHistoryWhereInput is used for filtering ProgramMembershipHistory objects. +Input was generated by ent. +""" +input ProgramMembershipHistoryWhereInput { + not: ProgramMembershipHistoryWhereInput + and: [ProgramMembershipHistoryWhereInput!] + or: [ProgramMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProgramMembershipHistoryOpType + operationNEQ: ProgramMembershipHistoryOpType + operationIn: [ProgramMembershipHistoryOpType!] + operationNotIn: [ProgramMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: ProgramMembershipHistoryRole + roleNEQ: ProgramMembershipHistoryRole + roleIn: [ProgramMembershipHistoryRole!] + roleNotIn: [ProgramMembershipHistoryRole!] + """ + program_id field predicates + """ + programID: String + programIDNEQ: String + programIDIn: [String!] + programIDNotIn: [String!] + programIDGT: String + programIDGTE: String + programIDLT: String + programIDLTE: String + programIDContains: String + programIDHasPrefix: String + programIDHasSuffix: String + programIDEqualFold: String + programIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +ProgramMembershipRole is enum for the field role +""" +enum ProgramMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +ProgramMembershipWhereInput is used for filtering ProgramMembership objects. +Input was generated by ent. +""" +input ProgramMembershipWhereInput { + not: ProgramMembershipWhereInput + and: [ProgramMembershipWhereInput!] + or: [ProgramMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: ProgramMembershipRole + roleNEQ: ProgramMembershipRole + roleIn: [ProgramMembershipRole!] + roleNotIn: [ProgramMembershipRole!] +} +""" +ProgramProgramStatus is enum for the field status +""" +enum ProgramProgramStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.ProgramStatus") { + NOT_STARTED + IN_PROGRESS + READY_FOR_AUDITOR + COMPLETED + ACTION_REQUIRED +} +""" +ProgramWhereInput is used for filtering Program objects. +Input was generated by ent. +""" +input ProgramWhereInput { + not: ProgramWhereInput + and: [ProgramWhereInput!] + or: [ProgramWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: ProgramProgramStatus + statusNEQ: ProgramProgramStatus + statusIn: [ProgramProgramStatus!] + statusNotIn: [ProgramProgramStatus!] + """ + start_date field predicates + """ + startDate: Time + startDateNEQ: Time + startDateIn: [Time!] + startDateNotIn: [Time!] + startDateGT: Time + startDateGTE: Time + startDateLT: Time + startDateLTE: Time + startDateIsNil: Boolean + startDateNotNil: Boolean + """ + end_date field predicates + """ + endDate: Time + endDateNEQ: Time + endDateIn: [Time!] + endDateNotIn: [Time!] + endDateGT: Time + endDateGTE: Time + endDateLT: Time + endDateLTE: Time + endDateIsNil: Boolean + endDateNotNil: Boolean + """ + auditor_ready field predicates + """ + auditorReady: Boolean + auditorReadyNEQ: Boolean + """ + auditor_write_comments field predicates + """ + auditorWriteComments: Boolean + auditorWriteCommentsNEQ: Boolean + """ + auditor_read_comments field predicates + """ + auditorReadComments: Boolean + auditorReadCommentsNEQ: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + standards edge predicates + """ + hasStandards: Boolean + hasStandardsWith: [StandardWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [ProgramMembershipWhereInput!] +} +type Query { + """ + Fetches an object given its ID. + """ + node( + """ + ID of the object. + """ + id: ID! + ): Node + """ + Lookup nodes by a list of IDs. + """ + nodes( + """ + The list of node IDs. + """ + ids: [ID!]! + ): [Node]! + apiTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for APITokens returned from the connection. + """ + where: APITokenWhereInput + ): APITokenConnection! + actionPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + actionPlanHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlanHistories returned from the connection. + """ + where: ActionPlanHistoryWhereInput + ): ActionPlanHistoryConnection! + contacts( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + contactHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ContactHistories returned from the connection. + """ + where: ContactHistoryWhereInput + ): ContactHistoryConnection! + controls( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + controlHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlHistories returned from the connection. + """ + where: ControlHistoryWhereInput + ): ControlHistoryConnection! + controlObjectives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + controlObjectiveHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectiveHistories returned from the connection. + """ + where: ControlObjectiveHistoryWhereInput + ): ControlObjectiveHistoryConnection! + documentDataSlice( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + documentDataHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataHistories returned from the connection. + """ + where: DocumentDataHistoryWhereInput + ): DocumentDataHistoryConnection! + entities( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Entities returned from the connection. + """ + orderBy: EntityOrder + + """ + Filtering options for Entities returned from the connection. + """ + where: EntityWhereInput + ): EntityConnection! + entityHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityHistories returned from the connection. + """ + orderBy: EntityHistoryOrder + + """ + Filtering options for EntityHistories returned from the connection. + """ + where: EntityHistoryWhereInput + ): EntityHistoryConnection! + entityTypes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypes returned from the connection. + """ + orderBy: EntityTypeOrder + + """ + Filtering options for EntityTypes returned from the connection. + """ + where: EntityTypeWhereInput + ): EntityTypeConnection! + entityTypeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypeHistories returned from the connection. + """ + orderBy: EntityTypeHistoryOrder + + """ + Filtering options for EntityTypeHistories returned from the connection. + """ + where: EntityTypeHistoryWhereInput + ): EntityTypeHistoryConnection! + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + eventHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EventHistories returned from the connection. + """ + where: EventHistoryWhereInput + ): EventHistoryConnection! + files( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Files returned from the connection. + """ + where: FileWhereInput + ): FileConnection! + fileHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for FileHistories returned from the connection. + """ + where: FileHistoryWhereInput + ): FileHistoryConnection! + groups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Groups returned from the connection. + """ + orderBy: GroupOrder + + """ + Filtering options for Groups returned from the connection. + """ + where: GroupWhereInput + ): GroupConnection! + groupHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for GroupHistories returned from the connection. + """ + orderBy: GroupHistoryOrder + + """ + Filtering options for GroupHistories returned from the connection. + """ + where: GroupHistoryWhereInput + ): GroupHistoryConnection! + groupMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMemberships returned from the connection. + """ + where: GroupMembershipWhereInput + ): GroupMembershipConnection! + groupMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMembershipHistories returned from the connection. + """ + where: GroupMembershipHistoryWhereInput + ): GroupMembershipHistoryConnection! + groupSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettings returned from the connection. + """ + where: GroupSettingWhereInput + ): GroupSettingConnection! + groupSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettingHistories returned from the connection. + """ + where: GroupSettingHistoryWhereInput + ): GroupSettingHistoryConnection! + hushes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Hushes returned from the connection. + """ + orderBy: HushOrder + + """ + Filtering options for Hushes returned from the connection. + """ + where: HushWhereInput + ): HushConnection! + hushHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for HushHistories returned from the connection. + """ + orderBy: HushHistoryOrder + + """ + Filtering options for HushHistories returned from the connection. + """ + where: HushHistoryWhereInput + ): HushHistoryConnection! + integrations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Integrations returned from the connection. + """ + orderBy: IntegrationOrder + + """ + Filtering options for Integrations returned from the connection. + """ + where: IntegrationWhereInput + ): IntegrationConnection! + integrationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for IntegrationHistories returned from the connection. + """ + orderBy: IntegrationHistoryOrder + + """ + Filtering options for IntegrationHistories returned from the connection. + """ + where: IntegrationHistoryWhereInput + ): IntegrationHistoryConnection! + internalPolicies( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicies returned from the connection. + """ + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + internalPolicyHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicyHistories returned from the connection. + """ + where: InternalPolicyHistoryWhereInput + ): InternalPolicyHistoryConnection! + invites( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Invites returned from the connection. + """ + where: InviteWhereInput + ): InviteConnection! + narratives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Narratives returned from the connection. + """ + where: NarrativeWhereInput + ): NarrativeConnection! + narrativeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NarrativeHistories returned from the connection. + """ + where: NarrativeHistoryWhereInput + ): NarrativeHistoryConnection! + notes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Notes returned from the connection. + """ + where: NoteWhereInput + ): NoteConnection! + noteHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NoteHistories returned from the connection. + """ + where: NoteHistoryWhereInput + ): NoteHistoryConnection! + orgMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgMemberships returned from the connection. + """ + where: OrgMembershipWhereInput + ): OrgMembershipConnection! + orgMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgMembershipHistories returned from the connection. + """ + where: OrgMembershipHistoryWhereInput + ): OrgMembershipHistoryConnection! + orgSubscriptions( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgSubscriptions returned from the connection. + """ + where: OrgSubscriptionWhereInput + ): OrgSubscriptionConnection! + orgSubscriptionHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgSubscriptionHistories returned from the connection. + """ + where: OrgSubscriptionHistoryWhereInput + ): OrgSubscriptionHistoryConnection! + organizations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + organizationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for OrganizationHistories returned from the connection. + """ + orderBy: OrganizationHistoryOrder + + """ + Filtering options for OrganizationHistories returned from the connection. + """ + where: OrganizationHistoryWhereInput + ): OrganizationHistoryConnection! + organizationSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettings returned from the connection. + """ + where: OrganizationSettingWhereInput + ): OrganizationSettingConnection! + organizationSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettingHistories returned from the connection. + """ + where: OrganizationSettingHistoryWhereInput + ): OrganizationSettingHistoryConnection! + personalAccessTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for PersonalAccessTokens returned from the connection. + """ + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + procedures( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Procedures returned from the connection. + """ + where: ProcedureWhereInput + ): ProcedureConnection! + procedureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProcedureHistories returned from the connection. + """ + where: ProcedureHistoryWhereInput + ): ProcedureHistoryConnection! + programs( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Programs returned from the connection. + """ + where: ProgramWhereInput + ): ProgramConnection! + programHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProgramHistories returned from the connection. + """ + where: ProgramHistoryWhereInput + ): ProgramHistoryConnection! + programMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProgramMemberships returned from the connection. + """ + where: ProgramMembershipWhereInput + ): ProgramMembershipConnection! + programMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProgramMembershipHistories returned from the connection. + """ + where: ProgramMembershipHistoryWhereInput + ): ProgramMembershipHistoryConnection! + risks( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Risks returned from the connection. + """ + where: RiskWhereInput + ): RiskConnection! + riskHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for RiskHistories returned from the connection. + """ + where: RiskHistoryWhereInput + ): RiskHistoryConnection! + standards( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Standards returned from the connection. + """ + where: StandardWhereInput + ): StandardConnection! + standardHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for StandardHistories returned from the connection. + """ + where: StandardHistoryWhereInput + ): StandardHistoryConnection! + subcontrols( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Subcontrols returned from the connection. + """ + where: SubcontrolWhereInput + ): SubcontrolConnection! + subcontrolHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for SubcontrolHistories returned from the connection. + """ + where: SubcontrolHistoryWhereInput + ): SubcontrolHistoryConnection! + subscribers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Subscribers returned from the connection. + """ + where: SubscriberWhereInput + ): SubscriberConnection! + tfaSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for TFASettings returned from the connection. + """ + where: TFASettingWhereInput + ): TFASettingConnection! + tasks( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Tasks returned from the connection. + """ + where: TaskWhereInput + ): TaskConnection! + taskHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for TaskHistories returned from the connection. + """ + where: TaskHistoryWhereInput + ): TaskHistoryConnection! + templates( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Templates returned from the connection. + """ + orderBy: TemplateOrder + + """ + Filtering options for Templates returned from the connection. + """ + where: TemplateWhereInput + ): TemplateConnection! + templateHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for TemplateHistories returned from the connection. + """ + orderBy: TemplateHistoryOrder + + """ + Filtering options for TemplateHistories returned from the connection. + """ + where: TemplateHistoryWhereInput + ): TemplateHistoryConnection! + users( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Users returned from the connection. + """ + orderBy: UserOrder + + """ + Filtering options for Users returned from the connection. + """ + where: UserWhereInput + ): UserConnection! + userHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for UserHistories returned from the connection. + """ + orderBy: UserHistoryOrder + + """ + Filtering options for UserHistories returned from the connection. + """ + where: UserHistoryWhereInput + ): UserHistoryConnection! + userSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for UserSettings returned from the connection. + """ + where: UserSettingWhereInput + ): UserSettingConnection! + userSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for UserSettingHistories returned from the connection. + """ + where: UserSettingHistoryWhereInput + ): UserSettingHistoryConnection! +} +type Risk implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + control: [Control!] + procedure: [Procedure!] + actionPlans: [ActionPlan!] + programs: [Program!] +} +""" +A connection to a list of items. +""" +type RiskConnection { + """ + A list of edges. + """ + edges: [RiskEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskEdge { + """ + The item at the end of the edge. + """ + node: Risk + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type RiskHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: RiskHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskHistoryRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskHistoryRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map +} +""" +A connection to a list of items. +""" +type RiskHistoryConnection { + """ + A list of edges. + """ + edges: [RiskHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskHistoryEdge { + """ + The item at the end of the edge. + """ + node: RiskHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +RiskHistoryOpType is enum for the field operation +""" +enum RiskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +RiskHistoryRiskImpact is enum for the field impact +""" +enum RiskHistoryRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskHistoryRiskLikelihood is enum for the field likelihood +""" +enum RiskHistoryRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskHistoryWhereInput is used for filtering RiskHistory objects. +Input was generated by ent. +""" +input RiskHistoryWhereInput { + not: RiskHistoryWhereInput + and: [RiskHistoryWhereInput!] + or: [RiskHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: RiskHistoryOpType + operationNEQ: RiskHistoryOpType + operationIn: [RiskHistoryOpType!] + operationNotIn: [RiskHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskHistoryRiskImpact + impactNEQ: RiskHistoryRiskImpact + impactIn: [RiskHistoryRiskImpact!] + impactNotIn: [RiskHistoryRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskHistoryRiskLikelihood + likelihoodNEQ: RiskHistoryRiskLikelihood + likelihoodIn: [RiskHistoryRiskLikelihood!] + likelihoodNotIn: [RiskHistoryRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +RiskRiskImpact is enum for the field impact +""" +enum RiskRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskRiskLikelihood is enum for the field likelihood +""" +enum RiskRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskWhereInput is used for filtering Risk objects. +Input was generated by ent. +""" +input RiskWhereInput { + not: RiskWhereInput + and: [RiskWhereInput!] + or: [RiskWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskRiskImpact + impactNEQ: RiskRiskImpact + impactIn: [RiskRiskImpact!] + impactNotIn: [RiskRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskRiskLikelihood + likelihoodNEQ: RiskRiskLikelihood + likelihoodIn: [RiskRiskLikelihood!] + likelihoodNotIn: [RiskRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Standard implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlObjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + actionPlans: [ActionPlan!] + programs: [Program!] +} +""" +A connection to a list of items. +""" +type StandardConnection { + """ + A list of edges. + """ + edges: [StandardEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardEdge { + """ + The item at the end of the edge. + """ + node: Standard + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type StandardHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: StandardHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map +} +""" +A connection to a list of items. +""" +type StandardHistoryConnection { + """ + A list of edges. + """ + edges: [StandardHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardHistoryEdge { + """ + The item at the end of the edge. + """ + node: StandardHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +StandardHistoryOpType is enum for the field operation +""" +enum StandardHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +StandardHistoryWhereInput is used for filtering StandardHistory objects. +Input was generated by ent. +""" +input StandardHistoryWhereInput { + not: StandardHistoryWhereInput + and: [StandardHistoryWhereInput!] + or: [StandardHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: StandardHistoryOpType + operationNEQ: StandardHistoryOpType + operationIn: [StandardHistoryOpType!] + operationNotIn: [StandardHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +StandardWhereInput is used for filtering Standard objects. +Input was generated by ent. +""" +input StandardWhereInput { + not: StandardWhereInput + and: [StandardWhereInput!] + or: [StandardWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Subcontrol implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + owner: Organization! + controls: [Control!]! + user: [User!] + tasks: [Task!] + notes: Note + programs: [Program!] +} +""" +A connection to a list of items. +""" +type SubcontrolConnection { + """ + A list of edges. + """ + edges: [SubcontrolEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolEdge { + """ + The item at the end of the edge. + """ + node: Subcontrol + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type SubcontrolHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: SubcontrolHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map +} +""" +A connection to a list of items. +""" +type SubcontrolHistoryConnection { + """ + A list of edges. + """ + edges: [SubcontrolHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolHistoryEdge { + """ + The item at the end of the edge. + """ + node: SubcontrolHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +SubcontrolHistoryOpType is enum for the field operation +""" +enum SubcontrolHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +SubcontrolHistoryWhereInput is used for filtering SubcontrolHistory objects. +Input was generated by ent. +""" +input SubcontrolHistoryWhereInput { + not: SubcontrolHistoryWhereInput + and: [SubcontrolHistoryWhereInput!] + or: [SubcontrolHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: SubcontrolHistoryOpType + operationNEQ: SubcontrolHistoryOpType + operationIn: [SubcontrolHistoryOpType!] + operationNotIn: [SubcontrolHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean +} +""" +SubcontrolWhereInput is used for filtering Subcontrol objects. +Input was generated by ent. +""" +input SubcontrolWhereInput { + not: SubcontrolWhereInput + and: [SubcontrolWhereInput!] + or: [SubcontrolWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Subscriber implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + email address of the subscriber + """ + email: String! + """ + phone number of the subscriber + """ + phoneNumber: String + """ + indicates if the email address has been verified + """ + verifiedEmail: Boolean! + """ + indicates if the phone number has been verified + """ + verifiedPhone: Boolean! + """ + indicates if the subscriber is active or not, active users will have at least one verified contact method + """ + active: Boolean! + owner: Organization + events: [Event!] +} +""" +A connection to a list of items. +""" +type SubscriberConnection { + """ + A list of edges. + """ + edges: [SubscriberEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubscriberEdge { + """ + The item at the end of the edge. + """ + node: Subscriber + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +SubscriberWhereInput is used for filtering Subscriber objects. +Input was generated by ent. +""" +input SubscriberWhereInput { + not: SubscriberWhereInput + and: [SubscriberWhereInput!] + or: [SubscriberWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + phone_number field predicates + """ + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String + """ + verified_email field predicates + """ + verifiedEmail: Boolean + verifiedEmailNEQ: Boolean + """ + verified_phone field predicates + """ + verifiedPhone: Boolean + verifiedPhoneNEQ: Boolean + """ + active field predicates + """ + active: Boolean + activeNEQ: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type TFASetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + TFA secret for the user + """ + tfaSecret: String + """ + specifies if the TFA device has been verified + """ + verified: Boolean! + """ + recovery codes for 2fa + """ + recoveryCodes: [String!] + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + owner: User +} +""" +A connection to a list of items. +""" +type TFASettingConnection { + """ + A list of edges. + """ + edges: [TFASettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type TFASettingEdge { + """ + The item at the end of the edge. + """ + node: TFASetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +TFASettingWhereInput is used for filtering TFASetting objects. +Input was generated by ent. +""" +input TFASettingWhereInput { + not: TFASettingWhereInput + and: [TFASettingWhereInput!] + or: [TFASettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + tfa_secret field predicates + """ + tfaSecret: String + tfaSecretNEQ: String + tfaSecretIn: [String!] + tfaSecretNotIn: [String!] + tfaSecretGT: String + tfaSecretGTE: String + tfaSecretLT: String + tfaSecretLTE: String + tfaSecretContains: String + tfaSecretHasPrefix: String + tfaSecretHasSuffix: String + tfaSecretIsNil: Boolean + tfaSecretNotNil: Boolean + tfaSecretEqualFold: String + tfaSecretContainsFold: String + """ + verified field predicates + """ + verified: Boolean + verifiedNEQ: Boolean + """ + totp_allowed field predicates + """ + totpAllowed: Boolean + totpAllowedNEQ: Boolean + totpAllowedIsNil: Boolean + totpAllowedNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] +} +type Task implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the title of the task + """ + title: String! + """ + the description of the task + """ + description: String + """ + the details of the task + """ + details: Map + """ + the status of the task + """ + status: TaskTaskStatus! + """ + the due date of the task + """ + due: Time + """ + the completion date of the task + """ + completed: Time + assigner: User! + assignee: User + organization: [Organization!] + group: [Group!] + internalPolicy: [InternalPolicy!] + procedure: [Procedure!] + control: [Control!] + controlObjective: [ControlObjective!] + subcontrol: [Subcontrol!] + program: [Program!] +} +""" +A connection to a list of items. +""" +type TaskConnection { + """ + A list of edges. + """ + edges: [TaskEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type TaskEdge { + """ + The item at the end of the edge. + """ + node: Task + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type TaskHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: TaskHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the title of the task + """ + title: String! + """ + the description of the task + """ + description: String + """ + the details of the task + """ + details: Map + """ + the status of the task + """ + status: TaskHistoryTaskStatus! + """ + the due date of the task + """ + due: Time + """ + the completion date of the task + """ + completed: Time +} +""" +A connection to a list of items. +""" +type TaskHistoryConnection { + """ + A list of edges. + """ + edges: [TaskHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type TaskHistoryEdge { + """ + The item at the end of the edge. + """ + node: TaskHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +TaskHistoryOpType is enum for the field operation +""" +enum TaskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +TaskHistoryTaskStatus is enum for the field status +""" +enum TaskHistoryTaskStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.TaskStatus") { + OPEN + IN_PROGRESS + IN_REVIEW + COMPLETED + WONT_DO +} +""" +TaskHistoryWhereInput is used for filtering TaskHistory objects. +Input was generated by ent. +""" +input TaskHistoryWhereInput { + not: TaskHistoryWhereInput + and: [TaskHistoryWhereInput!] + or: [TaskHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: TaskHistoryOpType + operationNEQ: TaskHistoryOpType + operationIn: [TaskHistoryOpType!] + operationNotIn: [TaskHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleEqualFold: String + titleContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: TaskHistoryTaskStatus + statusNEQ: TaskHistoryTaskStatus + statusIn: [TaskHistoryTaskStatus!] + statusNotIn: [TaskHistoryTaskStatus!] + """ + due field predicates + """ + due: Time + dueNEQ: Time + dueIn: [Time!] + dueNotIn: [Time!] + dueGT: Time + dueGTE: Time + dueLT: Time + dueLTE: Time + dueIsNil: Boolean + dueNotNil: Boolean + """ + completed field predicates + """ + completed: Time + completedNEQ: Time + completedIn: [Time!] + completedNotIn: [Time!] + completedGT: Time + completedGTE: Time + completedLT: Time + completedLTE: Time + completedIsNil: Boolean + completedNotNil: Boolean +} +""" +TaskTaskStatus is enum for the field status +""" +enum TaskTaskStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.TaskStatus") { + OPEN + IN_PROGRESS + IN_REVIEW + COMPLETED + WONT_DO +} +""" +TaskWhereInput is used for filtering Task objects. +Input was generated by ent. +""" +input TaskWhereInput { + not: TaskWhereInput + and: [TaskWhereInput!] + or: [TaskWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleEqualFold: String + titleContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: TaskTaskStatus + statusNEQ: TaskTaskStatus + statusIn: [TaskTaskStatus!] + statusNotIn: [TaskTaskStatus!] + """ + due field predicates + """ + due: Time + dueNEQ: Time + dueIn: [Time!] + dueNotIn: [Time!] + dueGT: Time + dueGTE: Time + dueLT: Time + dueLTE: Time + dueIsNil: Boolean + dueNotNil: Boolean + """ + completed field predicates + """ + completed: Time + completedNEQ: Time + completedIn: [Time!] + completedNotIn: [Time!] + completedGT: Time + completedGTE: Time + completedLT: Time + completedLTE: Time + completedIsNil: Boolean + completedNotNil: Boolean + """ + assigner edge predicates + """ + hasAssigner: Boolean + hasAssignerWith: [UserWhereInput!] + """ + assignee edge predicates + """ + hasAssignee: Boolean + hasAssigneeWith: [UserWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + internal_policy edge predicates + """ + hasInternalPolicy: Boolean + hasInternalPolicyWith: [InternalPolicyWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + control_objective edge predicates + """ + hasControlObjective: Boolean + hasControlObjectiveWith: [ControlObjectiveWhereInput!] + """ + subcontrol edge predicates + """ + hasSubcontrol: Boolean + hasSubcontrolWith: [SubcontrolWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +type Template implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType! + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON + owner: Organization + documents: [DocumentData!] + files: [File!] +} +""" +A connection to a list of items. +""" +type TemplateConnection { + """ + A list of edges. + """ + edges: [TemplateEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +TemplateDocumentType is enum for the field template_type +""" +enum TemplateDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { + ROOTTEMPLATE + DOCUMENT +} +""" +An edge in a connection. +""" +type TemplateEdge { + """ + The item at the end of the edge. + """ + node: Template + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type TemplateHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: TemplateHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateHistoryDocumentType! + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON +} +""" +A connection to a list of items. +""" +type TemplateHistoryConnection { + """ + A list of edges. + """ + edges: [TemplateHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +TemplateHistoryDocumentType is enum for the field template_type +""" +enum TemplateHistoryDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { + ROOTTEMPLATE + DOCUMENT +} +""" +An edge in a connection. +""" +type TemplateHistoryEdge { + """ + The item at the end of the edge. + """ + node: TemplateHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +TemplateHistoryOpType is enum for the field operation +""" +enum TemplateHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for TemplateHistory connections +""" +input TemplateHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order TemplateHistories. + """ + field: TemplateHistoryOrderField! +} +""" +Properties by which TemplateHistory connections can be ordered. +""" +enum TemplateHistoryOrderField { + name +} +""" +TemplateHistoryWhereInput is used for filtering TemplateHistory objects. +Input was generated by ent. +""" +input TemplateHistoryWhereInput { + not: TemplateHistoryWhereInput + and: [TemplateHistoryWhereInput!] + or: [TemplateHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: TemplateHistoryOpType + operationNEQ: TemplateHistoryOpType + operationIn: [TemplateHistoryOpType!] + operationNotIn: [TemplateHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + template_type field predicates + """ + templateType: TemplateHistoryDocumentType + templateTypeNEQ: TemplateHistoryDocumentType + templateTypeIn: [TemplateHistoryDocumentType!] + templateTypeNotIn: [TemplateHistoryDocumentType!] + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String +} +""" +Ordering options for Template connections +""" +input TemplateOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Templates. + """ + field: TemplateOrderField! +} +""" +Properties by which Template connections can be ordered. +""" +enum TemplateOrderField { + name +} +""" +TemplateWhereInput is used for filtering Template objects. +Input was generated by ent. +""" +input TemplateWhereInput { + not: TemplateWhereInput + and: [TemplateWhereInput!] + or: [TemplateWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + template_type field predicates + """ + templateType: TemplateDocumentType + templateTypeNEQ: TemplateDocumentType + templateTypeIn: [TemplateDocumentType!] + templateTypeNotIn: [TemplateDocumentType!] + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + documents edge predicates + """ + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +The builtin Time type +""" +scalar Time +""" +UpdateAPITokenInput is used for update APIToken object. +Input was generated by ent. +""" +input UpdateAPITokenInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name associated with the token + """ + name: String + """ + a description of the token's purpose + """ + description: String + clearDescription: Boolean + scopes: [String!] + appendScopes: [String!] + clearScopes: Boolean + lastUsedAt: Time + clearLastUsedAt: Boolean + ownerID: ID + clearOwner: Boolean +} +""" +UpdateActionPlanInput is used for update ActionPlan object. +Input was generated by ent. +""" +input UpdateActionPlanInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the action plan + """ + name: String + """ + description of the action plan + """ + description: String + clearDescription: Boolean + """ + status of the action plan + """ + status: String + clearStatus: Boolean + """ + due date of the action plan + """ + dueDate: Time + clearDueDate: Boolean + """ + priority of the action plan + """ + priority: String + clearPriority: Boolean + """ + source of the action plan + """ + source: String + clearSource: Boolean + """ + json data including details of the action plan + """ + details: Map + clearDetails: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisk: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateContactInput is used for update Contact object. +Input was generated by ent. +""" +input UpdateContactInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the full name of the contact + """ + fullName: String + """ + the title of the contact + """ + title: String + clearTitle: Boolean + """ + the company of the contact + """ + company: String + clearCompany: Boolean + """ + the email of the contact + """ + email: String + clearEmail: Boolean + """ + the phone number of the contact + """ + phoneNumber: String + clearPhoneNumber: Boolean + """ + the address of the contact + """ + address: String + clearAddress: Boolean + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateControlInput is used for update Control object. +Input was generated by ent. +""" +input UpdateControlInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control + """ + name: String + """ + description of the control + """ + description: String + clearDescription: Boolean + """ + status of the control + """ + status: String + clearStatus: Boolean + """ + type of the control + """ + controlType: String + clearControlType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + control number or identifier + """ + controlNumber: String + clearControlNumber: Boolean + """ + family associated with the control + """ + family: String + clearFamily: Boolean + """ + class associated with the control + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + clearSource: Boolean + """ + which control objectives are satisfied by the control + """ + satisfies: String + clearSatisfies: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateControlObjectiveInput is used for update ControlObjective object. +Input was generated by ent. +""" +input UpdateControlObjectiveInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control objective + """ + name: String + """ + description of the control objective + """ + description: String + clearDescription: Boolean + """ + status of the control objective + """ + status: String + clearStatus: Boolean + """ + type of the control objective + """ + controlObjectiveType: String + clearControlObjectiveType: Boolean + """ + version of the control objective + """ + version: String + clearVersion: Boolean + """ + number of the control objective + """ + controlNumber: String + clearControlNumber: Boolean + """ + family of the control objective + """ + family: String + clearFamily: Boolean + """ + class associated with the control objective + """ + class: String + clearClass: Boolean + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control objective + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateDocumentDataInput is used for update DocumentData object. +Input was generated by ent. +""" +input UpdateDocumentDataInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the json data of the document + """ + data: JSON + ownerID: ID + clearOwner: Boolean + templateID: ID + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntity: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateEntityInput is used for update Entity object. +Input was generated by ent. +""" +input UpdateEntityInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the entity + """ + name: String + clearName: Boolean + """ + The entity's displayed 'friendly' name + """ + displayName: String + clearDisplayName: Boolean + """ + An optional description of the entity + """ + description: String + clearDescription: Boolean + """ + domains associated with the entity + """ + domains: [String!] + appendDomains: [String!] + clearDomains: Boolean + """ + status of the entity + """ + status: String + clearStatus: Boolean + ownerID: ID + clearOwner: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContacts: Boolean + addDocumentIDs: [ID!] + removeDocumentIDs: [ID!] + clearDocuments: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + entityTypeID: ID + clearEntityType: Boolean +} +""" +UpdateEntityTypeInput is used for update EntityType object. +Input was generated by ent. +""" +input UpdateEntityTypeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the entity + """ + name: String + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean +} +""" +UpdateEventInput is used for update Event object. +Input was generated by ent. +""" +input UpdateEventInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + eventID: String + clearEventID: Boolean + correlationID: String + clearCorrelationID: Boolean + eventType: String + metadata: Map + clearMetadata: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegration: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addInviteIDs: [ID!] + removeInviteIDs: [ID!] + clearInvite: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessToken: Boolean + addHushIDs: [ID!] + removeHushIDs: [ID!] + clearHush: Boolean + addSubscriberIDs: [ID!] + removeSubscriberIDs: [ID!] + clearSubscriber: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFile: Boolean +} +""" +UpdateFileInput is used for update File object. +Input was generated by ent. +""" +input UpdateFileInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String + """ + the extension of the file provided + """ + providedFileExtension: String + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + clearProvidedFileSize: Boolean + persistedFileSize: Int + clearPersistedFileSize: Boolean + """ + the mime type detected by the system + """ + detectedMimeType: String + clearDetectedMimeType: Boolean + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + clearMd5Hash: Boolean + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + clearStoreKey: Boolean + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + clearCategoryType: Boolean + """ + the full URI of the file + """ + uri: String + clearURI: Boolean + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + clearStorageScheme: Boolean + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + clearStorageVolume: Boolean + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + clearStoragePath: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContact: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntity: Boolean + addUserSettingIDs: [ID!] + removeUserSettingIDs: [ID!] + clearUserSetting: Boolean + addOrganizationSettingIDs: [ID!] + removeOrganizationSettingIDs: [ID!] + clearOrganizationSetting: Boolean + addTemplateIDs: [ID!] + removeTemplateIDs: [ID!] + clearTemplate: Boolean + addDocumentDatumIDs: [ID!] + removeDocumentDatumIDs: [ID!] + clearDocumentData: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateGroupInput is used for update Group object. +Input was generated by ent. +""" +input UpdateGroupInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the group - must be unique within the organization + """ + name: String + """ + the groups description + """ + description: String + clearDescription: Boolean + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + clearGravatarLogoURL: Boolean + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + clearLogoURL: Boolean + """ + The group's displayed 'friendly' name + """ + displayName: String + ownerID: ID + clearOwner: Boolean + addControlCreatorIDs: [ID!] + removeControlCreatorIDs: [ID!] + clearControlCreators: Boolean + addControlObjectiveCreatorIDs: [ID!] + removeControlObjectiveCreatorIDs: [ID!] + clearControlObjectiveCreators: Boolean + addGroupCreatorIDs: [ID!] + removeGroupCreatorIDs: [ID!] + clearGroupCreators: Boolean + addInternalPolicyCreatorIDs: [ID!] + removeInternalPolicyCreatorIDs: [ID!] + clearInternalPolicyCreators: Boolean + addNarrativeCreatorIDs: [ID!] + removeNarrativeCreatorIDs: [ID!] + clearNarrativeCreators: Boolean + addProcedureCreatorIDs: [ID!] + removeProcedureCreatorIDs: [ID!] + clearProcedureCreators: Boolean + addProgramCreatorIDs: [ID!] + removeProgramCreatorIDs: [ID!] + clearProgramCreators: Boolean + addRiskCreatorIDs: [ID!] + removeRiskCreatorIDs: [ID!] + clearRiskCreators: Boolean + addTemplateCreatorIDs: [ID!] + removeTemplateCreatorIDs: [ID!] + clearTemplateCreators: Boolean + addProcedureEditorIDs: [ID!] + removeProcedureEditorIDs: [ID!] + clearProcedureEditors: Boolean + addProcedureBlockedGroupIDs: [ID!] + removeProcedureBlockedGroupIDs: [ID!] + clearProcedureBlockedGroups: Boolean + addInternalPolicyEditorIDs: [ID!] + removeInternalPolicyEditorIDs: [ID!] + clearInternalPolicyEditors: Boolean + addInternalPolicyBlockedGroupIDs: [ID!] + removeInternalPolicyBlockedGroupIDs: [ID!] + clearInternalPolicyBlockedGroups: Boolean + addProgramEditorIDs: [ID!] + removeProgramEditorIDs: [ID!] + clearProgramEditors: Boolean + addProgramBlockedGroupIDs: [ID!] + removeProgramBlockedGroupIDs: [ID!] + clearProgramBlockedGroups: Boolean + addProgramViewerIDs: [ID!] + removeProgramViewerIDs: [ID!] + clearProgramViewers: Boolean + addRiskEditorIDs: [ID!] + removeRiskEditorIDs: [ID!] + clearRiskEditors: Boolean + addRiskBlockedGroupIDs: [ID!] + removeRiskBlockedGroupIDs: [ID!] + clearRiskBlockedGroups: Boolean + addRiskViewerIDs: [ID!] + removeRiskViewerIDs: [ID!] + clearRiskViewers: Boolean + addControlObjectiveEditorIDs: [ID!] + removeControlObjectiveEditorIDs: [ID!] + clearControlObjectiveEditors: Boolean + addControlObjectiveBlockedGroupIDs: [ID!] + removeControlObjectiveBlockedGroupIDs: [ID!] + clearControlObjectiveBlockedGroups: Boolean + addControlObjectiveViewerIDs: [ID!] + removeControlObjectiveViewerIDs: [ID!] + clearControlObjectiveViewers: Boolean + addControlEditorIDs: [ID!] + removeControlEditorIDs: [ID!] + clearControlEditors: Boolean + addControlBlockedGroupIDs: [ID!] + removeControlBlockedGroupIDs: [ID!] + clearControlBlockedGroups: Boolean + addControlViewerIDs: [ID!] + removeControlViewerIDs: [ID!] + clearControlViewers: Boolean + addNarrativeEditorIDs: [ID!] + removeNarrativeEditorIDs: [ID!] + clearNarrativeEditors: Boolean + addNarrativeBlockedGroupIDs: [ID!] + removeNarrativeBlockedGroupIDs: [ID!] + clearNarrativeBlockedGroups: Boolean + addNarrativeViewerIDs: [ID!] + removeNarrativeViewerIDs: [ID!] + clearNarrativeViewers: Boolean + settingID: ID + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean +} +""" +UpdateGroupMembershipInput is used for update GroupMembership object. +Input was generated by ent. +""" +input UpdateGroupMembershipInput { + role: GroupMembershipRole + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateGroupSettingInput is used for update GroupSetting object. +Input was generated by ent. +""" +input UpdateGroupSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + clearSyncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + clearSyncToGithub: Boolean + groupID: ID + clearGroup: Boolean +} +""" +UpdateHushInput is used for update Hush object. +Input was generated by ent. +""" +input UpdateHushInput { + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + clearDescription: Boolean + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + clearKind: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateIntegrationInput is used for update Integration object. +Input was generated by ent. +""" +input UpdateIntegrationInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the integration - must be unique within the organization + """ + name: String + """ + a description of the integration + """ + description: String + clearDescription: Boolean + kind: String + clearKind: Boolean + ownerID: ID + clearOwner: Boolean + addSecretIDs: [ID!] + removeSecretIDs: [ID!] + clearSecrets: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateInternalPolicyInput is used for update InternalPolicy object. +Input was generated by ent. +""" +input UpdateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the policy + """ + name: String + """ + description of the policy + """ + description: String + clearDescription: Boolean + """ + status of the policy + """ + status: String + clearStatus: Boolean + """ + type of the policy + """ + policyType: String + clearPolicyType: Boolean + """ + version of the policy + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the policy + """ + background: String + clearBackground: Boolean + """ + json data for the policy document + """ + details: Map + clearDetails: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateInviteInput is used for update Invite object. +Input was generated by ent. +""" +input UpdateInviteInput { + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + clearExpires: Boolean + """ + the status of the invitation + """ + status: InviteInviteStatus + role: InviteRole + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateNarrativeInput is used for update Narrative object. +Input was generated by ent. +""" +input UpdateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the narrative + """ + name: String + """ + the description of the narrative + """ + description: String + clearDescription: Boolean + """ + which controls are satisfied by the narrative + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the narrative document + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjective: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateNoteInput is used for update Note object. +Input was generated by ent. +""" +input UpdateNoteInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the text of the note + """ + text: String + ownerID: ID + clearOwner: Boolean + entityID: ID + clearEntity: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateOrgMembershipInput is used for update OrgMembership object. +Input was generated by ent. +""" +input UpdateOrgMembershipInput { + role: OrgMembershipRole + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateOrgSubscriptionInput is used for update OrgSubscription object. +Input was generated by ent. +""" +input UpdateOrgSubscriptionInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the stripe subscription id + """ + stripeSubscriptionID: String + clearStripeSubscriptionID: Boolean + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + clearProductTier: Boolean + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + clearStripeProductTierID: Boolean + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + clearStripeSubscriptionStatus: Boolean + """ + indicates if the subscription is active + """ + active: Boolean + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + clearStripeCustomerID: Boolean + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + clearExpiresAt: Boolean + """ + the features associated with the subscription + """ + features: [String!] + appendFeatures: [String!] + clearFeatures: Boolean + ownerID: ID + clearOwner: Boolean +} +""" +UpdateOrganizationInput is used for update Organization object. +Input was generated by ent. +""" +input UpdateOrganizationInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the organization + """ + name: String + """ + The organization's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the organization + """ + description: String + clearDescription: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + clearAvatarRemoteURL: Boolean + addControlCreatorIDs: [ID!] + removeControlCreatorIDs: [ID!] + clearControlCreators: Boolean + addControlObjectiveCreatorIDs: [ID!] + removeControlObjectiveCreatorIDs: [ID!] + clearControlObjectiveCreators: Boolean + addGroupCreatorIDs: [ID!] + removeGroupCreatorIDs: [ID!] + clearGroupCreators: Boolean + addInternalPolicyCreatorIDs: [ID!] + removeInternalPolicyCreatorIDs: [ID!] + clearInternalPolicyCreators: Boolean + addNarrativeCreatorIDs: [ID!] + removeNarrativeCreatorIDs: [ID!] + clearNarrativeCreators: Boolean + addProcedureCreatorIDs: [ID!] + removeProcedureCreatorIDs: [ID!] + clearProcedureCreators: Boolean + addProgramCreatorIDs: [ID!] + removeProgramCreatorIDs: [ID!] + clearProgramCreators: Boolean + addRiskCreatorIDs: [ID!] + removeRiskCreatorIDs: [ID!] + clearRiskCreators: Boolean + addTemplateCreatorIDs: [ID!] + removeTemplateCreatorIDs: [ID!] + clearTemplateCreators: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroups: Boolean + addTemplateIDs: [ID!] + removeTemplateIDs: [ID!] + clearTemplates: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + settingID: ID + clearSetting: Boolean + addDocumentDatumIDs: [ID!] + removeDocumentDatumIDs: [ID!] + clearDocumentData: Boolean + addOrgSubscriptionIDs: [ID!] + removeOrgSubscriptionIDs: [ID!] + clearOrgSubscriptions: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessTokens: Boolean + addAPITokenIDs: [ID!] + removeAPITokenIDs: [ID!] + clearAPITokens: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean + addInviteIDs: [ID!] + removeInviteIDs: [ID!] + clearInvites: Boolean + addSubscriberIDs: [ID!] + removeSubscriberIDs: [ID!] + clearSubscribers: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addSecretIDs: [ID!] + removeSecretIDs: [ID!] + clearSecrets: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addEntityTypeIDs: [ID!] + removeEntityTypeIDs: [ID!] + clearEntityTypes: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContacts: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean +} +""" +UpdateOrganizationSettingInput is used for update OrganizationSetting object. +Input was generated by ent. +""" +input UpdateOrganizationSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + domains associated with the organization + """ + domains: [String!] + appendDomains: [String!] + clearDomains: Boolean + """ + Name of the person to contact for billing + """ + billingContact: String + clearBillingContact: Boolean + """ + Email address of the person to contact for billing + """ + billingEmail: String + clearBillingEmail: Boolean + """ + Phone number to contact for billing + """ + billingPhone: String + clearBillingPhone: Boolean + """ + Address to send billing information to + """ + billingAddress: String + clearBillingAddress: Boolean + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + clearTaxIdentifier: Boolean + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + clearGeoLocation: Boolean + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String + clearStripeID: Boolean + organizationID: ID + clearOrganization: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdatePersonalAccessTokenInput is used for update PersonalAccessToken object. +Input was generated by ent. +""" +input UpdatePersonalAccessTokenInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name associated with the token + """ + name: String + """ + a description of the token's purpose + """ + description: String + clearDescription: Boolean + scopes: [String!] + appendScopes: [String!] + clearScopes: Boolean + lastUsedAt: Time + clearLastUsedAt: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganizations: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateProcedureInput is used for update Procedure object. +Input was generated by ent. +""" +input UpdateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the procedure + """ + name: String + """ + description of the procedure + """ + description: String + clearDescription: Boolean + """ + status of the procedure + """ + status: String + clearStatus: Boolean + """ + type of the procedure + """ + procedureType: String + clearProcedureType: Boolean + """ + version of the procedure + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the procedure + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the procedure + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the procedure document + """ + details: Map + clearDetails: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateProgramInput is used for update Program object. +Input was generated by ent. +""" +input UpdateProgramInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the program + """ + name: String + """ + the description of the program + """ + description: String + clearDescription: Boolean + """ + the status of the program + """ + status: ProgramProgramStatus + """ + the start date of the period + """ + startDate: Time + clearStartDate: Boolean + """ + the end date of the period + """ + endDate: Time + clearEndDate: Boolean + """ + is the program ready for the auditor + """ + auditorReady: Boolean + """ + can the auditor write comments + """ + auditorWriteComments: Boolean + """ + can the auditor read comments + """ + auditorReadComments: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandards: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean +} +""" +UpdateProgramMembershipInput is used for update ProgramMembership object. +Input was generated by ent. +""" +input UpdateProgramMembershipInput { + role: ProgramMembershipRole +} +""" +UpdateRiskInput is used for update Risk object. +Input was generated by ent. +""" +input UpdateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the risk + """ + name: String + """ + description of the risk + """ + description: String + clearDescription: Boolean + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + clearStatus: Boolean + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + clearRiskType: Boolean + """ + business costs associated with the risk + """ + businessCosts: String + clearBusinessCosts: Boolean + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + clearImpact: Boolean + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + clearLikelihood: Boolean + """ + mitigation for the risk + """ + mitigation: String + clearMitigation: Boolean + """ + which controls are satisfied by the risk + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the risk document + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateStandardInput is used for update Standard object. +Input was generated by ent. +""" +input UpdateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String + """ + description of the standard + """ + description: String + clearDescription: Boolean + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + clearFamily: Boolean + """ + status of the standard - active, deprecated, etc. + """ + status: String + clearStatus: Boolean + """ + type of the standard - security, privacy, etc. + """ + standardType: String + clearStandardType: Boolean + """ + version of the standard + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the standard + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the standard + """ + satisfies: String + clearSatisfies: Boolean + """ + json data with details of the standard + """ + details: Map + clearDetails: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateSubcontrolInput is used for update Subcontrol object. +Input was generated by ent. +""" +input UpdateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the subcontrol + """ + name: String + """ + description of the subcontrol + """ + description: String + clearDescription: Boolean + """ + status of the subcontrol + """ + status: String + clearStatus: Boolean + """ + type of the subcontrol + """ + subcontrolType: String + clearSubcontrolType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + number of the subcontrol + """ + subcontrolNumber: String + clearSubcontrolNumber: Boolean + """ + subcontrol family + """ + family: String + clearFamily: Boolean + """ + subcontrol class + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + clearImplementationEvidence: Boolean + """ + implementation status + """ + implementationStatus: String + clearImplementationStatus: Boolean + """ + date the subcontrol was implemented + """ + implementationDate: Time + clearImplementationDate: Boolean + """ + implementation verification + """ + implementationVerification: String + clearImplementationVerification: Boolean + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + clearImplementationVerificationDate: Boolean + """ + json data details of the subcontrol + """ + details: Map + clearDetails: Boolean + ownerID: ID + addControlIDs: [ID!] + removeControlIDs: [ID!] + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + notesID: ID + clearNotes: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateSubscriberInput is used for update Subscriber object. +Input was generated by ent. +""" +input UpdateSubscriberInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + email address of the subscriber + """ + email: String + """ + phone number of the subscriber + """ + phoneNumber: String + clearPhoneNumber: Boolean + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateTFASettingInput is used for update TFASetting object. +Input was generated by ent. +""" +input UpdateTFASettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + specifies if the TFA device has been verified + """ + verified: Boolean + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + clearTotpAllowed: Boolean +} +""" +UpdateTaskInput is used for update Task object. +Input was generated by ent. +""" +input UpdateTaskInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the title of the task + """ + title: String + """ + the description of the task + """ + description: String + clearDescription: Boolean + """ + the details of the task + """ + details: Map + clearDetails: Boolean + """ + the status of the task + """ + status: TaskTaskStatus + """ + the due date of the task + """ + due: Time + clearDue: Boolean + """ + the completion date of the task + """ + completed: Time + clearCompleted: Boolean + assignerID: ID + assigneeID: ID + clearAssignee: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicy: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjective: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrol: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateTemplateInput is used for update Template object. +Input was generated by ent. +""" +input UpdateTemplateInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the template + """ + name: String + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType + """ + the description of the template + """ + description: String + clearDescription: Boolean + """ + the jsonschema object of the template + """ + jsonconfig: JSON + """ + the uischema for the template to render in the UI + """ + uischema: JSON + clearUischema: Boolean + ownerID: ID + clearOwner: Boolean + addDocumentIDs: [ID!] + removeDocumentIDs: [ID!] + clearDocuments: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateUserInput is used for update User object. +Input was generated by ent. +""" +input UpdateUserInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + email: String + firstName: String + clearFirstName: Boolean + lastName: String + clearLastName: Boolean + """ + The user's displayed 'friendly' name + """ + displayName: String + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + clearAvatarRemoteURL: Boolean + """ + The user's local avatar file + """ + avatarLocalFile: String + clearAvatarLocalFile: Boolean + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + clearAvatarUpdatedAt: Boolean + """ + the time the user was last seen + """ + lastSeen: Time + clearLastSeen: Boolean + """ + user password hash + """ + password: String + clearPassword: Boolean + """ + the Subject of the user JWT + """ + sub: String + clearSub: Boolean + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider + """ + the user's role + """ + role: UserRole + clearRole: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessTokens: Boolean + addTfaSettingIDs: [ID!] + removeTfaSettingIDs: [ID!] + clearTfaSettings: Boolean + settingID: ID + addEmailVerificationTokenIDs: [ID!] + removeEmailVerificationTokenIDs: [ID!] + clearEmailVerificationTokens: Boolean + addPasswordResetTokenIDs: [ID!] + removePasswordResetTokenIDs: [ID!] + clearPasswordResetTokens: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroups: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganizations: Boolean + addWebauthnIDs: [ID!] + removeWebauthnIDs: [ID!] + clearWebauthn: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + fileID: ID + clearFile: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addAssignerTaskIDs: [ID!] + removeAssignerTaskIDs: [ID!] + clearAssignerTasks: Boolean + addAssigneeTaskIDs: [ID!] + removeAssigneeTaskIDs: [ID!] + clearAssigneeTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateUserSettingInput is used for update UserSetting object. +Input was generated by ent. +""" +input UpdateUserSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + clearSilencedAt: Boolean + """ + The time the user was suspended + """ + suspendedAt: Time + clearSuspendedAt: Boolean + """ + status of the user account + """ + status: UserSettingUserStatus + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + clearIsWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + clearIsTfaEnabled: Boolean + userID: ID + clearUser: Boolean + defaultOrgID: ID + clearDefaultOrg: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +type User implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The user's local avatar file id + """ + avatarLocalFileID: ID + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider! + """ + the user's role + """ + role: UserRole + personalAccessTokens: [PersonalAccessToken!] + tfaSettings: [TFASetting!] + setting: UserSetting! + groups: [Group!] + organizations: [Organization!] + files: [File!] + file: File + events: [Event!] + actionPlans: [ActionPlan!] + subcontrols: [Subcontrol!] + assignerTasks: [Task!] + assigneeTasks: [Task!] + programs: [Program!] + groupMemberships: [GroupMembership!] + orgMemberships: [OrgMembership!] + programMemberships: [ProgramMembership!] +} +""" +UserAuthProvider is enum for the field auth_provider +""" +enum UserAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { + CREDENTIALS + GOOGLE + GITHUB + WEBAUTHN +} +""" +A connection to a list of items. +""" +type UserConnection { + """ + A list of edges. + """ + edges: [UserEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserEdge { + """ + The item at the end of the edge. + """ + node: User + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type UserHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: UserHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The user's local avatar file id + """ + avatarLocalFileID: String + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserHistoryAuthProvider! + """ + the user's role + """ + role: UserHistoryRole +} +""" +UserHistoryAuthProvider is enum for the field auth_provider +""" +enum UserHistoryAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { + CREDENTIALS + GOOGLE + GITHUB + WEBAUTHN +} +""" +A connection to a list of items. +""" +type UserHistoryConnection { + """ + A list of edges. + """ + edges: [UserHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserHistoryEdge { + """ + The item at the end of the edge. + """ + node: UserHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +UserHistoryOpType is enum for the field operation +""" +enum UserHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for UserHistory connections +""" +input UserHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order UserHistories. + """ + field: UserHistoryOrderField! +} +""" +Properties by which UserHistory connections can be ordered. +""" +enum UserHistoryOrderField { + first_name + last_name + display_name +} +""" +UserHistoryRole is enum for the field role +""" +enum UserHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +""" +UserHistoryWhereInput is used for filtering UserHistory objects. +Input was generated by ent. +""" +input UserHistoryWhereInput { + not: UserHistoryWhereInput + and: [UserHistoryWhereInput!] + or: [UserHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: UserHistoryOpType + operationNEQ: UserHistoryOpType + operationIn: [UserHistoryOpType!] + operationNotIn: [UserHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + first_name field predicates + """ + firstName: String + firstNameNEQ: String + firstNameIn: [String!] + firstNameNotIn: [String!] + firstNameGT: String + firstNameGTE: String + firstNameLT: String + firstNameLTE: String + firstNameContains: String + firstNameHasPrefix: String + firstNameHasSuffix: String + firstNameIsNil: Boolean + firstNameNotNil: Boolean + firstNameEqualFold: String + firstNameContainsFold: String + """ + last_name field predicates + """ + lastName: String + lastNameNEQ: String + lastNameIn: [String!] + lastNameNotIn: [String!] + lastNameGT: String + lastNameGTE: String + lastNameLT: String + lastNameLTE: String + lastNameContains: String + lastNameHasPrefix: String + lastNameHasSuffix: String + lastNameIsNil: Boolean + lastNameNotNil: Boolean + lastNameEqualFold: String + lastNameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + avatar_local_file field predicates + """ + avatarLocalFile: String + avatarLocalFileNEQ: String + avatarLocalFileIn: [String!] + avatarLocalFileNotIn: [String!] + avatarLocalFileGT: String + avatarLocalFileGTE: String + avatarLocalFileLT: String + avatarLocalFileLTE: String + avatarLocalFileContains: String + avatarLocalFileHasPrefix: String + avatarLocalFileHasSuffix: String + avatarLocalFileIsNil: Boolean + avatarLocalFileNotNil: Boolean + avatarLocalFileEqualFold: String + avatarLocalFileContainsFold: String + """ + avatar_local_file_id field predicates + """ + avatarLocalFileID: String + avatarLocalFileIDNEQ: String + avatarLocalFileIDIn: [String!] + avatarLocalFileIDNotIn: [String!] + avatarLocalFileIDGT: String + avatarLocalFileIDGTE: String + avatarLocalFileIDLT: String + avatarLocalFileIDLTE: String + avatarLocalFileIDContains: String + avatarLocalFileIDHasPrefix: String + avatarLocalFileIDHasSuffix: String + avatarLocalFileIDIsNil: Boolean + avatarLocalFileIDNotNil: Boolean + avatarLocalFileIDEqualFold: String + avatarLocalFileIDContainsFold: String + """ + avatar_updated_at field predicates + """ + avatarUpdatedAt: Time + avatarUpdatedAtNEQ: Time + avatarUpdatedAtIn: [Time!] + avatarUpdatedAtNotIn: [Time!] + avatarUpdatedAtGT: Time + avatarUpdatedAtGTE: Time + avatarUpdatedAtLT: Time + avatarUpdatedAtLTE: Time + avatarUpdatedAtIsNil: Boolean + avatarUpdatedAtNotNil: Boolean + """ + last_seen field predicates + """ + lastSeen: Time + lastSeenNEQ: Time + lastSeenIn: [Time!] + lastSeenNotIn: [Time!] + lastSeenGT: Time + lastSeenGTE: Time + lastSeenLT: Time + lastSeenLTE: Time + lastSeenIsNil: Boolean + lastSeenNotNil: Boolean + """ + sub field predicates + """ + sub: String + subNEQ: String + subIn: [String!] + subNotIn: [String!] + subGT: String + subGTE: String + subLT: String + subLTE: String + subContains: String + subHasPrefix: String + subHasSuffix: String + subIsNil: Boolean + subNotNil: Boolean + subEqualFold: String + subContainsFold: String + """ + auth_provider field predicates + """ + authProvider: UserHistoryAuthProvider + authProviderNEQ: UserHistoryAuthProvider + authProviderIn: [UserHistoryAuthProvider!] + authProviderNotIn: [UserHistoryAuthProvider!] + """ + role field predicates + """ + role: UserHistoryRole + roleNEQ: UserHistoryRole + roleIn: [UserHistoryRole!] + roleNotIn: [UserHistoryRole!] + roleIsNil: Boolean + roleNotNil: Boolean +} +""" +Ordering options for User connections +""" +input UserOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Users. + """ + field: UserOrderField! +} +""" +Properties by which User connections can be ordered. +""" +enum UserOrderField { + first_name + last_name + display_name +} +""" +UserRole is enum for the field role +""" +enum UserRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +type UserSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + userID: ID + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean! + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingUserStatus! + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean! + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + user: User + """ + organization to load on user login + """ + defaultOrg: Organization + files: [File!] +} +""" +A connection to a list of items. +""" +type UserSettingConnection { + """ + A list of edges. + """ + edges: [UserSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserSettingEdge { + """ + The item at the end of the edge. + """ + node: UserSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type UserSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: UserSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + userID: String + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean! + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingHistoryUserStatus! + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean! + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean +} +""" +A connection to a list of items. +""" +type UserSettingHistoryConnection { + """ + A list of edges. + """ + edges: [UserSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: UserSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +UserSettingHistoryOpType is enum for the field operation +""" +enum UserSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +UserSettingHistoryUserStatus is enum for the field status +""" +enum UserSettingHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +UserSettingHistoryWhereInput is used for filtering UserSettingHistory objects. +Input was generated by ent. +""" +input UserSettingHistoryWhereInput { + not: UserSettingHistoryWhereInput + and: [UserSettingHistoryWhereInput!] + or: [UserSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: UserSettingHistoryOpType + operationNEQ: UserSettingHistoryOpType + operationIn: [UserSettingHistoryOpType!] + operationNotIn: [UserSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: String + userIDContainsFold: String + """ + locked field predicates + """ + locked: Boolean + lockedNEQ: Boolean + """ + silenced_at field predicates + """ + silencedAt: Time + silencedAtNEQ: Time + silencedAtIn: [Time!] + silencedAtNotIn: [Time!] + silencedAtGT: Time + silencedAtGTE: Time + silencedAtLT: Time + silencedAtLTE: Time + silencedAtIsNil: Boolean + silencedAtNotNil: Boolean + """ + suspended_at field predicates + """ + suspendedAt: Time + suspendedAtNEQ: Time + suspendedAtIn: [Time!] + suspendedAtNotIn: [Time!] + suspendedAtGT: Time + suspendedAtGTE: Time + suspendedAtLT: Time + suspendedAtLTE: Time + suspendedAtIsNil: Boolean + suspendedAtNotNil: Boolean + """ + status field predicates + """ + status: UserSettingHistoryUserStatus + statusNEQ: UserSettingHistoryUserStatus + statusIn: [UserSettingHistoryUserStatus!] + statusNotIn: [UserSettingHistoryUserStatus!] + """ + email_confirmed field predicates + """ + emailConfirmed: Boolean + emailConfirmedNEQ: Boolean + """ + is_webauthn_allowed field predicates + """ + isWebauthnAllowed: Boolean + isWebauthnAllowedNEQ: Boolean + isWebauthnAllowedIsNil: Boolean + isWebauthnAllowedNotNil: Boolean + """ + is_tfa_enabled field predicates + """ + isTfaEnabled: Boolean + isTfaEnabledNEQ: Boolean + isTfaEnabledIsNil: Boolean + isTfaEnabledNotNil: Boolean +} +""" +UserSettingUserStatus is enum for the field status +""" +enum UserSettingUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +UserSettingWhereInput is used for filtering UserSetting objects. +Input was generated by ent. +""" +input UserSettingWhereInput { + not: UserSettingWhereInput + and: [UserSettingWhereInput!] + or: [UserSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + user_id field predicates + """ + userID: ID + userIDNEQ: ID + userIDIn: [ID!] + userIDNotIn: [ID!] + userIDGT: ID + userIDGTE: ID + userIDLT: ID + userIDLTE: ID + userIDContains: ID + userIDHasPrefix: ID + userIDHasSuffix: ID + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: ID + userIDContainsFold: ID + """ + locked field predicates + """ + locked: Boolean + lockedNEQ: Boolean + """ + silenced_at field predicates + """ + silencedAt: Time + silencedAtNEQ: Time + silencedAtIn: [Time!] + silencedAtNotIn: [Time!] + silencedAtGT: Time + silencedAtGTE: Time + silencedAtLT: Time + silencedAtLTE: Time + silencedAtIsNil: Boolean + silencedAtNotNil: Boolean + """ + suspended_at field predicates + """ + suspendedAt: Time + suspendedAtNEQ: Time + suspendedAtIn: [Time!] + suspendedAtNotIn: [Time!] + suspendedAtGT: Time + suspendedAtGTE: Time + suspendedAtLT: Time + suspendedAtLTE: Time + suspendedAtIsNil: Boolean + suspendedAtNotNil: Boolean + """ + status field predicates + """ + status: UserSettingUserStatus + statusNEQ: UserSettingUserStatus + statusIn: [UserSettingUserStatus!] + statusNotIn: [UserSettingUserStatus!] + """ + email_confirmed field predicates + """ + emailConfirmed: Boolean + emailConfirmedNEQ: Boolean + """ + is_webauthn_allowed field predicates + """ + isWebauthnAllowed: Boolean + isWebauthnAllowedNEQ: Boolean + isWebauthnAllowedIsNil: Boolean + isWebauthnAllowedNotNil: Boolean + """ + is_tfa_enabled field predicates + """ + isTfaEnabled: Boolean + isTfaEnabledNEQ: Boolean + isTfaEnabledIsNil: Boolean + isTfaEnabledNotNil: Boolean + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + default_org edge predicates + """ + hasDefaultOrg: Boolean + hasDefaultOrgWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +UserWhereInput is used for filtering User objects. +Input was generated by ent. +""" +input UserWhereInput { + not: UserWhereInput + and: [UserWhereInput!] + or: [UserWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + first_name field predicates + """ + firstName: String + firstNameNEQ: String + firstNameIn: [String!] + firstNameNotIn: [String!] + firstNameGT: String + firstNameGTE: String + firstNameLT: String + firstNameLTE: String + firstNameContains: String + firstNameHasPrefix: String + firstNameHasSuffix: String + firstNameIsNil: Boolean + firstNameNotNil: Boolean + firstNameEqualFold: String + firstNameContainsFold: String + """ + last_name field predicates + """ + lastName: String + lastNameNEQ: String + lastNameIn: [String!] + lastNameNotIn: [String!] + lastNameGT: String + lastNameGTE: String + lastNameLT: String + lastNameLTE: String + lastNameContains: String + lastNameHasPrefix: String + lastNameHasSuffix: String + lastNameIsNil: Boolean + lastNameNotNil: Boolean + lastNameEqualFold: String + lastNameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + avatar_local_file field predicates + """ + avatarLocalFile: String + avatarLocalFileNEQ: String + avatarLocalFileIn: [String!] + avatarLocalFileNotIn: [String!] + avatarLocalFileGT: String + avatarLocalFileGTE: String + avatarLocalFileLT: String + avatarLocalFileLTE: String + avatarLocalFileContains: String + avatarLocalFileHasPrefix: String + avatarLocalFileHasSuffix: String + avatarLocalFileIsNil: Boolean + avatarLocalFileNotNil: Boolean + avatarLocalFileEqualFold: String + avatarLocalFileContainsFold: String + """ + avatar_local_file_id field predicates + """ + avatarLocalFileID: ID + avatarLocalFileIDNEQ: ID + avatarLocalFileIDIn: [ID!] + avatarLocalFileIDNotIn: [ID!] + avatarLocalFileIDGT: ID + avatarLocalFileIDGTE: ID + avatarLocalFileIDLT: ID + avatarLocalFileIDLTE: ID + avatarLocalFileIDContains: ID + avatarLocalFileIDHasPrefix: ID + avatarLocalFileIDHasSuffix: ID + avatarLocalFileIDIsNil: Boolean + avatarLocalFileIDNotNil: Boolean + avatarLocalFileIDEqualFold: ID + avatarLocalFileIDContainsFold: ID + """ + avatar_updated_at field predicates + """ + avatarUpdatedAt: Time + avatarUpdatedAtNEQ: Time + avatarUpdatedAtIn: [Time!] + avatarUpdatedAtNotIn: [Time!] + avatarUpdatedAtGT: Time + avatarUpdatedAtGTE: Time + avatarUpdatedAtLT: Time + avatarUpdatedAtLTE: Time + avatarUpdatedAtIsNil: Boolean + avatarUpdatedAtNotNil: Boolean + """ + last_seen field predicates + """ + lastSeen: Time + lastSeenNEQ: Time + lastSeenIn: [Time!] + lastSeenNotIn: [Time!] + lastSeenGT: Time + lastSeenGTE: Time + lastSeenLT: Time + lastSeenLTE: Time + lastSeenIsNil: Boolean + lastSeenNotNil: Boolean + """ + sub field predicates + """ + sub: String + subNEQ: String + subIn: [String!] + subNotIn: [String!] + subGT: String + subGTE: String + subLT: String + subLTE: String + subContains: String + subHasPrefix: String + subHasSuffix: String + subIsNil: Boolean + subNotNil: Boolean + subEqualFold: String + subContainsFold: String + """ + auth_provider field predicates + """ + authProvider: UserAuthProvider + authProviderNEQ: UserAuthProvider + authProviderIn: [UserAuthProvider!] + authProviderNotIn: [UserAuthProvider!] + """ + role field predicates + """ + role: UserRole + roleNEQ: UserRole + roleIn: [UserRole!] + roleNotIn: [UserRole!] + roleIsNil: Boolean + roleNotNil: Boolean + """ + personal_access_tokens edge predicates + """ + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + """ + tfa_settings edge predicates + """ + hasTfaSettings: Boolean + hasTfaSettingsWith: [TFASettingWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [UserSettingWhereInput!] + """ + groups edge predicates + """ + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] + """ + organizations edge predicates + """ + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + file edge predicates + """ + hasFile: Boolean + hasFileWith: [FileWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + assigner_tasks edge predicates + """ + hasAssignerTasks: Boolean + hasAssignerTasksWith: [TaskWhereInput!] + """ + assignee_tasks edge predicates + """ + hasAssigneeTasks: Boolean + hasAssigneeTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] + """ + group_memberships edge predicates + """ + hasGroupMemberships: Boolean + hasGroupMembershipsWith: [GroupMembershipWhereInput!] + """ + org_memberships edge predicates + """ + hasOrgMemberships: Boolean + hasOrgMembershipsWith: [OrgMembershipWhereInput!] + """ + program_memberships edge predicates + """ + hasProgramMemberships: Boolean + hasProgramMembershipsWith: [ProgramMembershipWhereInput!] +} +`, BuiltIn: false}, + {Name: "../schema/entity.graphql", Input: `extend type Query { + """ + Look up entity by ID + """ + entity( + """ + ID of the entity + """ + id: ID! + ): Entity! +} + +extend type Mutation{ + """ + Create a new entity + """ + createEntity( + """ + values of the entity + """ + input: CreateEntityInput! + ): EntityCreatePayload! + """ + Create multiple new entities + """ + createBulkEntity( + """ + values of the entity + """ + input: [CreateEntityInput!] + ): EntityBulkCreatePayload! + """ + Create multiple new entities via file upload + """ + createBulkCSVEntity( + """ + csv file containing values of the entity + """ + input: Upload! + ): EntityBulkCreatePayload! + """ + Update an existing entity + """ + updateEntity( + """ + ID of the entity + """ + id: ID! + """ + New values for the entity + """ + input: UpdateEntityInput! + ): EntityUpdatePayload! + """ + Delete an existing entity + """ + deleteEntity( + """ + ID of the entity + """ + id: ID! + ): EntityDeletePayload! +} + +""" +Return response for createEntity mutation +""" +type EntityCreatePayload { + """ + Created entity + """ + entity: Entity! +} + +""" +Return response for updateEntity mutation +""" +type EntityUpdatePayload { + """ + Updated entity + """ + entity: Entity! +} + +""" +Return response for deleteEntity mutation +""" +type EntityDeletePayload { + """ + Deleted entity ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEntity mutation +""" +type EntityBulkCreatePayload { + """ + Created entities + """ + entities: [Entity!] +}`, BuiltIn: false}, + {Name: "../schema/entityextended.graphql", Input: `extend input CreateEntityInput { + note: CreateNoteInput +} + +extend input UpdateEntityInput { + note: CreateNoteInput +} +`, BuiltIn: false}, + {Name: "../schema/entitytype.graphql", Input: `extend type Query { + """ + Look up entityType by ID + """ + entityType( + """ + ID of the entityType + """ + id: ID! + ): EntityType! +} + +extend type Mutation{ + """ + Create a new entityType + """ + createEntityType( + """ + values of the entityType + """ + input: CreateEntityTypeInput! + ): EntityTypeCreatePayload! + """ + Create multiple new entityTypes + """ + createBulkEntityType( + """ + values of the entityType + """ + input: [CreateEntityTypeInput!] + ): EntityTypeBulkCreatePayload! + """ + Create multiple new entityTypes via file upload + """ + createBulkCSVEntityType( + """ + csv file containing values of the entityType + """ + input: Upload! + ): EntityTypeBulkCreatePayload! + """ + Update an existing entityType + """ + updateEntityType( + """ + ID of the entityType + """ + id: ID! + """ + New values for the entityType + """ + input: UpdateEntityTypeInput! + ): EntityTypeUpdatePayload! + """ + Delete an existing entityType + """ + deleteEntityType( + """ + ID of the entityType + """ + id: ID! + ): EntityTypeDeletePayload! +} + +""" +Return response for createEntityType mutation +""" +type EntityTypeCreatePayload { + """ + Created entityType + """ + entityType: EntityType! +} + +""" +Return response for updateEntityType mutation +""" +type EntityTypeUpdatePayload { + """ + Updated entityType + """ + entityType: EntityType! +} + +""" +Return response for deleteEntityType mutation +""" +type EntityTypeDeletePayload { + """ + Deleted entityType ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEntityType mutation +""" +type EntityTypeBulkCreatePayload { + """ + Created entityTypes + """ + entityTypes: [EntityType!] +}`, BuiltIn: false}, + {Name: "../schema/event.graphql", Input: `extend type Query { + """ + Look up event by ID + """ + event( + """ + ID of the event + """ + id: ID! + ): Event! +} + +extend type Mutation{ + """ + Create a new event + """ + createEvent( + """ + values of the event + """ + input: CreateEventInput! + ): EventCreatePayload! + """ + Create multiple new events + """ + createBulkEvent( + """ + values of the event + """ + input: [CreateEventInput!] + ): EventBulkCreatePayload! + """ + Create multiple new events via file upload + """ + createBulkCSVEvent( + """ + csv file containing values of the event + """ + input: Upload! + ): EventBulkCreatePayload! + """ + Update an existing event + """ + updateEvent( + """ + ID of the event + """ + id: ID! + """ + New values for the event + """ + input: UpdateEventInput! + ): EventUpdatePayload! + """ + Delete an existing event + """ + deleteEvent( + """ + ID of the event + """ + id: ID! + ): EventDeletePayload! +} + +""" +Return response for createEvent mutation +""" +type EventCreatePayload { + """ + Created event + """ + event: Event! +} + +""" +Return response for updateEvent mutation +""" +type EventUpdatePayload { + """ + Updated event + """ + event: Event! +} + +""" +Return response for deleteEvent mutation +""" +type EventDeletePayload { + """ + Deleted event ID + """ + deletedID: ID! +} + +""" +Return response for createBulkEvent mutation +""" +type EventBulkCreatePayload { + """ + Created events + """ + events: [Event!] +}`, BuiltIn: false}, + {Name: "../schema/file.graphql", Input: `extend type Query { + """ + Look up file by ID + """ + file( + """ + ID of the file + """ + id: ID! + ): File! +} + +extend type Mutation{ + """ + Delete an existing file + """ + deleteFile( + """ + ID of the file + """ + id: ID! + ): FileDeletePayload! +} + +""" +Return response for deleteFile mutation +""" +type FileDeletePayload { + """ + Deleted file ID + """ + deletedID: ID! +} + +`, BuiltIn: false}, + {Name: "../schema/group.graphql", Input: `extend type Query { + """ + Look up group by ID + """ + group( + """ + ID of the group + """ + id: ID! + ): Group! +} + +extend type Mutation{ + """ + Create a new group + """ + createGroup( + """ + values of the group + """ + input: CreateGroupInput! + ): GroupCreatePayload! + """ + Create multiple new groups + """ + createBulkGroup( + """ + values of the group + """ + input: [CreateGroupInput!] + ): GroupBulkCreatePayload! + """ + Create multiple new groups via file upload + """ + createBulkCSVGroup( + """ + csv file containing values of the group + """ + input: Upload! + ): GroupBulkCreatePayload! + """ + Update an existing group + """ + updateGroup( + """ + ID of the group + """ + id: ID! + """ + New values for the group + """ + input: UpdateGroupInput! + ): GroupUpdatePayload! + """ + Delete an existing group + """ + deleteGroup( + """ + ID of the group + """ + id: ID! + ): GroupDeletePayload! +} + +""" +Return response for createGroup mutation +""" +type GroupCreatePayload { + """ + Created group + """ + group: Group! +} + +""" +Return response for updateGroup mutation +""" +type GroupUpdatePayload { + """ + Updated group + """ + group: Group! +} + +""" +Return response for deleteGroup mutation +""" +type GroupDeletePayload { + """ + Deleted group ID + """ + deletedID: ID! +} + +""" +Return response for createBulkGroup mutation +""" +type GroupBulkCreatePayload { + """ + Created groups + """ + groups: [Group!] +}`, BuiltIn: false}, + {Name: "../schema/groupextended.graphql", Input: `extend input CreateGroupInput { + createGroupSettings: CreateGroupSettingInput +} + +extend input UpdateGroupInput { + addGroupMembers: [CreateGroupMembershipInput!] + updateGroupSettings: UpdateGroupSettingInput +} + +extend input GroupMembershipWhereInput { + groupID: String + userID: String +}`, BuiltIn: false}, + {Name: "../schema/groupmembership.graphql", Input: `extend type Query { + """ + Look up groupMembership by ID + """ + groupMembership( + """ + ID of the groupMembership + """ + id: ID! + ): GroupMembership! +} + +extend type Mutation{ + """ + Create a new groupMembership + """ + createGroupMembership( + """ + values of the groupMembership + """ + input: CreateGroupMembershipInput! + ): GroupMembershipCreatePayload! + """ + Create multiple new groupMemberships + """ + createBulkGroupMembership( + """ + values of the groupMembership + """ + input: [CreateGroupMembershipInput!] + ): GroupMembershipBulkCreatePayload! + """ + Create multiple new groupMemberships via file upload + """ + createBulkCSVGroupMembership( + """ + csv file containing values of the groupMembership + """ + input: Upload! + ): GroupMembershipBulkCreatePayload! + """ + Update an existing groupMembership + """ + updateGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + """ + New values for the groupMembership + """ + input: UpdateGroupMembershipInput! + ): GroupMembershipUpdatePayload! + """ + Delete an existing groupMembership + """ + deleteGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + ): GroupMembershipDeletePayload! +} + +""" +Return response for createGroupMembership mutation +""" +type GroupMembershipCreatePayload { + """ + Created groupMembership + """ + groupMembership: GroupMembership! +} + +""" +Return response for updateGroupMembership mutation +""" +type GroupMembershipUpdatePayload { + """ + Updated groupMembership + """ + groupMembership: GroupMembership! +} + +""" +Return response for deleteGroupMembership mutation +""" +type GroupMembershipDeletePayload { + """ + Deleted groupMembership ID + """ + deletedID: ID! +} + +""" +Return response for createBulkGroupMembership mutation +""" +type GroupMembershipBulkCreatePayload { + """ + Created groupMemberships + """ + groupMemberships: [GroupMembership!] +}`, BuiltIn: false}, + {Name: "../schema/groupsetting.graphql", Input: `extend type Query { + """ + Look up groupSetting by ID + """ + groupSetting( + """ + ID of the groupSetting + """ + id: ID! + ): GroupSetting! +} + +extend type Mutation{ + """ + Create a new groupSetting + """ + createGroupSetting( + """ + values of the groupSetting + """ + input: CreateGroupSettingInput! + ): GroupSettingCreatePayload! + """ + Create multiple new groupSettings + """ + createBulkGroupSetting( + """ + values of the groupSetting + """ + input: [CreateGroupSettingInput!] + ): GroupSettingBulkCreatePayload! + """ + Create multiple new groupSettings via file upload + """ + createBulkCSVGroupSetting( + """ + csv file containing values of the groupSetting + """ + input: Upload! + ): GroupSettingBulkCreatePayload! + """ + Update an existing groupSetting + """ + updateGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + """ + New values for the groupSetting + """ + input: UpdateGroupSettingInput! + ): GroupSettingUpdatePayload! + """ + Delete an existing groupSetting + """ + deleteGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + ): GroupSettingDeletePayload! +} + +""" +Return response for createGroupSetting mutation +""" +type GroupSettingCreatePayload { + """ + Created groupSetting + """ + groupSetting: GroupSetting! +} + +""" +Return response for updateGroupSetting mutation +""" +type GroupSettingUpdatePayload { + """ + Updated groupSetting + """ + groupSetting: GroupSetting! +} + +""" +Return response for deleteGroupSetting mutation +""" +type GroupSettingDeletePayload { + """ + Deleted groupSetting ID + """ + deletedID: ID! +} + +""" +Return response for createBulkGroupSetting mutation +""" +type GroupSettingBulkCreatePayload { + """ + Created groupSettings + """ + groupSettings: [GroupSetting!] +}`, BuiltIn: false}, + {Name: "../schema/hush.graphql", Input: `extend type Query { + """ + Look up hush by ID + """ + hush( + """ + ID of the hush + """ + id: ID! + ): Hush! +} + +extend type Mutation{ + """ + Create a new hush + """ + createHush( + """ + values of the hush + """ + input: CreateHushInput! + ): HushCreatePayload! + """ + Create multiple new hushs + """ + createBulkHush( + """ + values of the hush + """ + input: [CreateHushInput!] + ): HushBulkCreatePayload! + """ + Create multiple new hushs via file upload + """ + createBulkCSVHush( + """ + csv file containing values of the hush + """ + input: Upload! + ): HushBulkCreatePayload! + """ + Update an existing hush + """ + updateHush( + """ + ID of the hush + """ + id: ID! + """ + New values for the hush + """ + input: UpdateHushInput! + ): HushUpdatePayload! + """ + Delete an existing hush + """ + deleteHush( + """ + ID of the hush + """ + id: ID! + ): HushDeletePayload! +} + +""" +Return response for createHush mutation +""" +type HushCreatePayload { + """ + Created hush + """ + hush: Hush! +} + +""" +Return response for updateHush mutation +""" +type HushUpdatePayload { + """ + Updated hush + """ + hush: Hush! +} + +""" +Return response for deleteHush mutation +""" +type HushDeletePayload { + """ + Deleted hush ID + """ + deletedID: ID! +} + +""" +Return response for createBulkHush mutation +""" +type HushBulkCreatePayload { + """ + Created hushs + """ + hushes: [Hush!] +}`, BuiltIn: false}, + {Name: "../schema/integration.graphql", Input: `extend type Query { + """ + Look up integration by ID + """ + integration( + """ + ID of the integration + """ + id: ID! + ): Integration! +} + +extend type Mutation{ + """ + Create a new integration + """ + createIntegration( + """ + values of the integration + """ + input: CreateIntegrationInput! + ): IntegrationCreatePayload! + """ + Create multiple new integrations + """ + createBulkIntegration( + """ + values of the integration + """ + input: [CreateIntegrationInput!] + ): IntegrationBulkCreatePayload! + """ + Create multiple new integrations via file upload + """ + createBulkCSVIntegration( + """ + csv file containing values of the integration + """ + input: Upload! + ): IntegrationBulkCreatePayload! + """ + Update an existing integration + """ + updateIntegration( + """ + ID of the integration + """ + id: ID! + """ + New values for the integration + """ + input: UpdateIntegrationInput! + ): IntegrationUpdatePayload! + """ + Delete an existing integration + """ + deleteIntegration( + """ + ID of the integration + """ + id: ID! + ): IntegrationDeletePayload! +} + +""" +Return response for createIntegration mutation +""" +type IntegrationCreatePayload { + """ + Created integration + """ + integration: Integration! +} + +""" +Return response for updateIntegration mutation +""" +type IntegrationUpdatePayload { + """ + Updated integration + """ + integration: Integration! +} + +""" +Return response for deleteIntegration mutation +""" +type IntegrationDeletePayload { + """ + Deleted integration ID + """ + deletedID: ID! +} + +""" +Return response for createBulkIntegration mutation +""" +type IntegrationBulkCreatePayload { + """ + Created integrations + """ + integrations: [Integration!] +}`, BuiltIn: false}, + {Name: "../schema/internalpolicy.graphql", Input: `extend type Query { + """ + Look up internalPolicy by ID + """ + internalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicy! +} + +extend type Mutation{ + """ + Create a new internalPolicy + """ + createInternalPolicy( + """ + values of the internalPolicy + """ + input: CreateInternalPolicyInput! + ): InternalPolicyCreatePayload! + """ + Create multiple new internalPolicys + """ + createBulkInternalPolicy( + """ + values of the internalPolicy + """ + input: [CreateInternalPolicyInput!] + ): InternalPolicyBulkCreatePayload! + """ + Create multiple new internalPolicys via file upload + """ + createBulkCSVInternalPolicy( + """ + csv file containing values of the internalPolicy + """ + input: Upload! + ): InternalPolicyBulkCreatePayload! + """ + Update an existing internalPolicy + """ + updateInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + """ + New values for the internalPolicy + """ + input: UpdateInternalPolicyInput! + ): InternalPolicyUpdatePayload! + """ + Delete an existing internalPolicy + """ + deleteInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicyDeletePayload! +} + +""" +Return response for createInternalPolicy mutation +""" +type InternalPolicyCreatePayload { + """ + Created internalPolicy + """ + internalPolicy: InternalPolicy! +} + +""" +Return response for updateInternalPolicy mutation +""" +type InternalPolicyUpdatePayload { + """ + Updated internalPolicy + """ + internalPolicy: InternalPolicy! +} + +""" +Return response for deleteInternalPolicy mutation +""" +type InternalPolicyDeletePayload { + """ + Deleted internalPolicy ID + """ + deletedID: ID! +} + +""" +Return response for createBulkInternalPolicy mutation +""" +type InternalPolicyBulkCreatePayload { + """ + Created internalPolicys + """ + internalPolicies: [InternalPolicy!] +}`, BuiltIn: false}, + {Name: "../schema/invite.graphql", Input: `extend type Query { + """ + Look up invite by ID + """ + invite( + """ + ID of the invite + """ + id: ID! + ): Invite! +} + +extend type Mutation{ + """ + Create a new invite + """ + createInvite( + """ + values of the invite + """ + input: CreateInviteInput! + ): InviteCreatePayload! + """ + Create multiple new invites + """ + createBulkInvite( + """ + values of the invite + """ + input: [CreateInviteInput!] + ): InviteBulkCreatePayload! + """ + Create multiple new invites via file upload + """ + createBulkCSVInvite( + """ + csv file containing values of the invite + """ + input: Upload! + ): InviteBulkCreatePayload! + """ + Update an existing invite + """ + updateInvite( + """ + ID of the invite + """ + id: ID! + """ + New values for the invite + """ + input: UpdateInviteInput! + ): InviteUpdatePayload! + """ + Delete an existing invite + """ + deleteInvite( + """ + ID of the invite + """ + id: ID! + ): InviteDeletePayload! +} + +""" +Return response for createInvite mutation +""" +type InviteCreatePayload { + """ + Created invite + """ + invite: Invite! +} + +""" +Return response for updateInvite mutation +""" +type InviteUpdatePayload { + """ + Updated invite + """ + invite: Invite! +} + +""" +Return response for deleteInvite mutation +""" +type InviteDeletePayload { + """ + Deleted invite ID + """ + deletedID: ID! +} + +""" +Return response for createBulkInvite mutation +""" +type InviteBulkCreatePayload { + """ + Created invites + """ + invites: [Invite!] +}`, BuiltIn: false}, + {Name: "../schema/narrative.graphql", Input: `extend type Query { + """ + Look up narrative by ID + """ + narrative( + """ + ID of the narrative + """ + id: ID! + ): Narrative! +} + +extend type Mutation{ + """ + Create a new narrative + """ + createNarrative( + """ + values of the narrative + """ + input: CreateNarrativeInput! + ): NarrativeCreatePayload! + """ + Create multiple new narratives + """ + createBulkNarrative( + """ + values of the narrative + """ + input: [CreateNarrativeInput!] + ): NarrativeBulkCreatePayload! + """ + Create multiple new narratives via file upload + """ + createBulkCSVNarrative( + """ + csv file containing values of the narrative + """ + input: Upload! + ): NarrativeBulkCreatePayload! + """ + Update an existing narrative + """ + updateNarrative( + """ + ID of the narrative + """ + id: ID! + """ + New values for the narrative + """ + input: UpdateNarrativeInput! + ): NarrativeUpdatePayload! + """ + Delete an existing narrative + """ + deleteNarrative( + """ + ID of the narrative + """ + id: ID! + ): NarrativeDeletePayload! +} + +""" +Return response for createNarrative mutation +""" +type NarrativeCreatePayload { + """ + Created narrative + """ + narrative: Narrative! +} + +""" +Return response for updateNarrative mutation +""" +type NarrativeUpdatePayload { + """ + Updated narrative + """ + narrative: Narrative! +} + +""" +Return response for deleteNarrative mutation +""" +type NarrativeDeletePayload { + """ + Deleted narrative ID + """ + deletedID: ID! +} + +""" +Return response for createBulkNarrative mutation +""" +type NarrativeBulkCreatePayload { + """ + Created narratives + """ + narratives: [Narrative!] +}`, BuiltIn: false}, + {Name: "../schema/organization.graphql", Input: `extend type Query { + """ + Look up organization by ID + """ + organization( + """ + ID of the organization + """ + id: ID! + ): Organization! +} + +extend type Mutation{ + """ + Create a new organization + """ + createOrganization( + """ + values of the organization + """ + input: CreateOrganizationInput! + ): OrganizationCreatePayload! + """ + Create multiple new organizations + """ + createBulkOrganization( + """ + values of the organization + """ + input: [CreateOrganizationInput!] + ): OrganizationBulkCreatePayload! + """ + Create multiple new organizations via file upload + """ + createBulkCSVOrganization( + """ + csv file containing values of the organization + """ + input: Upload! + ): OrganizationBulkCreatePayload! + """ + Update an existing organization + """ + updateOrganization( + """ + ID of the organization + """ + id: ID! + """ + New values for the organization + """ + input: UpdateOrganizationInput! + ): OrganizationUpdatePayload! + """ + Delete an existing organization + """ + deleteOrganization( + """ + ID of the organization + """ + id: ID! + ): OrganizationDeletePayload! +} + +""" +Return response for createOrganization mutation +""" +type OrganizationCreatePayload { + """ + Created organization + """ + organization: Organization! +} + +""" +Return response for updateOrganization mutation +""" +type OrganizationUpdatePayload { + """ + Updated organization + """ + organization: Organization! +} + +""" +Return response for deleteOrganization mutation +""" +type OrganizationDeletePayload { + """ + Deleted organization ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOrganization mutation +""" +type OrganizationBulkCreatePayload { + """ + Created organizations + """ + organizations: [Organization!] +}`, BuiltIn: false}, + {Name: "../schema/organizationsetting.graphql", Input: `extend type Query { + """ + Look up organizationSetting by ID + """ + organizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + ): OrganizationSetting! +} + +extend type Mutation{ + """ + Create a new organizationSetting + """ + createOrganizationSetting( + """ + values of the organizationSetting + """ + input: CreateOrganizationSettingInput! + ): OrganizationSettingCreatePayload! + """ + Create multiple new organizationSettings + """ + createBulkOrganizationSetting( + """ + values of the organizationSetting + """ + input: [CreateOrganizationSettingInput!] + ): OrganizationSettingBulkCreatePayload! + """ + Create multiple new organizationSettings via file upload + """ + createBulkCSVOrganizationSetting( + """ + csv file containing values of the organizationSetting + """ + input: Upload! + ): OrganizationSettingBulkCreatePayload! + """ + Update an existing organizationSetting + """ + updateOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + """ + New values for the organizationSetting + """ + input: UpdateOrganizationSettingInput! + ): OrganizationSettingUpdatePayload! + """ + Delete an existing organizationSetting + """ + deleteOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + ): OrganizationSettingDeletePayload! +} + +""" +Return response for createOrganizationSetting mutation +""" +type OrganizationSettingCreatePayload { + """ + Created organizationSetting + """ + organizationSetting: OrganizationSetting! +} + +""" +Return response for updateOrganizationSetting mutation +""" +type OrganizationSettingUpdatePayload { + """ + Updated organizationSetting + """ + organizationSetting: OrganizationSetting! +} + +""" +Return response for deleteOrganizationSetting mutation +""" +type OrganizationSettingDeletePayload { + """ + Deleted organizationSetting ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOrganizationSetting mutation +""" +type OrganizationSettingBulkCreatePayload { + """ + Created organizationSettings + """ + organizationSettings: [OrganizationSetting!] +}`, BuiltIn: false}, + {Name: "../schema/orgextended.graphql", Input: `extend input CreateOrganizationInput { + createOrgSettings: CreateOrganizationSettingInput +} + +extend input UpdateOrganizationInput { + addOrgMembers: [CreateOrgMembershipInput!] + updateOrgSettings: UpdateOrganizationSettingInput +} + +extend input OrgMembershipWhereInput { + organizationID: String + userID: String +}`, BuiltIn: false}, + {Name: "../schema/orgmembership.graphql", Input: `extend type Query { + """ + Look up orgMembership by ID + """ + orgMembership( + """ + ID of the orgMembership + """ + id: ID! + ): OrgMembership! +} + +extend type Mutation{ + """ + Create a new orgMembership + """ + createOrgMembership( + """ + values of the orgMembership + """ + input: CreateOrgMembershipInput! + ): OrgMembershipCreatePayload! + """ + Create multiple new orgMemberships + """ + createBulkOrgMembership( + """ + values of the orgMembership + """ + input: [CreateOrgMembershipInput!] + ): OrgMembershipBulkCreatePayload! + """ + Create multiple new orgMemberships via file upload + """ + createBulkCSVOrgMembership( + """ + csv file containing values of the orgMembership + """ + input: Upload! + ): OrgMembershipBulkCreatePayload! + """ + Update an existing orgMembership + """ + updateOrgMembership( + """ + ID of the orgMembership + """ + id: ID! + """ + New values for the orgMembership + """ + input: UpdateOrgMembershipInput! + ): OrgMembershipUpdatePayload! + """ + Delete an existing orgMembership + """ + deleteOrgMembership( + """ + ID of the orgMembership + """ + id: ID! + ): OrgMembershipDeletePayload! +} + +""" +Return response for createOrgMembership mutation +""" +type OrgMembershipCreatePayload { + """ + Created orgMembership + """ + orgMembership: OrgMembership! +} + +""" +Return response for updateOrgMembership mutation +""" +type OrgMembershipUpdatePayload { + """ + Updated orgMembership + """ + orgMembership: OrgMembership! +} + +""" +Return response for deleteOrgMembership mutation +""" +type OrgMembershipDeletePayload { + """ + Deleted orgMembership ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOrgMembership mutation +""" +type OrgMembershipBulkCreatePayload { + """ + Created orgMemberships + """ + orgMemberships: [OrgMembership!] +}`, BuiltIn: false}, + {Name: "../schema/orgsubscription.graphql", Input: `extend type Query { + """ + Look up orgSubscription by ID + """ + orgSubscription( + """ + ID of the orgSubscription + """ + id: ID! + ): OrgSubscription! +} + +extend type Mutation{ + """ + Create a new orgSubscription + """ + createOrgSubscription( + """ + values of the orgSubscription + """ + input: CreateOrgSubscriptionInput! + ): OrgSubscriptionCreatePayload! + """ + Create multiple new orgSubscriptions + """ + createBulkOrgSubscription( + """ + values of the orgSubscription + """ + input: [CreateOrgSubscriptionInput!] + ): OrgSubscriptionBulkCreatePayload! + """ + Create multiple new orgSubscriptions via file upload + """ + createBulkCSVOrgSubscription( + """ + csv file containing values of the orgSubscription + """ + input: Upload! + ): OrgSubscriptionBulkCreatePayload! + """ + Update an existing orgSubscription + """ + updateOrgSubscription( + """ + ID of the orgSubscription + """ + id: ID! + """ + New values for the orgSubscription + """ + input: UpdateOrgSubscriptionInput! + ): OrgSubscriptionUpdatePayload! + """ + Delete an existing orgSubscription + """ + deleteOrgSubscription( + """ + ID of the orgSubscription + """ + id: ID! + ): OrgSubscriptionDeletePayload! +} + +""" +Return response for createOrgSubscription mutation +""" +type OrgSubscriptionCreatePayload { + """ + Created orgSubscription + """ + orgSubscription: OrgSubscription! +} + +""" +Return response for updateOrgSubscription mutation +""" +type OrgSubscriptionUpdatePayload { + """ + Updated orgSubscription + """ + orgSubscription: OrgSubscription! +} + +""" +Return response for deleteOrgSubscription mutation +""" +type OrgSubscriptionDeletePayload { + """ + Deleted orgSubscription ID + """ + deletedID: ID! +} + +""" +Return response for createBulkOrgSubscription mutation +""" +type OrgSubscriptionBulkCreatePayload { + """ + Created orgSubscriptions + """ + orgSubscriptions: [OrgSubscription!] +}`, BuiltIn: false}, + {Name: "../schema/personalaccesstoken.graphql", Input: `extend type Query { + """ + Look up personalAccessToken by ID + """ + personalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + ): PersonalAccessToken! +} + +extend type Mutation{ + """ + Create a new personalAccessToken + """ + createPersonalAccessToken( + """ + values of the personalAccessToken + """ + input: CreatePersonalAccessTokenInput! + ): PersonalAccessTokenCreatePayload! + """ + Create multiple new personalAccessTokens + """ + createBulkPersonalAccessToken( + """ + values of the personalAccessToken + """ + input: [CreatePersonalAccessTokenInput!] + ): PersonalAccessTokenBulkCreatePayload! + """ + Create multiple new personalAccessTokens via file upload + """ + createBulkCSVPersonalAccessToken( + """ + csv file containing values of the personalAccessToken + """ + input: Upload! + ): PersonalAccessTokenBulkCreatePayload! + """ + Update an existing personalAccessToken + """ + updatePersonalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + """ + New values for the personalAccessToken + """ + input: UpdatePersonalAccessTokenInput! + ): PersonalAccessTokenUpdatePayload! + """ + Delete an existing personalAccessToken + """ + deletePersonalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + ): PersonalAccessTokenDeletePayload! +} + +""" +Return response for createPersonalAccessToken mutation +""" +type PersonalAccessTokenCreatePayload { + """ + Created personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} + +""" +Return response for updatePersonalAccessToken mutation +""" +type PersonalAccessTokenUpdatePayload { + """ + Updated personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} + +""" +Return response for deletePersonalAccessToken mutation +""" +type PersonalAccessTokenDeletePayload { + """ + Deleted personalAccessToken ID + """ + deletedID: ID! +} + +""" +Return response for createBulkPersonalAccessToken mutation +""" +type PersonalAccessTokenBulkCreatePayload { + """ + Created personalAccessTokens + """ + personalAccessTokens: [PersonalAccessToken!] +}`, BuiltIn: false}, + {Name: "../schema/procedure.graphql", Input: `extend type Query { + """ + Look up procedure by ID + """ + procedure( + """ + ID of the procedure + """ + id: ID! + ): Procedure! +} + +extend type Mutation{ + """ + Create a new procedure + """ + createProcedure( + """ + values of the procedure + """ + input: CreateProcedureInput! + ): ProcedureCreatePayload! + """ + Create multiple new procedures + """ + createBulkProcedure( + """ + values of the procedure + """ + input: [CreateProcedureInput!] + ): ProcedureBulkCreatePayload! + """ + Create multiple new procedures via file upload + """ + createBulkCSVProcedure( + """ + csv file containing values of the procedure + """ + input: Upload! + ): ProcedureBulkCreatePayload! + """ + Update an existing procedure + """ + updateProcedure( + """ + ID of the procedure + """ + id: ID! + """ + New values for the procedure + """ + input: UpdateProcedureInput! + ): ProcedureUpdatePayload! + """ + Delete an existing procedure + """ + deleteProcedure( + """ + ID of the procedure + """ + id: ID! + ): ProcedureDeletePayload! +} + +""" +Return response for createProcedure mutation +""" +type ProcedureCreatePayload { + """ + Created procedure + """ + procedure: Procedure! +} + +""" +Return response for updateProcedure mutation +""" +type ProcedureUpdatePayload { + """ + Updated procedure + """ + procedure: Procedure! +} + +""" +Return response for deleteProcedure mutation +""" +type ProcedureDeletePayload { + """ + Deleted procedure ID + """ + deletedID: ID! +} + +""" +Return response for createBulkProcedure mutation +""" +type ProcedureBulkCreatePayload { + """ + Created procedures + """ + procedures: [Procedure!] +}`, BuiltIn: false}, + {Name: "../schema/program.graphql", Input: `extend type Query { + """ + Look up program by ID + """ + program( + """ + ID of the program + """ + id: ID! + ): Program! +} + +extend type Mutation{ + """ + Create a new program + """ + createProgram( + """ + values of the program + """ + input: CreateProgramInput! + ): ProgramCreatePayload! + """ + Create multiple new programs + """ + createBulkProgram( + """ + values of the program + """ + input: [CreateProgramInput!] + ): ProgramBulkCreatePayload! + """ + Create multiple new programs via file upload + """ + createBulkCSVProgram( + """ + csv file containing values of the program + """ + input: Upload! + ): ProgramBulkCreatePayload! + """ + Update an existing program + """ + updateProgram( + """ + ID of the program + """ + id: ID! + """ + New values for the program + """ + input: UpdateProgramInput! + ): ProgramUpdatePayload! + """ + Delete an existing program + """ + deleteProgram( + """ + ID of the program + """ + id: ID! + ): ProgramDeletePayload! +} + +""" +Return response for createProgram mutation +""" +type ProgramCreatePayload { + """ + Created program + """ + program: Program! +} + +""" +Return response for updateProgram mutation +""" +type ProgramUpdatePayload { + """ + Updated program + """ + program: Program! +} + +""" +Return response for deleteProgram mutation +""" +type ProgramDeletePayload { + """ + Deleted program ID + """ + deletedID: ID! +} + +""" +Return response for createBulkProgram mutation +""" +type ProgramBulkCreatePayload { + """ + Created programs + """ + programs: [Program!] +}`, BuiltIn: false}, + {Name: "../schema/programextended.graphql", Input: `extend input UpdateProgramInput { + addProgramMembers: [CreateProgramMembershipInput!] +} + +extend input ProgramMembershipWhereInput { + programID: String + userID: String +} + +input CreateControlWithSubcontrolsInput{ + control: CreateControlInput + subcontrols: [CreateSubcontrolInput!] +} + +input CreateFullProgramInput{ + program: CreateProgramInput! + standard: CreateStandardInput! + controls: [CreateControlWithSubcontrolsInput!] + risks: [CreateRiskInput!] + internalPolicies: [CreateInternalPolicyInput!] + procedures: [CreateProcedureInput!] + members: [CreateMemberWithProgramInput!] +} + +input CreateProgramWithMembersInput{ + program: CreateProgramInput! + members: [CreateMemberWithProgramInput!] +} + +input CreateMemberWithProgramInput { + role: ProgramMembershipRole + userID: ID! +} + +extend type Mutation{ + """ + Create a new program with members + """ + createProgramWithMembers( + """ + values of the program + """ + input: CreateProgramWithMembersInput! + ): ProgramCreatePayload! + """ + Create a new program with options for edges (members, policies, procedures, risks, controls, standard) + """ + createFullProgram( + """ + values of the program + """ + input: CreateFullProgramInput! + ): ProgramCreatePayload! + """ + Create a controls with subcontrols + """ + createControlWithSubcontrols( + """ + values of the program + """ + input: CreateControlWithSubcontrolsInput! + ): ControlCreatePayload! +}`, BuiltIn: false}, + {Name: "../schema/programmembership.graphql", Input: `extend type Query { + """ + Look up programMembership by ID + """ + programMembership( + """ + ID of the programMembership + """ + id: ID! + ): ProgramMembership! +} + +extend type Mutation{ + """ + Create a new programMembership + """ + createProgramMembership( + """ + values of the programMembership + """ + input: CreateProgramMembershipInput! + ): ProgramMembershipCreatePayload! + """ + Create multiple new programMemberships + """ + createBulkProgramMembership( + """ + values of the programMembership + """ + input: [CreateProgramMembershipInput!] + ): ProgramMembershipBulkCreatePayload! + """ + Create multiple new programMemberships via file upload + """ + createBulkCSVProgramMembership( + """ + csv file containing values of the programMembership + """ + input: Upload! + ): ProgramMembershipBulkCreatePayload! + """ + Update an existing programMembership + """ + updateProgramMembership( + """ + ID of the programMembership + """ + id: ID! + """ + New values for the programMembership + """ + input: UpdateProgramMembershipInput! + ): ProgramMembershipUpdatePayload! + """ + Delete an existing programMembership + """ + deleteProgramMembership( + """ + ID of the programMembership + """ + id: ID! + ): ProgramMembershipDeletePayload! +} + +""" +Return response for createProgramMembership mutation +""" +type ProgramMembershipCreatePayload { + """ + Created programMembership + """ + programMembership: ProgramMembership! +} + +""" +Return response for updateProgramMembership mutation +""" +type ProgramMembershipUpdatePayload { + """ + Updated programMembership + """ + programMembership: ProgramMembership! +} + +""" +Return response for deleteProgramMembership mutation +""" +type ProgramMembershipDeletePayload { + """ + Deleted programMembership ID + """ + deletedID: ID! +} + +""" +Return response for createBulkProgramMembership mutation +""" +type ProgramMembershipBulkCreatePayload { + """ + Created programMemberships + """ + programMemberships: [ProgramMembership!] +}`, BuiltIn: false}, + {Name: "../schema/risk.graphql", Input: `extend type Query { + """ + Look up risk by ID + """ + risk( + """ + ID of the risk + """ + id: ID! + ): Risk! +} + +extend type Mutation{ + """ + Create a new risk + """ + createRisk( + """ + values of the risk + """ + input: CreateRiskInput! + ): RiskCreatePayload! + """ + Create multiple new risks + """ + createBulkRisk( + """ + values of the risk + """ + input: [CreateRiskInput!] + ): RiskBulkCreatePayload! + """ + Create multiple new risks via file upload + """ + createBulkCSVRisk( + """ + csv file containing values of the risk + """ + input: Upload! + ): RiskBulkCreatePayload! + """ + Update an existing risk + """ + updateRisk( + """ + ID of the risk + """ + id: ID! + """ + New values for the risk + """ + input: UpdateRiskInput! + ): RiskUpdatePayload! + """ + Delete an existing risk + """ + deleteRisk( + """ + ID of the risk + """ + id: ID! + ): RiskDeletePayload! +} + +""" +Return response for createRisk mutation +""" +type RiskCreatePayload { + """ + Created risk + """ + risk: Risk! +} + +""" +Return response for updateRisk mutation +""" +type RiskUpdatePayload { + """ + Updated risk + """ + risk: Risk! +} + +""" +Return response for deleteRisk mutation +""" +type RiskDeletePayload { + """ + Deleted risk ID + """ + deletedID: ID! +} + +""" +Return response for createBulkRisk mutation +""" +type RiskBulkCreatePayload { + """ + Created risks + """ + risks: [Risk!] +}`, BuiltIn: false}, + {Name: "../schema/scalars.graphql", Input: `scalar Upload`, BuiltIn: false}, + {Name: "../schema/search.graphql", Input: `extend type Query{ + """ + Search across APIToken objects + """ + apiTokenSearch( + """ + Search query + """ + query: String! + ): APITokenSearchResult + """ + Search across ActionPlan objects + """ + actionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ + Search across Contact objects + """ + contactSearch( + """ + Search query + """ + query: String! + ): ContactSearchResult + """ + Search across Control objects + """ + controlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + controlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ + Search across DocumentData objects + """ + documentDataSearch( + """ + Search query + """ + query: String! + ): DocumentDataSearchResult + """ + Search across Entity objects + """ + entitySearch( + """ + Search query + """ + query: String! + ): EntitySearchResult + """ + Search across EntityType objects + """ + entityTypeSearch( + """ + Search query + """ + query: String! + ): EntityTypeSearchResult + """ + Search across Event objects + """ + eventSearch( + """ + Search query + """ + query: String! + ): EventSearchResult + """ + Search across File objects + """ + fileSearch( + """ + Search query + """ + query: String! + ): FileSearchResult + """ + Search across Group objects + """ + groupSearch( + """ + Search query + """ + query: String! + ): GroupSearchResult + """ + Search across GroupSetting objects + """ + groupSettingSearch( + """ + Search query + """ + query: String! + ): GroupSettingSearchResult + """ + Search across Integration objects + """ + integrationSearch( + """ + Search query + """ + query: String! + ): IntegrationSearchResult + """ + Search across InternalPolicy objects + """ + internalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + narrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ + Search across OrgSubscription objects + """ + orgSubscriptionSearch( + """ + Search query + """ + query: String! + ): OrgSubscriptionSearchResult + """ + Search across Organization objects + """ + organizationSearch( + """ + Search query + """ + query: String! + ): OrganizationSearchResult + """ + Search across OrganizationSetting objects + """ + organizationSettingSearch( + """ + Search query + """ + query: String! + ): OrganizationSettingSearchResult + """ + Search across PersonalAccessToken objects + """ + personalAccessTokenSearch( + """ + Search query + """ + query: String! + ): PersonalAccessTokenSearchResult + """ + Search across Procedure objects + """ + procedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Program objects + """ + programSearch( + """ + Search query + """ + query: String! + ): ProgramSearchResult + """ + Search across Risk objects + """ + riskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + standardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + subcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ + Search across Subscriber objects + """ + subscriberSearch( + """ + Search query + """ + query: String! + ): SubscriberSearchResult + """ + Search across TFASetting objects + """ + tFASettingSearch( + """ + Search query + """ + query: String! + ): TFASettingSearchResult + """ + Search across Task objects + """ + taskSearch( + """ + Search query + """ + query: String! + ): TaskSearchResult + """ + Search across Template objects + """ + templateSearch( + """ + Search query + """ + query: String! + ): TemplateSearchResult + """ + Search across User objects + """ + userSearch( + """ + Search query + """ + query: String! + ): UserSearchResult + """ + Search across UserSetting objects + """ + userSettingSearch( + """ + Search query + """ + query: String! + ): UserSettingSearchResult +} +union SearchResult = + | APITokenSearchResult + | ActionPlanSearchResult + | ContactSearchResult + | ControlSearchResult + | ControlObjectiveSearchResult + | DocumentDataSearchResult + | EntitySearchResult + | EntityTypeSearchResult + | EventSearchResult + | FileSearchResult + | GroupSearchResult + | GroupSettingSearchResult + | IntegrationSearchResult + | InternalPolicySearchResult + | NarrativeSearchResult + | OrgSubscriptionSearchResult + | OrganizationSearchResult + | OrganizationSettingSearchResult + | PersonalAccessTokenSearchResult + | ProcedureSearchResult + | ProgramSearchResult + | RiskSearchResult + | StandardSearchResult + | SubcontrolSearchResult + | SubscriberSearchResult + | TFASettingSearchResult + | TaskSearchResult + | TemplateSearchResult + | UserSearchResult + | UserSettingSearchResult + +type SearchResultConnection { + page: PageInfo! + + nodes: [SearchResult!]! +} + +extend type Query{ + """ + Search across all objects + """ + search( + """ + Search query + """ + query: String! + ): SearchResultConnection + """ + Admin search across all objects + """ + adminSearch( + """ + Search query + """ + query: String! + ): SearchResultConnection +} + +type APITokenSearchResult { + apiTokens: [ APIToken!] +} + +type ActionPlanSearchResult { + actionPlans: [ ActionPlan!] +} + +type ContactSearchResult { + contacts: [ Contact!] +} + +type ControlSearchResult { + controls: [ Control!] +} + +type ControlObjectiveSearchResult { + controlObjectives: [ ControlObjective!] +} + +type DocumentDataSearchResult { + documentData: [ DocumentData!] +} + +type EntitySearchResult { + entities: [ Entity!] +} + +type EntityTypeSearchResult { + entityTypes: [ EntityType!] +} + +type EventSearchResult { + events: [ Event!] +} + +type FileSearchResult { + files: [ File!] +} + +type GroupSearchResult { + groups: [ Group!] +} + +type GroupSettingSearchResult { + groupSettings: [ GroupSetting!] +} + +type IntegrationSearchResult { + integrations: [ Integration!] +} + +type InternalPolicySearchResult { + internalPolicies: [ InternalPolicy!] +} + +type NarrativeSearchResult { + narratives: [ Narrative!] +} + +type OrgSubscriptionSearchResult { + orgSubscriptions: [ OrgSubscription!] +} + +type OrganizationSearchResult { + organizations: [ Organization!] +} + +type OrganizationSettingSearchResult { + organizationSettings: [ OrganizationSetting!] +} + +type PersonalAccessTokenSearchResult { + personalAccessTokens: [ PersonalAccessToken!] +} + +type ProcedureSearchResult { + procedures: [ Procedure!] +} + +type ProgramSearchResult { + programs: [ Program!] +} + +type RiskSearchResult { + risks: [ Risk!] +} + +type StandardSearchResult { + standards: [ Standard!] +} + +type SubcontrolSearchResult { + subcontrols: [ Subcontrol!] +} + +type SubscriberSearchResult { + subscribers: [ Subscriber!] +} + +type TFASettingSearchResult { + tFASettings: [ TFASetting!] +} + +type TaskSearchResult { + tasks: [ Task!] +} + +type TemplateSearchResult { + templates: [ Template!] +} + +type UserSearchResult { + users: [ User!] +} + +type UserSettingSearchResult { + userSettings: [ UserSetting!] +} +`, BuiltIn: false}, + {Name: "../schema/standard.graphql", Input: `extend type Query { + """ + Look up standard by ID + """ + standard( + """ + ID of the standard + """ + id: ID! + ): Standard! +} + +extend type Mutation{ + """ + Create a new standard + """ + createStandard( + """ + values of the standard + """ + input: CreateStandardInput! + ): StandardCreatePayload! + """ + Create multiple new standards + """ + createBulkStandard( + """ + values of the standard + """ + input: [CreateStandardInput!] + ): StandardBulkCreatePayload! + """ + Create multiple new standards via file upload + """ + createBulkCSVStandard( + """ + csv file containing values of the standard + """ + input: Upload! + ): StandardBulkCreatePayload! + """ + Update an existing standard + """ + updateStandard( + """ + ID of the standard + """ + id: ID! + """ + New values for the standard + """ + input: UpdateStandardInput! + ): StandardUpdatePayload! + """ + Delete an existing standard + """ + deleteStandard( + """ + ID of the standard + """ + id: ID! + ): StandardDeletePayload! +} + +""" +Return response for createStandard mutation +""" +type StandardCreatePayload { + """ + Created standard + """ + standard: Standard! +} + +""" +Return response for updateStandard mutation +""" +type StandardUpdatePayload { + """ + Updated standard + """ + standard: Standard! +} + +""" +Return response for deleteStandard mutation +""" +type StandardDeletePayload { + """ + Deleted standard ID + """ + deletedID: ID! +} + +""" +Return response for createBulkStandard mutation +""" +type StandardBulkCreatePayload { + """ + Created standards + """ + standards: [Standard!] +}`, BuiltIn: false}, + {Name: "../schema/subcontrol.graphql", Input: `extend type Query { + """ + Look up subcontrol by ID + """ + subcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): Subcontrol! +} + +extend type Mutation{ + """ + Create a new subcontrol + """ + createSubcontrol( + """ + values of the subcontrol + """ + input: CreateSubcontrolInput! + ): SubcontrolCreatePayload! + """ + Create multiple new subcontrols + """ + createBulkSubcontrol( + """ + values of the subcontrol + """ + input: [CreateSubcontrolInput!] + ): SubcontrolBulkCreatePayload! + """ + Create multiple new subcontrols via file upload + """ + createBulkCSVSubcontrol( + """ + csv file containing values of the subcontrol + """ + input: Upload! + ): SubcontrolBulkCreatePayload! + """ + Update an existing subcontrol + """ + updateSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + """ + New values for the subcontrol + """ + input: UpdateSubcontrolInput! + ): SubcontrolUpdatePayload! + """ + Delete an existing subcontrol + """ + deleteSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): SubcontrolDeletePayload! +} + +""" +Return response for createSubcontrol mutation +""" +type SubcontrolCreatePayload { + """ + Created subcontrol + """ + subcontrol: Subcontrol! +} + +""" +Return response for updateSubcontrol mutation +""" +type SubcontrolUpdatePayload { + """ + Updated subcontrol + """ + subcontrol: Subcontrol! +} + +""" +Return response for deleteSubcontrol mutation +""" +type SubcontrolDeletePayload { + """ + Deleted subcontrol ID + """ + deletedID: ID! +} + +""" +Return response for createBulkSubcontrol mutation +""" +type SubcontrolBulkCreatePayload { + """ + Created subcontrols + """ + subcontrols: [Subcontrol!] +}`, BuiltIn: false}, + {Name: "../schema/subscriber.graphql", Input: `extend type Query { + """ + Look up subscriber by Email + """ + subscriber( + """ + Email of the subscriber + """ + email: String! + ): Subscriber! +} + +extend type Mutation{ + """ + Create a new subscriber + """ + createSubscriber( + """ + values of the subscriber + """ + input: CreateSubscriberInput! + ): SubscriberCreatePayload! + """ + Create new subscribers + """ + createBulkSubscriber( + """ + values of the subscriber + """ + input: [CreateSubscriberInput!] + ): SubscriberBulkCreatePayload! + """ + Create new subscribers via CSV file + """ + createBulkCSVSubscriber( + """ + values of the subscriber + """ + input: Upload! + ): SubscriberBulkCreatePayload! + """ + Update an existing subscriber + """ + updateSubscriber( + """ + Email of the subscriber + """ + email: String! + """ + New values for the subscriber + """ + input: UpdateSubscriberInput! + ): SubscriberUpdatePayload! + """ + Delete an existing subscriber by Email + """ + deleteSubscriber( + """ + Email of the subscriber + """ + email: String! + """ + OwnerID of the subscriber + """ + ownerID: ID + ): SubscriberDeletePayload! +} + +""" +Return response for createSubscriber mutation +""" +type SubscriberCreatePayload { + """ + Created subscriber + """ + subscriber: Subscriber! +} + +""" +Return response for updateSubscriber mutation +""" +type SubscriberUpdatePayload { + """ + Updated subscriber + """ + subscriber: Subscriber! +} + +""" +Return response for deleteSubscriber mutation +""" +type SubscriberDeletePayload { + """ + Deleted subscriber email + """ + email: String! +} + +""" +Return response for createBulkSubscriber mutation +""" +type SubscriberBulkCreatePayload { + """ + Created subscribers + """ + subscribers: [Subscriber!] +} + +`, BuiltIn: false}, + {Name: "../schema/task.graphql", Input: `extend type Query { + """ + Look up task by ID + """ + task( + """ + ID of the task + """ + id: ID! + ): Task! +} + +extend type Mutation{ + """ + Create a new task + """ + createTask( + """ + values of the task + """ + input: CreateTaskInput! + ): TaskCreatePayload! + """ + Create multiple new tasks + """ + createBulkTask( + """ + values of the task + """ + input: [CreateTaskInput!] + ): TaskBulkCreatePayload! + """ + Create multiple new tasks via file upload + """ + createBulkCSVTask( + """ + csv file containing values of the task + """ + input: Upload! + ): TaskBulkCreatePayload! + """ + Update an existing task + """ + updateTask( + """ + ID of the task + """ + id: ID! + """ + New values for the task + """ + input: UpdateTaskInput! + ): TaskUpdatePayload! + """ + Delete an existing task + """ + deleteTask( + """ + ID of the task + """ + id: ID! + ): TaskDeletePayload! +} + +""" +Return response for createTask mutation +""" +type TaskCreatePayload { + """ + Created task + """ + task: Task! +} + +""" +Return response for updateTask mutation +""" +type TaskUpdatePayload { + """ + Updated task + """ + task: Task! +} + +""" +Return response for deleteTask mutation +""" +type TaskDeletePayload { + """ + Deleted task ID + """ + deletedID: ID! +} + +""" +Return response for createBulkTask mutation +""" +type TaskBulkCreatePayload { + """ + Created tasks + """ + tasks: [Task!] +}`, BuiltIn: false}, + {Name: "../schema/template.graphql", Input: `extend type Query { + """ + Look up template by ID + """ + template( + """ + ID of the template + """ + id: ID! + ): Template! +} + +extend type Mutation{ + """ + Create a new template + """ + createTemplate( + """ + values of the template + """ + input: CreateTemplateInput! + ): TemplateCreatePayload! + """ + Create multiple new templates + """ + createBulkTemplate( + """ + values of the template + """ + input: [CreateTemplateInput!] + ): TemplateBulkCreatePayload! + """ + Create multiple new templates via file upload + """ + createBulkCSVTemplate( + """ + csv file containing values of the template + """ + input: Upload! + ): TemplateBulkCreatePayload! + """ + Update an existing template + """ + updateTemplate( + """ + ID of the template + """ + id: ID! + """ + New values for the template + """ + input: UpdateTemplateInput! + ): TemplateUpdatePayload! + """ + Delete an existing template + """ + deleteTemplate( + """ + ID of the template + """ + id: ID! + ): TemplateDeletePayload! +} + +""" +Return response for createTemplate mutation +""" +type TemplateCreatePayload { + """ + Created template + """ + template: Template! +} + +""" +Return response for updateTemplate mutation +""" +type TemplateUpdatePayload { + """ + Updated template + """ + template: Template! +} + +""" +Return response for deleteTemplate mutation +""" +type TemplateDeletePayload { + """ + Deleted template ID + """ + deletedID: ID! +} + +""" +Return response for createBulkTemplate mutation +""" +type TemplateBulkCreatePayload { + """ + Created templates + """ + templates: [Template!] +}`, BuiltIn: false}, + {Name: "../schema/tfasetting.graphql", Input: `extend type Query { + """ + Look up tfaSetting for the current user + """ + tfaSetting( + """ + ID of the tfaSetting + """ + id: ID + ): TFASetting! +} + +extend type Mutation{ + """ + Create a new tfaSetting + """ + createTFASetting( + """ + values of the tfaSetting + """ + input: CreateTFASettingInput! + ): TFASettingCreatePayload! + """ + Update an existing tfaSetting + """ + updateTFASetting( + """ + New values for the tfaSetting + """ + input: UpdateTFASettingInput! + ): TFASettingUpdatePayload! +} + +""" +Return response for createTFASetting mutation +""" +type TFASettingCreatePayload { + """ + Created tfaSetting + """ + tfaSetting: TFASetting! +} + +""" +Return response for updateTFASetting mutation +""" +type TFASettingUpdatePayload { + """ + Updated tfaSetting + """ + tfaSetting: TFASetting! +} + +extend input UpdateTFASettingInput { + """ + Whether to regenerate backup codes + """ + regenBackupCodes: Boolean +}`, BuiltIn: false}, + {Name: "../schema/user.graphql", Input: `extend type Query { + """ + Look up user by ID + """ + user( + """ + ID of the user + """ + id: ID! + ): User! +} + +extend type Mutation{ + """ + Create a new user + """ + createUser( + """ + values of the user + """ + input: CreateUserInput! + avatarFile: Upload + ): UserCreatePayload! + """ + Update an existing user + """ + updateUser( + """ + ID of the user + """ + id: ID! + """ + New values for the user + """ + input: UpdateUserInput! + avatarFile: Upload + ): UserUpdatePayload! + """ + Delete an existing user + """ + deleteUser( + """ + ID of the user + """ + id: ID! + ): UserDeletePayload! +} + +""" +Return response for createUser mutation +""" +type UserCreatePayload { + """ + Created user + """ + user: User! +} + +""" +Return response for updateUser mutation +""" +type UserUpdatePayload { + """ + Updated user + """ + user: User! +} + +""" +Return response for deleteUser mutation +""" +type UserDeletePayload { + """ + Deleted user ID + """ + deletedID: ID! +} + +""" +Return response for createBulkUser mutation +""" +type UserBulkCreatePayload { + """ + Created users + """ + users: [User!] +}`, BuiltIn: false}, + {Name: "../schema/usersetting.graphql", Input: `extend type Query { + """ + Look up userSetting by ID + """ + userSetting( + """ + ID of the userSetting + """ + id: ID! + ): UserSetting! +} + +extend type Mutation{ + """ + Create a new userSetting + """ + createUserSetting( + """ + values of the userSetting + """ + input: CreateUserSettingInput! + ): UserSettingCreatePayload! + """ + Create multiple new userSettings + """ + createBulkUserSetting( + """ + values of the userSetting + """ + input: [CreateUserSettingInput!] + ): UserSettingBulkCreatePayload! + """ + Create multiple new userSettings via file upload + """ + createBulkCSVUserSetting( + """ + csv file containing values of the userSetting + """ + input: Upload! + ): UserSettingBulkCreatePayload! + """ + Update an existing userSetting + """ + updateUserSetting( + """ + ID of the userSetting + """ + id: ID! + """ + New values for the userSetting + """ + input: UpdateUserSettingInput! + ): UserSettingUpdatePayload! +} + +""" +Return response for createUserSetting mutation +""" +type UserSettingCreatePayload { + """ + Created userSetting + """ + userSetting: UserSetting! +} + +""" +Return response for updateUserSetting mutation +""" +type UserSettingUpdatePayload { + """ + Updated userSetting + """ + userSetting: UserSetting! +} + +""" +Return response for createBulkUserSetting mutation +""" +type UserSettingBulkCreatePayload { + """ + Created userSettings + """ + userSettings: [UserSetting!] +}`, BuiltIn: false}, +} +var parsedSchema = gqlparser.MustLoadSchema(sources...) diff --git a/internal/graphapi/generated/scalars.generated.go b/internal/graphapi/generated/scalars.generated.go new file mode 100644 index 00000000..1821a264 --- /dev/null +++ b/internal/graphapi/generated/scalars.generated.go @@ -0,0 +1,73 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + + "github.com/99designs/gqlgen/graphql" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) unmarshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (graphql.Upload, error) { + res, err := graphql.UnmarshalUpload(v) + return res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalNUpload2githubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v graphql.Upload) graphql.Marshaler { + res := graphql.MarshalUpload(v) + if res == graphql.Null { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + } + return res +} + +func (ec *executionContext) unmarshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, v interface{}) (*graphql.Upload, error) { + if v == nil { + return nil, nil + } + res, err := graphql.UnmarshalUpload(v) + return &res, graphql.ErrorOnPath(ctx, err) +} + +func (ec *executionContext) marshalOUpload2ᚖgithubᚗcomᚋ99designsᚋgqlgenᚋgraphqlᚐUpload(ctx context.Context, sel ast.SelectionSet, v *graphql.Upload) graphql.Marshaler { + if v == nil { + return graphql.Null + } + res := graphql.MarshalUpload(*v) + return res +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/schema.graphql b/internal/graphapi/generated/schema.graphql new file mode 100644 index 00000000..95cda93e --- /dev/null +++ b/internal/graphapi/generated/schema.graphql @@ -0,0 +1,31967 @@ +directive @goField(forceResolver: Boolean, name: String, omittable: Boolean) on FIELD_DEFINITION | INPUT_FIELD_DEFINITION +directive @goModel(model: String, models: [String!], forceGenerate: Boolean) on OBJECT | INPUT_OBJECT | SCALAR | ENUM | INTERFACE | UNION +type APIToken implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name associated with the token + """ + name: String! + token: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + owner: Organization +} +""" +Return response for createBulkAPIToken mutation +""" +type APITokenBulkCreatePayload { + """ + Created apiTokens + """ + apiTokens: [APIToken!] +} +""" +A connection to a list of items. +""" +type APITokenConnection { + """ + A list of edges. + """ + edges: [APITokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createAPIToken mutation +""" +type APITokenCreatePayload { + """ + Created apiToken + """ + apiToken: APIToken! +} +""" +Return response for deleteAPIToken mutation +""" +type APITokenDeletePayload { + """ + Deleted apiToken ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type APITokenEdge { + """ + The item at the end of the edge. + """ + node: APIToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type APITokenSearchResult { + apiTokens: [APIToken!] +} +""" +Return response for updateAPIToken mutation +""" +type APITokenUpdatePayload { + """ + Updated apiToken + """ + apiToken: APIToken! +} +""" +APITokenWhereInput is used for filtering APIToken objects. +Input was generated by ent. +""" +input APITokenWhereInput { + not: APITokenWhereInput + and: [APITokenWhereInput!] + or: [APITokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + last_used_at field predicates + """ + lastUsedAt: Time + lastUsedAtNEQ: Time + lastUsedAtIn: [Time!] + lastUsedAtNotIn: [Time!] + lastUsedAtGT: Time + lastUsedAtGTE: Time + lastUsedAtLT: Time + lastUsedAtLTE: Time + lastUsedAtIsNil: Boolean + lastUsedAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] +} +type ActionPlan implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the action plan + """ + name: String! + """ + description of the action plan + """ + description: String + """ + status of the action plan + """ + status: String + """ + due date of the action plan + """ + dueDate: Time + """ + priority of the action plan + """ + priority: String + """ + source of the action plan + """ + source: String + """ + json data including details of the action plan + """ + details: Map + standard: [Standard!] + risk: [Risk!] + control: [Control!] + user: [User!] + program: [Program!] +} +""" +Return response for createBulkActionPlan mutation +""" +type ActionPlanBulkCreatePayload { + """ + Created actionPlans + """ + actionPlans: [ActionPlan!] +} +""" +A connection to a list of items. +""" +type ActionPlanConnection { + """ + A list of edges. + """ + edges: [ActionPlanEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createActionPlan mutation +""" +type ActionPlanCreatePayload { + """ + Created actionPlan + """ + actionPlan: ActionPlan! +} +""" +Return response for deleteActionPlan mutation +""" +type ActionPlanDeletePayload { + """ + Deleted actionPlan ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ActionPlanEdge { + """ + The item at the end of the edge. + """ + node: ActionPlan + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ActionPlanHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ActionPlanHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the action plan + """ + name: String! + """ + description of the action plan + """ + description: String + """ + status of the action plan + """ + status: String + """ + due date of the action plan + """ + dueDate: Time + """ + priority of the action plan + """ + priority: String + """ + source of the action plan + """ + source: String + """ + json data including details of the action plan + """ + details: Map +} +""" +A connection to a list of items. +""" +type ActionPlanHistoryConnection { + """ + A list of edges. + """ + edges: [ActionPlanHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ActionPlanHistoryEdge { + """ + The item at the end of the edge. + """ + node: ActionPlanHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ActionPlanHistoryOpType is enum for the field operation +""" +enum ActionPlanHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ActionPlanHistoryWhereInput is used for filtering ActionPlanHistory objects. +Input was generated by ent. +""" +input ActionPlanHistoryWhereInput { + not: ActionPlanHistoryWhereInput + and: [ActionPlanHistoryWhereInput!] + or: [ActionPlanHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ActionPlanHistoryOpType + operationNEQ: ActionPlanHistoryOpType + operationIn: [ActionPlanHistoryOpType!] + operationNotIn: [ActionPlanHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String +} +type ActionPlanSearchResult { + actionPlans: [ActionPlan!] +} +""" +Return response for updateActionPlan mutation +""" +type ActionPlanUpdatePayload { + """ + Updated actionPlan + """ + actionPlan: ActionPlan! +} +""" +ActionPlanWhereInput is used for filtering ActionPlan objects. +Input was generated by ent. +""" +input ActionPlanWhereInput { + not: ActionPlanWhereInput + and: [ActionPlanWhereInput!] + or: [ActionPlanWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + due_date field predicates + """ + dueDate: Time + dueDateNEQ: Time + dueDateIn: [Time!] + dueDateNotIn: [Time!] + dueDateGT: Time + dueDateGTE: Time + dueDateLT: Time + dueDateLTE: Time + dueDateIsNil: Boolean + dueDateNotNil: Boolean + """ + priority field predicates + """ + priority: String + priorityNEQ: String + priorityIn: [String!] + priorityNotIn: [String!] + priorityGT: String + priorityGTE: String + priorityLT: String + priorityLTE: String + priorityContains: String + priorityHasPrefix: String + priorityHasSuffix: String + priorityIsNil: Boolean + priorityNotNil: Boolean + priorityEqualFold: String + priorityContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + risk edge predicates + """ + hasRisk: Boolean + hasRiskWith: [RiskWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +type AuditLog implements Node { + table: String + time: Time + id: ID! + operation: String + changes: [String!] + updatedBy: ID +} +""" +A connection to a list of items. +""" +type AuditLogConnection { + """ + A list of edges. + """ + edges: [AuditLogEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type AuditLogEdge { + """ + The item at the end of the edge. + """ + node: AuditLog + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +input AuditLogWhereInput { + refID: ID + updatedBy: ID + operation: String + table: ID + before: Time + after: Time +} +type Contact implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactUserStatus! + owner: Organization + entities: [Entity!] + files: [File!] +} +""" +Return response for createBulkContact mutation +""" +type ContactBulkCreatePayload { + """ + Created contacts + """ + contacts: [Contact!] +} +""" +A connection to a list of items. +""" +type ContactConnection { + """ + A list of edges. + """ + edges: [ContactEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createContact mutation +""" +type ContactCreatePayload { + """ + Created contact + """ + contact: Contact! +} +""" +Return response for deleteContact mutation +""" +type ContactDeletePayload { + """ + Deleted contact ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ContactEdge { + """ + The item at the end of the edge. + """ + node: Contact + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ContactHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ContactHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactHistoryUserStatus! +} +""" +A connection to a list of items. +""" +type ContactHistoryConnection { + """ + A list of edges. + """ + edges: [ContactHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ContactHistoryEdge { + """ + The item at the end of the edge. + """ + node: ContactHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ContactHistoryOpType is enum for the field operation +""" +enum ContactHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ContactHistoryUserStatus is enum for the field status +""" +enum ContactHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +ContactHistoryWhereInput is used for filtering ContactHistory objects. +Input was generated by ent. +""" +input ContactHistoryWhereInput { + not: ContactHistoryWhereInput + and: [ContactHistoryWhereInput!] + or: [ContactHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ContactHistoryOpType + operationNEQ: ContactHistoryOpType + operationIn: [ContactHistoryOpType!] + operationNotIn: [ContactHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String + """ + company field predicates + """ + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String + """ + phone_number field predicates + """ + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String + """ + address field predicates + """ + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String + """ + status field predicates + """ + status: ContactHistoryUserStatus + statusNEQ: ContactHistoryUserStatus + statusIn: [ContactHistoryUserStatus!] + statusNotIn: [ContactHistoryUserStatus!] +} +type ContactSearchResult { + contacts: [Contact!] +} +""" +Return response for updateContact mutation +""" +type ContactUpdatePayload { + """ + Updated contact + """ + contact: Contact! +} +""" +ContactUserStatus is enum for the field status +""" +enum ContactUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +ContactWhereInput is used for filtering Contact objects. +Input was generated by ent. +""" +input ContactWhereInput { + not: ContactWhereInput + and: [ContactWhereInput!] + or: [ContactWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + full_name field predicates + """ + fullName: String + fullNameNEQ: String + fullNameIn: [String!] + fullNameNotIn: [String!] + fullNameGT: String + fullNameGTE: String + fullNameLT: String + fullNameLTE: String + fullNameContains: String + fullNameHasPrefix: String + fullNameHasSuffix: String + fullNameEqualFold: String + fullNameContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleIsNil: Boolean + titleNotNil: Boolean + titleEqualFold: String + titleContainsFold: String + """ + company field predicates + """ + company: String + companyNEQ: String + companyIn: [String!] + companyNotIn: [String!] + companyGT: String + companyGTE: String + companyLT: String + companyLTE: String + companyContains: String + companyHasPrefix: String + companyHasSuffix: String + companyIsNil: Boolean + companyNotNil: Boolean + companyEqualFold: String + companyContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailIsNil: Boolean + emailNotNil: Boolean + emailEqualFold: String + emailContainsFold: String + """ + phone_number field predicates + """ + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String + """ + address field predicates + """ + address: String + addressNEQ: String + addressIn: [String!] + addressNotIn: [String!] + addressGT: String + addressGTE: String + addressLT: String + addressLTE: String + addressContains: String + addressHasPrefix: String + addressHasSuffix: String + addressIsNil: Boolean + addressNotNil: Boolean + addressEqualFold: String + addressContainsFold: String + """ + status field predicates + """ + status: ContactUserStatus + statusNEQ: ContactUserStatus + statusIn: [ContactUserStatus!] + statusNotIn: [ContactUserStatus!] + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +type Control implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the control + """ + name: String! + """ + description of the control + """ + description: String + """ + status of the control + """ + status: String + """ + type of the control + """ + controlType: String + """ + version of the control + """ + version: String + """ + control number or identifier + """ + controlNumber: String + """ + family associated with the control + """ + family: String + """ + class associated with the control + """ + class: String + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + procedures: [Procedure!] + subcontrols: [Subcontrol!] + controlObjectives: [ControlObjective!] + standard: [Standard!] + narratives: [Narrative!] + risks: [Risk!] + actionPlans: [ActionPlan!] + tasks: [Task!] + programs: [Program!] +} +""" +Return response for createBulkControl mutation +""" +type ControlBulkCreatePayload { + """ + Created controls + """ + controls: [Control!] +} +""" +A connection to a list of items. +""" +type ControlConnection { + """ + A list of edges. + """ + edges: [ControlEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createControl mutation +""" +type ControlCreatePayload { + """ + Created control + """ + control: Control! +} +""" +Return response for deleteControl mutation +""" +type ControlDeletePayload { + """ + Deleted control ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ControlEdge { + """ + The item at the end of the edge. + """ + node: Control + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ControlHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the control + """ + name: String! + """ + description of the control + """ + description: String + """ + status of the control + """ + status: String + """ + type of the control + """ + controlType: String + """ + version of the control + """ + version: String + """ + control number or identifier + """ + controlNumber: String + """ + family associated with the control + """ + family: String + """ + class associated with the control + """ + class: String + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map +} +""" +A connection to a list of items. +""" +type ControlHistoryConnection { + """ + A list of edges. + """ + edges: [ControlHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlHistoryEdge { + """ + The item at the end of the edge. + """ + node: ControlHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ControlHistoryOpType is enum for the field operation +""" +enum ControlHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ControlHistoryWhereInput is used for filtering ControlHistory objects. +Input was generated by ent. +""" +input ControlHistoryWhereInput { + not: ControlHistoryWhereInput + and: [ControlHistoryWhereInput!] + or: [ControlHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ControlHistoryOpType + operationNEQ: ControlHistoryOpType + operationIn: [ControlHistoryOpType!] + operationNotIn: [ControlHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +type ControlObjective implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the control objective + """ + name: String! + """ + description of the control objective + """ + description: String + """ + status of the control objective + """ + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + internalPolicies: [InternalPolicy!] + controls: [Control!] + procedures: [Procedure!] + risks: [Risk!] + subcontrols: [Subcontrol!] + standard: [Standard!] + narratives: [Narrative!] + tasks: [Task!] + programs: [Program!] +} +""" +Return response for createBulkControlObjective mutation +""" +type ControlObjectiveBulkCreatePayload { + """ + Created controlObjectives + """ + controlObjectives: [ControlObjective!] +} +""" +A connection to a list of items. +""" +type ControlObjectiveConnection { + """ + A list of edges. + """ + edges: [ControlObjectiveEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createControlObjective mutation +""" +type ControlObjectiveCreatePayload { + """ + Created controlObjective + """ + controlObjective: ControlObjective! +} +""" +Return response for deleteControlObjective mutation +""" +type ControlObjectiveDeletePayload { + """ + Deleted controlObjective ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ControlObjectiveEdge { + """ + The item at the end of the edge. + """ + node: ControlObjective + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ControlObjectiveHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ControlObjectiveHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the control objective + """ + name: String! + """ + description of the control objective + """ + description: String + """ + status of the control objective + """ + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map +} +""" +A connection to a list of items. +""" +type ControlObjectiveHistoryConnection { + """ + A list of edges. + """ + edges: [ControlObjectiveHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ControlObjectiveHistoryEdge { + """ + The item at the end of the edge. + """ + node: ControlObjectiveHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ControlObjectiveHistoryOpType is enum for the field operation +""" +enum ControlObjectiveHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ControlObjectiveHistoryWhereInput is used for filtering ControlObjectiveHistory objects. +Input was generated by ent. +""" +input ControlObjectiveHistoryWhereInput { + not: ControlObjectiveHistoryWhereInput + and: [ControlObjectiveHistoryWhereInput!] + or: [ControlObjectiveHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ControlObjectiveHistoryOpType + operationNEQ: ControlObjectiveHistoryOpType + operationIn: [ControlObjectiveHistoryOpType!] + operationNotIn: [ControlObjectiveHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String +} +type ControlObjectiveSearchResult { + controlObjectives: [ControlObjective!] +} +""" +Return response for updateControlObjective mutation +""" +type ControlObjectiveUpdatePayload { + """ + Updated controlObjective + """ + controlObjective: ControlObjective! +} +""" +ControlObjectiveWhereInput is used for filtering ControlObjective objects. +Input was generated by ent. +""" +input ControlObjectiveWhereInput { + not: ControlObjectiveWhereInput + and: [ControlObjectiveWhereInput!] + or: [ControlObjectiveWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_objective_type field predicates + """ + controlObjectiveType: String + controlObjectiveTypeNEQ: String + controlObjectiveTypeIn: [String!] + controlObjectiveTypeNotIn: [String!] + controlObjectiveTypeGT: String + controlObjectiveTypeGTE: String + controlObjectiveTypeLT: String + controlObjectiveTypeLTE: String + controlObjectiveTypeContains: String + controlObjectiveTypeHasPrefix: String + controlObjectiveTypeHasSuffix: String + controlObjectiveTypeIsNil: Boolean + controlObjectiveTypeNotNil: Boolean + controlObjectiveTypeEqualFold: String + controlObjectiveTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type ControlSearchResult { + controls: [Control!] +} +""" +Return response for updateControl mutation +""" +type ControlUpdatePayload { + """ + Updated control + """ + control: Control! +} +""" +ControlWhereInput is used for filtering Control objects. +Input was generated by ent. +""" +input ControlWhereInput { + not: ControlWhereInput + and: [ControlWhereInput!] + or: [ControlWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + control_type field predicates + """ + controlType: String + controlTypeNEQ: String + controlTypeIn: [String!] + controlTypeNotIn: [String!] + controlTypeGT: String + controlTypeGTE: String + controlTypeLT: String + controlTypeLTE: String + controlTypeContains: String + controlTypeHasPrefix: String + controlTypeHasSuffix: String + controlTypeIsNil: Boolean + controlTypeNotNil: Boolean + controlTypeEqualFold: String + controlTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + control_number field predicates + """ + controlNumber: String + controlNumberNEQ: String + controlNumberIn: [String!] + controlNumberNotIn: [String!] + controlNumberGT: String + controlNumberGTE: String + controlNumberLT: String + controlNumberLTE: String + controlNumberContains: String + controlNumberHasPrefix: String + controlNumberHasSuffix: String + controlNumberIsNil: Boolean + controlNumberNotNil: Boolean + controlNumberEqualFold: String + controlNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + standard edge predicates + """ + hasStandard: Boolean + hasStandardWith: [StandardWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +""" +CreateAPITokenInput is used for create APIToken object. +Input was generated by ent. +""" +input CreateAPITokenInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID +} +""" +CreateActionPlanInput is used for create ActionPlan object. +Input was generated by ent. +""" +input CreateActionPlanInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the action plan + """ + name: String! + """ + description of the action plan + """ + description: String + """ + status of the action plan + """ + status: String + """ + due date of the action plan + """ + dueDate: Time + """ + priority of the action plan + """ + priority: String + """ + source of the action plan + """ + source: String + """ + json data including details of the action plan + """ + details: Map + standardIDs: [ID!] + riskIDs: [ID!] + controlIDs: [ID!] + userIDs: [ID!] + programIDs: [ID!] +} +""" +CreateContactInput is used for create Contact object. +Input was generated by ent. +""" +input CreateContactInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the full name of the contact + """ + fullName: String! + """ + the title of the contact + """ + title: String + """ + the company of the contact + """ + company: String + """ + the email of the contact + """ + email: String + """ + the phone number of the contact + """ + phoneNumber: String + """ + the address of the contact + """ + address: String + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + entityIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateControlInput is used for create Control object. +Input was generated by ent. +""" +input CreateControlInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the control + """ + name: String! + """ + description of the control + """ + description: String + """ + status of the control + """ + status: String + """ + type of the control + """ + controlType: String + """ + version of the control + """ + version: String + """ + control number or identifier + """ + controlNumber: String + """ + family associated with the control + """ + family: String + """ + class associated with the control + """ + class: String + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + """ + which control objectives are satisfied by the control + """ + satisfies: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + procedureIDs: [ID!] + subcontrolIDs: [ID!] + controlObjectiveIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] + actionPlanIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateControlObjectiveInput is used for create ControlObjective object. +Input was generated by ent. +""" +input CreateControlObjectiveInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the control objective + """ + name: String! + """ + description of the control objective + """ + description: String + """ + status of the control objective + """ + status: String + """ + type of the control objective + """ + controlObjectiveType: String + """ + version of the control objective + """ + version: String + """ + number of the control objective + """ + controlNumber: String + """ + family of the control objective + """ + family: String + """ + class associated with the control objective + """ + class: String + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks + """ + mappedFrameworks: String + """ + json data including details of the control objective + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + internalPolicyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + riskIDs: [ID!] + subcontrolIDs: [ID!] + standardIDs: [ID!] + narrativeIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +input CreateControlWithSubcontrolsInput { + control: CreateControlInput + subcontrols: [CreateSubcontrolInput!] +} +""" +CreateDocumentDataInput is used for create DocumentData object. +Input was generated by ent. +""" +input CreateDocumentDataInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the json data of the document + """ + data: JSON! + ownerID: ID + templateID: ID! + entityIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateEntityInput is used for create Entity object. +Input was generated by ent. +""" +input CreateEntityInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + status of the entity + """ + status: String + ownerID: ID + contactIDs: [ID!] + documentIDs: [ID!] + noteIDs: [ID!] + fileIDs: [ID!] + entityTypeID: ID + note: CreateNoteInput +} +""" +CreateEntityTypeInput is used for create EntityType object. +Input was generated by ent. +""" +input CreateEntityTypeInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the entity + """ + name: String! + ownerID: ID + entityIDs: [ID!] +} +""" +CreateEventInput is used for create Event object. +Input was generated by ent. +""" +input CreateEventInput { + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + userIDs: [ID!] + groupIDs: [ID!] + integrationIDs: [ID!] + organizationIDs: [ID!] + inviteIDs: [ID!] + personalAccessTokenIDs: [ID!] + hushIDs: [ID!] + subscriberIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateFileInput is used for create File object. +Input was generated by ent. +""" +input CreateFileInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String! + """ + the extension of the file provided + """ + providedFileExtension: String! + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + userIDs: [ID!] + organizationIDs: [ID!] + groupIDs: [ID!] + contactIDs: [ID!] + entityIDs: [ID!] + userSettingIDs: [ID!] + organizationSettingIDs: [ID!] + templateIDs: [ID!] + documentDatumIDs: [ID!] + eventIDs: [ID!] + programIDs: [ID!] +} +input CreateFullProgramInput { + program: CreateProgramInput! + standard: CreateStandardInput! + controls: [CreateControlWithSubcontrolsInput!] + risks: [CreateRiskInput!] + internalPolicies: [CreateInternalPolicyInput!] + procedures: [CreateProcedureInput!] + members: [CreateMemberWithProgramInput!] +} +""" +CreateGroupInput is used for create Group object. +Input was generated by ent. +""" +input CreateGroupInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String + ownerID: ID + controlCreatorIDs: [ID!] + controlObjectiveCreatorIDs: [ID!] + groupCreatorIDs: [ID!] + internalPolicyCreatorIDs: [ID!] + narrativeCreatorIDs: [ID!] + procedureCreatorIDs: [ID!] + programCreatorIDs: [ID!] + riskCreatorIDs: [ID!] + templateCreatorIDs: [ID!] + procedureEditorIDs: [ID!] + procedureBlockedGroupIDs: [ID!] + internalPolicyEditorIDs: [ID!] + internalPolicyBlockedGroupIDs: [ID!] + programEditorIDs: [ID!] + programBlockedGroupIDs: [ID!] + programViewerIDs: [ID!] + riskEditorIDs: [ID!] + riskBlockedGroupIDs: [ID!] + riskViewerIDs: [ID!] + controlObjectiveEditorIDs: [ID!] + controlObjectiveBlockedGroupIDs: [ID!] + controlObjectiveViewerIDs: [ID!] + controlEditorIDs: [ID!] + controlBlockedGroupIDs: [ID!] + controlViewerIDs: [ID!] + narrativeEditorIDs: [ID!] + narrativeBlockedGroupIDs: [ID!] + narrativeViewerIDs: [ID!] + settingID: ID! + userIDs: [ID!] + eventIDs: [ID!] + integrationIDs: [ID!] + fileIDs: [ID!] + taskIDs: [ID!] + createGroupSettings: CreateGroupSettingInput +} +""" +CreateGroupMembershipInput is used for create GroupMembership object. +Input was generated by ent. +""" +input CreateGroupMembershipInput { + role: GroupMembershipRole + groupID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateGroupSettingInput is used for create GroupSetting object. +Input was generated by ent. +""" +input CreateGroupSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + groupID: ID +} +""" +CreateHushInput is used for create Hush object. +Input was generated by ent. +""" +input CreateHushInput { + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String! + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String + """ + the secret value + """ + secretValue: String + integrationIDs: [ID!] + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateIntegrationInput is used for create Integration object. +Input was generated by ent. +""" +input CreateIntegrationInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String + ownerID: ID + secretIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateInternalPolicyInput is used for create InternalPolicy object. +Input was generated by ent. +""" +input CreateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + controlObjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + narrativeIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateInviteInput is used for create Invite object. +Input was generated by ent. +""" +input CreateInviteInput { + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus + role: InviteRole + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int + """ + the user who initiated the invitation + """ + requestorID: String + ownerID: ID + eventIDs: [ID!] +} +input CreateMemberWithProgramInput { + role: ProgramMembershipRole + userID: ID! +} +""" +CreateNarrativeInput is used for create Narrative object. +Input was generated by ent. +""" +input CreateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + internalPolicyIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + controlObjectiveIDs: [ID!] + programIDs: [ID!] +} +""" +CreateNoteInput is used for create Note object. +Input was generated by ent. +""" +input CreateNoteInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the text of the note + """ + text: String! + ownerID: ID + entityID: ID + subcontrolIDs: [ID!] + programIDs: [ID!] +} +""" +CreateOrgMembershipInput is used for create OrgMembership object. +Input was generated by ent. +""" +input CreateOrgMembershipInput { + role: OrgMembershipRole + organizationID: ID! + userID: ID! + eventIDs: [ID!] +} +""" +CreateOrgSubscriptionInput is used for create OrgSubscription object. +Input was generated by ent. +""" +input CreateOrgSubscriptionInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the stripe subscription id + """ + stripeSubscriptionID: String + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + """ + indicates if the subscription is active + """ + active: Boolean + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + """ + the features associated with the subscription + """ + features: [String!] + ownerID: ID +} +""" +CreateOrganizationInput is used for create Organization object. +Input was generated by ent. +""" +input CreateOrganizationInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean + controlCreatorIDs: [ID!] + controlObjectiveCreatorIDs: [ID!] + groupCreatorIDs: [ID!] + internalPolicyCreatorIDs: [ID!] + narrativeCreatorIDs: [ID!] + procedureCreatorIDs: [ID!] + programCreatorIDs: [ID!] + riskCreatorIDs: [ID!] + templateCreatorIDs: [ID!] + parentID: ID + groupIDs: [ID!] + templateIDs: [ID!] + integrationIDs: [ID!] + settingID: ID + documentDatumIDs: [ID!] + orgSubscriptionIDs: [ID!] + personalAccessTokenIDs: [ID!] + apiTokenIDs: [ID!] + userIDs: [ID!] + inviteIDs: [ID!] + subscriberIDs: [ID!] + eventIDs: [ID!] + secretIDs: [ID!] + fileIDs: [ID!] + entityIDs: [ID!] + entityTypeIDs: [ID!] + contactIDs: [ID!] + noteIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] + procedureIDs: [ID!] + internalPolicyIDs: [ID!] + riskIDs: [ID!] + controlObjectiveIDs: [ID!] + narrativeIDs: [ID!] + controlIDs: [ID!] + subcontrolIDs: [ID!] + createOrgSettings: CreateOrganizationSettingInput +} +""" +CreateOrganizationSettingInput is used for create OrganizationSetting object. +Input was generated by ent. +""" +input CreateOrganizationSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String + organizationID: ID + fileIDs: [ID!] +} +""" +CreatePersonalAccessTokenInput is used for create PersonalAccessToken object. +Input was generated by ent. +""" +input CreatePersonalAccessTokenInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + ownerID: ID! + organizationIDs: [ID!] + eventIDs: [ID!] +} +""" +CreateProcedureInput is used for create Procedure object. +Input was generated by ent. +""" +input CreateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + controlIDs: [ID!] + internalPolicyIDs: [ID!] + narrativeIDs: [ID!] + riskIDs: [ID!] + taskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateProgramInput is used for create Program object. +Input was generated by ent. +""" +input CreateProgramInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the program + """ + name: String! + """ + the description of the program + """ + description: String + """ + the status of the program + """ + status: ProgramProgramStatus + """ + the start date of the period + """ + startDate: Time + """ + the end date of the period + """ + endDate: Time + """ + is the program ready for the auditor + """ + auditorReady: Boolean + """ + can the auditor write comments + """ + auditorWriteComments: Boolean + """ + can the auditor read comments + """ + auditorReadComments: Boolean + ownerID: ID + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + controlIDs: [ID!] + subcontrolIDs: [ID!] + controlObjectiveIDs: [ID!] + internalPolicyIDs: [ID!] + procedureIDs: [ID!] + riskIDs: [ID!] + taskIDs: [ID!] + noteIDs: [ID!] + fileIDs: [ID!] + narrativeIDs: [ID!] + actionPlanIDs: [ID!] + standardIDs: [ID!] + userIDs: [ID!] +} +""" +CreateProgramMembershipInput is used for create ProgramMembership object. +Input was generated by ent. +""" +input CreateProgramMembershipInput { + role: ProgramMembershipRole + programID: ID! + userID: ID! +} +input CreateProgramWithMembersInput { + program: CreateProgramInput! + members: [CreateMemberWithProgramInput!] +} +""" +CreateRiskInput is used for create Risk object. +Input was generated by ent. +""" +input CreateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + ownerID: ID! + blockedGroupIDs: [ID!] + editorIDs: [ID!] + viewerIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + actionPlanIDs: [ID!] + programIDs: [ID!] +} +""" +CreateStandardInput is used for create Standard object. +Input was generated by ent. +""" +input CreateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlObjectiveIDs: [ID!] + controlIDs: [ID!] + procedureIDs: [ID!] + actionPlanIDs: [ID!] + programIDs: [ID!] +} +""" +CreateSubcontrolInput is used for create Subcontrol object. +Input was generated by ent. +""" +input CreateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + ownerID: ID! + controlIDs: [ID!]! + userIDs: [ID!] + taskIDs: [ID!] + notesID: ID + programIDs: [ID!] +} +""" +CreateSubscriberInput is used for create Subscriber object. +Input was generated by ent. +""" +input CreateSubscriberInput { + """ + tags associated with the object + """ + tags: [String!] + """ + email address of the subscriber + """ + email: String! + """ + phone number of the subscriber + """ + phoneNumber: String + ownerID: ID + eventIDs: [ID!] +} +""" +CreateTFASettingInput is used for create TFASetting object. +Input was generated by ent. +""" +input CreateTFASettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + ownerID: ID +} +""" +CreateTaskInput is used for create Task object. +Input was generated by ent. +""" +input CreateTaskInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the title of the task + """ + title: String! + """ + the description of the task + """ + description: String + """ + the details of the task + """ + details: Map + """ + the status of the task + """ + status: TaskTaskStatus + """ + the due date of the task + """ + due: Time + """ + the completion date of the task + """ + completed: Time + assignerID: ID! + assigneeID: ID + organizationIDs: [ID!] + groupIDs: [ID!] + internalPolicyIDs: [ID!] + procedureIDs: [ID!] + controlIDs: [ID!] + controlObjectiveIDs: [ID!] + subcontrolIDs: [ID!] + programIDs: [ID!] +} +""" +CreateTemplateInput is used for create Template object. +Input was generated by ent. +""" +input CreateTemplateInput { + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON + ownerID: ID + documentIDs: [ID!] + fileIDs: [ID!] +} +""" +CreateUserInput is used for create User object. +Input was generated by ent. +""" +input CreateUserInput { + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + user password hash + """ + password: String + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider + """ + the user's role + """ + role: UserRole + personalAccessTokenIDs: [ID!] + tfaSettingIDs: [ID!] + settingID: ID! + emailVerificationTokenIDs: [ID!] + passwordResetTokenIDs: [ID!] + groupIDs: [ID!] + organizationIDs: [ID!] + webauthnIDs: [ID!] + fileIDs: [ID!] + fileID: ID + eventIDs: [ID!] + actionPlanIDs: [ID!] + subcontrolIDs: [ID!] + assignerTaskIDs: [ID!] + assigneeTaskIDs: [ID!] + programIDs: [ID!] +} +""" +CreateUserSettingInput is used for create UserSetting object. +Input was generated by ent. +""" +input CreateUserSettingInput { + """ + tags associated with the object + """ + tags: [String!] + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingUserStatus + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + userID: ID + defaultOrgID: ID + fileIDs: [ID!] +} +""" +Define a Relay Cursor type: +https://relay.dev/graphql/connections.htm#sec-Cursor +""" +scalar Cursor +type DocumentData implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the template id of the document + """ + templateID: ID! + """ + the json data of the document + """ + data: JSON! + owner: Organization + template: Template! + entity: [Entity!] + files: [File!] +} +""" +Return response for createBulkDocumentData mutation +""" +type DocumentDataBulkCreatePayload { + """ + Created documentData + """ + documentData: [DocumentData!] +} +""" +A connection to a list of items. +""" +type DocumentDataConnection { + """ + A list of edges. + """ + edges: [DocumentDataEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createDocumentData mutation +""" +type DocumentDataCreatePayload { + """ + Created documentData + """ + documentData: DocumentData! +} +""" +Return response for deleteDocumentData mutation +""" +type DocumentDataDeletePayload { + """ + Deleted documentData ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type DocumentDataEdge { + """ + The item at the end of the edge. + """ + node: DocumentData + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type DocumentDataHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: DocumentDataHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the template id of the document + """ + templateID: String! + """ + the json data of the document + """ + data: JSON! +} +""" +A connection to a list of items. +""" +type DocumentDataHistoryConnection { + """ + A list of edges. + """ + edges: [DocumentDataHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type DocumentDataHistoryEdge { + """ + The item at the end of the edge. + """ + node: DocumentDataHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +DocumentDataHistoryOpType is enum for the field operation +""" +enum DocumentDataHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +DocumentDataHistoryWhereInput is used for filtering DocumentDataHistory objects. +Input was generated by ent. +""" +input DocumentDataHistoryWhereInput { + not: DocumentDataHistoryWhereInput + and: [DocumentDataHistoryWhereInput!] + or: [DocumentDataHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: DocumentDataHistoryOpType + operationNEQ: DocumentDataHistoryOpType + operationIn: [DocumentDataHistoryOpType!] + operationNotIn: [DocumentDataHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + template_id field predicates + """ + templateID: String + templateIDNEQ: String + templateIDIn: [String!] + templateIDNotIn: [String!] + templateIDGT: String + templateIDGTE: String + templateIDLT: String + templateIDLTE: String + templateIDContains: String + templateIDHasPrefix: String + templateIDHasSuffix: String + templateIDEqualFold: String + templateIDContainsFold: String +} +type DocumentDataSearchResult { + documentData: [DocumentData!] +} +""" +Return response for updateDocumentData mutation +""" +type DocumentDataUpdatePayload { + """ + Updated documentData + """ + documentData: DocumentData! +} +""" +DocumentDataWhereInput is used for filtering DocumentData objects. +Input was generated by ent. +""" +input DocumentDataWhereInput { + not: DocumentDataWhereInput + and: [DocumentDataWhereInput!] + or: [DocumentDataWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + template_id field predicates + """ + templateID: ID + templateIDNEQ: ID + templateIDIn: [ID!] + templateIDNotIn: [ID!] + templateIDGT: ID + templateIDGTE: ID + templateIDLT: ID + templateIDLTE: ID + templateIDContains: ID + templateIDHasPrefix: ID + templateIDHasSuffix: ID + templateIDEqualFold: ID + templateIDContainsFold: ID + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + template edge predicates + """ + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +type Entity implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: ID + """ + status of the entity + """ + status: String + owner: Organization + contacts: [Contact!] + documents: [DocumentData!] + notes: [Note!] + files: [File!] + entityType: EntityType +} +""" +Return response for createBulkEntity mutation +""" +type EntityBulkCreatePayload { + """ + Created entities + """ + entities: [Entity!] +} +""" +A connection to a list of items. +""" +type EntityConnection { + """ + A list of edges. + """ + edges: [EntityEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createEntity mutation +""" +type EntityCreatePayload { + """ + Created entity + """ + entity: Entity! +} +""" +Return response for deleteEntity mutation +""" +type EntityDeletePayload { + """ + Deleted entity ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type EntityEdge { + """ + The item at the end of the edge. + """ + node: Entity + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EntityHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntityHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the entity + """ + name: String + """ + The entity's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the entity + """ + description: String + """ + domains associated with the entity + """ + domains: [String!] + """ + The type of the entity + """ + entityTypeID: String + """ + status of the entity + """ + status: String +} +""" +A connection to a list of items. +""" +type EntityHistoryConnection { + """ + A list of edges. + """ + edges: [EntityHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntityHistoryEdge { + """ + The item at the end of the edge. + """ + node: EntityHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EntityHistoryOpType is enum for the field operation +""" +enum EntityHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for EntityHistory connections +""" +input EntityHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityHistories. + """ + field: EntityHistoryOrderField! +} +""" +Properties by which EntityHistory connections can be ordered. +""" +enum EntityHistoryOrderField { + name + display_name +} +""" +EntityHistoryWhereInput is used for filtering EntityHistory objects. +Input was generated by ent. +""" +input EntityHistoryWhereInput { + not: EntityHistoryWhereInput + and: [EntityHistoryWhereInput!] + or: [EntityHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EntityHistoryOpType + operationNEQ: EntityHistoryOpType + operationIn: [EntityHistoryOpType!] + operationNotIn: [EntityHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ + entity_type_id field predicates + """ + entityTypeID: String + entityTypeIDNEQ: String + entityTypeIDIn: [String!] + entityTypeIDNotIn: [String!] + entityTypeIDGT: String + entityTypeIDGTE: String + entityTypeIDLT: String + entityTypeIDLTE: String + entityTypeIDContains: String + entityTypeIDHasPrefix: String + entityTypeIDHasSuffix: String + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: String + entityTypeIDContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String +} +""" +Ordering options for Entity connections +""" +input EntityOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Entities. + """ + field: EntityOrderField! +} +""" +Properties by which Entity connections can be ordered. +""" +enum EntityOrderField { + name + display_name +} +type EntitySearchResult { + entities: [Entity!] +} +type EntityType implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the entity + """ + name: String! + owner: Organization + entities: [Entity!] +} +""" +Return response for createBulkEntityType mutation +""" +type EntityTypeBulkCreatePayload { + """ + Created entityTypes + """ + entityTypes: [EntityType!] +} +""" +A connection to a list of items. +""" +type EntityTypeConnection { + """ + A list of edges. + """ + edges: [EntityTypeEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createEntityType mutation +""" +type EntityTypeCreatePayload { + """ + Created entityType + """ + entityType: EntityType! +} +""" +Return response for deleteEntityType mutation +""" +type EntityTypeDeletePayload { + """ + Deleted entityType ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type EntityTypeEdge { + """ + The item at the end of the edge. + """ + node: EntityType + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EntityTypeHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EntityTypeHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the entity + """ + name: String! +} +""" +A connection to a list of items. +""" +type EntityTypeHistoryConnection { + """ + A list of edges. + """ + edges: [EntityTypeHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EntityTypeHistoryEdge { + """ + The item at the end of the edge. + """ + node: EntityTypeHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EntityTypeHistoryOpType is enum for the field operation +""" +enum EntityTypeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for EntityTypeHistory connections +""" +input EntityTypeHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypeHistories. + """ + field: EntityTypeHistoryOrderField! +} +""" +Properties by which EntityTypeHistory connections can be ordered. +""" +enum EntityTypeHistoryOrderField { + name +} +""" +EntityTypeHistoryWhereInput is used for filtering EntityTypeHistory objects. +Input was generated by ent. +""" +input EntityTypeHistoryWhereInput { + not: EntityTypeHistoryWhereInput + and: [EntityTypeHistoryWhereInput!] + or: [EntityTypeHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EntityTypeHistoryOpType + operationNEQ: EntityTypeHistoryOpType + operationIn: [EntityTypeHistoryOpType!] + operationNotIn: [EntityTypeHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String +} +""" +Ordering options for EntityType connections +""" +input EntityTypeOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order EntityTypes. + """ + field: EntityTypeOrderField! +} +""" +Properties by which EntityType connections can be ordered. +""" +enum EntityTypeOrderField { + name +} +type EntityTypeSearchResult { + entityTypes: [EntityType!] +} +""" +Return response for updateEntityType mutation +""" +type EntityTypeUpdatePayload { + """ + Updated entityType + """ + entityType: EntityType! +} +""" +EntityTypeWhereInput is used for filtering EntityType objects. +Input was generated by ent. +""" +input EntityTypeWhereInput { + not: EntityTypeWhereInput + and: [EntityTypeWhereInput!] + or: [EntityTypeWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] +} +""" +Return response for updateEntity mutation +""" +type EntityUpdatePayload { + """ + Updated entity + """ + entity: Entity! +} +""" +EntityWhereInput is used for filtering Entity objects. +Input was generated by ent. +""" +input EntityWhereInput { + not: EntityWhereInput + and: [EntityWhereInput!] + or: [EntityWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameIsNil: Boolean + nameNotNil: Boolean + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameIsNil: Boolean + displayNameNotNil: Boolean + displayNameEqualFold: String + displayNameContainsFold: String + """ + entity_type_id field predicates + """ + entityTypeID: ID + entityTypeIDNEQ: ID + entityTypeIDIn: [ID!] + entityTypeIDNotIn: [ID!] + entityTypeIDGT: ID + entityTypeIDGTE: ID + entityTypeIDLT: ID + entityTypeIDLTE: ID + entityTypeIDContains: ID + entityTypeIDHasPrefix: ID + entityTypeIDHasSuffix: ID + entityTypeIDIsNil: Boolean + entityTypeIDNotNil: Boolean + entityTypeIDEqualFold: ID + entityTypeIDContainsFold: ID + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + documents edge predicates + """ + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entity_type edge predicates + """ + hasEntityType: Boolean + hasEntityTypeWith: [EntityTypeWhereInput!] +} +type Event implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map + user: [User!] + group: [Group!] + integration: [Integration!] + organization: [Organization!] + invite: [Invite!] + personalAccessToken: [PersonalAccessToken!] + hush: [Hush!] + orgmembership: [OrgMembership!] + groupmembership: [GroupMembership!] + subscriber: [Subscriber!] + file: [File!] +} +""" +Return response for createBulkEvent mutation +""" +type EventBulkCreatePayload { + """ + Created events + """ + events: [Event!] +} +""" +A connection to a list of items. +""" +type EventConnection { + """ + A list of edges. + """ + edges: [EventEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createEvent mutation +""" +type EventCreatePayload { + """ + Created event + """ + event: Event! +} +""" +Return response for deleteEvent mutation +""" +type EventDeletePayload { + """ + Deleted event ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type EventEdge { + """ + The item at the end of the edge. + """ + node: Event + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type EventHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: EventHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + eventID: String + correlationID: String + eventType: String! + metadata: Map +} +""" +A connection to a list of items. +""" +type EventHistoryConnection { + """ + A list of edges. + """ + edges: [EventHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type EventHistoryEdge { + """ + The item at the end of the edge. + """ + node: EventHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +EventHistoryOpType is enum for the field operation +""" +enum EventHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +EventHistoryWhereInput is used for filtering EventHistory objects. +Input was generated by ent. +""" +input EventHistoryWhereInput { + not: EventHistoryWhereInput + and: [EventHistoryWhereInput!] + or: [EventHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: EventHistoryOpType + operationNEQ: EventHistoryOpType + operationIn: [EventHistoryOpType!] + operationNotIn: [EventHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + event_id field predicates + """ + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String + """ + correlation_id field predicates + """ + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String + """ + event_type field predicates + """ + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String +} +type EventSearchResult { + events: [Event!] +} +""" +Return response for updateEvent mutation +""" +type EventUpdatePayload { + """ + Updated event + """ + event: Event! +} +""" +EventWhereInput is used for filtering Event objects. +Input was generated by ent. +""" +input EventWhereInput { + not: EventWhereInput + and: [EventWhereInput!] + or: [EventWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + event_id field predicates + """ + eventID: String + eventIDNEQ: String + eventIDIn: [String!] + eventIDNotIn: [String!] + eventIDGT: String + eventIDGTE: String + eventIDLT: String + eventIDLTE: String + eventIDContains: String + eventIDHasPrefix: String + eventIDHasSuffix: String + eventIDIsNil: Boolean + eventIDNotNil: Boolean + eventIDEqualFold: String + eventIDContainsFold: String + """ + correlation_id field predicates + """ + correlationID: String + correlationIDNEQ: String + correlationIDIn: [String!] + correlationIDNotIn: [String!] + correlationIDGT: String + correlationIDGTE: String + correlationIDLT: String + correlationIDLTE: String + correlationIDContains: String + correlationIDHasPrefix: String + correlationIDHasSuffix: String + correlationIDIsNil: Boolean + correlationIDNotNil: Boolean + correlationIDEqualFold: String + correlationIDContainsFold: String + """ + event_type field predicates + """ + eventType: String + eventTypeNEQ: String + eventTypeIn: [String!] + eventTypeNotIn: [String!] + eventTypeGT: String + eventTypeGTE: String + eventTypeLT: String + eventTypeLTE: String + eventTypeContains: String + eventTypeHasPrefix: String + eventTypeHasSuffix: String + eventTypeEqualFold: String + eventTypeContainsFold: String + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + integration edge predicates + """ + hasIntegration: Boolean + hasIntegrationWith: [IntegrationWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + invite edge predicates + """ + hasInvite: Boolean + hasInviteWith: [InviteWhereInput!] + """ + personal_access_token edge predicates + """ + hasPersonalAccessToken: Boolean + hasPersonalAccessTokenWith: [PersonalAccessTokenWhereInput!] + """ + hush edge predicates + """ + hasHush: Boolean + hasHushWith: [HushWhereInput!] + """ + orgmembership edge predicates + """ + hasOrgmembership: Boolean + hasOrgmembershipWith: [OrgMembershipWhereInput!] + """ + groupmembership edge predicates + """ + hasGroupmembership: Boolean + hasGroupmembershipWith: [GroupMembershipWhereInput!] + """ + subscriber edge predicates + """ + hasSubscriber: Boolean + hasSubscriberWith: [SubscriberWhereInput!] + """ + file edge predicates + """ + hasFile: Boolean + hasFileWith: [FileWhereInput!] +} +type File implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String! + """ + the extension of the file provided + """ + providedFileExtension: String! + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + user: [User!] + organization: [Organization!] + group: [Group!] + contact: [Contact!] + entity: [Entity!] + userSetting: [UserSetting!] + organizationSetting: [OrganizationSetting!] + template: [Template!] + documentData: [DocumentData!] + events: [Event!] + program: [Program!] +} +""" +A connection to a list of items. +""" +type FileConnection { + """ + A list of edges. + """ + edges: [FileEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for deleteFile mutation +""" +type FileDeletePayload { + """ + Deleted file ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type FileEdge { + """ + The item at the end of the edge. + """ + node: File + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type FileHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: FileHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String! + """ + the extension of the file provided + """ + providedFileExtension: String! + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + persistedFileSize: Int + """ + the mime type detected by the system + """ + detectedMimeType: String + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String! + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + """ + the full URI of the file + """ + uri: String + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String +} +""" +A connection to a list of items. +""" +type FileHistoryConnection { + """ + A list of edges. + """ + edges: [FileHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type FileHistoryEdge { + """ + The item at the end of the edge. + """ + node: FileHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +FileHistoryOpType is enum for the field operation +""" +enum FileHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +FileHistoryWhereInput is used for filtering FileHistory objects. +Input was generated by ent. +""" +input FileHistoryWhereInput { + not: FileHistoryWhereInput + and: [FileHistoryWhereInput!] + or: [FileHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: FileHistoryOpType + operationNEQ: FileHistoryOpType + operationIn: [FileHistoryOpType!] + operationNotIn: [FileHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + provided_file_name field predicates + """ + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String + """ + provided_file_extension field predicates + """ + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String + """ + provided_file_size field predicates + """ + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean + """ + persisted_file_size field predicates + """ + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean + """ + detected_mime_type field predicates + """ + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String + """ + md5_hash field predicates + """ + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String + """ + detected_content_type field predicates + """ + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String + """ + store_key field predicates + """ + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String + """ + category_type field predicates + """ + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String + """ + uri field predicates + """ + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String + """ + storage_scheme field predicates + """ + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String + """ + storage_volume field predicates + """ + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String + """ + storage_path field predicates + """ + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String +} +type FileSearchResult { + files: [File!] +} +""" +FileWhereInput is used for filtering File objects. +Input was generated by ent. +""" +input FileWhereInput { + not: FileWhereInput + and: [FileWhereInput!] + or: [FileWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + provided_file_name field predicates + """ + providedFileName: String + providedFileNameNEQ: String + providedFileNameIn: [String!] + providedFileNameNotIn: [String!] + providedFileNameGT: String + providedFileNameGTE: String + providedFileNameLT: String + providedFileNameLTE: String + providedFileNameContains: String + providedFileNameHasPrefix: String + providedFileNameHasSuffix: String + providedFileNameEqualFold: String + providedFileNameContainsFold: String + """ + provided_file_extension field predicates + """ + providedFileExtension: String + providedFileExtensionNEQ: String + providedFileExtensionIn: [String!] + providedFileExtensionNotIn: [String!] + providedFileExtensionGT: String + providedFileExtensionGTE: String + providedFileExtensionLT: String + providedFileExtensionLTE: String + providedFileExtensionContains: String + providedFileExtensionHasPrefix: String + providedFileExtensionHasSuffix: String + providedFileExtensionEqualFold: String + providedFileExtensionContainsFold: String + """ + provided_file_size field predicates + """ + providedFileSize: Int + providedFileSizeNEQ: Int + providedFileSizeIn: [Int!] + providedFileSizeNotIn: [Int!] + providedFileSizeGT: Int + providedFileSizeGTE: Int + providedFileSizeLT: Int + providedFileSizeLTE: Int + providedFileSizeIsNil: Boolean + providedFileSizeNotNil: Boolean + """ + persisted_file_size field predicates + """ + persistedFileSize: Int + persistedFileSizeNEQ: Int + persistedFileSizeIn: [Int!] + persistedFileSizeNotIn: [Int!] + persistedFileSizeGT: Int + persistedFileSizeGTE: Int + persistedFileSizeLT: Int + persistedFileSizeLTE: Int + persistedFileSizeIsNil: Boolean + persistedFileSizeNotNil: Boolean + """ + detected_mime_type field predicates + """ + detectedMimeType: String + detectedMimeTypeNEQ: String + detectedMimeTypeIn: [String!] + detectedMimeTypeNotIn: [String!] + detectedMimeTypeGT: String + detectedMimeTypeGTE: String + detectedMimeTypeLT: String + detectedMimeTypeLTE: String + detectedMimeTypeContains: String + detectedMimeTypeHasPrefix: String + detectedMimeTypeHasSuffix: String + detectedMimeTypeIsNil: Boolean + detectedMimeTypeNotNil: Boolean + detectedMimeTypeEqualFold: String + detectedMimeTypeContainsFold: String + """ + md5_hash field predicates + """ + md5Hash: String + md5HashNEQ: String + md5HashIn: [String!] + md5HashNotIn: [String!] + md5HashGT: String + md5HashGTE: String + md5HashLT: String + md5HashLTE: String + md5HashContains: String + md5HashHasPrefix: String + md5HashHasSuffix: String + md5HashIsNil: Boolean + md5HashNotNil: Boolean + md5HashEqualFold: String + md5HashContainsFold: String + """ + detected_content_type field predicates + """ + detectedContentType: String + detectedContentTypeNEQ: String + detectedContentTypeIn: [String!] + detectedContentTypeNotIn: [String!] + detectedContentTypeGT: String + detectedContentTypeGTE: String + detectedContentTypeLT: String + detectedContentTypeLTE: String + detectedContentTypeContains: String + detectedContentTypeHasPrefix: String + detectedContentTypeHasSuffix: String + detectedContentTypeEqualFold: String + detectedContentTypeContainsFold: String + """ + store_key field predicates + """ + storeKey: String + storeKeyNEQ: String + storeKeyIn: [String!] + storeKeyNotIn: [String!] + storeKeyGT: String + storeKeyGTE: String + storeKeyLT: String + storeKeyLTE: String + storeKeyContains: String + storeKeyHasPrefix: String + storeKeyHasSuffix: String + storeKeyIsNil: Boolean + storeKeyNotNil: Boolean + storeKeyEqualFold: String + storeKeyContainsFold: String + """ + category_type field predicates + """ + categoryType: String + categoryTypeNEQ: String + categoryTypeIn: [String!] + categoryTypeNotIn: [String!] + categoryTypeGT: String + categoryTypeGTE: String + categoryTypeLT: String + categoryTypeLTE: String + categoryTypeContains: String + categoryTypeHasPrefix: String + categoryTypeHasSuffix: String + categoryTypeIsNil: Boolean + categoryTypeNotNil: Boolean + categoryTypeEqualFold: String + categoryTypeContainsFold: String + """ + uri field predicates + """ + uri: String + uriNEQ: String + uriIn: [String!] + uriNotIn: [String!] + uriGT: String + uriGTE: String + uriLT: String + uriLTE: String + uriContains: String + uriHasPrefix: String + uriHasSuffix: String + uriIsNil: Boolean + uriNotNil: Boolean + uriEqualFold: String + uriContainsFold: String + """ + storage_scheme field predicates + """ + storageScheme: String + storageSchemeNEQ: String + storageSchemeIn: [String!] + storageSchemeNotIn: [String!] + storageSchemeGT: String + storageSchemeGTE: String + storageSchemeLT: String + storageSchemeLTE: String + storageSchemeContains: String + storageSchemeHasPrefix: String + storageSchemeHasSuffix: String + storageSchemeIsNil: Boolean + storageSchemeNotNil: Boolean + storageSchemeEqualFold: String + storageSchemeContainsFold: String + """ + storage_volume field predicates + """ + storageVolume: String + storageVolumeNEQ: String + storageVolumeIn: [String!] + storageVolumeNotIn: [String!] + storageVolumeGT: String + storageVolumeGTE: String + storageVolumeLT: String + storageVolumeLTE: String + storageVolumeContains: String + storageVolumeHasPrefix: String + storageVolumeHasSuffix: String + storageVolumeIsNil: Boolean + storageVolumeNotNil: Boolean + storageVolumeEqualFold: String + storageVolumeContainsFold: String + """ + storage_path field predicates + """ + storagePath: String + storagePathNEQ: String + storagePathIn: [String!] + storagePathNotIn: [String!] + storagePathGT: String + storagePathGTE: String + storagePathLT: String + storagePathLTE: String + storagePathContains: String + storagePathHasPrefix: String + storagePathHasSuffix: String + storagePathIsNil: Boolean + storagePathNotNil: Boolean + storagePathEqualFold: String + storagePathContainsFold: String + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + contact edge predicates + """ + hasContact: Boolean + hasContactWith: [ContactWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + user_setting edge predicates + """ + hasUserSetting: Boolean + hasUserSettingWith: [UserSettingWhereInput!] + """ + organization_setting edge predicates + """ + hasOrganizationSetting: Boolean + hasOrganizationSettingWith: [OrganizationSettingWhereInput!] + """ + template edge predicates + """ + hasTemplate: Boolean + hasTemplateWith: [TemplateWhereInput!] + """ + document_data edge predicates + """ + hasDocumentData: Boolean + hasDocumentDataWith: [DocumentDataWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +type Group implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String! + owner: Organization + controlCreators: [Organization!] + controlObjectiveCreators: [Organization!] + groupCreators: [Organization!] + internalPolicyCreators: [Organization!] + narrativeCreators: [Organization!] + procedureCreators: [Organization!] + programCreators: [Organization!] + riskCreators: [Organization!] + templateCreators: [Organization!] + procedureEditors: [Procedure!] + procedureBlockedGroups: [Procedure!] + internalPolicyEditors: [InternalPolicy!] + internalPolicyBlockedGroups: [InternalPolicy!] + programEditors: [Program!] + programBlockedGroups: [Program!] + programViewers: [Program!] + riskEditors: [Risk!] + riskBlockedGroups: [Risk!] + riskViewers: [Risk!] + controlObjectiveEditors: [ControlObjective!] + controlObjectiveBlockedGroups: [ControlObjective!] + controlObjectiveViewers: [ControlObjective!] + controlEditors: [Control!] + controlBlockedGroups: [Control!] + controlViewers: [Control!] + narrativeEditors: [Narrative!] + narrativeBlockedGroups: [Narrative!] + narrativeViewers: [Narrative!] + setting: GroupSetting! + users: [User!] + events: [Event!] + integrations: [Integration!] + files: [File!] + tasks: [Task!] + members: [GroupMembership!] +} +""" +Return response for createBulkGroup mutation +""" +type GroupBulkCreatePayload { + """ + Created groups + """ + groups: [Group!] +} +""" +A connection to a list of items. +""" +type GroupConnection { + """ + A list of edges. + """ + edges: [GroupEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createGroup mutation +""" +type GroupCreatePayload { + """ + Created group + """ + group: Group! +} +""" +Return response for deleteGroup mutation +""" +type GroupDeletePayload { + """ + Deleted group ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type GroupEdge { + """ + The item at the end of the edge. + """ + node: Group + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type GroupHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the group - must be unique within the organization + """ + name: String! + """ + the groups description + """ + description: String + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + """ + The group's displayed 'friendly' name + """ + displayName: String! +} +""" +A connection to a list of items. +""" +type GroupHistoryConnection { + """ + A list of edges. + """ + edges: [GroupHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +GroupHistoryOpType is enum for the field operation +""" +enum GroupHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for GroupHistory connections +""" +input GroupHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order GroupHistories. + """ + field: GroupHistoryOrderField! +} +""" +Properties by which GroupHistory connections can be ordered. +""" +enum GroupHistoryOrderField { + name + display_name +} +""" +GroupHistoryWhereInput is used for filtering GroupHistory objects. +Input was generated by ent. +""" +input GroupHistoryWhereInput { + not: GroupHistoryWhereInput + and: [GroupHistoryWhereInput!] + or: [GroupHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupHistoryOpType + operationNEQ: GroupHistoryOpType + operationIn: [GroupHistoryOpType!] + operationNotIn: [GroupHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String +} +type GroupMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipRole! + groupID: ID! + userID: ID! + group: Group! + user: User! + events: [Event!] +} +""" +Return response for createBulkGroupMembership mutation +""" +type GroupMembershipBulkCreatePayload { + """ + Created groupMemberships + """ + groupMemberships: [GroupMembership!] +} +""" +A connection to a list of items. +""" +type GroupMembershipConnection { + """ + A list of edges. + """ + edges: [GroupMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createGroupMembership mutation +""" +type GroupMembershipCreatePayload { + """ + Created groupMembership + """ + groupMembership: GroupMembership! +} +""" +Return response for deleteGroupMembership mutation +""" +type GroupMembershipDeletePayload { + """ + Deleted groupMembership ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type GroupMembershipEdge { + """ + The item at the end of the edge. + """ + node: GroupMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type GroupMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: GroupMembershipHistoryRole! + groupID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type GroupMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [GroupMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +GroupMembershipHistoryOpType is enum for the field operation +""" +enum GroupMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +GroupMembershipHistoryRole is enum for the field role +""" +enum GroupMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +GroupMembershipHistoryWhereInput is used for filtering GroupMembershipHistory objects. +Input was generated by ent. +""" +input GroupMembershipHistoryWhereInput { + not: GroupMembershipHistoryWhereInput + and: [GroupMembershipHistoryWhereInput!] + or: [GroupMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupMembershipHistoryOpType + operationNEQ: GroupMembershipHistoryOpType + operationIn: [GroupMembershipHistoryOpType!] + operationNotIn: [GroupMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: GroupMembershipHistoryRole + roleNEQ: GroupMembershipHistoryRole + roleIn: [GroupMembershipHistoryRole!] + roleNotIn: [GroupMembershipHistoryRole!] + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDEqualFold: String + groupIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +GroupMembershipRole is enum for the field role +""" +enum GroupMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +Return response for updateGroupMembership mutation +""" +type GroupMembershipUpdatePayload { + """ + Updated groupMembership + """ + groupMembership: GroupMembership! +} +""" +GroupMembershipWhereInput is used for filtering GroupMembership objects. +Input was generated by ent. +""" +input GroupMembershipWhereInput { + not: GroupMembershipWhereInput + and: [GroupMembershipWhereInput!] + or: [GroupMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: GroupMembershipRole + roleNEQ: GroupMembershipRole + roleIn: [GroupMembershipRole!] + roleNotIn: [GroupMembershipRole!] + groupID: String + userID: String +} +""" +Ordering options for Group connections +""" +input GroupOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Groups. + """ + field: GroupOrderField! +} +""" +Properties by which Group connections can be ordered. +""" +enum GroupOrderField { + name + display_name +} +type GroupSearchResult { + groups: [Group!] +} +type GroupSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility! + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy! + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + """ + the group id associated with the settings + """ + groupID: ID + group: Group +} +""" +Return response for createBulkGroupSetting mutation +""" +type GroupSettingBulkCreatePayload { + """ + Created groupSettings + """ + groupSettings: [GroupSetting!] +} +""" +A connection to a list of items. +""" +type GroupSettingConnection { + """ + A list of edges. + """ + edges: [GroupSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createGroupSetting mutation +""" +type GroupSettingCreatePayload { + """ + Created groupSetting + """ + groupSetting: GroupSetting! +} +""" +Return response for deleteGroupSetting mutation +""" +type GroupSettingDeletePayload { + """ + Deleted groupSetting ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type GroupSettingEdge { + """ + The item at the end of the edge. + """ + node: GroupSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type GroupSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: GroupSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingHistoryVisibility! + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingHistoryJoinPolicy! + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + """ + the group id associated with the settings + """ + groupID: String +} +""" +A connection to a list of items. +""" +type GroupSettingHistoryConnection { + """ + A list of edges. + """ + edges: [GroupSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type GroupSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: GroupSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +GroupSettingHistoryJoinPolicy is enum for the field join_policy +""" +enum GroupSettingHistoryJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +""" +GroupSettingHistoryOpType is enum for the field operation +""" +enum GroupSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +GroupSettingHistoryVisibility is enum for the field visibility +""" +enum GroupSettingHistoryVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingHistoryWhereInput is used for filtering GroupSettingHistory objects. +Input was generated by ent. +""" +input GroupSettingHistoryWhereInput { + not: GroupSettingHistoryWhereInput + and: [GroupSettingHistoryWhereInput!] + or: [GroupSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: GroupSettingHistoryOpType + operationNEQ: GroupSettingHistoryOpType + operationIn: [GroupSettingHistoryOpType!] + operationNotIn: [GroupSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + visibility field predicates + """ + visibility: GroupSettingHistoryVisibility + visibilityNEQ: GroupSettingHistoryVisibility + visibilityIn: [GroupSettingHistoryVisibility!] + visibilityNotIn: [GroupSettingHistoryVisibility!] + """ + join_policy field predicates + """ + joinPolicy: GroupSettingHistoryJoinPolicy + joinPolicyNEQ: GroupSettingHistoryJoinPolicy + joinPolicyIn: [GroupSettingHistoryJoinPolicy!] + joinPolicyNotIn: [GroupSettingHistoryJoinPolicy!] + """ + sync_to_slack field predicates + """ + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean + """ + sync_to_github field predicates + """ + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean + """ + group_id field predicates + """ + groupID: String + groupIDNEQ: String + groupIDIn: [String!] + groupIDNotIn: [String!] + groupIDGT: String + groupIDGTE: String + groupIDLT: String + groupIDLTE: String + groupIDContains: String + groupIDHasPrefix: String + groupIDHasSuffix: String + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: String + groupIDContainsFold: String +} +""" +GroupSettingJoinPolicy is enum for the field join_policy +""" +enum GroupSettingJoinPolicy @goModel(model: "github.com/theopenlane/core/pkg/enums.JoinPolicy") { + OPEN + INVITE_ONLY + APPLICATION_ONLY + INVITE_OR_APPLICATION +} +type GroupSettingSearchResult { + groupSettings: [GroupSetting!] +} +""" +Return response for updateGroupSetting mutation +""" +type GroupSettingUpdatePayload { + """ + Updated groupSetting + """ + groupSetting: GroupSetting! +} +""" +GroupSettingVisibility is enum for the field visibility +""" +enum GroupSettingVisibility @goModel(model: "github.com/theopenlane/core/pkg/enums.Visibility") { + PUBLIC + PRIVATE +} +""" +GroupSettingWhereInput is used for filtering GroupSetting objects. +Input was generated by ent. +""" +input GroupSettingWhereInput { + not: GroupSettingWhereInput + and: [GroupSettingWhereInput!] + or: [GroupSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + visibility field predicates + """ + visibility: GroupSettingVisibility + visibilityNEQ: GroupSettingVisibility + visibilityIn: [GroupSettingVisibility!] + visibilityNotIn: [GroupSettingVisibility!] + """ + join_policy field predicates + """ + joinPolicy: GroupSettingJoinPolicy + joinPolicyNEQ: GroupSettingJoinPolicy + joinPolicyIn: [GroupSettingJoinPolicy!] + joinPolicyNotIn: [GroupSettingJoinPolicy!] + """ + sync_to_slack field predicates + """ + syncToSlack: Boolean + syncToSlackNEQ: Boolean + syncToSlackIsNil: Boolean + syncToSlackNotNil: Boolean + """ + sync_to_github field predicates + """ + syncToGithub: Boolean + syncToGithubNEQ: Boolean + syncToGithubIsNil: Boolean + syncToGithubNotNil: Boolean + """ + group_id field predicates + """ + groupID: ID + groupIDNEQ: ID + groupIDIn: [ID!] + groupIDNotIn: [ID!] + groupIDGT: ID + groupIDGTE: ID + groupIDLT: ID + groupIDLTE: ID + groupIDContains: ID + groupIDHasPrefix: ID + groupIDHasSuffix: ID + groupIDIsNil: Boolean + groupIDNotNil: Boolean + groupIDEqualFold: ID + groupIDContainsFold: ID + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] +} +""" +Return response for updateGroup mutation +""" +type GroupUpdatePayload { + """ + Updated group + """ + group: Group! +} +""" +GroupWhereInput is used for filtering Group objects. +Input was generated by ent. +""" +input GroupWhereInput { + not: GroupWhereInput + and: [GroupWhereInput!] + or: [GroupWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + control_creators edge predicates + """ + hasControlCreators: Boolean + hasControlCreatorsWith: [OrganizationWhereInput!] + """ + control_objective_creators edge predicates + """ + hasControlObjectiveCreators: Boolean + hasControlObjectiveCreatorsWith: [OrganizationWhereInput!] + """ + group_creators edge predicates + """ + hasGroupCreators: Boolean + hasGroupCreatorsWith: [OrganizationWhereInput!] + """ + internal_policy_creators edge predicates + """ + hasInternalPolicyCreators: Boolean + hasInternalPolicyCreatorsWith: [OrganizationWhereInput!] + """ + narrative_creators edge predicates + """ + hasNarrativeCreators: Boolean + hasNarrativeCreatorsWith: [OrganizationWhereInput!] + """ + procedure_creators edge predicates + """ + hasProcedureCreators: Boolean + hasProcedureCreatorsWith: [OrganizationWhereInput!] + """ + program_creators edge predicates + """ + hasProgramCreators: Boolean + hasProgramCreatorsWith: [OrganizationWhereInput!] + """ + risk_creators edge predicates + """ + hasRiskCreators: Boolean + hasRiskCreatorsWith: [OrganizationWhereInput!] + """ + template_creators edge predicates + """ + hasTemplateCreators: Boolean + hasTemplateCreatorsWith: [OrganizationWhereInput!] + """ + procedure_editors edge predicates + """ + hasProcedureEditors: Boolean + hasProcedureEditorsWith: [ProcedureWhereInput!] + """ + procedure_blocked_groups edge predicates + """ + hasProcedureBlockedGroups: Boolean + hasProcedureBlockedGroupsWith: [ProcedureWhereInput!] + """ + internal_policy_editors edge predicates + """ + hasInternalPolicyEditors: Boolean + hasInternalPolicyEditorsWith: [InternalPolicyWhereInput!] + """ + internal_policy_blocked_groups edge predicates + """ + hasInternalPolicyBlockedGroups: Boolean + hasInternalPolicyBlockedGroupsWith: [InternalPolicyWhereInput!] + """ + program_editors edge predicates + """ + hasProgramEditors: Boolean + hasProgramEditorsWith: [ProgramWhereInput!] + """ + program_blocked_groups edge predicates + """ + hasProgramBlockedGroups: Boolean + hasProgramBlockedGroupsWith: [ProgramWhereInput!] + """ + program_viewers edge predicates + """ + hasProgramViewers: Boolean + hasProgramViewersWith: [ProgramWhereInput!] + """ + risk_editors edge predicates + """ + hasRiskEditors: Boolean + hasRiskEditorsWith: [RiskWhereInput!] + """ + risk_blocked_groups edge predicates + """ + hasRiskBlockedGroups: Boolean + hasRiskBlockedGroupsWith: [RiskWhereInput!] + """ + risk_viewers edge predicates + """ + hasRiskViewers: Boolean + hasRiskViewersWith: [RiskWhereInput!] + """ + control_objective_editors edge predicates + """ + hasControlObjectiveEditors: Boolean + hasControlObjectiveEditorsWith: [ControlObjectiveWhereInput!] + """ + control_objective_blocked_groups edge predicates + """ + hasControlObjectiveBlockedGroups: Boolean + hasControlObjectiveBlockedGroupsWith: [ControlObjectiveWhereInput!] + """ + control_objective_viewers edge predicates + """ + hasControlObjectiveViewers: Boolean + hasControlObjectiveViewersWith: [ControlObjectiveWhereInput!] + """ + control_editors edge predicates + """ + hasControlEditors: Boolean + hasControlEditorsWith: [ControlWhereInput!] + """ + control_blocked_groups edge predicates + """ + hasControlBlockedGroups: Boolean + hasControlBlockedGroupsWith: [ControlWhereInput!] + """ + control_viewers edge predicates + """ + hasControlViewers: Boolean + hasControlViewersWith: [ControlWhereInput!] + """ + narrative_editors edge predicates + """ + hasNarrativeEditors: Boolean + hasNarrativeEditorsWith: [NarrativeWhereInput!] + """ + narrative_blocked_groups edge predicates + """ + hasNarrativeBlockedGroups: Boolean + hasNarrativeBlockedGroupsWith: [NarrativeWhereInput!] + """ + narrative_viewers edge predicates + """ + hasNarrativeViewers: Boolean + hasNarrativeViewersWith: [NarrativeWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [GroupSettingWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [GroupMembershipWhereInput!] +} +type Hush implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String! + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String + """ + the integration associated with the secret + """ + integrations: [Integration!] + organization: [Organization!] + events: [Event!] +} +""" +Return response for createBulkHush mutation +""" +type HushBulkCreatePayload { + """ + Created hushs + """ + hushes: [Hush!] +} +""" +A connection to a list of items. +""" +type HushConnection { + """ + A list of edges. + """ + edges: [HushEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createHush mutation +""" +type HushCreatePayload { + """ + Created hush + """ + hush: Hush! +} +""" +Return response for deleteHush mutation +""" +type HushDeletePayload { + """ + Deleted hush ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type HushEdge { + """ + The item at the end of the edge. + """ + node: Hush + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type HushHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: HushHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String! + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + """ + the generic name of a secret associated with the organization + """ + secretName: String +} +""" +A connection to a list of items. +""" +type HushHistoryConnection { + """ + A list of edges. + """ + edges: [HushHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type HushHistoryEdge { + """ + The item at the end of the edge. + """ + node: HushHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +HushHistoryOpType is enum for the field operation +""" +enum HushHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for HushHistory connections +""" +input HushHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order HushHistories. + """ + field: HushHistoryOrderField! +} +""" +Properties by which HushHistory connections can be ordered. +""" +enum HushHistoryOrderField { + name + kind +} +""" +HushHistoryWhereInput is used for filtering HushHistory objects. +Input was generated by ent. +""" +input HushHistoryWhereInput { + not: HushHistoryWhereInput + and: [HushHistoryWhereInput!] + or: [HushHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: HushHistoryOpType + operationNEQ: HushHistoryOpType + operationIn: [HushHistoryOpType!] + operationNotIn: [HushHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + secret_name field predicates + """ + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String +} +""" +Ordering options for Hush connections +""" +input HushOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Hushes. + """ + field: HushOrderField! +} +""" +Properties by which Hush connections can be ordered. +""" +enum HushOrderField { + name + kind +} +""" +Return response for updateHush mutation +""" +type HushUpdatePayload { + """ + Updated hush + """ + hush: Hush! +} +""" +HushWhereInput is used for filtering Hush objects. +Input was generated by ent. +""" +input HushWhereInput { + not: HushWhereInput + and: [HushWhereInput!] + or: [HushWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + secret_name field predicates + """ + secretName: String + secretNameNEQ: String + secretNameIn: [String!] + secretNameNotIn: [String!] + secretNameGT: String + secretNameGTE: String + secretNameLT: String + secretNameLTE: String + secretNameContains: String + secretNameHasPrefix: String + secretNameHasSuffix: String + secretNameIsNil: Boolean + secretNameNotNil: Boolean + secretNameEqualFold: String + secretNameContainsFold: String + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Integration implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String + owner: Organization + """ + the secrets associated with the integration + """ + secrets: [Hush!] + events: [Event!] +} +""" +Return response for createBulkIntegration mutation +""" +type IntegrationBulkCreatePayload { + """ + Created integrations + """ + integrations: [Integration!] +} +""" +A connection to a list of items. +""" +type IntegrationConnection { + """ + A list of edges. + """ + edges: [IntegrationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createIntegration mutation +""" +type IntegrationCreatePayload { + """ + Created integration + """ + integration: Integration! +} +""" +Return response for deleteIntegration mutation +""" +type IntegrationDeletePayload { + """ + Deleted integration ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type IntegrationEdge { + """ + The item at the end of the edge. + """ + node: Integration + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type IntegrationHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: IntegrationHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the integration - must be unique within the organization + """ + name: String! + """ + a description of the integration + """ + description: String + kind: String +} +""" +A connection to a list of items. +""" +type IntegrationHistoryConnection { + """ + A list of edges. + """ + edges: [IntegrationHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type IntegrationHistoryEdge { + """ + The item at the end of the edge. + """ + node: IntegrationHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +IntegrationHistoryOpType is enum for the field operation +""" +enum IntegrationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for IntegrationHistory connections +""" +input IntegrationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order IntegrationHistories. + """ + field: IntegrationHistoryOrderField! +} +""" +Properties by which IntegrationHistory connections can be ordered. +""" +enum IntegrationHistoryOrderField { + name + kind +} +""" +IntegrationHistoryWhereInput is used for filtering IntegrationHistory objects. +Input was generated by ent. +""" +input IntegrationHistoryWhereInput { + not: IntegrationHistoryWhereInput + and: [IntegrationHistoryWhereInput!] + or: [IntegrationHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: IntegrationHistoryOpType + operationNEQ: IntegrationHistoryOpType + operationIn: [IntegrationHistoryOpType!] + operationNotIn: [IntegrationHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String +} +""" +Ordering options for Integration connections +""" +input IntegrationOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Integrations. + """ + field: IntegrationOrderField! +} +""" +Properties by which Integration connections can be ordered. +""" +enum IntegrationOrderField { + name + kind +} +type IntegrationSearchResult { + integrations: [Integration!] +} +""" +Return response for updateIntegration mutation +""" +type IntegrationUpdatePayload { + """ + Updated integration + """ + integration: Integration! +} +""" +IntegrationWhereInput is used for filtering Integration objects. +Input was generated by ent. +""" +input IntegrationWhereInput { + not: IntegrationWhereInput + and: [IntegrationWhereInput!] + or: [IntegrationWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + kind field predicates + """ + kind: String + kindNEQ: String + kindIn: [String!] + kindNotIn: [String!] + kindGT: String + kindGTE: String + kindLT: String + kindLTE: String + kindContains: String + kindHasPrefix: String + kindHasSuffix: String + kindIsNil: Boolean + kindNotNil: Boolean + kindEqualFold: String + kindContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + secrets edge predicates + """ + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type InternalPolicy implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map + owner: Organization + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + controlObjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + narratives: [Narrative!] + tasks: [Task!] + programs: [Program!] +} +""" +Return response for createBulkInternalPolicy mutation +""" +type InternalPolicyBulkCreatePayload { + """ + Created internalPolicys + """ + internalPolicies: [InternalPolicy!] +} +""" +A connection to a list of items. +""" +type InternalPolicyConnection { + """ + A list of edges. + """ + edges: [InternalPolicyEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createInternalPolicy mutation +""" +type InternalPolicyCreatePayload { + """ + Created internalPolicy + """ + internalPolicy: InternalPolicy! +} +""" +Return response for deleteInternalPolicy mutation +""" +type InternalPolicyDeletePayload { + """ + Deleted internalPolicy ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type InternalPolicyEdge { + """ + The item at the end of the edge. + """ + node: InternalPolicy + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type InternalPolicyHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: InternalPolicyHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the policy + """ + name: String! + """ + description of the policy + """ + description: String + """ + status of the policy + """ + status: String + """ + type of the policy + """ + policyType: String + """ + version of the policy + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the policy + """ + background: String + """ + json data for the policy document + """ + details: Map +} +""" +A connection to a list of items. +""" +type InternalPolicyHistoryConnection { + """ + A list of edges. + """ + edges: [InternalPolicyHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type InternalPolicyHistoryEdge { + """ + The item at the end of the edge. + """ + node: InternalPolicyHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +InternalPolicyHistoryOpType is enum for the field operation +""" +enum InternalPolicyHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +InternalPolicyHistoryWhereInput is used for filtering InternalPolicyHistory objects. +Input was generated by ent. +""" +input InternalPolicyHistoryWhereInput { + not: InternalPolicyHistoryWhereInput + and: [InternalPolicyHistoryWhereInput!] + or: [InternalPolicyHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: InternalPolicyHistoryOpType + operationNEQ: InternalPolicyHistoryOpType + operationIn: [InternalPolicyHistoryOpType!] + operationNotIn: [InternalPolicyHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String +} +type InternalPolicySearchResult { + internalPolicies: [InternalPolicy!] +} +""" +Return response for updateInternalPolicy mutation +""" +type InternalPolicyUpdatePayload { + """ + Updated internalPolicy + """ + internalPolicy: InternalPolicy! +} +""" +InternalPolicyWhereInput is used for filtering InternalPolicy objects. +Input was generated by ent. +""" +input InternalPolicyWhereInput { + not: InternalPolicyWhereInput + and: [InternalPolicyWhereInput!] + or: [InternalPolicyWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + policy_type field predicates + """ + policyType: String + policyTypeNEQ: String + policyTypeIn: [String!] + policyTypeNotIn: [String!] + policyTypeGT: String + policyTypeGTE: String + policyTypeLT: String + policyTypeLTE: String + policyTypeContains: String + policyTypeHasPrefix: String + policyTypeHasSuffix: String + policyTypeIsNil: Boolean + policyTypeNotNil: Boolean + policyTypeEqualFold: String + policyTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Invite implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + """ + the email used as input to generate the invitation token and is the destination person the invitation is sent to who is required to accept to join the organization + """ + recipient: String! + """ + the status of the invitation + """ + status: InviteInviteStatus! + role: InviteRole! + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int! + """ + the user who initiated the invitation + """ + requestorID: String + owner: Organization + events: [Event!] +} +""" +Return response for createBulkInvite mutation +""" +type InviteBulkCreatePayload { + """ + Created invites + """ + invites: [Invite!] +} +""" +A connection to a list of items. +""" +type InviteConnection { + """ + A list of edges. + """ + edges: [InviteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createInvite mutation +""" +type InviteCreatePayload { + """ + Created invite + """ + invite: Invite! +} +""" +Return response for deleteInvite mutation +""" +type InviteDeletePayload { + """ + Deleted invite ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type InviteEdge { + """ + The item at the end of the edge. + """ + node: Invite + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +InviteInviteStatus is enum for the field status +""" +enum InviteInviteStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.InviteStatus") { + INVITATION_SENT + APPROVAL_REQUIRED + INVITATION_ACCEPTED + INVITATION_EXPIRED +} +""" +InviteRole is enum for the field role +""" +enum InviteRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +Return response for updateInvite mutation +""" +type InviteUpdatePayload { + """ + Updated invite + """ + invite: Invite! +} +""" +InviteWhereInput is used for filtering Invite objects. +Input was generated by ent. +""" +input InviteWhereInput { + not: InviteWhereInput + and: [InviteWhereInput!] + or: [InviteWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + expires field predicates + """ + expires: Time + expiresNEQ: Time + expiresIn: [Time!] + expiresNotIn: [Time!] + expiresGT: Time + expiresGTE: Time + expiresLT: Time + expiresLTE: Time + expiresIsNil: Boolean + expiresNotNil: Boolean + """ + recipient field predicates + """ + recipient: String + recipientNEQ: String + recipientIn: [String!] + recipientNotIn: [String!] + recipientGT: String + recipientGTE: String + recipientLT: String + recipientLTE: String + recipientContains: String + recipientHasPrefix: String + recipientHasSuffix: String + recipientEqualFold: String + recipientContainsFold: String + """ + status field predicates + """ + status: InviteInviteStatus + statusNEQ: InviteInviteStatus + statusIn: [InviteInviteStatus!] + statusNotIn: [InviteInviteStatus!] + """ + role field predicates + """ + role: InviteRole + roleNEQ: InviteRole + roleIn: [InviteRole!] + roleNotIn: [InviteRole!] + """ + send_attempts field predicates + """ + sendAttempts: Int + sendAttemptsNEQ: Int + sendAttemptsIn: [Int!] + sendAttemptsNotIn: [Int!] + sendAttemptsGT: Int + sendAttemptsGTE: Int + sendAttemptsLT: Int + sendAttemptsLTE: Int + """ + requestor_id field predicates + """ + requestorID: String + requestorIDNEQ: String + requestorIDIn: [String!] + requestorIDNotIn: [String!] + requestorIDGT: String + requestorIDGTE: String + requestorIDLT: String + requestorIDLTE: String + requestorIDContains: String + requestorIDHasPrefix: String + requestorIDHasSuffix: String + requestorIDIsNil: Boolean + requestorIDNotNil: Boolean + requestorIDEqualFold: String + requestorIDContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +""" +A valid JSON string. +""" +scalar JSON +""" +The builtin Map type +""" +scalar Map +type Mutation { + """ + Create a new actionPlan + """ + createActionPlan( + """ + values of the actionPlan + """ + input: CreateActionPlanInput! + ): ActionPlanCreatePayload! + """ + Create multiple new actionPlans + """ + createBulkActionPlan( + """ + values of the actionPlan + """ + input: [CreateActionPlanInput!] + ): ActionPlanBulkCreatePayload! + """ + Create multiple new actionPlans via file upload + """ + createBulkCSVActionPlan( + """ + csv file containing values of the actionPlan + """ + input: Upload! + ): ActionPlanBulkCreatePayload! + """ + Update an existing actionPlan + """ + updateActionPlan( + """ + ID of the actionPlan + """ + id: ID! + + """ + New values for the actionPlan + """ + input: UpdateActionPlanInput! + ): ActionPlanUpdatePayload! + """ + Delete an existing actionPlan + """ + deleteActionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlanDeletePayload! + """ + Create a new apiToken + """ + createAPIToken( + """ + values of the apiToken + """ + input: CreateAPITokenInput! + ): APITokenCreatePayload! + """ + Create multiple new apiTokens + """ + createBulkAPIToken( + """ + values of the apiToken + """ + input: [CreateAPITokenInput!] + ): APITokenBulkCreatePayload! + """ + Create multiple new apiTokens via file upload + """ + createBulkCSVAPIToken( + """ + csv file containing values of the apiToken + """ + input: Upload! + ): APITokenBulkCreatePayload! + """ + Update an existing apiToken + """ + updateAPIToken( + """ + ID of the apiToken + """ + id: ID! + + """ + New values for the apiToken + """ + input: UpdateAPITokenInput! + ): APITokenUpdatePayload! + """ + Delete an existing apiToken + """ + deleteAPIToken( + """ + ID of the apiToken + """ + id: ID! + ): APITokenDeletePayload! + """ + Create a new contact + """ + createContact( + """ + values of the contact + """ + input: CreateContactInput! + ): ContactCreatePayload! + """ + Create multiple new contacts + """ + createBulkContact( + """ + values of the contact + """ + input: [CreateContactInput!] + ): ContactBulkCreatePayload! + """ + Create multiple new contacts via file upload + """ + createBulkCSVContact( + """ + csv file containing values of the contact + """ + input: Upload! + ): ContactBulkCreatePayload! + """ + Update an existing contact + """ + updateContact( + """ + ID of the contact + """ + id: ID! + + """ + New values for the contact + """ + input: UpdateContactInput! + ): ContactUpdatePayload! + """ + Delete an existing contact + """ + deleteContact( + """ + ID of the contact + """ + id: ID! + ): ContactDeletePayload! + """ + Create a new control + """ + createControl( + """ + values of the control + """ + input: CreateControlInput! + ): ControlCreatePayload! + """ + Create multiple new controls + """ + createBulkControl( + """ + values of the control + """ + input: [CreateControlInput!] + ): ControlBulkCreatePayload! + """ + Create multiple new controls via file upload + """ + createBulkCSVControl( + """ + csv file containing values of the control + """ + input: Upload! + ): ControlBulkCreatePayload! + """ + Update an existing control + """ + updateControl( + """ + ID of the control + """ + id: ID! + + """ + New values for the control + """ + input: UpdateControlInput! + ): ControlUpdatePayload! + """ + Delete an existing control + """ + deleteControl( + """ + ID of the control + """ + id: ID! + ): ControlDeletePayload! + """ + Create a new controlObjective + """ + createControlObjective( + """ + values of the controlObjective + """ + input: CreateControlObjectiveInput! + ): ControlObjectiveCreatePayload! + """ + Create multiple new controlObjectives + """ + createBulkControlObjective( + """ + values of the controlObjective + """ + input: [CreateControlObjectiveInput!] + ): ControlObjectiveBulkCreatePayload! + """ + Create multiple new controlObjectives via file upload + """ + createBulkCSVControlObjective( + """ + csv file containing values of the controlObjective + """ + input: Upload! + ): ControlObjectiveBulkCreatePayload! + """ + Update an existing controlObjective + """ + updateControlObjective( + """ + ID of the controlObjective + """ + id: ID! + + """ + New values for the controlObjective + """ + input: UpdateControlObjectiveInput! + ): ControlObjectiveUpdatePayload! + """ + Delete an existing controlObjective + """ + deleteControlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjectiveDeletePayload! + """ + Create a new documentData + """ + createDocumentData( + """ + values of the documentData + """ + input: CreateDocumentDataInput! + ): DocumentDataCreatePayload! + """ + Create multiple new documentData + """ + createBulkDocumentData( + """ + values of the documentData + """ + input: [CreateDocumentDataInput!] + ): DocumentDataBulkCreatePayload! + """ + Create multiple new documentData via file upload + """ + createBulkCSVDocumentData( + """ + csv file containing values of the documentData + """ + input: Upload! + ): DocumentDataBulkCreatePayload! + """ + Update an existing documentData + """ + updateDocumentData( + """ + ID of the documentData + """ + id: ID! + + """ + New values for the documentData + """ + input: UpdateDocumentDataInput! + ): DocumentDataUpdatePayload! + """ + Delete an existing documentData + """ + deleteDocumentData( + """ + ID of the documentData + """ + id: ID! + ): DocumentDataDeletePayload! + """ + Create a new entity + """ + createEntity( + """ + values of the entity + """ + input: CreateEntityInput! + ): EntityCreatePayload! + """ + Create multiple new entities + """ + createBulkEntity( + """ + values of the entity + """ + input: [CreateEntityInput!] + ): EntityBulkCreatePayload! + """ + Create multiple new entities via file upload + """ + createBulkCSVEntity( + """ + csv file containing values of the entity + """ + input: Upload! + ): EntityBulkCreatePayload! + """ + Update an existing entity + """ + updateEntity( + """ + ID of the entity + """ + id: ID! + + """ + New values for the entity + """ + input: UpdateEntityInput! + ): EntityUpdatePayload! + """ + Delete an existing entity + """ + deleteEntity( + """ + ID of the entity + """ + id: ID! + ): EntityDeletePayload! + """ + Create a new entityType + """ + createEntityType( + """ + values of the entityType + """ + input: CreateEntityTypeInput! + ): EntityTypeCreatePayload! + """ + Create multiple new entityTypes + """ + createBulkEntityType( + """ + values of the entityType + """ + input: [CreateEntityTypeInput!] + ): EntityTypeBulkCreatePayload! + """ + Create multiple new entityTypes via file upload + """ + createBulkCSVEntityType( + """ + csv file containing values of the entityType + """ + input: Upload! + ): EntityTypeBulkCreatePayload! + """ + Update an existing entityType + """ + updateEntityType( + """ + ID of the entityType + """ + id: ID! + + """ + New values for the entityType + """ + input: UpdateEntityTypeInput! + ): EntityTypeUpdatePayload! + """ + Delete an existing entityType + """ + deleteEntityType( + """ + ID of the entityType + """ + id: ID! + ): EntityTypeDeletePayload! + """ + Create a new event + """ + createEvent( + """ + values of the event + """ + input: CreateEventInput! + ): EventCreatePayload! + """ + Create multiple new events + """ + createBulkEvent( + """ + values of the event + """ + input: [CreateEventInput!] + ): EventBulkCreatePayload! + """ + Create multiple new events via file upload + """ + createBulkCSVEvent( + """ + csv file containing values of the event + """ + input: Upload! + ): EventBulkCreatePayload! + """ + Update an existing event + """ + updateEvent( + """ + ID of the event + """ + id: ID! + + """ + New values for the event + """ + input: UpdateEventInput! + ): EventUpdatePayload! + """ + Delete an existing event + """ + deleteEvent( + """ + ID of the event + """ + id: ID! + ): EventDeletePayload! + """ + Delete an existing file + """ + deleteFile( + """ + ID of the file + """ + id: ID! + ): FileDeletePayload! + """ + Create a new group + """ + createGroup( + """ + values of the group + """ + input: CreateGroupInput! + ): GroupCreatePayload! + """ + Create multiple new groups + """ + createBulkGroup( + """ + values of the group + """ + input: [CreateGroupInput!] + ): GroupBulkCreatePayload! + """ + Create multiple new groups via file upload + """ + createBulkCSVGroup( + """ + csv file containing values of the group + """ + input: Upload! + ): GroupBulkCreatePayload! + """ + Update an existing group + """ + updateGroup( + """ + ID of the group + """ + id: ID! + + """ + New values for the group + """ + input: UpdateGroupInput! + ): GroupUpdatePayload! + """ + Delete an existing group + """ + deleteGroup( + """ + ID of the group + """ + id: ID! + ): GroupDeletePayload! + """ + Create a new groupMembership + """ + createGroupMembership( + """ + values of the groupMembership + """ + input: CreateGroupMembershipInput! + ): GroupMembershipCreatePayload! + """ + Create multiple new groupMemberships + """ + createBulkGroupMembership( + """ + values of the groupMembership + """ + input: [CreateGroupMembershipInput!] + ): GroupMembershipBulkCreatePayload! + """ + Create multiple new groupMemberships via file upload + """ + createBulkCSVGroupMembership( + """ + csv file containing values of the groupMembership + """ + input: Upload! + ): GroupMembershipBulkCreatePayload! + """ + Update an existing groupMembership + """ + updateGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + + """ + New values for the groupMembership + """ + input: UpdateGroupMembershipInput! + ): GroupMembershipUpdatePayload! + """ + Delete an existing groupMembership + """ + deleteGroupMembership( + """ + ID of the groupMembership + """ + id: ID! + ): GroupMembershipDeletePayload! + """ + Create a new groupSetting + """ + createGroupSetting( + """ + values of the groupSetting + """ + input: CreateGroupSettingInput! + ): GroupSettingCreatePayload! + """ + Create multiple new groupSettings + """ + createBulkGroupSetting( + """ + values of the groupSetting + """ + input: [CreateGroupSettingInput!] + ): GroupSettingBulkCreatePayload! + """ + Create multiple new groupSettings via file upload + """ + createBulkCSVGroupSetting( + """ + csv file containing values of the groupSetting + """ + input: Upload! + ): GroupSettingBulkCreatePayload! + """ + Update an existing groupSetting + """ + updateGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + + """ + New values for the groupSetting + """ + input: UpdateGroupSettingInput! + ): GroupSettingUpdatePayload! + """ + Delete an existing groupSetting + """ + deleteGroupSetting( + """ + ID of the groupSetting + """ + id: ID! + ): GroupSettingDeletePayload! + """ + Create a new hush + """ + createHush( + """ + values of the hush + """ + input: CreateHushInput! + ): HushCreatePayload! + """ + Create multiple new hushs + """ + createBulkHush( + """ + values of the hush + """ + input: [CreateHushInput!] + ): HushBulkCreatePayload! + """ + Create multiple new hushs via file upload + """ + createBulkCSVHush( + """ + csv file containing values of the hush + """ + input: Upload! + ): HushBulkCreatePayload! + """ + Update an existing hush + """ + updateHush( + """ + ID of the hush + """ + id: ID! + + """ + New values for the hush + """ + input: UpdateHushInput! + ): HushUpdatePayload! + """ + Delete an existing hush + """ + deleteHush( + """ + ID of the hush + """ + id: ID! + ): HushDeletePayload! + """ + Create a new integration + """ + createIntegration( + """ + values of the integration + """ + input: CreateIntegrationInput! + ): IntegrationCreatePayload! + """ + Create multiple new integrations + """ + createBulkIntegration( + """ + values of the integration + """ + input: [CreateIntegrationInput!] + ): IntegrationBulkCreatePayload! + """ + Create multiple new integrations via file upload + """ + createBulkCSVIntegration( + """ + csv file containing values of the integration + """ + input: Upload! + ): IntegrationBulkCreatePayload! + """ + Update an existing integration + """ + updateIntegration( + """ + ID of the integration + """ + id: ID! + + """ + New values for the integration + """ + input: UpdateIntegrationInput! + ): IntegrationUpdatePayload! + """ + Delete an existing integration + """ + deleteIntegration( + """ + ID of the integration + """ + id: ID! + ): IntegrationDeletePayload! + """ + Create a new internalPolicy + """ + createInternalPolicy( + """ + values of the internalPolicy + """ + input: CreateInternalPolicyInput! + ): InternalPolicyCreatePayload! + """ + Create multiple new internalPolicys + """ + createBulkInternalPolicy( + """ + values of the internalPolicy + """ + input: [CreateInternalPolicyInput!] + ): InternalPolicyBulkCreatePayload! + """ + Create multiple new internalPolicys via file upload + """ + createBulkCSVInternalPolicy( + """ + csv file containing values of the internalPolicy + """ + input: Upload! + ): InternalPolicyBulkCreatePayload! + """ + Update an existing internalPolicy + """ + updateInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + + """ + New values for the internalPolicy + """ + input: UpdateInternalPolicyInput! + ): InternalPolicyUpdatePayload! + """ + Delete an existing internalPolicy + """ + deleteInternalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicyDeletePayload! + """ + Create a new invite + """ + createInvite( + """ + values of the invite + """ + input: CreateInviteInput! + ): InviteCreatePayload! + """ + Create multiple new invites + """ + createBulkInvite( + """ + values of the invite + """ + input: [CreateInviteInput!] + ): InviteBulkCreatePayload! + """ + Create multiple new invites via file upload + """ + createBulkCSVInvite( + """ + csv file containing values of the invite + """ + input: Upload! + ): InviteBulkCreatePayload! + """ + Update an existing invite + """ + updateInvite( + """ + ID of the invite + """ + id: ID! + + """ + New values for the invite + """ + input: UpdateInviteInput! + ): InviteUpdatePayload! + """ + Delete an existing invite + """ + deleteInvite( + """ + ID of the invite + """ + id: ID! + ): InviteDeletePayload! + """ + Create a new narrative + """ + createNarrative( + """ + values of the narrative + """ + input: CreateNarrativeInput! + ): NarrativeCreatePayload! + """ + Create multiple new narratives + """ + createBulkNarrative( + """ + values of the narrative + """ + input: [CreateNarrativeInput!] + ): NarrativeBulkCreatePayload! + """ + Create multiple new narratives via file upload + """ + createBulkCSVNarrative( + """ + csv file containing values of the narrative + """ + input: Upload! + ): NarrativeBulkCreatePayload! + """ + Update an existing narrative + """ + updateNarrative( + """ + ID of the narrative + """ + id: ID! + + """ + New values for the narrative + """ + input: UpdateNarrativeInput! + ): NarrativeUpdatePayload! + """ + Delete an existing narrative + """ + deleteNarrative( + """ + ID of the narrative + """ + id: ID! + ): NarrativeDeletePayload! + """ + Create a new organization + """ + createOrganization( + """ + values of the organization + """ + input: CreateOrganizationInput! + ): OrganizationCreatePayload! + """ + Create multiple new organizations + """ + createBulkOrganization( + """ + values of the organization + """ + input: [CreateOrganizationInput!] + ): OrganizationBulkCreatePayload! + """ + Create multiple new organizations via file upload + """ + createBulkCSVOrganization( + """ + csv file containing values of the organization + """ + input: Upload! + ): OrganizationBulkCreatePayload! + """ + Update an existing organization + """ + updateOrganization( + """ + ID of the organization + """ + id: ID! + + """ + New values for the organization + """ + input: UpdateOrganizationInput! + ): OrganizationUpdatePayload! + """ + Delete an existing organization + """ + deleteOrganization( + """ + ID of the organization + """ + id: ID! + ): OrganizationDeletePayload! + """ + Create a new organizationSetting + """ + createOrganizationSetting( + """ + values of the organizationSetting + """ + input: CreateOrganizationSettingInput! + ): OrganizationSettingCreatePayload! + """ + Create multiple new organizationSettings + """ + createBulkOrganizationSetting( + """ + values of the organizationSetting + """ + input: [CreateOrganizationSettingInput!] + ): OrganizationSettingBulkCreatePayload! + """ + Create multiple new organizationSettings via file upload + """ + createBulkCSVOrganizationSetting( + """ + csv file containing values of the organizationSetting + """ + input: Upload! + ): OrganizationSettingBulkCreatePayload! + """ + Update an existing organizationSetting + """ + updateOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + + """ + New values for the organizationSetting + """ + input: UpdateOrganizationSettingInput! + ): OrganizationSettingUpdatePayload! + """ + Delete an existing organizationSetting + """ + deleteOrganizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + ): OrganizationSettingDeletePayload! + """ + Create a new orgMembership + """ + createOrgMembership( + """ + values of the orgMembership + """ + input: CreateOrgMembershipInput! + ): OrgMembershipCreatePayload! + """ + Create multiple new orgMemberships + """ + createBulkOrgMembership( + """ + values of the orgMembership + """ + input: [CreateOrgMembershipInput!] + ): OrgMembershipBulkCreatePayload! + """ + Create multiple new orgMemberships via file upload + """ + createBulkCSVOrgMembership( + """ + csv file containing values of the orgMembership + """ + input: Upload! + ): OrgMembershipBulkCreatePayload! + """ + Update an existing orgMembership + """ + updateOrgMembership( + """ + ID of the orgMembership + """ + id: ID! + + """ + New values for the orgMembership + """ + input: UpdateOrgMembershipInput! + ): OrgMembershipUpdatePayload! + """ + Delete an existing orgMembership + """ + deleteOrgMembership( + """ + ID of the orgMembership + """ + id: ID! + ): OrgMembershipDeletePayload! + """ + Create a new orgSubscription + """ + createOrgSubscription( + """ + values of the orgSubscription + """ + input: CreateOrgSubscriptionInput! + ): OrgSubscriptionCreatePayload! + """ + Create multiple new orgSubscriptions + """ + createBulkOrgSubscription( + """ + values of the orgSubscription + """ + input: [CreateOrgSubscriptionInput!] + ): OrgSubscriptionBulkCreatePayload! + """ + Create multiple new orgSubscriptions via file upload + """ + createBulkCSVOrgSubscription( + """ + csv file containing values of the orgSubscription + """ + input: Upload! + ): OrgSubscriptionBulkCreatePayload! + """ + Update an existing orgSubscription + """ + updateOrgSubscription( + """ + ID of the orgSubscription + """ + id: ID! + + """ + New values for the orgSubscription + """ + input: UpdateOrgSubscriptionInput! + ): OrgSubscriptionUpdatePayload! + """ + Delete an existing orgSubscription + """ + deleteOrgSubscription( + """ + ID of the orgSubscription + """ + id: ID! + ): OrgSubscriptionDeletePayload! + """ + Create a new personalAccessToken + """ + createPersonalAccessToken( + """ + values of the personalAccessToken + """ + input: CreatePersonalAccessTokenInput! + ): PersonalAccessTokenCreatePayload! + """ + Create multiple new personalAccessTokens + """ + createBulkPersonalAccessToken( + """ + values of the personalAccessToken + """ + input: [CreatePersonalAccessTokenInput!] + ): PersonalAccessTokenBulkCreatePayload! + """ + Create multiple new personalAccessTokens via file upload + """ + createBulkCSVPersonalAccessToken( + """ + csv file containing values of the personalAccessToken + """ + input: Upload! + ): PersonalAccessTokenBulkCreatePayload! + """ + Update an existing personalAccessToken + """ + updatePersonalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + + """ + New values for the personalAccessToken + """ + input: UpdatePersonalAccessTokenInput! + ): PersonalAccessTokenUpdatePayload! + """ + Delete an existing personalAccessToken + """ + deletePersonalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + ): PersonalAccessTokenDeletePayload! + """ + Create a new procedure + """ + createProcedure( + """ + values of the procedure + """ + input: CreateProcedureInput! + ): ProcedureCreatePayload! + """ + Create multiple new procedures + """ + createBulkProcedure( + """ + values of the procedure + """ + input: [CreateProcedureInput!] + ): ProcedureBulkCreatePayload! + """ + Create multiple new procedures via file upload + """ + createBulkCSVProcedure( + """ + csv file containing values of the procedure + """ + input: Upload! + ): ProcedureBulkCreatePayload! + """ + Update an existing procedure + """ + updateProcedure( + """ + ID of the procedure + """ + id: ID! + + """ + New values for the procedure + """ + input: UpdateProcedureInput! + ): ProcedureUpdatePayload! + """ + Delete an existing procedure + """ + deleteProcedure( + """ + ID of the procedure + """ + id: ID! + ): ProcedureDeletePayload! + """ + Create a new program + """ + createProgram( + """ + values of the program + """ + input: CreateProgramInput! + ): ProgramCreatePayload! + """ + Create multiple new programs + """ + createBulkProgram( + """ + values of the program + """ + input: [CreateProgramInput!] + ): ProgramBulkCreatePayload! + """ + Create multiple new programs via file upload + """ + createBulkCSVProgram( + """ + csv file containing values of the program + """ + input: Upload! + ): ProgramBulkCreatePayload! + """ + Update an existing program + """ + updateProgram( + """ + ID of the program + """ + id: ID! + + """ + New values for the program + """ + input: UpdateProgramInput! + ): ProgramUpdatePayload! + """ + Delete an existing program + """ + deleteProgram( + """ + ID of the program + """ + id: ID! + ): ProgramDeletePayload! + """ + Create a new program with members + """ + createProgramWithMembers( + """ + values of the program + """ + input: CreateProgramWithMembersInput! + ): ProgramCreatePayload! + """ + Create a new program with options for edges (members, policies, procedures, risks, controls, standard) + """ + createFullProgram( + """ + values of the program + """ + input: CreateFullProgramInput! + ): ProgramCreatePayload! + """ + Create a controls with subcontrols + """ + createControlWithSubcontrols( + """ + values of the program + """ + input: CreateControlWithSubcontrolsInput! + ): ControlCreatePayload! + """ + Create a new programMembership + """ + createProgramMembership( + """ + values of the programMembership + """ + input: CreateProgramMembershipInput! + ): ProgramMembershipCreatePayload! + """ + Create multiple new programMemberships + """ + createBulkProgramMembership( + """ + values of the programMembership + """ + input: [CreateProgramMembershipInput!] + ): ProgramMembershipBulkCreatePayload! + """ + Create multiple new programMemberships via file upload + """ + createBulkCSVProgramMembership( + """ + csv file containing values of the programMembership + """ + input: Upload! + ): ProgramMembershipBulkCreatePayload! + """ + Update an existing programMembership + """ + updateProgramMembership( + """ + ID of the programMembership + """ + id: ID! + + """ + New values for the programMembership + """ + input: UpdateProgramMembershipInput! + ): ProgramMembershipUpdatePayload! + """ + Delete an existing programMembership + """ + deleteProgramMembership( + """ + ID of the programMembership + """ + id: ID! + ): ProgramMembershipDeletePayload! + """ + Create a new risk + """ + createRisk( + """ + values of the risk + """ + input: CreateRiskInput! + ): RiskCreatePayload! + """ + Create multiple new risks + """ + createBulkRisk( + """ + values of the risk + """ + input: [CreateRiskInput!] + ): RiskBulkCreatePayload! + """ + Create multiple new risks via file upload + """ + createBulkCSVRisk( + """ + csv file containing values of the risk + """ + input: Upload! + ): RiskBulkCreatePayload! + """ + Update an existing risk + """ + updateRisk( + """ + ID of the risk + """ + id: ID! + + """ + New values for the risk + """ + input: UpdateRiskInput! + ): RiskUpdatePayload! + """ + Delete an existing risk + """ + deleteRisk( + """ + ID of the risk + """ + id: ID! + ): RiskDeletePayload! + """ + Create a new standard + """ + createStandard( + """ + values of the standard + """ + input: CreateStandardInput! + ): StandardCreatePayload! + """ + Create multiple new standards + """ + createBulkStandard( + """ + values of the standard + """ + input: [CreateStandardInput!] + ): StandardBulkCreatePayload! + """ + Create multiple new standards via file upload + """ + createBulkCSVStandard( + """ + csv file containing values of the standard + """ + input: Upload! + ): StandardBulkCreatePayload! + """ + Update an existing standard + """ + updateStandard( + """ + ID of the standard + """ + id: ID! + + """ + New values for the standard + """ + input: UpdateStandardInput! + ): StandardUpdatePayload! + """ + Delete an existing standard + """ + deleteStandard( + """ + ID of the standard + """ + id: ID! + ): StandardDeletePayload! + """ + Create a new subcontrol + """ + createSubcontrol( + """ + values of the subcontrol + """ + input: CreateSubcontrolInput! + ): SubcontrolCreatePayload! + """ + Create multiple new subcontrols + """ + createBulkSubcontrol( + """ + values of the subcontrol + """ + input: [CreateSubcontrolInput!] + ): SubcontrolBulkCreatePayload! + """ + Create multiple new subcontrols via file upload + """ + createBulkCSVSubcontrol( + """ + csv file containing values of the subcontrol + """ + input: Upload! + ): SubcontrolBulkCreatePayload! + """ + Update an existing subcontrol + """ + updateSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + + """ + New values for the subcontrol + """ + input: UpdateSubcontrolInput! + ): SubcontrolUpdatePayload! + """ + Delete an existing subcontrol + """ + deleteSubcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): SubcontrolDeletePayload! + """ + Create a new subscriber + """ + createSubscriber( + """ + values of the subscriber + """ + input: CreateSubscriberInput! + ): SubscriberCreatePayload! + """ + Create new subscribers + """ + createBulkSubscriber( + """ + values of the subscriber + """ + input: [CreateSubscriberInput!] + ): SubscriberBulkCreatePayload! + """ + Create new subscribers via CSV file + """ + createBulkCSVSubscriber( + """ + values of the subscriber + """ + input: Upload! + ): SubscriberBulkCreatePayload! + """ + Update an existing subscriber + """ + updateSubscriber( + """ + Email of the subscriber + """ + email: String! + + """ + New values for the subscriber + """ + input: UpdateSubscriberInput! + ): SubscriberUpdatePayload! + """ + Delete an existing subscriber by Email + """ + deleteSubscriber( + """ + Email of the subscriber + """ + email: String! + + """ + OwnerID of the subscriber + """ + ownerID: ID + ): SubscriberDeletePayload! + """ + Create a new task + """ + createTask( + """ + values of the task + """ + input: CreateTaskInput! + ): TaskCreatePayload! + """ + Create multiple new tasks + """ + createBulkTask( + """ + values of the task + """ + input: [CreateTaskInput!] + ): TaskBulkCreatePayload! + """ + Create multiple new tasks via file upload + """ + createBulkCSVTask( + """ + csv file containing values of the task + """ + input: Upload! + ): TaskBulkCreatePayload! + """ + Update an existing task + """ + updateTask( + """ + ID of the task + """ + id: ID! + + """ + New values for the task + """ + input: UpdateTaskInput! + ): TaskUpdatePayload! + """ + Delete an existing task + """ + deleteTask( + """ + ID of the task + """ + id: ID! + ): TaskDeletePayload! + """ + Create a new template + """ + createTemplate( + """ + values of the template + """ + input: CreateTemplateInput! + ): TemplateCreatePayload! + """ + Create multiple new templates + """ + createBulkTemplate( + """ + values of the template + """ + input: [CreateTemplateInput!] + ): TemplateBulkCreatePayload! + """ + Create multiple new templates via file upload + """ + createBulkCSVTemplate( + """ + csv file containing values of the template + """ + input: Upload! + ): TemplateBulkCreatePayload! + """ + Update an existing template + """ + updateTemplate( + """ + ID of the template + """ + id: ID! + + """ + New values for the template + """ + input: UpdateTemplateInput! + ): TemplateUpdatePayload! + """ + Delete an existing template + """ + deleteTemplate( + """ + ID of the template + """ + id: ID! + ): TemplateDeletePayload! + """ + Create a new tfaSetting + """ + createTFASetting( + """ + values of the tfaSetting + """ + input: CreateTFASettingInput! + ): TFASettingCreatePayload! + """ + Update an existing tfaSetting + """ + updateTFASetting( + """ + New values for the tfaSetting + """ + input: UpdateTFASettingInput! + ): TFASettingUpdatePayload! + """ + Create a new user + """ + createUser( + """ + values of the user + """ + input: CreateUserInput! + avatarFile: Upload): UserCreatePayload! + """ + Update an existing user + """ + updateUser( + """ + ID of the user + """ + id: ID! + + """ + New values for the user + """ + input: UpdateUserInput! + avatarFile: Upload): UserUpdatePayload! + """ + Delete an existing user + """ + deleteUser( + """ + ID of the user + """ + id: ID! + ): UserDeletePayload! + """ + Create a new userSetting + """ + createUserSetting( + """ + values of the userSetting + """ + input: CreateUserSettingInput! + ): UserSettingCreatePayload! + """ + Create multiple new userSettings + """ + createBulkUserSetting( + """ + values of the userSetting + """ + input: [CreateUserSettingInput!] + ): UserSettingBulkCreatePayload! + """ + Create multiple new userSettings via file upload + """ + createBulkCSVUserSetting( + """ + csv file containing values of the userSetting + """ + input: Upload! + ): UserSettingBulkCreatePayload! + """ + Update an existing userSetting + """ + updateUserSetting( + """ + ID of the userSetting + """ + id: ID! + + """ + New values for the userSetting + """ + input: UpdateUserSettingInput! + ): UserSettingUpdatePayload! +} +type Narrative implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + internalPolicy: [InternalPolicy!] + control: [Control!] + procedure: [Procedure!] + controlObjective: [ControlObjective!] + programs: [Program!] +} +""" +Return response for createBulkNarrative mutation +""" +type NarrativeBulkCreatePayload { + """ + Created narratives + """ + narratives: [Narrative!] +} +""" +A connection to a list of items. +""" +type NarrativeConnection { + """ + A list of edges. + """ + edges: [NarrativeEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createNarrative mutation +""" +type NarrativeCreatePayload { + """ + Created narrative + """ + narrative: Narrative! +} +""" +Return response for deleteNarrative mutation +""" +type NarrativeDeletePayload { + """ + Deleted narrative ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type NarrativeEdge { + """ + The item at the end of the edge. + """ + node: Narrative + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NarrativeHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NarrativeHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the narrative + """ + name: String! + """ + the description of the narrative + """ + description: String + """ + which controls are satisfied by the narrative + """ + satisfies: String + """ + json data for the narrative document + """ + details: Map +} +""" +A connection to a list of items. +""" +type NarrativeHistoryConnection { + """ + A list of edges. + """ + edges: [NarrativeHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NarrativeHistoryEdge { + """ + The item at the end of the edge. + """ + node: NarrativeHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NarrativeHistoryOpType is enum for the field operation +""" +enum NarrativeHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NarrativeHistoryWhereInput is used for filtering NarrativeHistory objects. +Input was generated by ent. +""" +input NarrativeHistoryWhereInput { + not: NarrativeHistoryWhereInput + and: [NarrativeHistoryWhereInput!] + or: [NarrativeHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NarrativeHistoryOpType + operationNEQ: NarrativeHistoryOpType + operationIn: [NarrativeHistoryOpType!] + operationNotIn: [NarrativeHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +type NarrativeSearchResult { + narratives: [Narrative!] +} +""" +Return response for updateNarrative mutation +""" +type NarrativeUpdatePayload { + """ + Updated narrative + """ + narrative: Narrative! +} +""" +NarrativeWhereInput is used for filtering Narrative objects. +Input was generated by ent. +""" +input NarrativeWhereInput { + not: NarrativeWhereInput + and: [NarrativeWhereInput!] + or: [NarrativeWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + internal_policy edge predicates + """ + hasInternalPolicy: Boolean + hasInternalPolicyWith: [InternalPolicyWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + control_objective edge predicates + """ + hasControlObjective: Boolean + hasControlObjectiveWith: [ControlObjectiveWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +""" +An object with an ID. +Follows the [Relay Global Object Identification Specification](https://relay.dev/graphql/objectidentification.htm) +""" +interface Node @goModel(model: "github.com/theopenlane/core/internal/ent/generated.Noder") { + """ + The id of the object. + """ + id: ID! +} +type Note implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the text of the note + """ + text: String! + owner: Organization + entity: Entity + subcontrols: [Subcontrol!] + program: [Program!] +} +""" +A connection to a list of items. +""" +type NoteConnection { + """ + A list of edges. + """ + edges: [NoteEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteEdge { + """ + The item at the end of the edge. + """ + node: Note + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type NoteHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: NoteHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the text of the note + """ + text: String! +} +""" +A connection to a list of items. +""" +type NoteHistoryConnection { + """ + A list of edges. + """ + edges: [NoteHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type NoteHistoryEdge { + """ + The item at the end of the edge. + """ + node: NoteHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +NoteHistoryOpType is enum for the field operation +""" +enum NoteHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +NoteHistoryWhereInput is used for filtering NoteHistory objects. +Input was generated by ent. +""" +input NoteHistoryWhereInput { + not: NoteHistoryWhereInput + and: [NoteHistoryWhereInput!] + or: [NoteHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: NoteHistoryOpType + operationNEQ: NoteHistoryOpType + operationIn: [NoteHistoryOpType!] + operationNotIn: [NoteHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String +} +""" +NoteWhereInput is used for filtering Note objects. +Input was generated by ent. +""" +input NoteWhereInput { + not: NoteWhereInput + and: [NoteWhereInput!] + or: [NoteWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + text field predicates + """ + text: String + textNEQ: String + textIn: [String!] + textNotIn: [String!] + textGT: String + textGTE: String + textLT: String + textLTE: String + textContains: String + textHasPrefix: String + textHasSuffix: String + textEqualFold: String + textContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + entity edge predicates + """ + hasEntity: Boolean + hasEntityWith: [EntityWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +""" +Possible directions in which to order a list of items when provided an `orderBy` argument. +""" +enum OrderDirection { + """ + Specifies an ascending order for a given `orderBy` argument. + """ + ASC + """ + Specifies a descending order for a given `orderBy` argument. + """ + DESC +} +type OrgMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipRole! + organizationID: ID! + userID: ID! + organization: Organization! + user: User! + events: [Event!] +} +""" +Return response for createBulkOrgMembership mutation +""" +type OrgMembershipBulkCreatePayload { + """ + Created orgMemberships + """ + orgMemberships: [OrgMembership!] +} +""" +A connection to a list of items. +""" +type OrgMembershipConnection { + """ + A list of edges. + """ + edges: [OrgMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOrgMembership mutation +""" +type OrgMembershipCreatePayload { + """ + Created orgMembership + """ + orgMembership: OrgMembership! +} +""" +Return response for deleteOrgMembership mutation +""" +type OrgMembershipDeletePayload { + """ + Deleted orgMembership ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OrgMembershipEdge { + """ + The item at the end of the edge. + """ + node: OrgMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrgMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrgMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: OrgMembershipHistoryRole! + organizationID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type OrgMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [OrgMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrgMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrgMembershipHistoryOpType is enum for the field operation +""" +enum OrgMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrgMembershipHistoryRole is enum for the field role +""" +enum OrgMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + OWNER +} +""" +OrgMembershipHistoryWhereInput is used for filtering OrgMembershipHistory objects. +Input was generated by ent. +""" +input OrgMembershipHistoryWhereInput { + not: OrgMembershipHistoryWhereInput + and: [OrgMembershipHistoryWhereInput!] + or: [OrgMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrgMembershipHistoryOpType + operationNEQ: OrgMembershipHistoryOpType + operationIn: [OrgMembershipHistoryOpType!] + operationNotIn: [OrgMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipHistoryRole + roleNEQ: OrgMembershipHistoryRole + roleIn: [OrgMembershipHistoryRole!] + roleNotIn: [OrgMembershipHistoryRole!] + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDEqualFold: String + organizationIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +OrgMembershipRole is enum for the field role +""" +enum OrgMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + OWNER +} +""" +Return response for updateOrgMembership mutation +""" +type OrgMembershipUpdatePayload { + """ + Updated orgMembership + """ + orgMembership: OrgMembership! +} +""" +OrgMembershipWhereInput is used for filtering OrgMembership objects. +Input was generated by ent. +""" +input OrgMembershipWhereInput { + not: OrgMembershipWhereInput + and: [OrgMembershipWhereInput!] + or: [OrgMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: OrgMembershipRole + roleNEQ: OrgMembershipRole + roleIn: [OrgMembershipRole!] + roleNotIn: [OrgMembershipRole!] + organizationID: String + userID: String +} +type OrgSubscription implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + the stripe subscription id + """ + stripeSubscriptionID: String + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + """ + indicates if the subscription is active + """ + active: Boolean! + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + """ + the features associated with the subscription + """ + features: [String!] + owner: Organization +} +""" +Return response for createBulkOrgSubscription mutation +""" +type OrgSubscriptionBulkCreatePayload { + """ + Created orgSubscriptions + """ + orgSubscriptions: [OrgSubscription!] +} +""" +A connection to a list of items. +""" +type OrgSubscriptionConnection { + """ + A list of edges. + """ + edges: [OrgSubscriptionEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOrgSubscription mutation +""" +type OrgSubscriptionCreatePayload { + """ + Created orgSubscription + """ + orgSubscription: OrgSubscription! +} +""" +Return response for deleteOrgSubscription mutation +""" +type OrgSubscriptionDeletePayload { + """ + Deleted orgSubscription ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OrgSubscriptionEdge { + """ + The item at the end of the edge. + """ + node: OrgSubscription + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrgSubscriptionHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrgSubscriptionHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: String + """ + the stripe subscription id + """ + stripeSubscriptionID: String + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + """ + indicates if the subscription is active + """ + active: Boolean! + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + """ + the features associated with the subscription + """ + features: [String!] +} +""" +A connection to a list of items. +""" +type OrgSubscriptionHistoryConnection { + """ + A list of edges. + """ + edges: [OrgSubscriptionHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrgSubscriptionHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrgSubscriptionHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrgSubscriptionHistoryOpType is enum for the field operation +""" +enum OrgSubscriptionHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrgSubscriptionHistoryWhereInput is used for filtering OrgSubscriptionHistory objects. +Input was generated by ent. +""" +input OrgSubscriptionHistoryWhereInput { + not: OrgSubscriptionHistoryWhereInput + and: [OrgSubscriptionHistoryWhereInput!] + or: [OrgSubscriptionHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrgSubscriptionHistoryOpType + operationNEQ: OrgSubscriptionHistoryOpType + operationIn: [OrgSubscriptionHistoryOpType!] + operationNotIn: [OrgSubscriptionHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + stripe_subscription_id field predicates + """ + stripeSubscriptionID: String + stripeSubscriptionIDNEQ: String + stripeSubscriptionIDIn: [String!] + stripeSubscriptionIDNotIn: [String!] + stripeSubscriptionIDGT: String + stripeSubscriptionIDGTE: String + stripeSubscriptionIDLT: String + stripeSubscriptionIDLTE: String + stripeSubscriptionIDContains: String + stripeSubscriptionIDHasPrefix: String + stripeSubscriptionIDHasSuffix: String + stripeSubscriptionIDIsNil: Boolean + stripeSubscriptionIDNotNil: Boolean + stripeSubscriptionIDEqualFold: String + stripeSubscriptionIDContainsFold: String + """ + product_tier field predicates + """ + productTier: String + productTierNEQ: String + productTierIn: [String!] + productTierNotIn: [String!] + productTierGT: String + productTierGTE: String + productTierLT: String + productTierLTE: String + productTierContains: String + productTierHasPrefix: String + productTierHasSuffix: String + productTierIsNil: Boolean + productTierNotNil: Boolean + productTierEqualFold: String + productTierContainsFold: String + """ + stripe_product_tier_id field predicates + """ + stripeProductTierID: String + stripeProductTierIDNEQ: String + stripeProductTierIDIn: [String!] + stripeProductTierIDNotIn: [String!] + stripeProductTierIDGT: String + stripeProductTierIDGTE: String + stripeProductTierIDLT: String + stripeProductTierIDLTE: String + stripeProductTierIDContains: String + stripeProductTierIDHasPrefix: String + stripeProductTierIDHasSuffix: String + stripeProductTierIDIsNil: Boolean + stripeProductTierIDNotNil: Boolean + stripeProductTierIDEqualFold: String + stripeProductTierIDContainsFold: String + """ + stripe_subscription_status field predicates + """ + stripeSubscriptionStatus: String + stripeSubscriptionStatusNEQ: String + stripeSubscriptionStatusIn: [String!] + stripeSubscriptionStatusNotIn: [String!] + stripeSubscriptionStatusGT: String + stripeSubscriptionStatusGTE: String + stripeSubscriptionStatusLT: String + stripeSubscriptionStatusLTE: String + stripeSubscriptionStatusContains: String + stripeSubscriptionStatusHasPrefix: String + stripeSubscriptionStatusHasSuffix: String + stripeSubscriptionStatusIsNil: Boolean + stripeSubscriptionStatusNotNil: Boolean + stripeSubscriptionStatusEqualFold: String + stripeSubscriptionStatusContainsFold: String + """ + active field predicates + """ + active: Boolean + activeNEQ: Boolean + """ + stripe_customer_id field predicates + """ + stripeCustomerID: String + stripeCustomerIDNEQ: String + stripeCustomerIDIn: [String!] + stripeCustomerIDNotIn: [String!] + stripeCustomerIDGT: String + stripeCustomerIDGTE: String + stripeCustomerIDLT: String + stripeCustomerIDLTE: String + stripeCustomerIDContains: String + stripeCustomerIDHasPrefix: String + stripeCustomerIDHasSuffix: String + stripeCustomerIDIsNil: Boolean + stripeCustomerIDNotNil: Boolean + stripeCustomerIDEqualFold: String + stripeCustomerIDContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean +} +type OrgSubscriptionSearchResult { + orgSubscriptions: [OrgSubscription!] +} +""" +Return response for updateOrgSubscription mutation +""" +type OrgSubscriptionUpdatePayload { + """ + Updated orgSubscription + """ + orgSubscription: OrgSubscription! +} +""" +OrgSubscriptionWhereInput is used for filtering OrgSubscription objects. +Input was generated by ent. +""" +input OrgSubscriptionWhereInput { + not: OrgSubscriptionWhereInput + and: [OrgSubscriptionWhereInput!] + or: [OrgSubscriptionWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + stripe_subscription_id field predicates + """ + stripeSubscriptionID: String + stripeSubscriptionIDNEQ: String + stripeSubscriptionIDIn: [String!] + stripeSubscriptionIDNotIn: [String!] + stripeSubscriptionIDGT: String + stripeSubscriptionIDGTE: String + stripeSubscriptionIDLT: String + stripeSubscriptionIDLTE: String + stripeSubscriptionIDContains: String + stripeSubscriptionIDHasPrefix: String + stripeSubscriptionIDHasSuffix: String + stripeSubscriptionIDIsNil: Boolean + stripeSubscriptionIDNotNil: Boolean + stripeSubscriptionIDEqualFold: String + stripeSubscriptionIDContainsFold: String + """ + product_tier field predicates + """ + productTier: String + productTierNEQ: String + productTierIn: [String!] + productTierNotIn: [String!] + productTierGT: String + productTierGTE: String + productTierLT: String + productTierLTE: String + productTierContains: String + productTierHasPrefix: String + productTierHasSuffix: String + productTierIsNil: Boolean + productTierNotNil: Boolean + productTierEqualFold: String + productTierContainsFold: String + """ + stripe_product_tier_id field predicates + """ + stripeProductTierID: String + stripeProductTierIDNEQ: String + stripeProductTierIDIn: [String!] + stripeProductTierIDNotIn: [String!] + stripeProductTierIDGT: String + stripeProductTierIDGTE: String + stripeProductTierIDLT: String + stripeProductTierIDLTE: String + stripeProductTierIDContains: String + stripeProductTierIDHasPrefix: String + stripeProductTierIDHasSuffix: String + stripeProductTierIDIsNil: Boolean + stripeProductTierIDNotNil: Boolean + stripeProductTierIDEqualFold: String + stripeProductTierIDContainsFold: String + """ + stripe_subscription_status field predicates + """ + stripeSubscriptionStatus: String + stripeSubscriptionStatusNEQ: String + stripeSubscriptionStatusIn: [String!] + stripeSubscriptionStatusNotIn: [String!] + stripeSubscriptionStatusGT: String + stripeSubscriptionStatusGTE: String + stripeSubscriptionStatusLT: String + stripeSubscriptionStatusLTE: String + stripeSubscriptionStatusContains: String + stripeSubscriptionStatusHasPrefix: String + stripeSubscriptionStatusHasSuffix: String + stripeSubscriptionStatusIsNil: Boolean + stripeSubscriptionStatusNotNil: Boolean + stripeSubscriptionStatusEqualFold: String + stripeSubscriptionStatusContainsFold: String + """ + active field predicates + """ + active: Boolean + activeNEQ: Boolean + """ + stripe_customer_id field predicates + """ + stripeCustomerID: String + stripeCustomerIDNEQ: String + stripeCustomerIDIn: [String!] + stripeCustomerIDNotIn: [String!] + stripeCustomerIDGT: String + stripeCustomerIDGTE: String + stripeCustomerIDLT: String + stripeCustomerIDLTE: String + stripeCustomerIDContains: String + stripeCustomerIDHasPrefix: String + stripeCustomerIDHasSuffix: String + stripeCustomerIDIsNil: Boolean + stripeCustomerIDNotNil: Boolean + stripeCustomerIDEqualFold: String + stripeCustomerIDContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] +} +type Organization implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! + """ + groups that are allowed to create controls + """ + controlCreators: [Group!] + """ + groups that are allowed to create control_objectives + """ + controlObjectiveCreators: [Group!] + """ + groups that are allowed to create groups + """ + groupCreators: [Group!] + """ + groups that are allowed to create internal_policys + """ + internalPolicyCreators: [Group!] + """ + groups that are allowed to create narratives + """ + narrativeCreators: [Group!] + """ + groups that are allowed to create procedures + """ + procedureCreators: [Group!] + """ + groups that are allowed to create programs + """ + programCreators: [Group!] + """ + groups that are allowed to create risks + """ + riskCreators: [Group!] + """ + groups that are allowed to create templates + """ + templateCreators: [Group!] + parent: Organization + children( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + groups: [Group!] + templates: [Template!] + integrations: [Integration!] + setting: OrganizationSetting + documentData: [DocumentData!] + orgSubscriptions: [OrgSubscription!] + personalAccessTokens: [PersonalAccessToken!] + apiTokens: [APIToken!] + users: [User!] + invites: [Invite!] + subscribers: [Subscriber!] + events: [Event!] + secrets: [Hush!] + files: [File!] + entities: [Entity!] + entityTypes: [EntityType!] + contacts: [Contact!] + notes: [Note!] + tasks: [Task!] + programs: [Program!] + procedures: [Procedure!] + internalPolicies: [InternalPolicy!] + risks: [Risk!] + controlObjectives: [ControlObjective!] + narratives: [Narrative!] + controls: [Control!] + subcontrols: [Subcontrol!] + members: [OrgMembership!] +} +""" +Return response for createBulkOrganization mutation +""" +type OrganizationBulkCreatePayload { + """ + Created organizations + """ + organizations: [Organization!] +} +""" +A connection to a list of items. +""" +type OrganizationConnection { + """ + A list of edges. + """ + edges: [OrganizationEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOrganization mutation +""" +type OrganizationCreatePayload { + """ + Created organization + """ + organization: Organization! +} +""" +Return response for deleteOrganization mutation +""" +type OrganizationDeletePayload { + """ + Deleted organization ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OrganizationEdge { + """ + The item at the end of the edge. + """ + node: Organization + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the name of the organization + """ + name: String! + """ + The organization's displayed 'friendly' name + """ + displayName: String! + """ + An optional description of the organization + """ + description: String + """ + orgs directly associated with a user + """ + personalOrg: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + Whether the organization has a dedicated database + """ + dedicatedDb: Boolean! +} +""" +A connection to a list of items. +""" +type OrganizationHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationHistoryOpType is enum for the field operation +""" +enum OrganizationHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for OrganizationHistory connections +""" +input OrganizationHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order OrganizationHistories. + """ + field: OrganizationHistoryOrderField! +} +""" +Properties by which OrganizationHistory connections can be ordered. +""" +enum OrganizationHistoryOrderField { + name + display_name +} +""" +OrganizationHistoryWhereInput is used for filtering OrganizationHistory objects. +Input was generated by ent. +""" +input OrganizationHistoryWhereInput { + not: OrganizationHistoryWhereInput + and: [OrganizationHistoryWhereInput!] + or: [OrganizationHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationHistoryOpType + operationNEQ: OrganizationHistoryOpType + operationIn: [OrganizationHistoryOpType!] + operationNotIn: [OrganizationHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String +} +""" +Ordering options for Organization connections +""" +input OrganizationOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Organizations. + """ + field: OrganizationOrderField! +} +""" +Properties by which Organization connections can be ordered. +""" +enum OrganizationOrderField { + name + display_name +} +type OrganizationSearchResult { + organizations: [Organization!] +} +type OrganizationSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + """ + the ID of the organization the settings belong to + """ + organizationID: ID + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String + organization: Organization + files: [File!] +} +""" +Return response for createBulkOrganizationSetting mutation +""" +type OrganizationSettingBulkCreatePayload { + """ + Created organizationSettings + """ + organizationSettings: [OrganizationSetting!] +} +""" +A connection to a list of items. +""" +type OrganizationSettingConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createOrganizationSetting mutation +""" +type OrganizationSettingCreatePayload { + """ + Created organizationSetting + """ + organizationSetting: OrganizationSetting! +} +""" +Return response for deleteOrganizationSetting mutation +""" +type OrganizationSettingDeletePayload { + """ + Deleted organizationSetting ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type OrganizationSettingEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type OrganizationSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: OrganizationSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + domains associated with the organization + """ + domains: [String!] + """ + Name of the person to contact for billing + """ + billingContact: String + """ + Email address of the person to contact for billing + """ + billingEmail: String + """ + Phone number to contact for billing + """ + billingPhone: String + """ + Address to send billing information to + """ + billingAddress: String + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingHistoryRegion + """ + the ID of the organization the settings belong to + """ + organizationID: String + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String +} +""" +A connection to a list of items. +""" +type OrganizationSettingHistoryConnection { + """ + A list of edges. + """ + edges: [OrganizationSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type OrganizationSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: OrganizationSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +OrganizationSettingHistoryOpType is enum for the field operation +""" +enum OrganizationSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +OrganizationSettingHistoryRegion is enum for the field geo_location +""" +enum OrganizationSettingHistoryRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +""" +OrganizationSettingHistoryWhereInput is used for filtering OrganizationSettingHistory objects. +Input was generated by ent. +""" +input OrganizationSettingHistoryWhereInput { + not: OrganizationSettingHistoryWhereInput + and: [OrganizationSettingHistoryWhereInput!] + or: [OrganizationSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: OrganizationSettingHistoryOpType + operationNEQ: OrganizationSettingHistoryOpType + operationIn: [OrganizationSettingHistoryOpType!] + operationNotIn: [OrganizationSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingHistoryRegion + geoLocationNEQ: OrganizationSettingHistoryRegion + geoLocationIn: [OrganizationSettingHistoryRegion!] + geoLocationNotIn: [OrganizationSettingHistoryRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: String + organizationIDNEQ: String + organizationIDIn: [String!] + organizationIDNotIn: [String!] + organizationIDGT: String + organizationIDGTE: String + organizationIDLT: String + organizationIDLTE: String + organizationIDContains: String + organizationIDHasPrefix: String + organizationIDHasSuffix: String + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: String + organizationIDContainsFold: String + """ + stripe_id field predicates + """ + stripeID: String + stripeIDNEQ: String + stripeIDIn: [String!] + stripeIDNotIn: [String!] + stripeIDGT: String + stripeIDGTE: String + stripeIDLT: String + stripeIDLTE: String + stripeIDContains: String + stripeIDHasPrefix: String + stripeIDHasSuffix: String + stripeIDIsNil: Boolean + stripeIDNotNil: Boolean + stripeIDEqualFold: String + stripeIDContainsFold: String +} +""" +OrganizationSettingRegion is enum for the field geo_location +""" +enum OrganizationSettingRegion @goModel(model: "github.com/theopenlane/core/pkg/enums.Region") { + AMER + EMEA + APAC +} +type OrganizationSettingSearchResult { + organizationSettings: [OrganizationSetting!] +} +""" +Return response for updateOrganizationSetting mutation +""" +type OrganizationSettingUpdatePayload { + """ + Updated organizationSetting + """ + organizationSetting: OrganizationSetting! +} +""" +OrganizationSettingWhereInput is used for filtering OrganizationSetting objects. +Input was generated by ent. +""" +input OrganizationSettingWhereInput { + not: OrganizationSettingWhereInput + and: [OrganizationSettingWhereInput!] + or: [OrganizationSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + billing_contact field predicates + """ + billingContact: String + billingContactNEQ: String + billingContactIn: [String!] + billingContactNotIn: [String!] + billingContactGT: String + billingContactGTE: String + billingContactLT: String + billingContactLTE: String + billingContactContains: String + billingContactHasPrefix: String + billingContactHasSuffix: String + billingContactIsNil: Boolean + billingContactNotNil: Boolean + billingContactEqualFold: String + billingContactContainsFold: String + """ + billing_email field predicates + """ + billingEmail: String + billingEmailNEQ: String + billingEmailIn: [String!] + billingEmailNotIn: [String!] + billingEmailGT: String + billingEmailGTE: String + billingEmailLT: String + billingEmailLTE: String + billingEmailContains: String + billingEmailHasPrefix: String + billingEmailHasSuffix: String + billingEmailIsNil: Boolean + billingEmailNotNil: Boolean + billingEmailEqualFold: String + billingEmailContainsFold: String + """ + billing_phone field predicates + """ + billingPhone: String + billingPhoneNEQ: String + billingPhoneIn: [String!] + billingPhoneNotIn: [String!] + billingPhoneGT: String + billingPhoneGTE: String + billingPhoneLT: String + billingPhoneLTE: String + billingPhoneContains: String + billingPhoneHasPrefix: String + billingPhoneHasSuffix: String + billingPhoneIsNil: Boolean + billingPhoneNotNil: Boolean + billingPhoneEqualFold: String + billingPhoneContainsFold: String + """ + billing_address field predicates + """ + billingAddress: String + billingAddressNEQ: String + billingAddressIn: [String!] + billingAddressNotIn: [String!] + billingAddressGT: String + billingAddressGTE: String + billingAddressLT: String + billingAddressLTE: String + billingAddressContains: String + billingAddressHasPrefix: String + billingAddressHasSuffix: String + billingAddressIsNil: Boolean + billingAddressNotNil: Boolean + billingAddressEqualFold: String + billingAddressContainsFold: String + """ + tax_identifier field predicates + """ + taxIdentifier: String + taxIdentifierNEQ: String + taxIdentifierIn: [String!] + taxIdentifierNotIn: [String!] + taxIdentifierGT: String + taxIdentifierGTE: String + taxIdentifierLT: String + taxIdentifierLTE: String + taxIdentifierContains: String + taxIdentifierHasPrefix: String + taxIdentifierHasSuffix: String + taxIdentifierIsNil: Boolean + taxIdentifierNotNil: Boolean + taxIdentifierEqualFold: String + taxIdentifierContainsFold: String + """ + geo_location field predicates + """ + geoLocation: OrganizationSettingRegion + geoLocationNEQ: OrganizationSettingRegion + geoLocationIn: [OrganizationSettingRegion!] + geoLocationNotIn: [OrganizationSettingRegion!] + geoLocationIsNil: Boolean + geoLocationNotNil: Boolean + """ + organization_id field predicates + """ + organizationID: ID + organizationIDNEQ: ID + organizationIDIn: [ID!] + organizationIDNotIn: [ID!] + organizationIDGT: ID + organizationIDGTE: ID + organizationIDLT: ID + organizationIDLTE: ID + organizationIDContains: ID + organizationIDHasPrefix: ID + organizationIDHasSuffix: ID + organizationIDIsNil: Boolean + organizationIDNotNil: Boolean + organizationIDEqualFold: ID + organizationIDContainsFold: ID + """ + stripe_id field predicates + """ + stripeID: String + stripeIDNEQ: String + stripeIDIn: [String!] + stripeIDNotIn: [String!] + stripeIDGT: String + stripeIDGTE: String + stripeIDLT: String + stripeIDLTE: String + stripeIDContains: String + stripeIDHasPrefix: String + stripeIDHasSuffix: String + stripeIDIsNil: Boolean + stripeIDNotNil: Boolean + stripeIDEqualFold: String + stripeIDContainsFold: String + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +Return response for updateOrganization mutation +""" +type OrganizationUpdatePayload { + """ + Updated organization + """ + organization: Organization! +} +""" +OrganizationWhereInput is used for filtering Organization objects. +Input was generated by ent. +""" +input OrganizationWhereInput { + not: OrganizationWhereInput + and: [OrganizationWhereInput!] + or: [OrganizationWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + parent_organization_id field predicates + """ + parentOrganizationID: ID + parentOrganizationIDNEQ: ID + parentOrganizationIDIn: [ID!] + parentOrganizationIDNotIn: [ID!] + parentOrganizationIDGT: ID + parentOrganizationIDGTE: ID + parentOrganizationIDLT: ID + parentOrganizationIDLTE: ID + parentOrganizationIDContains: ID + parentOrganizationIDHasPrefix: ID + parentOrganizationIDHasSuffix: ID + parentOrganizationIDIsNil: Boolean + parentOrganizationIDNotNil: Boolean + parentOrganizationIDEqualFold: ID + parentOrganizationIDContainsFold: ID + """ + personal_org field predicates + """ + personalOrg: Boolean + personalOrgNEQ: Boolean + personalOrgIsNil: Boolean + personalOrgNotNil: Boolean + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + control_creators edge predicates + """ + hasControlCreators: Boolean + hasControlCreatorsWith: [GroupWhereInput!] + """ + control_objective_creators edge predicates + """ + hasControlObjectiveCreators: Boolean + hasControlObjectiveCreatorsWith: [GroupWhereInput!] + """ + group_creators edge predicates + """ + hasGroupCreators: Boolean + hasGroupCreatorsWith: [GroupWhereInput!] + """ + internal_policy_creators edge predicates + """ + hasInternalPolicyCreators: Boolean + hasInternalPolicyCreatorsWith: [GroupWhereInput!] + """ + narrative_creators edge predicates + """ + hasNarrativeCreators: Boolean + hasNarrativeCreatorsWith: [GroupWhereInput!] + """ + procedure_creators edge predicates + """ + hasProcedureCreators: Boolean + hasProcedureCreatorsWith: [GroupWhereInput!] + """ + program_creators edge predicates + """ + hasProgramCreators: Boolean + hasProgramCreatorsWith: [GroupWhereInput!] + """ + risk_creators edge predicates + """ + hasRiskCreators: Boolean + hasRiskCreatorsWith: [GroupWhereInput!] + """ + template_creators edge predicates + """ + hasTemplateCreators: Boolean + hasTemplateCreatorsWith: [GroupWhereInput!] + """ + parent edge predicates + """ + hasParent: Boolean + hasParentWith: [OrganizationWhereInput!] + """ + children edge predicates + """ + hasChildren: Boolean + hasChildrenWith: [OrganizationWhereInput!] + """ + groups edge predicates + """ + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] + """ + templates edge predicates + """ + hasTemplates: Boolean + hasTemplatesWith: [TemplateWhereInput!] + """ + integrations edge predicates + """ + hasIntegrations: Boolean + hasIntegrationsWith: [IntegrationWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [OrganizationSettingWhereInput!] + """ + document_data edge predicates + """ + hasDocumentData: Boolean + hasDocumentDataWith: [DocumentDataWhereInput!] + """ + org_subscriptions edge predicates + """ + hasOrgSubscriptions: Boolean + hasOrgSubscriptionsWith: [OrgSubscriptionWhereInput!] + """ + personal_access_tokens edge predicates + """ + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + """ + api_tokens edge predicates + """ + hasAPITokens: Boolean + hasAPITokensWith: [APITokenWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + invites edge predicates + """ + hasInvites: Boolean + hasInvitesWith: [InviteWhereInput!] + """ + subscribers edge predicates + """ + hasSubscribers: Boolean + hasSubscribersWith: [SubscriberWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + secrets edge predicates + """ + hasSecrets: Boolean + hasSecretsWith: [HushWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + entities edge predicates + """ + hasEntities: Boolean + hasEntitiesWith: [EntityWhereInput!] + """ + entity_types edge predicates + """ + hasEntityTypes: Boolean + hasEntityTypesWith: [EntityTypeWhereInput!] + """ + contacts edge predicates + """ + hasContacts: Boolean + hasContactsWith: [ContactWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [OrgMembershipWhereInput!] +} +""" +Information about pagination in a connection. +https://relay.dev/graphql/connections.htm#sec-undefined.PageInfo +""" +type PageInfo { + """ + When paginating forwards, are there more items? + """ + hasNextPage: Boolean! + """ + When paginating backwards, are there more items? + """ + hasPreviousPage: Boolean! + """ + When paginating backwards, the cursor to continue. + """ + startCursor: Cursor + """ + When paginating forwards, the cursor to continue. + """ + endCursor: Cursor +} +type PersonalAccessToken implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name associated with the token + """ + name: String! + token: String! + """ + when the token expires + """ + expiresAt: Time + """ + a description of the token's purpose + """ + description: String + scopes: [String!] + lastUsedAt: Time + owner: User! + """ + the organization(s) the token is associated with + """ + organizations: [Organization!] + events: [Event!] +} +""" +Return response for createBulkPersonalAccessToken mutation +""" +type PersonalAccessTokenBulkCreatePayload { + """ + Created personalAccessTokens + """ + personalAccessTokens: [PersonalAccessToken!] +} +""" +A connection to a list of items. +""" +type PersonalAccessTokenConnection { + """ + A list of edges. + """ + edges: [PersonalAccessTokenEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createPersonalAccessToken mutation +""" +type PersonalAccessTokenCreatePayload { + """ + Created personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} +""" +Return response for deletePersonalAccessToken mutation +""" +type PersonalAccessTokenDeletePayload { + """ + Deleted personalAccessToken ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type PersonalAccessTokenEdge { + """ + The item at the end of the edge. + """ + node: PersonalAccessToken + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type PersonalAccessTokenSearchResult { + personalAccessTokens: [PersonalAccessToken!] +} +""" +Return response for updatePersonalAccessToken mutation +""" +type PersonalAccessTokenUpdatePayload { + """ + Updated personalAccessToken + """ + personalAccessToken: PersonalAccessToken! +} +""" +PersonalAccessTokenWhereInput is used for filtering PersonalAccessToken objects. +Input was generated by ent. +""" +input PersonalAccessTokenWhereInput { + not: PersonalAccessTokenWhereInput + and: [PersonalAccessTokenWhereInput!] + or: [PersonalAccessTokenWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + expires_at field predicates + """ + expiresAt: Time + expiresAtNEQ: Time + expiresAtIn: [Time!] + expiresAtNotIn: [Time!] + expiresAtGT: Time + expiresAtGTE: Time + expiresAtLT: Time + expiresAtLTE: Time + expiresAtIsNil: Boolean + expiresAtNotNil: Boolean + """ + last_used_at field predicates + """ + lastUsedAt: Time + lastUsedAtNEQ: Time + lastUsedAtIn: [Time!] + lastUsedAtNotIn: [Time!] + lastUsedAtGT: Time + lastUsedAtGTE: Time + lastUsedAtLT: Time + lastUsedAtLTE: Time + lastUsedAtIsNil: Boolean + lastUsedAtNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] + """ + organizations edge predicates + """ + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type Procedure implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map + owner: Organization + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + controls: [Control!] + internalPolicies: [InternalPolicy!] + narratives: [Narrative!] + risks: [Risk!] + tasks: [Task!] + programs: [Program!] +} +""" +Return response for createBulkProcedure mutation +""" +type ProcedureBulkCreatePayload { + """ + Created procedures + """ + procedures: [Procedure!] +} +""" +A connection to a list of items. +""" +type ProcedureConnection { + """ + A list of edges. + """ + edges: [ProcedureEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createProcedure mutation +""" +type ProcedureCreatePayload { + """ + Created procedure + """ + procedure: Procedure! +} +""" +Return response for deleteProcedure mutation +""" +type ProcedureDeletePayload { + """ + Deleted procedure ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ProcedureEdge { + """ + The item at the end of the edge. + """ + node: Procedure + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProcedureHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProcedureHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the procedure + """ + name: String! + """ + description of the procedure + """ + description: String + """ + status of the procedure + """ + status: String + """ + type of the procedure + """ + procedureType: String + """ + version of the procedure + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the procedure + """ + background: String + """ + which controls are satisfied by the procedure + """ + satisfies: String + """ + json data for the procedure document + """ + details: Map +} +""" +A connection to a list of items. +""" +type ProcedureHistoryConnection { + """ + A list of edges. + """ + edges: [ProcedureHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProcedureHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProcedureHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProcedureHistoryOpType is enum for the field operation +""" +enum ProcedureHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProcedureHistoryWhereInput is used for filtering ProcedureHistory objects. +Input was generated by ent. +""" +input ProcedureHistoryWhereInput { + not: ProcedureHistoryWhereInput + and: [ProcedureHistoryWhereInput!] + or: [ProcedureHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProcedureHistoryOpType + operationNEQ: ProcedureHistoryOpType + operationIn: [ProcedureHistoryOpType!] + operationNotIn: [ProcedureHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +type ProcedureSearchResult { + procedures: [Procedure!] +} +""" +Return response for updateProcedure mutation +""" +type ProcedureUpdatePayload { + """ + Updated procedure + """ + procedure: Procedure! +} +""" +ProcedureWhereInput is used for filtering Procedure objects. +Input was generated by ent. +""" +input ProcedureWhereInput { + not: ProcedureWhereInput + and: [ProcedureWhereInput!] + or: [ProcedureWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + procedure_type field predicates + """ + procedureType: String + procedureTypeNEQ: String + procedureTypeIn: [String!] + procedureTypeNotIn: [String!] + procedureTypeGT: String + procedureTypeGTE: String + procedureTypeLT: String + procedureTypeLTE: String + procedureTypeContains: String + procedureTypeHasPrefix: String + procedureTypeHasSuffix: String + procedureTypeIsNil: Boolean + procedureTypeNotNil: Boolean + procedureTypeEqualFold: String + procedureTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Program implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the program + """ + name: String! + """ + the description of the program + """ + description: String + """ + the status of the program + """ + status: ProgramProgramStatus! + """ + the start date of the period + """ + startDate: Time + """ + the end date of the period + """ + endDate: Time + """ + is the program ready for the auditor + """ + auditorReady: Boolean! + """ + can the auditor write comments + """ + auditorWriteComments: Boolean! + """ + can the auditor read comments + """ + auditorReadComments: Boolean! + owner: Organization + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + controls: [Control!] + subcontrols: [Subcontrol!] + controlObjectives: [ControlObjective!] + internalPolicies: [InternalPolicy!] + procedures: [Procedure!] + risks: [Risk!] + tasks: [Task!] + notes: [Note!] + files: [File!] + narratives: [Narrative!] + actionPlans: [ActionPlan!] + """ + the framework(s) that the program is based on + """ + standards: [Standard!] + users: [User!] + members: [ProgramMembership!] +} +""" +Return response for createBulkProgram mutation +""" +type ProgramBulkCreatePayload { + """ + Created programs + """ + programs: [Program!] +} +""" +A connection to a list of items. +""" +type ProgramConnection { + """ + A list of edges. + """ + edges: [ProgramEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createProgram mutation +""" +type ProgramCreatePayload { + """ + Created program + """ + program: Program! +} +""" +Return response for deleteProgram mutation +""" +type ProgramDeletePayload { + """ + Deleted program ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ProgramEdge { + """ + The item at the end of the edge. + """ + node: Program + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProgramHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProgramHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the program + """ + name: String! + """ + the description of the program + """ + description: String + """ + the status of the program + """ + status: ProgramHistoryProgramStatus! + """ + the start date of the period + """ + startDate: Time + """ + the end date of the period + """ + endDate: Time + """ + is the program ready for the auditor + """ + auditorReady: Boolean! + """ + can the auditor write comments + """ + auditorWriteComments: Boolean! + """ + can the auditor read comments + """ + auditorReadComments: Boolean! +} +""" +A connection to a list of items. +""" +type ProgramHistoryConnection { + """ + A list of edges. + """ + edges: [ProgramHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProgramHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProgramHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProgramHistoryOpType is enum for the field operation +""" +enum ProgramHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProgramHistoryProgramStatus is enum for the field status +""" +enum ProgramHistoryProgramStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.ProgramStatus") { + NOT_STARTED + IN_PROGRESS + READY_FOR_AUDITOR + COMPLETED + ACTION_REQUIRED +} +""" +ProgramHistoryWhereInput is used for filtering ProgramHistory objects. +Input was generated by ent. +""" +input ProgramHistoryWhereInput { + not: ProgramHistoryWhereInput + and: [ProgramHistoryWhereInput!] + or: [ProgramHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProgramHistoryOpType + operationNEQ: ProgramHistoryOpType + operationIn: [ProgramHistoryOpType!] + operationNotIn: [ProgramHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: ProgramHistoryProgramStatus + statusNEQ: ProgramHistoryProgramStatus + statusIn: [ProgramHistoryProgramStatus!] + statusNotIn: [ProgramHistoryProgramStatus!] + """ + start_date field predicates + """ + startDate: Time + startDateNEQ: Time + startDateIn: [Time!] + startDateNotIn: [Time!] + startDateGT: Time + startDateGTE: Time + startDateLT: Time + startDateLTE: Time + startDateIsNil: Boolean + startDateNotNil: Boolean + """ + end_date field predicates + """ + endDate: Time + endDateNEQ: Time + endDateIn: [Time!] + endDateNotIn: [Time!] + endDateGT: Time + endDateGTE: Time + endDateLT: Time + endDateLTE: Time + endDateIsNil: Boolean + endDateNotNil: Boolean + """ + auditor_ready field predicates + """ + auditorReady: Boolean + auditorReadyNEQ: Boolean + """ + auditor_write_comments field predicates + """ + auditorWriteComments: Boolean + auditorWriteCommentsNEQ: Boolean + """ + auditor_read_comments field predicates + """ + auditorReadComments: Boolean + auditorReadCommentsNEQ: Boolean +} +type ProgramMembership implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: ProgramMembershipRole! + programID: ID! + userID: ID! + program: Program! + user: User! +} +""" +Return response for createBulkProgramMembership mutation +""" +type ProgramMembershipBulkCreatePayload { + """ + Created programMemberships + """ + programMemberships: [ProgramMembership!] +} +""" +A connection to a list of items. +""" +type ProgramMembershipConnection { + """ + A list of edges. + """ + edges: [ProgramMembershipEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createProgramMembership mutation +""" +type ProgramMembershipCreatePayload { + """ + Created programMembership + """ + programMembership: ProgramMembership! +} +""" +Return response for deleteProgramMembership mutation +""" +type ProgramMembershipDeletePayload { + """ + Deleted programMembership ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type ProgramMembershipEdge { + """ + The item at the end of the edge. + """ + node: ProgramMembership + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type ProgramMembershipHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: ProgramMembershipHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + role: ProgramMembershipHistoryRole! + programID: String! + userID: String! +} +""" +A connection to a list of items. +""" +type ProgramMembershipHistoryConnection { + """ + A list of edges. + """ + edges: [ProgramMembershipHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type ProgramMembershipHistoryEdge { + """ + The item at the end of the edge. + """ + node: ProgramMembershipHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +ProgramMembershipHistoryOpType is enum for the field operation +""" +enum ProgramMembershipHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +ProgramMembershipHistoryRole is enum for the field role +""" +enum ProgramMembershipHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +ProgramMembershipHistoryWhereInput is used for filtering ProgramMembershipHistory objects. +Input was generated by ent. +""" +input ProgramMembershipHistoryWhereInput { + not: ProgramMembershipHistoryWhereInput + and: [ProgramMembershipHistoryWhereInput!] + or: [ProgramMembershipHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: ProgramMembershipHistoryOpType + operationNEQ: ProgramMembershipHistoryOpType + operationIn: [ProgramMembershipHistoryOpType!] + operationNotIn: [ProgramMembershipHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: ProgramMembershipHistoryRole + roleNEQ: ProgramMembershipHistoryRole + roleIn: [ProgramMembershipHistoryRole!] + roleNotIn: [ProgramMembershipHistoryRole!] + """ + program_id field predicates + """ + programID: String + programIDNEQ: String + programIDIn: [String!] + programIDNotIn: [String!] + programIDGT: String + programIDGTE: String + programIDLT: String + programIDLTE: String + programIDContains: String + programIDHasPrefix: String + programIDHasSuffix: String + programIDEqualFold: String + programIDContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDEqualFold: String + userIDContainsFold: String +} +""" +ProgramMembershipRole is enum for the field role +""" +enum ProgramMembershipRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER +} +""" +Return response for updateProgramMembership mutation +""" +type ProgramMembershipUpdatePayload { + """ + Updated programMembership + """ + programMembership: ProgramMembership! +} +""" +ProgramMembershipWhereInput is used for filtering ProgramMembership objects. +Input was generated by ent. +""" +input ProgramMembershipWhereInput { + not: ProgramMembershipWhereInput + and: [ProgramMembershipWhereInput!] + or: [ProgramMembershipWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + role field predicates + """ + role: ProgramMembershipRole + roleNEQ: ProgramMembershipRole + roleIn: [ProgramMembershipRole!] + roleNotIn: [ProgramMembershipRole!] + programID: String + userID: String +} +""" +ProgramProgramStatus is enum for the field status +""" +enum ProgramProgramStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.ProgramStatus") { + NOT_STARTED + IN_PROGRESS + READY_FOR_AUDITOR + COMPLETED + ACTION_REQUIRED +} +type ProgramSearchResult { + programs: [Program!] +} +""" +Return response for updateProgram mutation +""" +type ProgramUpdatePayload { + """ + Updated program + """ + program: Program! +} +""" +ProgramWhereInput is used for filtering Program objects. +Input was generated by ent. +""" +input ProgramWhereInput { + not: ProgramWhereInput + and: [ProgramWhereInput!] + or: [ProgramWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: ProgramProgramStatus + statusNEQ: ProgramProgramStatus + statusIn: [ProgramProgramStatus!] + statusNotIn: [ProgramProgramStatus!] + """ + start_date field predicates + """ + startDate: Time + startDateNEQ: Time + startDateIn: [Time!] + startDateNotIn: [Time!] + startDateGT: Time + startDateGTE: Time + startDateLT: Time + startDateLTE: Time + startDateIsNil: Boolean + startDateNotNil: Boolean + """ + end_date field predicates + """ + endDate: Time + endDateNEQ: Time + endDateIn: [Time!] + endDateNotIn: [Time!] + endDateGT: Time + endDateGTE: Time + endDateLT: Time + endDateLTE: Time + endDateIsNil: Boolean + endDateNotNil: Boolean + """ + auditor_ready field predicates + """ + auditorReady: Boolean + auditorReadyNEQ: Boolean + """ + auditor_write_comments field predicates + """ + auditorWriteComments: Boolean + auditorWriteCommentsNEQ: Boolean + """ + auditor_read_comments field predicates + """ + auditorReadComments: Boolean + auditorReadCommentsNEQ: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + internal_policies edge predicates + """ + hasInternalPolicies: Boolean + hasInternalPoliciesWith: [InternalPolicyWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + risks edge predicates + """ + hasRisks: Boolean + hasRisksWith: [RiskWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + narratives edge predicates + """ + hasNarratives: Boolean + hasNarrativesWith: [NarrativeWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + standards edge predicates + """ + hasStandards: Boolean + hasStandardsWith: [StandardWhereInput!] + """ + users edge predicates + """ + hasUsers: Boolean + hasUsersWith: [UserWhereInput!] + """ + members edge predicates + """ + hasMembers: Boolean + hasMembersWith: [ProgramMembershipWhereInput!] +} +type Query { + """ + Fetches an object given its ID. + """ + node( + """ + ID of the object. + """ + id: ID! + ): Node + """ + Lookup nodes by a list of IDs. + """ + nodes( + """ + The list of node IDs. + """ + ids: [ID!]! + ): [Node]! + apiTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for APITokens returned from the connection. + """ + where: APITokenWhereInput + ): APITokenConnection! + actionPlans( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlans returned from the connection. + """ + where: ActionPlanWhereInput + ): ActionPlanConnection! + actionPlanHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ActionPlanHistories returned from the connection. + """ + where: ActionPlanHistoryWhereInput + ): ActionPlanHistoryConnection! + contacts( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Contacts returned from the connection. + """ + where: ContactWhereInput + ): ContactConnection! + contactHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ContactHistories returned from the connection. + """ + where: ContactHistoryWhereInput + ): ContactHistoryConnection! + controls( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Controls returned from the connection. + """ + where: ControlWhereInput + ): ControlConnection! + controlHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlHistories returned from the connection. + """ + where: ControlHistoryWhereInput + ): ControlHistoryConnection! + controlObjectives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectives returned from the connection. + """ + where: ControlObjectiveWhereInput + ): ControlObjectiveConnection! + controlObjectiveHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ControlObjectiveHistories returned from the connection. + """ + where: ControlObjectiveHistoryWhereInput + ): ControlObjectiveHistoryConnection! + documentDataSlice( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataSlice returned from the connection. + """ + where: DocumentDataWhereInput + ): DocumentDataConnection! + documentDataHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for DocumentDataHistories returned from the connection. + """ + where: DocumentDataHistoryWhereInput + ): DocumentDataHistoryConnection! + entities( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Entities returned from the connection. + """ + orderBy: EntityOrder + + """ + Filtering options for Entities returned from the connection. + """ + where: EntityWhereInput + ): EntityConnection! + entityHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityHistories returned from the connection. + """ + orderBy: EntityHistoryOrder + + """ + Filtering options for EntityHistories returned from the connection. + """ + where: EntityHistoryWhereInput + ): EntityHistoryConnection! + entityTypes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypes returned from the connection. + """ + orderBy: EntityTypeOrder + + """ + Filtering options for EntityTypes returned from the connection. + """ + where: EntityTypeWhereInput + ): EntityTypeConnection! + entityTypeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for EntityTypeHistories returned from the connection. + """ + orderBy: EntityTypeHistoryOrder + + """ + Filtering options for EntityTypeHistories returned from the connection. + """ + where: EntityTypeHistoryWhereInput + ): EntityTypeHistoryConnection! + events( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Events returned from the connection. + """ + where: EventWhereInput + ): EventConnection! + eventHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for EventHistories returned from the connection. + """ + where: EventHistoryWhereInput + ): EventHistoryConnection! + files( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Files returned from the connection. + """ + where: FileWhereInput + ): FileConnection! + fileHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for FileHistories returned from the connection. + """ + where: FileHistoryWhereInput + ): FileHistoryConnection! + groups( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Groups returned from the connection. + """ + orderBy: GroupOrder + + """ + Filtering options for Groups returned from the connection. + """ + where: GroupWhereInput + ): GroupConnection! + groupHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for GroupHistories returned from the connection. + """ + orderBy: GroupHistoryOrder + + """ + Filtering options for GroupHistories returned from the connection. + """ + where: GroupHistoryWhereInput + ): GroupHistoryConnection! + groupMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMemberships returned from the connection. + """ + where: GroupMembershipWhereInput + ): GroupMembershipConnection! + groupMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupMembershipHistories returned from the connection. + """ + where: GroupMembershipHistoryWhereInput + ): GroupMembershipHistoryConnection! + groupSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettings returned from the connection. + """ + where: GroupSettingWhereInput + ): GroupSettingConnection! + groupSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for GroupSettingHistories returned from the connection. + """ + where: GroupSettingHistoryWhereInput + ): GroupSettingHistoryConnection! + hushes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Hushes returned from the connection. + """ + orderBy: HushOrder + + """ + Filtering options for Hushes returned from the connection. + """ + where: HushWhereInput + ): HushConnection! + hushHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for HushHistories returned from the connection. + """ + orderBy: HushHistoryOrder + + """ + Filtering options for HushHistories returned from the connection. + """ + where: HushHistoryWhereInput + ): HushHistoryConnection! + integrations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Integrations returned from the connection. + """ + orderBy: IntegrationOrder + + """ + Filtering options for Integrations returned from the connection. + """ + where: IntegrationWhereInput + ): IntegrationConnection! + integrationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for IntegrationHistories returned from the connection. + """ + orderBy: IntegrationHistoryOrder + + """ + Filtering options for IntegrationHistories returned from the connection. + """ + where: IntegrationHistoryWhereInput + ): IntegrationHistoryConnection! + internalPolicies( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicies returned from the connection. + """ + where: InternalPolicyWhereInput + ): InternalPolicyConnection! + internalPolicyHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for InternalPolicyHistories returned from the connection. + """ + where: InternalPolicyHistoryWhereInput + ): InternalPolicyHistoryConnection! + invites( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Invites returned from the connection. + """ + where: InviteWhereInput + ): InviteConnection! + narratives( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Narratives returned from the connection. + """ + where: NarrativeWhereInput + ): NarrativeConnection! + narrativeHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NarrativeHistories returned from the connection. + """ + where: NarrativeHistoryWhereInput + ): NarrativeHistoryConnection! + notes( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Notes returned from the connection. + """ + where: NoteWhereInput + ): NoteConnection! + noteHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for NoteHistories returned from the connection. + """ + where: NoteHistoryWhereInput + ): NoteHistoryConnection! + orgMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgMemberships returned from the connection. + """ + where: OrgMembershipWhereInput + ): OrgMembershipConnection! + orgMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgMembershipHistories returned from the connection. + """ + where: OrgMembershipHistoryWhereInput + ): OrgMembershipHistoryConnection! + orgSubscriptions( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgSubscriptions returned from the connection. + """ + where: OrgSubscriptionWhereInput + ): OrgSubscriptionConnection! + orgSubscriptionHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrgSubscriptionHistories returned from the connection. + """ + where: OrgSubscriptionHistoryWhereInput + ): OrgSubscriptionHistoryConnection! + organizations( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Organizations returned from the connection. + """ + orderBy: OrganizationOrder + + """ + Filtering options for Organizations returned from the connection. + """ + where: OrganizationWhereInput + ): OrganizationConnection! + organizationHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for OrganizationHistories returned from the connection. + """ + orderBy: OrganizationHistoryOrder + + """ + Filtering options for OrganizationHistories returned from the connection. + """ + where: OrganizationHistoryWhereInput + ): OrganizationHistoryConnection! + organizationSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettings returned from the connection. + """ + where: OrganizationSettingWhereInput + ): OrganizationSettingConnection! + organizationSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for OrganizationSettingHistories returned from the connection. + """ + where: OrganizationSettingHistoryWhereInput + ): OrganizationSettingHistoryConnection! + personalAccessTokens( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for PersonalAccessTokens returned from the connection. + """ + where: PersonalAccessTokenWhereInput + ): PersonalAccessTokenConnection! + procedures( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Procedures returned from the connection. + """ + where: ProcedureWhereInput + ): ProcedureConnection! + procedureHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProcedureHistories returned from the connection. + """ + where: ProcedureHistoryWhereInput + ): ProcedureHistoryConnection! + programs( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Programs returned from the connection. + """ + where: ProgramWhereInput + ): ProgramConnection! + programHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProgramHistories returned from the connection. + """ + where: ProgramHistoryWhereInput + ): ProgramHistoryConnection! + programMemberships( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProgramMemberships returned from the connection. + """ + where: ProgramMembershipWhereInput + ): ProgramMembershipConnection! + programMembershipHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for ProgramMembershipHistories returned from the connection. + """ + where: ProgramMembershipHistoryWhereInput + ): ProgramMembershipHistoryConnection! + risks( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Risks returned from the connection. + """ + where: RiskWhereInput + ): RiskConnection! + riskHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for RiskHistories returned from the connection. + """ + where: RiskHistoryWhereInput + ): RiskHistoryConnection! + standards( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Standards returned from the connection. + """ + where: StandardWhereInput + ): StandardConnection! + standardHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for StandardHistories returned from the connection. + """ + where: StandardHistoryWhereInput + ): StandardHistoryConnection! + subcontrols( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Subcontrols returned from the connection. + """ + where: SubcontrolWhereInput + ): SubcontrolConnection! + subcontrolHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for SubcontrolHistories returned from the connection. + """ + where: SubcontrolHistoryWhereInput + ): SubcontrolHistoryConnection! + subscribers( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Subscribers returned from the connection. + """ + where: SubscriberWhereInput + ): SubscriberConnection! + tfaSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for TFASettings returned from the connection. + """ + where: TFASettingWhereInput + ): TFASettingConnection! + tasks( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for Tasks returned from the connection. + """ + where: TaskWhereInput + ): TaskConnection! + taskHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for TaskHistories returned from the connection. + """ + where: TaskHistoryWhereInput + ): TaskHistoryConnection! + templates( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Templates returned from the connection. + """ + orderBy: TemplateOrder + + """ + Filtering options for Templates returned from the connection. + """ + where: TemplateWhereInput + ): TemplateConnection! + templateHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for TemplateHistories returned from the connection. + """ + orderBy: TemplateHistoryOrder + + """ + Filtering options for TemplateHistories returned from the connection. + """ + where: TemplateHistoryWhereInput + ): TemplateHistoryConnection! + users( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for Users returned from the connection. + """ + orderBy: UserOrder + + """ + Filtering options for Users returned from the connection. + """ + where: UserWhereInput + ): UserConnection! + userHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Ordering options for UserHistories returned from the connection. + """ + orderBy: UserHistoryOrder + + """ + Filtering options for UserHistories returned from the connection. + """ + where: UserHistoryWhereInput + ): UserHistoryConnection! + userSettings( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for UserSettings returned from the connection. + """ + where: UserSettingWhereInput + ): UserSettingConnection! + userSettingHistories( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for UserSettingHistories returned from the connection. + """ + where: UserSettingHistoryWhereInput + ): UserSettingHistoryConnection! + """ + Look up actionPlan by ID + """ + actionPlan( + """ + ID of the actionPlan + """ + id: ID! + ): ActionPlan! + """ + Search across APIToken objects + """ + adminAPITokenSearch( + """ + Search query + """ + query: String! + ): APITokenSearchResult + """ + Search across ActionPlan objects + """ + adminActionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ + Search across Contact objects + """ + adminContactSearch( + """ + Search query + """ + query: String! + ): ContactSearchResult + """ + Search across Control objects + """ + adminControlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + adminControlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ + Search across DocumentData objects + """ + adminDocumentDataSearch( + """ + Search query + """ + query: String! + ): DocumentDataSearchResult + """ + Search across Entity objects + """ + adminEntitySearch( + """ + Search query + """ + query: String! + ): EntitySearchResult + """ + Search across EntityType objects + """ + adminEntityTypeSearch( + """ + Search query + """ + query: String! + ): EntityTypeSearchResult + """ + Search across Event objects + """ + adminEventSearch( + """ + Search query + """ + query: String! + ): EventSearchResult + """ + Search across File objects + """ + adminFileSearch( + """ + Search query + """ + query: String! + ): FileSearchResult + """ + Search across Group objects + """ + adminGroupSearch( + """ + Search query + """ + query: String! + ): GroupSearchResult + """ + Search across GroupSetting objects + """ + adminGroupSettingSearch( + """ + Search query + """ + query: String! + ): GroupSettingSearchResult + """ + Search across Integration objects + """ + adminIntegrationSearch( + """ + Search query + """ + query: String! + ): IntegrationSearchResult + """ + Search across InternalPolicy objects + """ + adminInternalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + adminNarrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ + Search across OrgSubscription objects + """ + adminOrgSubscriptionSearch( + """ + Search query + """ + query: String! + ): OrgSubscriptionSearchResult + """ + Search across Organization objects + """ + adminOrganizationSearch( + """ + Search query + """ + query: String! + ): OrganizationSearchResult + """ + Search across OrganizationSetting objects + """ + adminOrganizationSettingSearch( + """ + Search query + """ + query: String! + ): OrganizationSettingSearchResult + """ + Search across PersonalAccessToken objects + """ + adminPersonalAccessTokenSearch( + """ + Search query + """ + query: String! + ): PersonalAccessTokenSearchResult + """ + Search across Procedure objects + """ + adminProcedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Program objects + """ + adminProgramSearch( + """ + Search query + """ + query: String! + ): ProgramSearchResult + """ + Search across Risk objects + """ + adminRiskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + adminStandardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + adminSubcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ + Search across Subscriber objects + """ + adminSubscriberSearch( + """ + Search query + """ + query: String! + ): SubscriberSearchResult + """ + Search across TFASetting objects + """ + adminTFASettingSearch( + """ + Search query + """ + query: String! + ): TFASettingSearchResult + """ + Search across Task objects + """ + adminTaskSearch( + """ + Search query + """ + query: String! + ): TaskSearchResult + """ + Search across Template objects + """ + adminTemplateSearch( + """ + Search query + """ + query: String! + ): TemplateSearchResult + """ + Search across User objects + """ + adminUserSearch( + """ + Search query + """ + query: String! + ): UserSearchResult + """ + Search across UserSetting objects + """ + adminUserSettingSearch( + """ + Search query + """ + query: String! + ): UserSettingSearchResult + """ + Look up apiToken by ID + """ + apiToken( + """ + ID of the apiToken + """ + id: ID! + ): APIToken! + auditLogs( + """ + Returns the elements in the list that come after the specified cursor. + """ + after: Cursor + + """ + Returns the first _n_ elements from the list. + """ + first: Int + + """ + Returns the elements in the list that come before the specified cursor. + """ + before: Cursor + + """ + Returns the last _n_ elements from the list. + """ + last: Int + + """ + Filtering options for AuditLogs returned from the connection. + """ + where: AuditLogWhereInput + ): AuditLogConnection! + """ + Look up contact by ID + """ + contact( + """ + ID of the contact + """ + id: ID! + ): Contact! + """ + Look up control by ID + """ + control( + """ + ID of the control + """ + id: ID! + ): Control! + """ + Look up controlObjective by ID + """ + controlObjective( + """ + ID of the controlObjective + """ + id: ID! + ): ControlObjective! + """ + Look up documentData by ID + """ + documentData( + """ + ID of the documentData + """ + id: ID! + ): DocumentData! + """ + Look up entity by ID + """ + entity( + """ + ID of the entity + """ + id: ID! + ): Entity! + """ + Look up entityType by ID + """ + entityType( + """ + ID of the entityType + """ + id: ID! + ): EntityType! + """ + Look up event by ID + """ + event( + """ + ID of the event + """ + id: ID! + ): Event! + """ + Look up file by ID + """ + file( + """ + ID of the file + """ + id: ID! + ): File! + """ + Look up group by ID + """ + group( + """ + ID of the group + """ + id: ID! + ): Group! + """ + Look up groupMembership by ID + """ + groupMembership( + """ + ID of the groupMembership + """ + id: ID! + ): GroupMembership! + """ + Look up groupSetting by ID + """ + groupSetting( + """ + ID of the groupSetting + """ + id: ID! + ): GroupSetting! + """ + Look up hush by ID + """ + hush( + """ + ID of the hush + """ + id: ID! + ): Hush! + """ + Look up integration by ID + """ + integration( + """ + ID of the integration + """ + id: ID! + ): Integration! + """ + Look up internalPolicy by ID + """ + internalPolicy( + """ + ID of the internalPolicy + """ + id: ID! + ): InternalPolicy! + """ + Look up invite by ID + """ + invite( + """ + ID of the invite + """ + id: ID! + ): Invite! + """ + Look up narrative by ID + """ + narrative( + """ + ID of the narrative + """ + id: ID! + ): Narrative! + """ + Look up organization by ID + """ + organization( + """ + ID of the organization + """ + id: ID! + ): Organization! + """ + Look up organizationSetting by ID + """ + organizationSetting( + """ + ID of the organizationSetting + """ + id: ID! + ): OrganizationSetting! + """ + Look up orgMembership by ID + """ + orgMembership( + """ + ID of the orgMembership + """ + id: ID! + ): OrgMembership! + """ + Look up orgSubscription by ID + """ + orgSubscription( + """ + ID of the orgSubscription + """ + id: ID! + ): OrgSubscription! + """ + Look up personalAccessToken by ID + """ + personalAccessToken( + """ + ID of the personalAccessToken + """ + id: ID! + ): PersonalAccessToken! + """ + Look up procedure by ID + """ + procedure( + """ + ID of the procedure + """ + id: ID! + ): Procedure! + """ + Look up program by ID + """ + program( + """ + ID of the program + """ + id: ID! + ): Program! + """ + Look up programMembership by ID + """ + programMembership( + """ + ID of the programMembership + """ + id: ID! + ): ProgramMembership! + """ + Look up risk by ID + """ + risk( + """ + ID of the risk + """ + id: ID! + ): Risk! + """ + Search across APIToken objects + """ + apiTokenSearch( + """ + Search query + """ + query: String! + ): APITokenSearchResult + """ + Search across ActionPlan objects + """ + actionPlanSearch( + """ + Search query + """ + query: String! + ): ActionPlanSearchResult + """ + Search across Contact objects + """ + contactSearch( + """ + Search query + """ + query: String! + ): ContactSearchResult + """ + Search across Control objects + """ + controlSearch( + """ + Search query + """ + query: String! + ): ControlSearchResult + """ + Search across ControlObjective objects + """ + controlObjectiveSearch( + """ + Search query + """ + query: String! + ): ControlObjectiveSearchResult + """ + Search across DocumentData objects + """ + documentDataSearch( + """ + Search query + """ + query: String! + ): DocumentDataSearchResult + """ + Search across Entity objects + """ + entitySearch( + """ + Search query + """ + query: String! + ): EntitySearchResult + """ + Search across EntityType objects + """ + entityTypeSearch( + """ + Search query + """ + query: String! + ): EntityTypeSearchResult + """ + Search across Event objects + """ + eventSearch( + """ + Search query + """ + query: String! + ): EventSearchResult + """ + Search across File objects + """ + fileSearch( + """ + Search query + """ + query: String! + ): FileSearchResult + """ + Search across Group objects + """ + groupSearch( + """ + Search query + """ + query: String! + ): GroupSearchResult + """ + Search across GroupSetting objects + """ + groupSettingSearch( + """ + Search query + """ + query: String! + ): GroupSettingSearchResult + """ + Search across Integration objects + """ + integrationSearch( + """ + Search query + """ + query: String! + ): IntegrationSearchResult + """ + Search across InternalPolicy objects + """ + internalPolicySearch( + """ + Search query + """ + query: String! + ): InternalPolicySearchResult + """ + Search across Narrative objects + """ + narrativeSearch( + """ + Search query + """ + query: String! + ): NarrativeSearchResult + """ + Search across OrgSubscription objects + """ + orgSubscriptionSearch( + """ + Search query + """ + query: String! + ): OrgSubscriptionSearchResult + """ + Search across Organization objects + """ + organizationSearch( + """ + Search query + """ + query: String! + ): OrganizationSearchResult + """ + Search across OrganizationSetting objects + """ + organizationSettingSearch( + """ + Search query + """ + query: String! + ): OrganizationSettingSearchResult + """ + Search across PersonalAccessToken objects + """ + personalAccessTokenSearch( + """ + Search query + """ + query: String! + ): PersonalAccessTokenSearchResult + """ + Search across Procedure objects + """ + procedureSearch( + """ + Search query + """ + query: String! + ): ProcedureSearchResult + """ + Search across Program objects + """ + programSearch( + """ + Search query + """ + query: String! + ): ProgramSearchResult + """ + Search across Risk objects + """ + riskSearch( + """ + Search query + """ + query: String! + ): RiskSearchResult + """ + Search across Standard objects + """ + standardSearch( + """ + Search query + """ + query: String! + ): StandardSearchResult + """ + Search across Subcontrol objects + """ + subcontrolSearch( + """ + Search query + """ + query: String! + ): SubcontrolSearchResult + """ + Search across Subscriber objects + """ + subscriberSearch( + """ + Search query + """ + query: String! + ): SubscriberSearchResult + """ + Search across TFASetting objects + """ + tFASettingSearch( + """ + Search query + """ + query: String! + ): TFASettingSearchResult + """ + Search across Task objects + """ + taskSearch( + """ + Search query + """ + query: String! + ): TaskSearchResult + """ + Search across Template objects + """ + templateSearch( + """ + Search query + """ + query: String! + ): TemplateSearchResult + """ + Search across User objects + """ + userSearch( + """ + Search query + """ + query: String! + ): UserSearchResult + """ + Search across UserSetting objects + """ + userSettingSearch( + """ + Search query + """ + query: String! + ): UserSettingSearchResult + """ + Search across all objects + """ + search( + """ + Search query + """ + query: String! + ): SearchResultConnection + """ + Admin search across all objects + """ + adminSearch( + """ + Search query + """ + query: String! + ): SearchResultConnection + """ + Look up standard by ID + """ + standard( + """ + ID of the standard + """ + id: ID! + ): Standard! + """ + Look up subcontrol by ID + """ + subcontrol( + """ + ID of the subcontrol + """ + id: ID! + ): Subcontrol! + """ + Look up subscriber by Email + """ + subscriber( + """ + Email of the subscriber + """ + email: String! + ): Subscriber! + """ + Look up task by ID + """ + task( + """ + ID of the task + """ + id: ID! + ): Task! + """ + Look up template by ID + """ + template( + """ + ID of the template + """ + id: ID! + ): Template! + """ + Look up tfaSetting for the current user + """ + tfaSetting( + """ + ID of the tfaSetting + """ + id: ID + ): TFASetting! + """ + Look up user by ID + """ + user( + """ + ID of the user + """ + id: ID! + ): User! + """ + Look up userSetting by ID + """ + userSetting( + """ + ID of the userSetting + """ + id: ID! + ): UserSetting! +} +type Risk implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map + owner: Organization! + """ + groups that are blocked from viewing or editing the risk + """ + blockedGroups: [Group!] + """ + provides edit access to the risk to members of the group + """ + editors: [Group!] + """ + provides view access to the risk to members of the group + """ + viewers: [Group!] + control: [Control!] + procedure: [Procedure!] + actionPlans: [ActionPlan!] + programs: [Program!] +} +""" +Return response for createBulkRisk mutation +""" +type RiskBulkCreatePayload { + """ + Created risks + """ + risks: [Risk!] +} +""" +A connection to a list of items. +""" +type RiskConnection { + """ + A list of edges. + """ + edges: [RiskEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createRisk mutation +""" +type RiskCreatePayload { + """ + Created risk + """ + risk: Risk! +} +""" +Return response for deleteRisk mutation +""" +type RiskDeletePayload { + """ + Deleted risk ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type RiskEdge { + """ + The item at the end of the edge. + """ + node: Risk + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type RiskHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: RiskHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the risk + """ + name: String! + """ + description of the risk + """ + description: String + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + """ + business costs associated with the risk + """ + businessCosts: String + """ + impact of the risk - high, medium, low + """ + impact: RiskHistoryRiskImpact + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskHistoryRiskLikelihood + """ + mitigation for the risk + """ + mitigation: String + """ + which controls are satisfied by the risk + """ + satisfies: String + """ + json data for the risk document + """ + details: Map +} +""" +A connection to a list of items. +""" +type RiskHistoryConnection { + """ + A list of edges. + """ + edges: [RiskHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type RiskHistoryEdge { + """ + The item at the end of the edge. + """ + node: RiskHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +RiskHistoryOpType is enum for the field operation +""" +enum RiskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +RiskHistoryRiskImpact is enum for the field impact +""" +enum RiskHistoryRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskHistoryRiskLikelihood is enum for the field likelihood +""" +enum RiskHistoryRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +""" +RiskHistoryWhereInput is used for filtering RiskHistory objects. +Input was generated by ent. +""" +input RiskHistoryWhereInput { + not: RiskHistoryWhereInput + and: [RiskHistoryWhereInput!] + or: [RiskHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: RiskHistoryOpType + operationNEQ: RiskHistoryOpType + operationIn: [RiskHistoryOpType!] + operationNotIn: [RiskHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskHistoryRiskImpact + impactNEQ: RiskHistoryRiskImpact + impactIn: [RiskHistoryRiskImpact!] + impactNotIn: [RiskHistoryRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskHistoryRiskLikelihood + likelihoodNEQ: RiskHistoryRiskLikelihood + likelihoodIn: [RiskHistoryRiskLikelihood!] + likelihoodNotIn: [RiskHistoryRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +""" +RiskRiskImpact is enum for the field impact +""" +enum RiskRiskImpact @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskImpact") { + LOW + MODERATE + HIGH +} +""" +RiskRiskLikelihood is enum for the field likelihood +""" +enum RiskRiskLikelihood @goModel(model: "github.com/theopenlane/core/pkg/enums.RiskLikelihood") { + UNLIKELY + LIKELY + HIGHLY_LIKELY +} +type RiskSearchResult { + risks: [Risk!] +} +""" +Return response for updateRisk mutation +""" +type RiskUpdatePayload { + """ + Updated risk + """ + risk: Risk! +} +""" +RiskWhereInput is used for filtering Risk objects. +Input was generated by ent. +""" +input RiskWhereInput { + not: RiskWhereInput + and: [RiskWhereInput!] + or: [RiskWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + risk_type field predicates + """ + riskType: String + riskTypeNEQ: String + riskTypeIn: [String!] + riskTypeNotIn: [String!] + riskTypeGT: String + riskTypeGTE: String + riskTypeLT: String + riskTypeLTE: String + riskTypeContains: String + riskTypeHasPrefix: String + riskTypeHasSuffix: String + riskTypeIsNil: Boolean + riskTypeNotNil: Boolean + riskTypeEqualFold: String + riskTypeContainsFold: String + """ + business_costs field predicates + """ + businessCosts: String + businessCostsNEQ: String + businessCostsIn: [String!] + businessCostsNotIn: [String!] + businessCostsGT: String + businessCostsGTE: String + businessCostsLT: String + businessCostsLTE: String + businessCostsContains: String + businessCostsHasPrefix: String + businessCostsHasSuffix: String + businessCostsIsNil: Boolean + businessCostsNotNil: Boolean + businessCostsEqualFold: String + businessCostsContainsFold: String + """ + impact field predicates + """ + impact: RiskRiskImpact + impactNEQ: RiskRiskImpact + impactIn: [RiskRiskImpact!] + impactNotIn: [RiskRiskImpact!] + impactIsNil: Boolean + impactNotNil: Boolean + """ + likelihood field predicates + """ + likelihood: RiskRiskLikelihood + likelihoodNEQ: RiskRiskLikelihood + likelihoodIn: [RiskRiskLikelihood!] + likelihoodNotIn: [RiskRiskLikelihood!] + likelihoodIsNil: Boolean + likelihoodNotNil: Boolean + """ + mitigation field predicates + """ + mitigation: String + mitigationNEQ: String + mitigationIn: [String!] + mitigationNotIn: [String!] + mitigationGT: String + mitigationGTE: String + mitigationLT: String + mitigationLTE: String + mitigationContains: String + mitigationHasPrefix: String + mitigationHasSuffix: String + mitigationIsNil: Boolean + mitigationNotNil: Boolean + mitigationEqualFold: String + mitigationContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + blocked_groups edge predicates + """ + hasBlockedGroups: Boolean + hasBlockedGroupsWith: [GroupWhereInput!] + """ + editors edge predicates + """ + hasEditors: Boolean + hasEditorsWith: [GroupWhereInput!] + """ + viewers edge predicates + """ + hasViewers: Boolean + hasViewersWith: [GroupWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +union SearchResult = APITokenSearchResult | ActionPlanSearchResult | ContactSearchResult | ControlSearchResult | ControlObjectiveSearchResult | DocumentDataSearchResult | EntitySearchResult | EntityTypeSearchResult | EventSearchResult | FileSearchResult | GroupSearchResult | GroupSettingSearchResult | IntegrationSearchResult | InternalPolicySearchResult | NarrativeSearchResult | OrgSubscriptionSearchResult | OrganizationSearchResult | OrganizationSettingSearchResult | PersonalAccessTokenSearchResult | ProcedureSearchResult | ProgramSearchResult | RiskSearchResult | StandardSearchResult | SubcontrolSearchResult | SubscriberSearchResult | TFASettingSearchResult | TaskSearchResult | TemplateSearchResult | UserSearchResult | UserSettingSearchResult +type SearchResultConnection { + page: PageInfo! + nodes: [SearchResult!]! +} +type Standard implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map + controlObjectives: [ControlObjective!] + controls: [Control!] + procedures: [Procedure!] + actionPlans: [ActionPlan!] + programs: [Program!] +} +""" +Return response for createBulkStandard mutation +""" +type StandardBulkCreatePayload { + """ + Created standards + """ + standards: [Standard!] +} +""" +A connection to a list of items. +""" +type StandardConnection { + """ + A list of edges. + """ + edges: [StandardEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createStandard mutation +""" +type StandardCreatePayload { + """ + Created standard + """ + standard: Standard! +} +""" +Return response for deleteStandard mutation +""" +type StandardDeletePayload { + """ + Deleted standard ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type StandardEdge { + """ + The item at the end of the edge. + """ + node: Standard + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type StandardHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: StandardHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String! + """ + description of the standard + """ + description: String + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + """ + status of the standard - active, deprecated, etc. + """ + status: String + """ + type of the standard - security, privacy, etc. + """ + standardType: String + """ + version of the standard + """ + version: String + """ + purpose and scope + """ + purposeAndScope: String + """ + background of the standard + """ + background: String + """ + which controls are satisfied by the standard + """ + satisfies: String + """ + json data with details of the standard + """ + details: Map +} +""" +A connection to a list of items. +""" +type StandardHistoryConnection { + """ + A list of edges. + """ + edges: [StandardHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type StandardHistoryEdge { + """ + The item at the end of the edge. + """ + node: StandardHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +StandardHistoryOpType is enum for the field operation +""" +enum StandardHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +StandardHistoryWhereInput is used for filtering StandardHistory objects. +Input was generated by ent. +""" +input StandardHistoryWhereInput { + not: StandardHistoryWhereInput + and: [StandardHistoryWhereInput!] + or: [StandardHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: StandardHistoryOpType + operationNEQ: StandardHistoryOpType + operationIn: [StandardHistoryOpType!] + operationNotIn: [StandardHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String +} +type StandardSearchResult { + standards: [Standard!] +} +""" +Return response for updateStandard mutation +""" +type StandardUpdatePayload { + """ + Updated standard + """ + standard: Standard! +} +""" +StandardWhereInput is used for filtering Standard objects. +Input was generated by ent. +""" +input StandardWhereInput { + not: StandardWhereInput + and: [StandardWhereInput!] + or: [StandardWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + standard_type field predicates + """ + standardType: String + standardTypeNEQ: String + standardTypeIn: [String!] + standardTypeNotIn: [String!] + standardTypeGT: String + standardTypeGTE: String + standardTypeLT: String + standardTypeLTE: String + standardTypeContains: String + standardTypeHasPrefix: String + standardTypeHasSuffix: String + standardTypeIsNil: Boolean + standardTypeNotNil: Boolean + standardTypeEqualFold: String + standardTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + purpose_and_scope field predicates + """ + purposeAndScope: String + purposeAndScopeNEQ: String + purposeAndScopeIn: [String!] + purposeAndScopeNotIn: [String!] + purposeAndScopeGT: String + purposeAndScopeGTE: String + purposeAndScopeLT: String + purposeAndScopeLTE: String + purposeAndScopeContains: String + purposeAndScopeHasPrefix: String + purposeAndScopeHasSuffix: String + purposeAndScopeIsNil: Boolean + purposeAndScopeNotNil: Boolean + purposeAndScopeEqualFold: String + purposeAndScopeContainsFold: String + """ + background field predicates + """ + background: String + backgroundNEQ: String + backgroundIn: [String!] + backgroundNotIn: [String!] + backgroundGT: String + backgroundGTE: String + backgroundLT: String + backgroundLTE: String + backgroundContains: String + backgroundHasPrefix: String + backgroundHasSuffix: String + backgroundIsNil: Boolean + backgroundNotNil: Boolean + backgroundEqualFold: String + backgroundContainsFold: String + """ + satisfies field predicates + """ + satisfies: String + satisfiesNEQ: String + satisfiesIn: [String!] + satisfiesNotIn: [String!] + satisfiesGT: String + satisfiesGTE: String + satisfiesLT: String + satisfiesLTE: String + satisfiesContains: String + satisfiesHasPrefix: String + satisfiesHasSuffix: String + satisfiesIsNil: Boolean + satisfiesNotNil: Boolean + satisfiesEqualFold: String + satisfiesContainsFold: String + """ + control_objectives edge predicates + """ + hasControlObjectives: Boolean + hasControlObjectivesWith: [ControlObjectiveWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + procedures edge predicates + """ + hasProcedures: Boolean + hasProceduresWith: [ProcedureWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Subcontrol implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: ID! + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map + owner: Organization! + controls: [Control!]! + user: [User!] + tasks: [Task!] + notes: Note + programs: [Program!] +} +""" +Return response for createBulkSubcontrol mutation +""" +type SubcontrolBulkCreatePayload { + """ + Created subcontrols + """ + subcontrols: [Subcontrol!] +} +""" +A connection to a list of items. +""" +type SubcontrolConnection { + """ + A list of edges. + """ + edges: [SubcontrolEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createSubcontrol mutation +""" +type SubcontrolCreatePayload { + """ + Created subcontrol + """ + subcontrol: Subcontrol! +} +""" +Return response for deleteSubcontrol mutation +""" +type SubcontrolDeletePayload { + """ + Deleted subcontrol ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type SubcontrolEdge { + """ + The item at the end of the edge. + """ + node: Subcontrol + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type SubcontrolHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: SubcontrolHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the ID of the organization owner of the object + """ + ownerID: String! + """ + the name of the subcontrol + """ + name: String! + """ + description of the subcontrol + """ + description: String + """ + status of the subcontrol + """ + status: String + """ + type of the subcontrol + """ + subcontrolType: String + """ + version of the control + """ + version: String + """ + number of the subcontrol + """ + subcontrolNumber: String + """ + subcontrol family + """ + family: String + """ + subcontrol class + """ + class: String + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + """ + implementation status + """ + implementationStatus: String + """ + date the subcontrol was implemented + """ + implementationDate: Time + """ + implementation verification + """ + implementationVerification: String + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + """ + json data details of the subcontrol + """ + details: Map +} +""" +A connection to a list of items. +""" +type SubcontrolHistoryConnection { + """ + A list of edges. + """ + edges: [SubcontrolHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type SubcontrolHistoryEdge { + """ + The item at the end of the edge. + """ + node: SubcontrolHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +SubcontrolHistoryOpType is enum for the field operation +""" +enum SubcontrolHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +SubcontrolHistoryWhereInput is used for filtering SubcontrolHistory objects. +Input was generated by ent. +""" +input SubcontrolHistoryWhereInput { + not: SubcontrolHistoryWhereInput + and: [SubcontrolHistoryWhereInput!] + or: [SubcontrolHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: SubcontrolHistoryOpType + operationNEQ: SubcontrolHistoryOpType + operationIn: [SubcontrolHistoryOpType!] + operationNotIn: [SubcontrolHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean +} +type SubcontrolSearchResult { + subcontrols: [Subcontrol!] +} +""" +Return response for updateSubcontrol mutation +""" +type SubcontrolUpdatePayload { + """ + Updated subcontrol + """ + subcontrol: Subcontrol! +} +""" +SubcontrolWhereInput is used for filtering Subcontrol objects. +Input was generated by ent. +""" +input SubcontrolWhereInput { + not: SubcontrolWhereInput + and: [SubcontrolWhereInput!] + or: [SubcontrolWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: String + statusNEQ: String + statusIn: [String!] + statusNotIn: [String!] + statusGT: String + statusGTE: String + statusLT: String + statusLTE: String + statusContains: String + statusHasPrefix: String + statusHasSuffix: String + statusIsNil: Boolean + statusNotNil: Boolean + statusEqualFold: String + statusContainsFold: String + """ + subcontrol_type field predicates + """ + subcontrolType: String + subcontrolTypeNEQ: String + subcontrolTypeIn: [String!] + subcontrolTypeNotIn: [String!] + subcontrolTypeGT: String + subcontrolTypeGTE: String + subcontrolTypeLT: String + subcontrolTypeLTE: String + subcontrolTypeContains: String + subcontrolTypeHasPrefix: String + subcontrolTypeHasSuffix: String + subcontrolTypeIsNil: Boolean + subcontrolTypeNotNil: Boolean + subcontrolTypeEqualFold: String + subcontrolTypeContainsFold: String + """ + version field predicates + """ + version: String + versionNEQ: String + versionIn: [String!] + versionNotIn: [String!] + versionGT: String + versionGTE: String + versionLT: String + versionLTE: String + versionContains: String + versionHasPrefix: String + versionHasSuffix: String + versionIsNil: Boolean + versionNotNil: Boolean + versionEqualFold: String + versionContainsFold: String + """ + subcontrol_number field predicates + """ + subcontrolNumber: String + subcontrolNumberNEQ: String + subcontrolNumberIn: [String!] + subcontrolNumberNotIn: [String!] + subcontrolNumberGT: String + subcontrolNumberGTE: String + subcontrolNumberLT: String + subcontrolNumberLTE: String + subcontrolNumberContains: String + subcontrolNumberHasPrefix: String + subcontrolNumberHasSuffix: String + subcontrolNumberIsNil: Boolean + subcontrolNumberNotNil: Boolean + subcontrolNumberEqualFold: String + subcontrolNumberContainsFold: String + """ + family field predicates + """ + family: String + familyNEQ: String + familyIn: [String!] + familyNotIn: [String!] + familyGT: String + familyGTE: String + familyLT: String + familyLTE: String + familyContains: String + familyHasPrefix: String + familyHasSuffix: String + familyIsNil: Boolean + familyNotNil: Boolean + familyEqualFold: String + familyContainsFold: String + """ + class field predicates + """ + class: String + classNEQ: String + classIn: [String!] + classNotIn: [String!] + classGT: String + classGTE: String + classLT: String + classLTE: String + classContains: String + classHasPrefix: String + classHasSuffix: String + classIsNil: Boolean + classNotNil: Boolean + classEqualFold: String + classContainsFold: String + """ + source field predicates + """ + source: String + sourceNEQ: String + sourceIn: [String!] + sourceNotIn: [String!] + sourceGT: String + sourceGTE: String + sourceLT: String + sourceLTE: String + sourceContains: String + sourceHasPrefix: String + sourceHasSuffix: String + sourceIsNil: Boolean + sourceNotNil: Boolean + sourceEqualFold: String + sourceContainsFold: String + """ + mapped_frameworks field predicates + """ + mappedFrameworks: String + mappedFrameworksNEQ: String + mappedFrameworksIn: [String!] + mappedFrameworksNotIn: [String!] + mappedFrameworksGT: String + mappedFrameworksGTE: String + mappedFrameworksLT: String + mappedFrameworksLTE: String + mappedFrameworksContains: String + mappedFrameworksHasPrefix: String + mappedFrameworksHasSuffix: String + mappedFrameworksIsNil: Boolean + mappedFrameworksNotNil: Boolean + mappedFrameworksEqualFold: String + mappedFrameworksContainsFold: String + """ + implementation_evidence field predicates + """ + implementationEvidence: String + implementationEvidenceNEQ: String + implementationEvidenceIn: [String!] + implementationEvidenceNotIn: [String!] + implementationEvidenceGT: String + implementationEvidenceGTE: String + implementationEvidenceLT: String + implementationEvidenceLTE: String + implementationEvidenceContains: String + implementationEvidenceHasPrefix: String + implementationEvidenceHasSuffix: String + implementationEvidenceIsNil: Boolean + implementationEvidenceNotNil: Boolean + implementationEvidenceEqualFold: String + implementationEvidenceContainsFold: String + """ + implementation_status field predicates + """ + implementationStatus: String + implementationStatusNEQ: String + implementationStatusIn: [String!] + implementationStatusNotIn: [String!] + implementationStatusGT: String + implementationStatusGTE: String + implementationStatusLT: String + implementationStatusLTE: String + implementationStatusContains: String + implementationStatusHasPrefix: String + implementationStatusHasSuffix: String + implementationStatusIsNil: Boolean + implementationStatusNotNil: Boolean + implementationStatusEqualFold: String + implementationStatusContainsFold: String + """ + implementation_date field predicates + """ + implementationDate: Time + implementationDateNEQ: Time + implementationDateIn: [Time!] + implementationDateNotIn: [Time!] + implementationDateGT: Time + implementationDateGTE: Time + implementationDateLT: Time + implementationDateLTE: Time + implementationDateIsNil: Boolean + implementationDateNotNil: Boolean + """ + implementation_verification field predicates + """ + implementationVerification: String + implementationVerificationNEQ: String + implementationVerificationIn: [String!] + implementationVerificationNotIn: [String!] + implementationVerificationGT: String + implementationVerificationGTE: String + implementationVerificationLT: String + implementationVerificationLTE: String + implementationVerificationContains: String + implementationVerificationHasPrefix: String + implementationVerificationHasSuffix: String + implementationVerificationIsNil: Boolean + implementationVerificationNotNil: Boolean + implementationVerificationEqualFold: String + implementationVerificationContainsFold: String + """ + implementation_verification_date field predicates + """ + implementationVerificationDate: Time + implementationVerificationDateNEQ: Time + implementationVerificationDateIn: [Time!] + implementationVerificationDateNotIn: [Time!] + implementationVerificationDateGT: Time + implementationVerificationDateGTE: Time + implementationVerificationDateLT: Time + implementationVerificationDateLTE: Time + implementationVerificationDateIsNil: Boolean + implementationVerificationDateNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + controls edge predicates + """ + hasControls: Boolean + hasControlsWith: [ControlWhereInput!] + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + tasks edge predicates + """ + hasTasks: Boolean + hasTasksWith: [TaskWhereInput!] + """ + notes edge predicates + """ + hasNotes: Boolean + hasNotesWith: [NoteWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] +} +type Subscriber implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + """ + the organization id that owns the object + """ + ownerID: ID + """ + email address of the subscriber + """ + email: String! + """ + phone number of the subscriber + """ + phoneNumber: String + """ + indicates if the email address has been verified + """ + verifiedEmail: Boolean! + """ + indicates if the phone number has been verified + """ + verifiedPhone: Boolean! + """ + indicates if the subscriber is active or not, active users will have at least one verified contact method + """ + active: Boolean! + owner: Organization + events: [Event!] +} +""" +Return response for createBulkSubscriber mutation +""" +type SubscriberBulkCreatePayload { + """ + Created subscribers + """ + subscribers: [Subscriber!] +} +""" +A connection to a list of items. +""" +type SubscriberConnection { + """ + A list of edges. + """ + edges: [SubscriberEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createSubscriber mutation +""" +type SubscriberCreatePayload { + """ + Created subscriber + """ + subscriber: Subscriber! +} +""" +Return response for deleteSubscriber mutation +""" +type SubscriberDeletePayload { + """ + Deleted subscriber email + """ + email: String! +} +""" +An edge in a connection. +""" +type SubscriberEdge { + """ + The item at the end of the edge. + """ + node: Subscriber + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type SubscriberSearchResult { + subscribers: [Subscriber!] +} +""" +Return response for updateSubscriber mutation +""" +type SubscriberUpdatePayload { + """ + Updated subscriber + """ + subscriber: Subscriber! +} +""" +SubscriberWhereInput is used for filtering Subscriber objects. +Input was generated by ent. +""" +input SubscriberWhereInput { + not: SubscriberWhereInput + and: [SubscriberWhereInput!] + or: [SubscriberWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + phone_number field predicates + """ + phoneNumber: String + phoneNumberNEQ: String + phoneNumberIn: [String!] + phoneNumberNotIn: [String!] + phoneNumberGT: String + phoneNumberGTE: String + phoneNumberLT: String + phoneNumberLTE: String + phoneNumberContains: String + phoneNumberHasPrefix: String + phoneNumberHasSuffix: String + phoneNumberIsNil: Boolean + phoneNumberNotNil: Boolean + phoneNumberEqualFold: String + phoneNumberContainsFold: String + """ + verified_email field predicates + """ + verifiedEmail: Boolean + verifiedEmailNEQ: Boolean + """ + verified_phone field predicates + """ + verifiedPhone: Boolean + verifiedPhoneNEQ: Boolean + """ + active field predicates + """ + active: Boolean + activeNEQ: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] +} +type TFASetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + TFA secret for the user + """ + tfaSecret: String + """ + specifies if the TFA device has been verified + """ + verified: Boolean! + """ + recovery codes for 2fa + """ + recoveryCodes: [String!] + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + owner: User +} +""" +A connection to a list of items. +""" +type TFASettingConnection { + """ + A list of edges. + """ + edges: [TFASettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createTFASetting mutation +""" +type TFASettingCreatePayload { + """ + Created tfaSetting + """ + tfaSetting: TFASetting! +} +""" +An edge in a connection. +""" +type TFASettingEdge { + """ + The item at the end of the edge. + """ + node: TFASetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type TFASettingSearchResult { + tFASettings: [TFASetting!] +} +""" +Return response for updateTFASetting mutation +""" +type TFASettingUpdatePayload { + """ + Updated tfaSetting + """ + tfaSetting: TFASetting! +} +""" +TFASettingWhereInput is used for filtering TFASetting objects. +Input was generated by ent. +""" +input TFASettingWhereInput { + not: TFASettingWhereInput + and: [TFASettingWhereInput!] + or: [TFASettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + tfa_secret field predicates + """ + tfaSecret: String + tfaSecretNEQ: String + tfaSecretIn: [String!] + tfaSecretNotIn: [String!] + tfaSecretGT: String + tfaSecretGTE: String + tfaSecretLT: String + tfaSecretLTE: String + tfaSecretContains: String + tfaSecretHasPrefix: String + tfaSecretHasSuffix: String + tfaSecretIsNil: Boolean + tfaSecretNotNil: Boolean + tfaSecretEqualFold: String + tfaSecretContainsFold: String + """ + verified field predicates + """ + verified: Boolean + verifiedNEQ: Boolean + """ + totp_allowed field predicates + """ + totpAllowed: Boolean + totpAllowedNEQ: Boolean + totpAllowedIsNil: Boolean + totpAllowedNotNil: Boolean + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [UserWhereInput!] +} +type Task implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the title of the task + """ + title: String! + """ + the description of the task + """ + description: String + """ + the details of the task + """ + details: Map + """ + the status of the task + """ + status: TaskTaskStatus! + """ + the due date of the task + """ + due: Time + """ + the completion date of the task + """ + completed: Time + assigner: User! + assignee: User + organization: [Organization!] + group: [Group!] + internalPolicy: [InternalPolicy!] + procedure: [Procedure!] + control: [Control!] + controlObjective: [ControlObjective!] + subcontrol: [Subcontrol!] + program: [Program!] +} +""" +Return response for createBulkTask mutation +""" +type TaskBulkCreatePayload { + """ + Created tasks + """ + tasks: [Task!] +} +""" +A connection to a list of items. +""" +type TaskConnection { + """ + A list of edges. + """ + edges: [TaskEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createTask mutation +""" +type TaskCreatePayload { + """ + Created task + """ + task: Task! +} +""" +Return response for deleteTask mutation +""" +type TaskDeletePayload { + """ + Deleted task ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type TaskEdge { + """ + The item at the end of the edge. + """ + node: Task + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type TaskHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: TaskHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the title of the task + """ + title: String! + """ + the description of the task + """ + description: String + """ + the details of the task + """ + details: Map + """ + the status of the task + """ + status: TaskHistoryTaskStatus! + """ + the due date of the task + """ + due: Time + """ + the completion date of the task + """ + completed: Time +} +""" +A connection to a list of items. +""" +type TaskHistoryConnection { + """ + A list of edges. + """ + edges: [TaskHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type TaskHistoryEdge { + """ + The item at the end of the edge. + """ + node: TaskHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +TaskHistoryOpType is enum for the field operation +""" +enum TaskHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +TaskHistoryTaskStatus is enum for the field status +""" +enum TaskHistoryTaskStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.TaskStatus") { + OPEN + IN_PROGRESS + IN_REVIEW + COMPLETED + WONT_DO +} +""" +TaskHistoryWhereInput is used for filtering TaskHistory objects. +Input was generated by ent. +""" +input TaskHistoryWhereInput { + not: TaskHistoryWhereInput + and: [TaskHistoryWhereInput!] + or: [TaskHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: TaskHistoryOpType + operationNEQ: TaskHistoryOpType + operationIn: [TaskHistoryOpType!] + operationNotIn: [TaskHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleEqualFold: String + titleContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: TaskHistoryTaskStatus + statusNEQ: TaskHistoryTaskStatus + statusIn: [TaskHistoryTaskStatus!] + statusNotIn: [TaskHistoryTaskStatus!] + """ + due field predicates + """ + due: Time + dueNEQ: Time + dueIn: [Time!] + dueNotIn: [Time!] + dueGT: Time + dueGTE: Time + dueLT: Time + dueLTE: Time + dueIsNil: Boolean + dueNotNil: Boolean + """ + completed field predicates + """ + completed: Time + completedNEQ: Time + completedIn: [Time!] + completedNotIn: [Time!] + completedGT: Time + completedGTE: Time + completedLT: Time + completedLTE: Time + completedIsNil: Boolean + completedNotNil: Boolean +} +type TaskSearchResult { + tasks: [Task!] +} +""" +TaskTaskStatus is enum for the field status +""" +enum TaskTaskStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.TaskStatus") { + OPEN + IN_PROGRESS + IN_REVIEW + COMPLETED + WONT_DO +} +""" +Return response for updateTask mutation +""" +type TaskUpdatePayload { + """ + Updated task + """ + task: Task! +} +""" +TaskWhereInput is used for filtering Task objects. +Input was generated by ent. +""" +input TaskWhereInput { + not: TaskWhereInput + and: [TaskWhereInput!] + or: [TaskWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + title field predicates + """ + title: String + titleNEQ: String + titleIn: [String!] + titleNotIn: [String!] + titleGT: String + titleGTE: String + titleLT: String + titleLTE: String + titleContains: String + titleHasPrefix: String + titleHasSuffix: String + titleEqualFold: String + titleContainsFold: String + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + status field predicates + """ + status: TaskTaskStatus + statusNEQ: TaskTaskStatus + statusIn: [TaskTaskStatus!] + statusNotIn: [TaskTaskStatus!] + """ + due field predicates + """ + due: Time + dueNEQ: Time + dueIn: [Time!] + dueNotIn: [Time!] + dueGT: Time + dueGTE: Time + dueLT: Time + dueLTE: Time + dueIsNil: Boolean + dueNotNil: Boolean + """ + completed field predicates + """ + completed: Time + completedNEQ: Time + completedIn: [Time!] + completedNotIn: [Time!] + completedGT: Time + completedGTE: Time + completedLT: Time + completedLTE: Time + completedIsNil: Boolean + completedNotNil: Boolean + """ + assigner edge predicates + """ + hasAssigner: Boolean + hasAssignerWith: [UserWhereInput!] + """ + assignee edge predicates + """ + hasAssignee: Boolean + hasAssigneeWith: [UserWhereInput!] + """ + organization edge predicates + """ + hasOrganization: Boolean + hasOrganizationWith: [OrganizationWhereInput!] + """ + group edge predicates + """ + hasGroup: Boolean + hasGroupWith: [GroupWhereInput!] + """ + internal_policy edge predicates + """ + hasInternalPolicy: Boolean + hasInternalPolicyWith: [InternalPolicyWhereInput!] + """ + procedure edge predicates + """ + hasProcedure: Boolean + hasProcedureWith: [ProcedureWhereInput!] + """ + control edge predicates + """ + hasControl: Boolean + hasControlWith: [ControlWhereInput!] + """ + control_objective edge predicates + """ + hasControlObjective: Boolean + hasControlObjectiveWith: [ControlObjectiveWhereInput!] + """ + subcontrol edge predicates + """ + hasSubcontrol: Boolean + hasSubcontrolWith: [SubcontrolWhereInput!] + """ + program edge predicates + """ + hasProgram: Boolean + hasProgramWith: [ProgramWhereInput!] +} +type Template implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: ID + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType! + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON + owner: Organization + documents: [DocumentData!] + files: [File!] +} +""" +Return response for createBulkTemplate mutation +""" +type TemplateBulkCreatePayload { + """ + Created templates + """ + templates: [Template!] +} +""" +A connection to a list of items. +""" +type TemplateConnection { + """ + A list of edges. + """ + edges: [TemplateEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createTemplate mutation +""" +type TemplateCreatePayload { + """ + Created template + """ + template: Template! +} +""" +Return response for deleteTemplate mutation +""" +type TemplateDeletePayload { + """ + Deleted template ID + """ + deletedID: ID! +} +""" +TemplateDocumentType is enum for the field template_type +""" +enum TemplateDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { + ROOTTEMPLATE + DOCUMENT +} +""" +An edge in a connection. +""" +type TemplateEdge { + """ + The item at the end of the edge. + """ + node: Template + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type TemplateHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: TemplateHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + """ + the organization id that owns the object + """ + ownerID: String + """ + the name of the template + """ + name: String! + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateHistoryDocumentType! + """ + the description of the template + """ + description: String + """ + the jsonschema object of the template + """ + jsonconfig: JSON! + """ + the uischema for the template to render in the UI + """ + uischema: JSON +} +""" +A connection to a list of items. +""" +type TemplateHistoryConnection { + """ + A list of edges. + """ + edges: [TemplateHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +TemplateHistoryDocumentType is enum for the field template_type +""" +enum TemplateHistoryDocumentType @goModel(model: "github.com/theopenlane/core/pkg/enums.DocumentType") { + ROOTTEMPLATE + DOCUMENT +} +""" +An edge in a connection. +""" +type TemplateHistoryEdge { + """ + The item at the end of the edge. + """ + node: TemplateHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +TemplateHistoryOpType is enum for the field operation +""" +enum TemplateHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for TemplateHistory connections +""" +input TemplateHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order TemplateHistories. + """ + field: TemplateHistoryOrderField! +} +""" +Properties by which TemplateHistory connections can be ordered. +""" +enum TemplateHistoryOrderField { + name +} +""" +TemplateHistoryWhereInput is used for filtering TemplateHistory objects. +Input was generated by ent. +""" +input TemplateHistoryWhereInput { + not: TemplateHistoryWhereInput + and: [TemplateHistoryWhereInput!] + or: [TemplateHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: TemplateHistoryOpType + operationNEQ: TemplateHistoryOpType + operationIn: [TemplateHistoryOpType!] + operationNotIn: [TemplateHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: String + ownerIDNEQ: String + ownerIDIn: [String!] + ownerIDNotIn: [String!] + ownerIDGT: String + ownerIDGTE: String + ownerIDLT: String + ownerIDLTE: String + ownerIDContains: String + ownerIDHasPrefix: String + ownerIDHasSuffix: String + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: String + ownerIDContainsFold: String + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + template_type field predicates + """ + templateType: TemplateHistoryDocumentType + templateTypeNEQ: TemplateHistoryDocumentType + templateTypeIn: [TemplateHistoryDocumentType!] + templateTypeNotIn: [TemplateHistoryDocumentType!] + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String +} +""" +Ordering options for Template connections +""" +input TemplateOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Templates. + """ + field: TemplateOrderField! +} +""" +Properties by which Template connections can be ordered. +""" +enum TemplateOrderField { + name +} +type TemplateSearchResult { + templates: [Template!] +} +""" +Return response for updateTemplate mutation +""" +type TemplateUpdatePayload { + """ + Updated template + """ + template: Template! +} +""" +TemplateWhereInput is used for filtering Template objects. +Input was generated by ent. +""" +input TemplateWhereInput { + not: TemplateWhereInput + and: [TemplateWhereInput!] + or: [TemplateWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + owner_id field predicates + """ + ownerID: ID + ownerIDNEQ: ID + ownerIDIn: [ID!] + ownerIDNotIn: [ID!] + ownerIDGT: ID + ownerIDGTE: ID + ownerIDLT: ID + ownerIDLTE: ID + ownerIDContains: ID + ownerIDHasPrefix: ID + ownerIDHasSuffix: ID + ownerIDIsNil: Boolean + ownerIDNotNil: Boolean + ownerIDEqualFold: ID + ownerIDContainsFold: ID + """ + name field predicates + """ + name: String + nameNEQ: String + nameIn: [String!] + nameNotIn: [String!] + nameGT: String + nameGTE: String + nameLT: String + nameLTE: String + nameContains: String + nameHasPrefix: String + nameHasSuffix: String + nameEqualFold: String + nameContainsFold: String + """ + template_type field predicates + """ + templateType: TemplateDocumentType + templateTypeNEQ: TemplateDocumentType + templateTypeIn: [TemplateDocumentType!] + templateTypeNotIn: [TemplateDocumentType!] + """ + description field predicates + """ + description: String + descriptionNEQ: String + descriptionIn: [String!] + descriptionNotIn: [String!] + descriptionGT: String + descriptionGTE: String + descriptionLT: String + descriptionLTE: String + descriptionContains: String + descriptionHasPrefix: String + descriptionHasSuffix: String + descriptionIsNil: Boolean + descriptionNotNil: Boolean + descriptionEqualFold: String + descriptionContainsFold: String + """ + owner edge predicates + """ + hasOwner: Boolean + hasOwnerWith: [OrganizationWhereInput!] + """ + documents edge predicates + """ + hasDocuments: Boolean + hasDocumentsWith: [DocumentDataWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +The builtin Time type +""" +scalar Time +""" +UpdateAPITokenInput is used for update APIToken object. +Input was generated by ent. +""" +input UpdateAPITokenInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name associated with the token + """ + name: String + """ + a description of the token's purpose + """ + description: String + clearDescription: Boolean + scopes: [String!] + appendScopes: [String!] + clearScopes: Boolean + lastUsedAt: Time + clearLastUsedAt: Boolean + ownerID: ID + clearOwner: Boolean +} +""" +UpdateActionPlanInput is used for update ActionPlan object. +Input was generated by ent. +""" +input UpdateActionPlanInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the action plan + """ + name: String + """ + description of the action plan + """ + description: String + clearDescription: Boolean + """ + status of the action plan + """ + status: String + clearStatus: Boolean + """ + due date of the action plan + """ + dueDate: Time + clearDueDate: Boolean + """ + priority of the action plan + """ + priority: String + clearPriority: Boolean + """ + source of the action plan + """ + source: String + clearSource: Boolean + """ + json data including details of the action plan + """ + details: Map + clearDetails: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisk: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateContactInput is used for update Contact object. +Input was generated by ent. +""" +input UpdateContactInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the full name of the contact + """ + fullName: String + """ + the title of the contact + """ + title: String + clearTitle: Boolean + """ + the company of the contact + """ + company: String + clearCompany: Boolean + """ + the email of the contact + """ + email: String + clearEmail: Boolean + """ + the phone number of the contact + """ + phoneNumber: String + clearPhoneNumber: Boolean + """ + the address of the contact + """ + address: String + clearAddress: Boolean + """ + status of the contact + """ + status: ContactUserStatus + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateControlInput is used for update Control object. +Input was generated by ent. +""" +input UpdateControlInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control + """ + name: String + """ + description of the control + """ + description: String + clearDescription: Boolean + """ + status of the control + """ + status: String + clearStatus: Boolean + """ + type of the control + """ + controlType: String + clearControlType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + control number or identifier + """ + controlNumber: String + clearControlNumber: Boolean + """ + family associated with the control + """ + family: String + clearFamily: Boolean + """ + class associated with the control + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, custom, etc. + """ + source: String + clearSource: Boolean + """ + which control objectives are satisfied by the control + """ + satisfies: String + clearSatisfies: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateControlObjectiveInput is used for update ControlObjective object. +Input was generated by ent. +""" +input UpdateControlObjectiveInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the control objective + """ + name: String + """ + description of the control objective + """ + description: String + clearDescription: Boolean + """ + status of the control objective + """ + status: String + clearStatus: Boolean + """ + type of the control objective + """ + controlObjectiveType: String + clearControlObjectiveType: Boolean + """ + version of the control objective + """ + version: String + clearVersion: Boolean + """ + number of the control objective + """ + controlNumber: String + clearControlNumber: Boolean + """ + family of the control objective + """ + family: String + clearFamily: Boolean + """ + class associated with the control objective + """ + class: String + clearClass: Boolean + """ + source of the control objective, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + json data including details of the control objective + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandard: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateDocumentDataInput is used for update DocumentData object. +Input was generated by ent. +""" +input UpdateDocumentDataInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the json data of the document + """ + data: JSON + ownerID: ID + clearOwner: Boolean + templateID: ID + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntity: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateEntityInput is used for update Entity object. +Input was generated by ent. +""" +input UpdateEntityInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the entity + """ + name: String + clearName: Boolean + """ + The entity's displayed 'friendly' name + """ + displayName: String + clearDisplayName: Boolean + """ + An optional description of the entity + """ + description: String + clearDescription: Boolean + """ + domains associated with the entity + """ + domains: [String!] + appendDomains: [String!] + clearDomains: Boolean + """ + status of the entity + """ + status: String + clearStatus: Boolean + ownerID: ID + clearOwner: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContacts: Boolean + addDocumentIDs: [ID!] + removeDocumentIDs: [ID!] + clearDocuments: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + entityTypeID: ID + clearEntityType: Boolean + note: CreateNoteInput +} +""" +UpdateEntityTypeInput is used for update EntityType object. +Input was generated by ent. +""" +input UpdateEntityTypeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the entity + """ + name: String + ownerID: ID + clearOwner: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean +} +""" +UpdateEventInput is used for update Event object. +Input was generated by ent. +""" +input UpdateEventInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + eventID: String + clearEventID: Boolean + correlationID: String + clearCorrelationID: Boolean + eventType: String + metadata: Map + clearMetadata: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegration: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addInviteIDs: [ID!] + removeInviteIDs: [ID!] + clearInvite: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessToken: Boolean + addHushIDs: [ID!] + removeHushIDs: [ID!] + clearHush: Boolean + addSubscriberIDs: [ID!] + removeSubscriberIDs: [ID!] + clearSubscriber: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFile: Boolean +} +""" +UpdateFileInput is used for update File object. +Input was generated by ent. +""" +input UpdateFileInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the file provided in the payload key without the extension + """ + providedFileName: String + """ + the extension of the file provided + """ + providedFileExtension: String + """ + the computed size of the file in the original http request + """ + providedFileSize: Int + clearProvidedFileSize: Boolean + persistedFileSize: Int + clearPersistedFileSize: Boolean + """ + the mime type detected by the system + """ + detectedMimeType: String + clearDetectedMimeType: Boolean + """ + the computed md5 hash of the file calculated after we received the contents of the file, but before the file was written to permanent storage + """ + md5Hash: String + clearMd5Hash: Boolean + """ + the content type of the HTTP request - may be different than MIME type as multipart-form can transmit multiple files and different types + """ + detectedContentType: String + """ + the key parsed out of a multipart-form request; if we allow multiple files to be uploaded we may want our API specifications to require the use of different keys allowing us to perform easier conditional evaluation on the key and what to do with the file based on key + """ + storeKey: String + clearStoreKey: Boolean + """ + the category type of the file, if any (e.g. evidence, invoice, etc.) + """ + categoryType: String + clearCategoryType: Boolean + """ + the full URI of the file + """ + uri: String + clearURI: Boolean + """ + the storage scheme of the file, e.g. file://, s3://, etc. + """ + storageScheme: String + clearStorageScheme: Boolean + """ + the storage volume of the file which typically will be the organization ID the file belongs to - this is not a literal volume but the overlay file system mapping + """ + storageVolume: String + clearStorageVolume: Boolean + """ + the storage path is the second-level directory of the file path, typically the correlating logical object ID the file is associated with; files can be stand alone objects and not always correlated to a logical one, so this path of the tree may be empty + """ + storagePath: String + clearStoragePath: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContact: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntity: Boolean + addUserSettingIDs: [ID!] + removeUserSettingIDs: [ID!] + clearUserSetting: Boolean + addOrganizationSettingIDs: [ID!] + removeOrganizationSettingIDs: [ID!] + clearOrganizationSetting: Boolean + addTemplateIDs: [ID!] + removeTemplateIDs: [ID!] + clearTemplate: Boolean + addDocumentDatumIDs: [ID!] + removeDocumentDatumIDs: [ID!] + clearDocumentData: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateGroupInput is used for update Group object. +Input was generated by ent. +""" +input UpdateGroupInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the group - must be unique within the organization + """ + name: String + """ + the groups description + """ + description: String + clearDescription: Boolean + """ + the URL to an auto generated gravatar image for the group + """ + gravatarLogoURL: String + clearGravatarLogoURL: Boolean + """ + the URL to an image uploaded by the customer for the groups avatar image + """ + logoURL: String + clearLogoURL: Boolean + """ + The group's displayed 'friendly' name + """ + displayName: String + ownerID: ID + clearOwner: Boolean + addControlCreatorIDs: [ID!] + removeControlCreatorIDs: [ID!] + clearControlCreators: Boolean + addControlObjectiveCreatorIDs: [ID!] + removeControlObjectiveCreatorIDs: [ID!] + clearControlObjectiveCreators: Boolean + addGroupCreatorIDs: [ID!] + removeGroupCreatorIDs: [ID!] + clearGroupCreators: Boolean + addInternalPolicyCreatorIDs: [ID!] + removeInternalPolicyCreatorIDs: [ID!] + clearInternalPolicyCreators: Boolean + addNarrativeCreatorIDs: [ID!] + removeNarrativeCreatorIDs: [ID!] + clearNarrativeCreators: Boolean + addProcedureCreatorIDs: [ID!] + removeProcedureCreatorIDs: [ID!] + clearProcedureCreators: Boolean + addProgramCreatorIDs: [ID!] + removeProgramCreatorIDs: [ID!] + clearProgramCreators: Boolean + addRiskCreatorIDs: [ID!] + removeRiskCreatorIDs: [ID!] + clearRiskCreators: Boolean + addTemplateCreatorIDs: [ID!] + removeTemplateCreatorIDs: [ID!] + clearTemplateCreators: Boolean + addProcedureEditorIDs: [ID!] + removeProcedureEditorIDs: [ID!] + clearProcedureEditors: Boolean + addProcedureBlockedGroupIDs: [ID!] + removeProcedureBlockedGroupIDs: [ID!] + clearProcedureBlockedGroups: Boolean + addInternalPolicyEditorIDs: [ID!] + removeInternalPolicyEditorIDs: [ID!] + clearInternalPolicyEditors: Boolean + addInternalPolicyBlockedGroupIDs: [ID!] + removeInternalPolicyBlockedGroupIDs: [ID!] + clearInternalPolicyBlockedGroups: Boolean + addProgramEditorIDs: [ID!] + removeProgramEditorIDs: [ID!] + clearProgramEditors: Boolean + addProgramBlockedGroupIDs: [ID!] + removeProgramBlockedGroupIDs: [ID!] + clearProgramBlockedGroups: Boolean + addProgramViewerIDs: [ID!] + removeProgramViewerIDs: [ID!] + clearProgramViewers: Boolean + addRiskEditorIDs: [ID!] + removeRiskEditorIDs: [ID!] + clearRiskEditors: Boolean + addRiskBlockedGroupIDs: [ID!] + removeRiskBlockedGroupIDs: [ID!] + clearRiskBlockedGroups: Boolean + addRiskViewerIDs: [ID!] + removeRiskViewerIDs: [ID!] + clearRiskViewers: Boolean + addControlObjectiveEditorIDs: [ID!] + removeControlObjectiveEditorIDs: [ID!] + clearControlObjectiveEditors: Boolean + addControlObjectiveBlockedGroupIDs: [ID!] + removeControlObjectiveBlockedGroupIDs: [ID!] + clearControlObjectiveBlockedGroups: Boolean + addControlObjectiveViewerIDs: [ID!] + removeControlObjectiveViewerIDs: [ID!] + clearControlObjectiveViewers: Boolean + addControlEditorIDs: [ID!] + removeControlEditorIDs: [ID!] + clearControlEditors: Boolean + addControlBlockedGroupIDs: [ID!] + removeControlBlockedGroupIDs: [ID!] + clearControlBlockedGroups: Boolean + addControlViewerIDs: [ID!] + removeControlViewerIDs: [ID!] + clearControlViewers: Boolean + addNarrativeEditorIDs: [ID!] + removeNarrativeEditorIDs: [ID!] + clearNarrativeEditors: Boolean + addNarrativeBlockedGroupIDs: [ID!] + removeNarrativeBlockedGroupIDs: [ID!] + clearNarrativeBlockedGroups: Boolean + addNarrativeViewerIDs: [ID!] + removeNarrativeViewerIDs: [ID!] + clearNarrativeViewers: Boolean + settingID: ID + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addGroupMembers: [CreateGroupMembershipInput!] + updateGroupSettings: UpdateGroupSettingInput +} +""" +UpdateGroupMembershipInput is used for update GroupMembership object. +Input was generated by ent. +""" +input UpdateGroupMembershipInput { + role: GroupMembershipRole + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateGroupSettingInput is used for update GroupSetting object. +Input was generated by ent. +""" +input UpdateGroupSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + whether the group is visible to it's members / owners only or if it's searchable by anyone within the organization + """ + visibility: GroupSettingVisibility + """ + the policy governing ability to freely join a group, whether it requires an invitation, application, or either + """ + joinPolicy: GroupSettingJoinPolicy + """ + whether to sync group members to slack groups + """ + syncToSlack: Boolean + clearSyncToSlack: Boolean + """ + whether to sync group members to github groups + """ + syncToGithub: Boolean + clearSyncToGithub: Boolean + groupID: ID + clearGroup: Boolean +} +""" +UpdateHushInput is used for update Hush object. +Input was generated by ent. +""" +input UpdateHushInput { + """ + the logical name of the corresponding hush secret or it's general grouping + """ + name: String + """ + a description of the hush value or purpose, such as github PAT + """ + description: String + clearDescription: Boolean + """ + the kind of secret, such as sshkey, certificate, api token, etc. + """ + kind: String + clearKind: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateIntegrationInput is used for update Integration object. +Input was generated by ent. +""" +input UpdateIntegrationInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the integration - must be unique within the organization + """ + name: String + """ + a description of the integration + """ + description: String + clearDescription: Boolean + kind: String + clearKind: Boolean + ownerID: ID + clearOwner: Boolean + addSecretIDs: [ID!] + removeSecretIDs: [ID!] + clearSecrets: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateInternalPolicyInput is used for update InternalPolicy object. +Input was generated by ent. +""" +input UpdateInternalPolicyInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the policy + """ + name: String + """ + description of the policy + """ + description: String + clearDescription: Boolean + """ + status of the policy + """ + status: String + clearStatus: Boolean + """ + type of the policy + """ + policyType: String + clearPolicyType: Boolean + """ + version of the policy + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the policy + """ + background: String + clearBackground: Boolean + """ + json data for the policy document + """ + details: Map + clearDetails: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateInviteInput is used for update Invite object. +Input was generated by ent. +""" +input UpdateInviteInput { + """ + the expiration date of the invitation token which defaults to 14 days in the future from creation + """ + expires: Time + clearExpires: Boolean + """ + the status of the invitation + """ + status: InviteInviteStatus + role: InviteRole + """ + the number of attempts made to perform email send of the invitation, maximum of 5 + """ + sendAttempts: Int + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateNarrativeInput is used for update Narrative object. +Input was generated by ent. +""" +input UpdateNarrativeInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the narrative + """ + name: String + """ + the description of the narrative + """ + description: String + clearDescription: Boolean + """ + which controls are satisfied by the narrative + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the narrative document + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicy: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjective: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateNoteInput is used for update Note object. +Input was generated by ent. +""" +input UpdateNoteInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the text of the note + """ + text: String + ownerID: ID + clearOwner: Boolean + entityID: ID + clearEntity: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateOrgMembershipInput is used for update OrgMembership object. +Input was generated by ent. +""" +input UpdateOrgMembershipInput { + role: OrgMembershipRole + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateOrgSubscriptionInput is used for update OrgSubscription object. +Input was generated by ent. +""" +input UpdateOrgSubscriptionInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the stripe subscription id + """ + stripeSubscriptionID: String + clearStripeSubscriptionID: Boolean + """ + the common name of the product tier the subscription is associated with, e.g. starter tier + """ + productTier: String + clearProductTier: Boolean + """ + the product id that represents the tier in stripe + """ + stripeProductTierID: String + clearStripeProductTierID: Boolean + """ + the status of the subscription in stripe -- see https://docs.stripe.com/api/subscriptions/object#subscription_object-status + """ + stripeSubscriptionStatus: String + clearStripeSubscriptionStatus: Boolean + """ + indicates if the subscription is active + """ + active: Boolean + """ + the customer ID the subscription is associated to + """ + stripeCustomerID: String + clearStripeCustomerID: Boolean + """ + the time the subscription is set to expire; only populated if subscription is cancelled + """ + expiresAt: Time + clearExpiresAt: Boolean + """ + the features associated with the subscription + """ + features: [String!] + appendFeatures: [String!] + clearFeatures: Boolean + ownerID: ID + clearOwner: Boolean +} +""" +UpdateOrganizationInput is used for update Organization object. +Input was generated by ent. +""" +input UpdateOrganizationInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the organization + """ + name: String + """ + The organization's displayed 'friendly' name + """ + displayName: String + """ + An optional description of the organization + """ + description: String + clearDescription: Boolean + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + clearAvatarRemoteURL: Boolean + addControlCreatorIDs: [ID!] + removeControlCreatorIDs: [ID!] + clearControlCreators: Boolean + addControlObjectiveCreatorIDs: [ID!] + removeControlObjectiveCreatorIDs: [ID!] + clearControlObjectiveCreators: Boolean + addGroupCreatorIDs: [ID!] + removeGroupCreatorIDs: [ID!] + clearGroupCreators: Boolean + addInternalPolicyCreatorIDs: [ID!] + removeInternalPolicyCreatorIDs: [ID!] + clearInternalPolicyCreators: Boolean + addNarrativeCreatorIDs: [ID!] + removeNarrativeCreatorIDs: [ID!] + clearNarrativeCreators: Boolean + addProcedureCreatorIDs: [ID!] + removeProcedureCreatorIDs: [ID!] + clearProcedureCreators: Boolean + addProgramCreatorIDs: [ID!] + removeProgramCreatorIDs: [ID!] + clearProgramCreators: Boolean + addRiskCreatorIDs: [ID!] + removeRiskCreatorIDs: [ID!] + clearRiskCreators: Boolean + addTemplateCreatorIDs: [ID!] + removeTemplateCreatorIDs: [ID!] + clearTemplateCreators: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroups: Boolean + addTemplateIDs: [ID!] + removeTemplateIDs: [ID!] + clearTemplates: Boolean + addIntegrationIDs: [ID!] + removeIntegrationIDs: [ID!] + clearIntegrations: Boolean + settingID: ID + clearSetting: Boolean + addDocumentDatumIDs: [ID!] + removeDocumentDatumIDs: [ID!] + clearDocumentData: Boolean + addOrgSubscriptionIDs: [ID!] + removeOrgSubscriptionIDs: [ID!] + clearOrgSubscriptions: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessTokens: Boolean + addAPITokenIDs: [ID!] + removeAPITokenIDs: [ID!] + clearAPITokens: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean + addInviteIDs: [ID!] + removeInviteIDs: [ID!] + clearInvites: Boolean + addSubscriberIDs: [ID!] + removeSubscriberIDs: [ID!] + clearSubscribers: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addSecretIDs: [ID!] + removeSecretIDs: [ID!] + clearSecrets: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + addEntityIDs: [ID!] + removeEntityIDs: [ID!] + clearEntities: Boolean + addEntityTypeIDs: [ID!] + removeEntityTypeIDs: [ID!] + clearEntityTypes: Boolean + addContactIDs: [ID!] + removeContactIDs: [ID!] + clearContacts: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addOrgMembers: [CreateOrgMembershipInput!] + updateOrgSettings: UpdateOrganizationSettingInput +} +""" +UpdateOrganizationSettingInput is used for update OrganizationSetting object. +Input was generated by ent. +""" +input UpdateOrganizationSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + domains associated with the organization + """ + domains: [String!] + appendDomains: [String!] + clearDomains: Boolean + """ + Name of the person to contact for billing + """ + billingContact: String + clearBillingContact: Boolean + """ + Email address of the person to contact for billing + """ + billingEmail: String + clearBillingEmail: Boolean + """ + Phone number to contact for billing + """ + billingPhone: String + clearBillingPhone: Boolean + """ + Address to send billing information to + """ + billingAddress: String + clearBillingAddress: Boolean + """ + Usually government-issued tax ID or business ID such as ABN in Australia + """ + taxIdentifier: String + clearTaxIdentifier: Boolean + """ + geographical location of the organization + """ + geoLocation: OrganizationSettingRegion + clearGeoLocation: Boolean + """ + the ID of the stripe customer associated with the organization + """ + stripeID: String + clearStripeID: Boolean + organizationID: ID + clearOrganization: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdatePersonalAccessTokenInput is used for update PersonalAccessToken object. +Input was generated by ent. +""" +input UpdatePersonalAccessTokenInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name associated with the token + """ + name: String + """ + a description of the token's purpose + """ + description: String + clearDescription: Boolean + scopes: [String!] + appendScopes: [String!] + clearScopes: Boolean + lastUsedAt: Time + clearLastUsedAt: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganizations: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateProcedureInput is used for update Procedure object. +Input was generated by ent. +""" +input UpdateProcedureInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the procedure + """ + name: String + """ + description of the procedure + """ + description: String + clearDescription: Boolean + """ + status of the procedure + """ + status: String + clearStatus: Boolean + """ + type of the procedure + """ + procedureType: String + clearProcedureType: Boolean + """ + version of the procedure + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the procedure + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the procedure + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the procedure document + """ + details: Map + clearDetails: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateProgramInput is used for update Program object. +Input was generated by ent. +""" +input UpdateProgramInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the program + """ + name: String + """ + the description of the program + """ + description: String + clearDescription: Boolean + """ + the status of the program + """ + status: ProgramProgramStatus + """ + the start date of the period + """ + startDate: Time + clearStartDate: Boolean + """ + the end date of the period + """ + endDate: Time + clearEndDate: Boolean + """ + is the program ready for the auditor + """ + auditorReady: Boolean + """ + can the auditor write comments + """ + auditorWriteComments: Boolean + """ + can the auditor read comments + """ + auditorReadComments: Boolean + ownerID: ID + clearOwner: Boolean + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicies: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addRiskIDs: [ID!] + removeRiskIDs: [ID!] + clearRisks: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + addNoteIDs: [ID!] + removeNoteIDs: [ID!] + clearNotes: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + addNarrativeIDs: [ID!] + removeNarrativeIDs: [ID!] + clearNarratives: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addStandardIDs: [ID!] + removeStandardIDs: [ID!] + clearStandards: Boolean + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUsers: Boolean + addProgramMembers: [CreateProgramMembershipInput!] +} +""" +UpdateProgramMembershipInput is used for update ProgramMembership object. +Input was generated by ent. +""" +input UpdateProgramMembershipInput { + role: ProgramMembershipRole +} +""" +UpdateRiskInput is used for update Risk object. +Input was generated by ent. +""" +input UpdateRiskInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the risk + """ + name: String + """ + description of the risk + """ + description: String + clearDescription: Boolean + """ + status of the risk - mitigated or not, inflight, etc. + """ + status: String + clearStatus: Boolean + """ + type of the risk, e.g. strategic, operational, financial, external, etc. + """ + riskType: String + clearRiskType: Boolean + """ + business costs associated with the risk + """ + businessCosts: String + clearBusinessCosts: Boolean + """ + impact of the risk - high, medium, low + """ + impact: RiskRiskImpact + clearImpact: Boolean + """ + likelihood of the risk occurring; unlikely, likely, highly likely + """ + likelihood: RiskRiskLikelihood + clearLikelihood: Boolean + """ + mitigation for the risk + """ + mitigation: String + clearMitigation: Boolean + """ + which controls are satisfied by the risk + """ + satisfies: String + clearSatisfies: Boolean + """ + json data for the risk document + """ + details: Map + clearDetails: Boolean + ownerID: ID + addBlockedGroupIDs: [ID!] + removeBlockedGroupIDs: [ID!] + clearBlockedGroups: Boolean + addEditorIDs: [ID!] + removeEditorIDs: [ID!] + clearEditors: Boolean + addViewerIDs: [ID!] + removeViewerIDs: [ID!] + clearViewers: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateStandardInput is used for update Standard object. +Input was generated by ent. +""" +input UpdateStandardInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the standard body, e.g. TSC, NIST, SOC, HITRUST, FedRamp, etc. + """ + name: String + """ + description of the standard + """ + description: String + clearDescription: Boolean + """ + family of the standard, e.g. 800-53, 800-171, 27001, etc. + """ + family: String + clearFamily: Boolean + """ + status of the standard - active, deprecated, etc. + """ + status: String + clearStatus: Boolean + """ + type of the standard - security, privacy, etc. + """ + standardType: String + clearStandardType: Boolean + """ + version of the standard + """ + version: String + clearVersion: Boolean + """ + purpose and scope + """ + purposeAndScope: String + clearPurposeAndScope: Boolean + """ + background of the standard + """ + background: String + clearBackground: Boolean + """ + which controls are satisfied by the standard + """ + satisfies: String + clearSatisfies: Boolean + """ + json data with details of the standard + """ + details: Map + clearDetails: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjectives: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControls: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedures: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateSubcontrolInput is used for update Subcontrol object. +Input was generated by ent. +""" +input UpdateSubcontrolInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the subcontrol + """ + name: String + """ + description of the subcontrol + """ + description: String + clearDescription: Boolean + """ + status of the subcontrol + """ + status: String + clearStatus: Boolean + """ + type of the subcontrol + """ + subcontrolType: String + clearSubcontrolType: Boolean + """ + version of the control + """ + version: String + clearVersion: Boolean + """ + number of the subcontrol + """ + subcontrolNumber: String + clearSubcontrolNumber: Boolean + """ + subcontrol family + """ + family: String + clearFamily: Boolean + """ + subcontrol class + """ + class: String + clearClass: Boolean + """ + source of the control, e.g. framework, template, user-defined, etc. + """ + source: String + clearSource: Boolean + """ + mapped frameworks that the subcontrol is part of + """ + mappedFrameworks: String + clearMappedFrameworks: Boolean + """ + implementation evidence of the subcontrol + """ + implementationEvidence: String + clearImplementationEvidence: Boolean + """ + implementation status + """ + implementationStatus: String + clearImplementationStatus: Boolean + """ + date the subcontrol was implemented + """ + implementationDate: Time + clearImplementationDate: Boolean + """ + implementation verification + """ + implementationVerification: String + clearImplementationVerification: Boolean + """ + date the subcontrol implementation was verified + """ + implementationVerificationDate: Time + clearImplementationVerificationDate: Boolean + """ + json data details of the subcontrol + """ + details: Map + clearDetails: Boolean + ownerID: ID + addControlIDs: [ID!] + removeControlIDs: [ID!] + addUserIDs: [ID!] + removeUserIDs: [ID!] + clearUser: Boolean + addTaskIDs: [ID!] + removeTaskIDs: [ID!] + clearTasks: Boolean + notesID: ID + clearNotes: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateSubscriberInput is used for update Subscriber object. +Input was generated by ent. +""" +input UpdateSubscriberInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + email address of the subscriber + """ + email: String + """ + phone number of the subscriber + """ + phoneNumber: String + clearPhoneNumber: Boolean + ownerID: ID + clearOwner: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean +} +""" +UpdateTFASettingInput is used for update TFASetting object. +Input was generated by ent. +""" +input UpdateTFASettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + specifies if the TFA device has been verified + """ + verified: Boolean + """ + specifies a user may complete authentication by verifying a TOTP code delivered through an authenticator app + """ + totpAllowed: Boolean + clearTotpAllowed: Boolean + """ + Whether to regenerate backup codes + """ + regenBackupCodes: Boolean +} +""" +UpdateTaskInput is used for update Task object. +Input was generated by ent. +""" +input UpdateTaskInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the title of the task + """ + title: String + """ + the description of the task + """ + description: String + clearDescription: Boolean + """ + the details of the task + """ + details: Map + clearDetails: Boolean + """ + the status of the task + """ + status: TaskTaskStatus + """ + the due date of the task + """ + due: Time + clearDue: Boolean + """ + the completion date of the task + """ + completed: Time + clearCompleted: Boolean + assignerID: ID + assigneeID: ID + clearAssignee: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganization: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroup: Boolean + addInternalPolicyIDs: [ID!] + removeInternalPolicyIDs: [ID!] + clearInternalPolicy: Boolean + addProcedureIDs: [ID!] + removeProcedureIDs: [ID!] + clearProcedure: Boolean + addControlIDs: [ID!] + removeControlIDs: [ID!] + clearControl: Boolean + addControlObjectiveIDs: [ID!] + removeControlObjectiveIDs: [ID!] + clearControlObjective: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrol: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearProgram: Boolean +} +""" +UpdateTemplateInput is used for update Template object. +Input was generated by ent. +""" +input UpdateTemplateInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + the name of the template + """ + name: String + """ + the type of the template, either a provided template or an implementation (document) + """ + templateType: TemplateDocumentType + """ + the description of the template + """ + description: String + clearDescription: Boolean + """ + the jsonschema object of the template + """ + jsonconfig: JSON + """ + the uischema for the template to render in the UI + """ + uischema: JSON + clearUischema: Boolean + ownerID: ID + clearOwner: Boolean + addDocumentIDs: [ID!] + removeDocumentIDs: [ID!] + clearDocuments: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +""" +UpdateUserInput is used for update User object. +Input was generated by ent. +""" +input UpdateUserInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + email: String + firstName: String + clearFirstName: Boolean + lastName: String + clearLastName: Boolean + """ + The user's displayed 'friendly' name + """ + displayName: String + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + clearAvatarRemoteURL: Boolean + """ + The user's local avatar file + """ + avatarLocalFile: String + clearAvatarLocalFile: Boolean + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + clearAvatarUpdatedAt: Boolean + """ + the time the user was last seen + """ + lastSeen: Time + clearLastSeen: Boolean + """ + user password hash + """ + password: String + clearPassword: Boolean + """ + the Subject of the user JWT + """ + sub: String + clearSub: Boolean + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider + """ + the user's role + """ + role: UserRole + clearRole: Boolean + addPersonalAccessTokenIDs: [ID!] + removePersonalAccessTokenIDs: [ID!] + clearPersonalAccessTokens: Boolean + addTfaSettingIDs: [ID!] + removeTfaSettingIDs: [ID!] + clearTfaSettings: Boolean + settingID: ID + addEmailVerificationTokenIDs: [ID!] + removeEmailVerificationTokenIDs: [ID!] + clearEmailVerificationTokens: Boolean + addPasswordResetTokenIDs: [ID!] + removePasswordResetTokenIDs: [ID!] + clearPasswordResetTokens: Boolean + addGroupIDs: [ID!] + removeGroupIDs: [ID!] + clearGroups: Boolean + addOrganizationIDs: [ID!] + removeOrganizationIDs: [ID!] + clearOrganizations: Boolean + addWebauthnIDs: [ID!] + removeWebauthnIDs: [ID!] + clearWebauthn: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean + fileID: ID + clearFile: Boolean + addEventIDs: [ID!] + removeEventIDs: [ID!] + clearEvents: Boolean + addActionPlanIDs: [ID!] + removeActionPlanIDs: [ID!] + clearActionPlans: Boolean + addSubcontrolIDs: [ID!] + removeSubcontrolIDs: [ID!] + clearSubcontrols: Boolean + addAssignerTaskIDs: [ID!] + removeAssignerTaskIDs: [ID!] + clearAssignerTasks: Boolean + addAssigneeTaskIDs: [ID!] + removeAssigneeTaskIDs: [ID!] + clearAssigneeTasks: Boolean + addProgramIDs: [ID!] + removeProgramIDs: [ID!] + clearPrograms: Boolean +} +""" +UpdateUserSettingInput is used for update UserSetting object. +Input was generated by ent. +""" +input UpdateUserSettingInput { + """ + tags associated with the object + """ + tags: [String!] + appendTags: [String!] + clearTags: Boolean + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + clearSilencedAt: Boolean + """ + The time the user was suspended + """ + suspendedAt: Time + clearSuspendedAt: Boolean + """ + status of the user account + """ + status: UserSettingUserStatus + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + clearIsWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + clearIsTfaEnabled: Boolean + userID: ID + clearUser: Boolean + defaultOrgID: ID + clearDefaultOrg: Boolean + addFileIDs: [ID!] + removeFileIDs: [ID!] + clearFiles: Boolean +} +scalar Upload +type User implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The user's local avatar file id + """ + avatarLocalFileID: ID + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserAuthProvider! + """ + the user's role + """ + role: UserRole + personalAccessTokens: [PersonalAccessToken!] + tfaSettings: [TFASetting!] + setting: UserSetting! + groups: [Group!] + organizations: [Organization!] + files: [File!] + file: File + events: [Event!] + actionPlans: [ActionPlan!] + subcontrols: [Subcontrol!] + assignerTasks: [Task!] + assigneeTasks: [Task!] + programs: [Program!] + groupMemberships: [GroupMembership!] + orgMemberships: [OrgMembership!] + programMemberships: [ProgramMembership!] +} +""" +UserAuthProvider is enum for the field auth_provider +""" +enum UserAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { + CREDENTIALS + GOOGLE + GITHUB + WEBAUTHN +} +""" +Return response for createBulkUser mutation +""" +type UserBulkCreatePayload { + """ + Created users + """ + users: [User!] +} +""" +A connection to a list of items. +""" +type UserConnection { + """ + A list of edges. + """ + edges: [UserEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createUser mutation +""" +type UserCreatePayload { + """ + Created user + """ + user: User! +} +""" +Return response for deleteUser mutation +""" +type UserDeletePayload { + """ + Deleted user ID + """ + deletedID: ID! +} +""" +An edge in a connection. +""" +type UserEdge { + """ + The item at the end of the edge. + """ + node: User + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type UserHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: UserHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + deletedAt: Time + deletedBy: String + """ + tags associated with the object + """ + tags: [String!] + email: String! + firstName: String + lastName: String + """ + The user's displayed 'friendly' name + """ + displayName: String! + """ + URL of the user's remote avatar + """ + avatarRemoteURL: String + """ + The user's local avatar file + """ + avatarLocalFile: String + """ + The user's local avatar file id + """ + avatarLocalFileID: String + """ + The time the user's (local) avatar was last updated + """ + avatarUpdatedAt: Time + """ + the time the user was last seen + """ + lastSeen: Time + """ + the Subject of the user JWT + """ + sub: String + """ + auth provider used to register the account + """ + authProvider: UserHistoryAuthProvider! + """ + the user's role + """ + role: UserHistoryRole +} +""" +UserHistoryAuthProvider is enum for the field auth_provider +""" +enum UserHistoryAuthProvider @goModel(model: "github.com/theopenlane/core/pkg/enums.AuthProvider") { + CREDENTIALS + GOOGLE + GITHUB + WEBAUTHN +} +""" +A connection to a list of items. +""" +type UserHistoryConnection { + """ + A list of edges. + """ + edges: [UserHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserHistoryEdge { + """ + The item at the end of the edge. + """ + node: UserHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +UserHistoryOpType is enum for the field operation +""" +enum UserHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +Ordering options for UserHistory connections +""" +input UserHistoryOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order UserHistories. + """ + field: UserHistoryOrderField! +} +""" +Properties by which UserHistory connections can be ordered. +""" +enum UserHistoryOrderField { + first_name + last_name + display_name +} +""" +UserHistoryRole is enum for the field role +""" +enum UserHistoryRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +""" +UserHistoryWhereInput is used for filtering UserHistory objects. +Input was generated by ent. +""" +input UserHistoryWhereInput { + not: UserHistoryWhereInput + and: [UserHistoryWhereInput!] + or: [UserHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: UserHistoryOpType + operationNEQ: UserHistoryOpType + operationIn: [UserHistoryOpType!] + operationNotIn: [UserHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + first_name field predicates + """ + firstName: String + firstNameNEQ: String + firstNameIn: [String!] + firstNameNotIn: [String!] + firstNameGT: String + firstNameGTE: String + firstNameLT: String + firstNameLTE: String + firstNameContains: String + firstNameHasPrefix: String + firstNameHasSuffix: String + firstNameIsNil: Boolean + firstNameNotNil: Boolean + firstNameEqualFold: String + firstNameContainsFold: String + """ + last_name field predicates + """ + lastName: String + lastNameNEQ: String + lastNameIn: [String!] + lastNameNotIn: [String!] + lastNameGT: String + lastNameGTE: String + lastNameLT: String + lastNameLTE: String + lastNameContains: String + lastNameHasPrefix: String + lastNameHasSuffix: String + lastNameIsNil: Boolean + lastNameNotNil: Boolean + lastNameEqualFold: String + lastNameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + avatar_local_file field predicates + """ + avatarLocalFile: String + avatarLocalFileNEQ: String + avatarLocalFileIn: [String!] + avatarLocalFileNotIn: [String!] + avatarLocalFileGT: String + avatarLocalFileGTE: String + avatarLocalFileLT: String + avatarLocalFileLTE: String + avatarLocalFileContains: String + avatarLocalFileHasPrefix: String + avatarLocalFileHasSuffix: String + avatarLocalFileIsNil: Boolean + avatarLocalFileNotNil: Boolean + avatarLocalFileEqualFold: String + avatarLocalFileContainsFold: String + """ + avatar_local_file_id field predicates + """ + avatarLocalFileID: String + avatarLocalFileIDNEQ: String + avatarLocalFileIDIn: [String!] + avatarLocalFileIDNotIn: [String!] + avatarLocalFileIDGT: String + avatarLocalFileIDGTE: String + avatarLocalFileIDLT: String + avatarLocalFileIDLTE: String + avatarLocalFileIDContains: String + avatarLocalFileIDHasPrefix: String + avatarLocalFileIDHasSuffix: String + avatarLocalFileIDIsNil: Boolean + avatarLocalFileIDNotNil: Boolean + avatarLocalFileIDEqualFold: String + avatarLocalFileIDContainsFold: String + """ + avatar_updated_at field predicates + """ + avatarUpdatedAt: Time + avatarUpdatedAtNEQ: Time + avatarUpdatedAtIn: [Time!] + avatarUpdatedAtNotIn: [Time!] + avatarUpdatedAtGT: Time + avatarUpdatedAtGTE: Time + avatarUpdatedAtLT: Time + avatarUpdatedAtLTE: Time + avatarUpdatedAtIsNil: Boolean + avatarUpdatedAtNotNil: Boolean + """ + last_seen field predicates + """ + lastSeen: Time + lastSeenNEQ: Time + lastSeenIn: [Time!] + lastSeenNotIn: [Time!] + lastSeenGT: Time + lastSeenGTE: Time + lastSeenLT: Time + lastSeenLTE: Time + lastSeenIsNil: Boolean + lastSeenNotNil: Boolean + """ + sub field predicates + """ + sub: String + subNEQ: String + subIn: [String!] + subNotIn: [String!] + subGT: String + subGTE: String + subLT: String + subLTE: String + subContains: String + subHasPrefix: String + subHasSuffix: String + subIsNil: Boolean + subNotNil: Boolean + subEqualFold: String + subContainsFold: String + """ + auth_provider field predicates + """ + authProvider: UserHistoryAuthProvider + authProviderNEQ: UserHistoryAuthProvider + authProviderIn: [UserHistoryAuthProvider!] + authProviderNotIn: [UserHistoryAuthProvider!] + """ + role field predicates + """ + role: UserHistoryRole + roleNEQ: UserHistoryRole + roleIn: [UserHistoryRole!] + roleNotIn: [UserHistoryRole!] + roleIsNil: Boolean + roleNotNil: Boolean +} +""" +Ordering options for User connections +""" +input UserOrder { + """ + The ordering direction. + """ + direction: OrderDirection! = ASC + """ + The field by which to order Users. + """ + field: UserOrderField! +} +""" +Properties by which User connections can be ordered. +""" +enum UserOrderField { + first_name + last_name + display_name +} +""" +UserRole is enum for the field role +""" +enum UserRole @goModel(model: "github.com/theopenlane/core/pkg/enums.Role") { + ADMIN + MEMBER + USER +} +type UserSearchResult { + users: [User!] +} +type UserSetting implements Node { + id: ID! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + userID: ID + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean! + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingUserStatus! + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean! + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean + user: User + """ + organization to load on user login + """ + defaultOrg: Organization + files: [File!] +} +""" +Return response for createBulkUserSetting mutation +""" +type UserSettingBulkCreatePayload { + """ + Created userSettings + """ + userSettings: [UserSetting!] +} +""" +A connection to a list of items. +""" +type UserSettingConnection { + """ + A list of edges. + """ + edges: [UserSettingEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +Return response for createUserSetting mutation +""" +type UserSettingCreatePayload { + """ + Created userSetting + """ + userSetting: UserSetting! +} +""" +An edge in a connection. +""" +type UserSettingEdge { + """ + The item at the end of the edge. + """ + node: UserSetting + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +type UserSettingHistory implements Node { + id: ID! + historyTime: Time! + ref: String + operation: UserSettingHistoryOpType! + createdAt: Time + updatedAt: Time + createdBy: String + updatedBy: String + """ + tags associated with the object + """ + tags: [String!] + deletedAt: Time + deletedBy: String + userID: String + """ + user account is locked if unconfirmed or explicitly locked + """ + locked: Boolean! + """ + The time notifications regarding the user were silenced + """ + silencedAt: Time + """ + The time the user was suspended + """ + suspendedAt: Time + """ + status of the user account + """ + status: UserSettingHistoryUserStatus! + """ + whether the user has confirmed their email address + """ + emailConfirmed: Boolean! + """ + specifies a user may complete authentication by verifying a WebAuthn capable device + """ + isWebauthnAllowed: Boolean + """ + whether the user has two factor authentication enabled + """ + isTfaEnabled: Boolean +} +""" +A connection to a list of items. +""" +type UserSettingHistoryConnection { + """ + A list of edges. + """ + edges: [UserSettingHistoryEdge] + """ + Information to aid in pagination. + """ + pageInfo: PageInfo! + """ + Identifies the total count of items in the connection. + """ + totalCount: Int! +} +""" +An edge in a connection. +""" +type UserSettingHistoryEdge { + """ + The item at the end of the edge. + """ + node: UserSettingHistory + """ + A cursor for use in pagination. + """ + cursor: Cursor! +} +""" +UserSettingHistoryOpType is enum for the field operation +""" +enum UserSettingHistoryOpType @goModel(model: "github.com/theopenlane/entx/history.OpType") { + INSERT + UPDATE + DELETE +} +""" +UserSettingHistoryUserStatus is enum for the field status +""" +enum UserSettingHistoryUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +UserSettingHistoryWhereInput is used for filtering UserSettingHistory objects. +Input was generated by ent. +""" +input UserSettingHistoryWhereInput { + not: UserSettingHistoryWhereInput + and: [UserSettingHistoryWhereInput!] + or: [UserSettingHistoryWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + history_time field predicates + """ + historyTime: Time + historyTimeNEQ: Time + historyTimeIn: [Time!] + historyTimeNotIn: [Time!] + historyTimeGT: Time + historyTimeGTE: Time + historyTimeLT: Time + historyTimeLTE: Time + """ + ref field predicates + """ + ref: String + refNEQ: String + refIn: [String!] + refNotIn: [String!] + refGT: String + refGTE: String + refLT: String + refLTE: String + refContains: String + refHasPrefix: String + refHasSuffix: String + refIsNil: Boolean + refNotNil: Boolean + refEqualFold: String + refContainsFold: String + """ + operation field predicates + """ + operation: UserSettingHistoryOpType + operationNEQ: UserSettingHistoryOpType + operationIn: [UserSettingHistoryOpType!] + operationNotIn: [UserSettingHistoryOpType!] + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + user_id field predicates + """ + userID: String + userIDNEQ: String + userIDIn: [String!] + userIDNotIn: [String!] + userIDGT: String + userIDGTE: String + userIDLT: String + userIDLTE: String + userIDContains: String + userIDHasPrefix: String + userIDHasSuffix: String + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: String + userIDContainsFold: String + """ + locked field predicates + """ + locked: Boolean + lockedNEQ: Boolean + """ + silenced_at field predicates + """ + silencedAt: Time + silencedAtNEQ: Time + silencedAtIn: [Time!] + silencedAtNotIn: [Time!] + silencedAtGT: Time + silencedAtGTE: Time + silencedAtLT: Time + silencedAtLTE: Time + silencedAtIsNil: Boolean + silencedAtNotNil: Boolean + """ + suspended_at field predicates + """ + suspendedAt: Time + suspendedAtNEQ: Time + suspendedAtIn: [Time!] + suspendedAtNotIn: [Time!] + suspendedAtGT: Time + suspendedAtGTE: Time + suspendedAtLT: Time + suspendedAtLTE: Time + suspendedAtIsNil: Boolean + suspendedAtNotNil: Boolean + """ + status field predicates + """ + status: UserSettingHistoryUserStatus + statusNEQ: UserSettingHistoryUserStatus + statusIn: [UserSettingHistoryUserStatus!] + statusNotIn: [UserSettingHistoryUserStatus!] + """ + email_confirmed field predicates + """ + emailConfirmed: Boolean + emailConfirmedNEQ: Boolean + """ + is_webauthn_allowed field predicates + """ + isWebauthnAllowed: Boolean + isWebauthnAllowedNEQ: Boolean + isWebauthnAllowedIsNil: Boolean + isWebauthnAllowedNotNil: Boolean + """ + is_tfa_enabled field predicates + """ + isTfaEnabled: Boolean + isTfaEnabledNEQ: Boolean + isTfaEnabledIsNil: Boolean + isTfaEnabledNotNil: Boolean +} +type UserSettingSearchResult { + userSettings: [UserSetting!] +} +""" +Return response for updateUserSetting mutation +""" +type UserSettingUpdatePayload { + """ + Updated userSetting + """ + userSetting: UserSetting! +} +""" +UserSettingUserStatus is enum for the field status +""" +enum UserSettingUserStatus @goModel(model: "github.com/theopenlane/core/pkg/enums.UserStatus") { + ACTIVE + INACTIVE + DEACTIVATED + SUSPENDED + ONBOARDING +} +""" +UserSettingWhereInput is used for filtering UserSetting objects. +Input was generated by ent. +""" +input UserSettingWhereInput { + not: UserSettingWhereInput + and: [UserSettingWhereInput!] + or: [UserSettingWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + user_id field predicates + """ + userID: ID + userIDNEQ: ID + userIDIn: [ID!] + userIDNotIn: [ID!] + userIDGT: ID + userIDGTE: ID + userIDLT: ID + userIDLTE: ID + userIDContains: ID + userIDHasPrefix: ID + userIDHasSuffix: ID + userIDIsNil: Boolean + userIDNotNil: Boolean + userIDEqualFold: ID + userIDContainsFold: ID + """ + locked field predicates + """ + locked: Boolean + lockedNEQ: Boolean + """ + silenced_at field predicates + """ + silencedAt: Time + silencedAtNEQ: Time + silencedAtIn: [Time!] + silencedAtNotIn: [Time!] + silencedAtGT: Time + silencedAtGTE: Time + silencedAtLT: Time + silencedAtLTE: Time + silencedAtIsNil: Boolean + silencedAtNotNil: Boolean + """ + suspended_at field predicates + """ + suspendedAt: Time + suspendedAtNEQ: Time + suspendedAtIn: [Time!] + suspendedAtNotIn: [Time!] + suspendedAtGT: Time + suspendedAtGTE: Time + suspendedAtLT: Time + suspendedAtLTE: Time + suspendedAtIsNil: Boolean + suspendedAtNotNil: Boolean + """ + status field predicates + """ + status: UserSettingUserStatus + statusNEQ: UserSettingUserStatus + statusIn: [UserSettingUserStatus!] + statusNotIn: [UserSettingUserStatus!] + """ + email_confirmed field predicates + """ + emailConfirmed: Boolean + emailConfirmedNEQ: Boolean + """ + is_webauthn_allowed field predicates + """ + isWebauthnAllowed: Boolean + isWebauthnAllowedNEQ: Boolean + isWebauthnAllowedIsNil: Boolean + isWebauthnAllowedNotNil: Boolean + """ + is_tfa_enabled field predicates + """ + isTfaEnabled: Boolean + isTfaEnabledNEQ: Boolean + isTfaEnabledIsNil: Boolean + isTfaEnabledNotNil: Boolean + """ + user edge predicates + """ + hasUser: Boolean + hasUserWith: [UserWhereInput!] + """ + default_org edge predicates + """ + hasDefaultOrg: Boolean + hasDefaultOrgWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] +} +""" +Return response for updateUser mutation +""" +type UserUpdatePayload { + """ + Updated user + """ + user: User! +} +""" +UserWhereInput is used for filtering User objects. +Input was generated by ent. +""" +input UserWhereInput { + not: UserWhereInput + and: [UserWhereInput!] + or: [UserWhereInput!] + """ + id field predicates + """ + id: ID + idNEQ: ID + idIn: [ID!] + idNotIn: [ID!] + idGT: ID + idGTE: ID + idLT: ID + idLTE: ID + idEqualFold: ID + idContainsFold: ID + """ + created_at field predicates + """ + createdAt: Time + createdAtNEQ: Time + createdAtIn: [Time!] + createdAtNotIn: [Time!] + createdAtGT: Time + createdAtGTE: Time + createdAtLT: Time + createdAtLTE: Time + createdAtIsNil: Boolean + createdAtNotNil: Boolean + """ + updated_at field predicates + """ + updatedAt: Time + updatedAtNEQ: Time + updatedAtIn: [Time!] + updatedAtNotIn: [Time!] + updatedAtGT: Time + updatedAtGTE: Time + updatedAtLT: Time + updatedAtLTE: Time + updatedAtIsNil: Boolean + updatedAtNotNil: Boolean + """ + created_by field predicates + """ + createdBy: String + createdByNEQ: String + createdByIn: [String!] + createdByNotIn: [String!] + createdByGT: String + createdByGTE: String + createdByLT: String + createdByLTE: String + createdByContains: String + createdByHasPrefix: String + createdByHasSuffix: String + createdByIsNil: Boolean + createdByNotNil: Boolean + createdByEqualFold: String + createdByContainsFold: String + """ + updated_by field predicates + """ + updatedBy: String + updatedByNEQ: String + updatedByIn: [String!] + updatedByNotIn: [String!] + updatedByGT: String + updatedByGTE: String + updatedByLT: String + updatedByLTE: String + updatedByContains: String + updatedByHasPrefix: String + updatedByHasSuffix: String + updatedByIsNil: Boolean + updatedByNotNil: Boolean + updatedByEqualFold: String + updatedByContainsFold: String + """ + deleted_at field predicates + """ + deletedAt: Time + deletedAtNEQ: Time + deletedAtIn: [Time!] + deletedAtNotIn: [Time!] + deletedAtGT: Time + deletedAtGTE: Time + deletedAtLT: Time + deletedAtLTE: Time + deletedAtIsNil: Boolean + deletedAtNotNil: Boolean + """ + deleted_by field predicates + """ + deletedBy: String + deletedByNEQ: String + deletedByIn: [String!] + deletedByNotIn: [String!] + deletedByGT: String + deletedByGTE: String + deletedByLT: String + deletedByLTE: String + deletedByContains: String + deletedByHasPrefix: String + deletedByHasSuffix: String + deletedByIsNil: Boolean + deletedByNotNil: Boolean + deletedByEqualFold: String + deletedByContainsFold: String + """ + email field predicates + """ + email: String + emailNEQ: String + emailIn: [String!] + emailNotIn: [String!] + emailGT: String + emailGTE: String + emailLT: String + emailLTE: String + emailContains: String + emailHasPrefix: String + emailHasSuffix: String + emailEqualFold: String + emailContainsFold: String + """ + first_name field predicates + """ + firstName: String + firstNameNEQ: String + firstNameIn: [String!] + firstNameNotIn: [String!] + firstNameGT: String + firstNameGTE: String + firstNameLT: String + firstNameLTE: String + firstNameContains: String + firstNameHasPrefix: String + firstNameHasSuffix: String + firstNameIsNil: Boolean + firstNameNotNil: Boolean + firstNameEqualFold: String + firstNameContainsFold: String + """ + last_name field predicates + """ + lastName: String + lastNameNEQ: String + lastNameIn: [String!] + lastNameNotIn: [String!] + lastNameGT: String + lastNameGTE: String + lastNameLT: String + lastNameLTE: String + lastNameContains: String + lastNameHasPrefix: String + lastNameHasSuffix: String + lastNameIsNil: Boolean + lastNameNotNil: Boolean + lastNameEqualFold: String + lastNameContainsFold: String + """ + display_name field predicates + """ + displayName: String + displayNameNEQ: String + displayNameIn: [String!] + displayNameNotIn: [String!] + displayNameGT: String + displayNameGTE: String + displayNameLT: String + displayNameLTE: String + displayNameContains: String + displayNameHasPrefix: String + displayNameHasSuffix: String + displayNameEqualFold: String + displayNameContainsFold: String + """ + avatar_remote_url field predicates + """ + avatarRemoteURL: String + avatarRemoteURLNEQ: String + avatarRemoteURLIn: [String!] + avatarRemoteURLNotIn: [String!] + avatarRemoteURLGT: String + avatarRemoteURLGTE: String + avatarRemoteURLLT: String + avatarRemoteURLLTE: String + avatarRemoteURLContains: String + avatarRemoteURLHasPrefix: String + avatarRemoteURLHasSuffix: String + avatarRemoteURLIsNil: Boolean + avatarRemoteURLNotNil: Boolean + avatarRemoteURLEqualFold: String + avatarRemoteURLContainsFold: String + """ + avatar_local_file field predicates + """ + avatarLocalFile: String + avatarLocalFileNEQ: String + avatarLocalFileIn: [String!] + avatarLocalFileNotIn: [String!] + avatarLocalFileGT: String + avatarLocalFileGTE: String + avatarLocalFileLT: String + avatarLocalFileLTE: String + avatarLocalFileContains: String + avatarLocalFileHasPrefix: String + avatarLocalFileHasSuffix: String + avatarLocalFileIsNil: Boolean + avatarLocalFileNotNil: Boolean + avatarLocalFileEqualFold: String + avatarLocalFileContainsFold: String + """ + avatar_local_file_id field predicates + """ + avatarLocalFileID: ID + avatarLocalFileIDNEQ: ID + avatarLocalFileIDIn: [ID!] + avatarLocalFileIDNotIn: [ID!] + avatarLocalFileIDGT: ID + avatarLocalFileIDGTE: ID + avatarLocalFileIDLT: ID + avatarLocalFileIDLTE: ID + avatarLocalFileIDContains: ID + avatarLocalFileIDHasPrefix: ID + avatarLocalFileIDHasSuffix: ID + avatarLocalFileIDIsNil: Boolean + avatarLocalFileIDNotNil: Boolean + avatarLocalFileIDEqualFold: ID + avatarLocalFileIDContainsFold: ID + """ + avatar_updated_at field predicates + """ + avatarUpdatedAt: Time + avatarUpdatedAtNEQ: Time + avatarUpdatedAtIn: [Time!] + avatarUpdatedAtNotIn: [Time!] + avatarUpdatedAtGT: Time + avatarUpdatedAtGTE: Time + avatarUpdatedAtLT: Time + avatarUpdatedAtLTE: Time + avatarUpdatedAtIsNil: Boolean + avatarUpdatedAtNotNil: Boolean + """ + last_seen field predicates + """ + lastSeen: Time + lastSeenNEQ: Time + lastSeenIn: [Time!] + lastSeenNotIn: [Time!] + lastSeenGT: Time + lastSeenGTE: Time + lastSeenLT: Time + lastSeenLTE: Time + lastSeenIsNil: Boolean + lastSeenNotNil: Boolean + """ + sub field predicates + """ + sub: String + subNEQ: String + subIn: [String!] + subNotIn: [String!] + subGT: String + subGTE: String + subLT: String + subLTE: String + subContains: String + subHasPrefix: String + subHasSuffix: String + subIsNil: Boolean + subNotNil: Boolean + subEqualFold: String + subContainsFold: String + """ + auth_provider field predicates + """ + authProvider: UserAuthProvider + authProviderNEQ: UserAuthProvider + authProviderIn: [UserAuthProvider!] + authProviderNotIn: [UserAuthProvider!] + """ + role field predicates + """ + role: UserRole + roleNEQ: UserRole + roleIn: [UserRole!] + roleNotIn: [UserRole!] + roleIsNil: Boolean + roleNotNil: Boolean + """ + personal_access_tokens edge predicates + """ + hasPersonalAccessTokens: Boolean + hasPersonalAccessTokensWith: [PersonalAccessTokenWhereInput!] + """ + tfa_settings edge predicates + """ + hasTfaSettings: Boolean + hasTfaSettingsWith: [TFASettingWhereInput!] + """ + setting edge predicates + """ + hasSetting: Boolean + hasSettingWith: [UserSettingWhereInput!] + """ + groups edge predicates + """ + hasGroups: Boolean + hasGroupsWith: [GroupWhereInput!] + """ + organizations edge predicates + """ + hasOrganizations: Boolean + hasOrganizationsWith: [OrganizationWhereInput!] + """ + files edge predicates + """ + hasFiles: Boolean + hasFilesWith: [FileWhereInput!] + """ + file edge predicates + """ + hasFile: Boolean + hasFileWith: [FileWhereInput!] + """ + events edge predicates + """ + hasEvents: Boolean + hasEventsWith: [EventWhereInput!] + """ + action_plans edge predicates + """ + hasActionPlans: Boolean + hasActionPlansWith: [ActionPlanWhereInput!] + """ + subcontrols edge predicates + """ + hasSubcontrols: Boolean + hasSubcontrolsWith: [SubcontrolWhereInput!] + """ + assigner_tasks edge predicates + """ + hasAssignerTasks: Boolean + hasAssignerTasksWith: [TaskWhereInput!] + """ + assignee_tasks edge predicates + """ + hasAssigneeTasks: Boolean + hasAssigneeTasksWith: [TaskWhereInput!] + """ + programs edge predicates + """ + hasPrograms: Boolean + hasProgramsWith: [ProgramWhereInput!] + """ + group_memberships edge predicates + """ + hasGroupMemberships: Boolean + hasGroupMembershipsWith: [GroupMembershipWhereInput!] + """ + org_memberships edge predicates + """ + hasOrgMemberships: Boolean + hasOrgMembershipsWith: [OrgMembershipWhereInput!] + """ + program_memberships edge predicates + """ + hasProgramMemberships: Boolean + hasProgramMembershipsWith: [ProgramMembershipWhereInput!] +} diff --git a/internal/graphapi/generated/search.generated.go b/internal/graphapi/generated/search.generated.go new file mode 100644 index 00000000..afb341d9 --- /dev/null +++ b/internal/graphapi/generated/search.generated.go @@ -0,0 +1,4502 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync" + "sync/atomic" + + "entgo.io/contrib/entgql" + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _APITokenSearchResult_apiTokens(ctx context.Context, field graphql.CollectedField, obj *model.APITokenSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_APITokenSearchResult_apiTokens(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.APITokens, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.APIToken) + fc.Result = res + return ec.marshalOAPIToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐAPITokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_APITokenSearchResult_apiTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "APITokenSearchResult", + 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_APIToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_APIToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_APIToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_APIToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_APIToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_APIToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_APIToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_APIToken_tags(ctx, field) + case "ownerID": + return ec.fieldContext_APIToken_ownerID(ctx, field) + case "name": + return ec.fieldContext_APIToken_name(ctx, field) + case "token": + return ec.fieldContext_APIToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_APIToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_APIToken_description(ctx, field) + case "scopes": + return ec.fieldContext_APIToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_APIToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_APIToken_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type APIToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ActionPlanSearchResult_actionPlans(ctx context.Context, field graphql.CollectedField, obj *model.ActionPlanSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ActionPlanSearchResult_actionPlans(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ActionPlans, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ActionPlan) + fc.Result = res + return ec.marshalOActionPlan2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐActionPlanᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ActionPlanSearchResult_actionPlans(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ActionPlanSearchResult", + 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_ActionPlan_id(ctx, field) + case "createdAt": + return ec.fieldContext_ActionPlan_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ActionPlan_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ActionPlan_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ActionPlan_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ActionPlan_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ActionPlan_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ActionPlan_tags(ctx, field) + case "name": + return ec.fieldContext_ActionPlan_name(ctx, field) + case "description": + return ec.fieldContext_ActionPlan_description(ctx, field) + case "status": + return ec.fieldContext_ActionPlan_status(ctx, field) + case "dueDate": + return ec.fieldContext_ActionPlan_dueDate(ctx, field) + case "priority": + return ec.fieldContext_ActionPlan_priority(ctx, field) + case "source": + return ec.fieldContext_ActionPlan_source(ctx, field) + case "details": + return ec.fieldContext_ActionPlan_details(ctx, field) + case "standard": + return ec.fieldContext_ActionPlan_standard(ctx, field) + case "risk": + return ec.fieldContext_ActionPlan_risk(ctx, field) + case "control": + return ec.fieldContext_ActionPlan_control(ctx, field) + case "user": + return ec.fieldContext_ActionPlan_user(ctx, field) + case "program": + return ec.fieldContext_ActionPlan_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ActionPlan", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ContactSearchResult_contacts(ctx context.Context, field graphql.CollectedField, obj *model.ContactSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ContactSearchResult_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Contacts, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Contact) + fc.Result = res + return ec.marshalOContact2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐContactᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ContactSearchResult_contacts(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ContactSearchResult", + 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_Contact_id(ctx, field) + case "createdAt": + return ec.fieldContext_Contact_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Contact_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Contact_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Contact_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Contact_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Contact_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Contact_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Contact_ownerID(ctx, field) + case "fullName": + return ec.fieldContext_Contact_fullName(ctx, field) + case "title": + return ec.fieldContext_Contact_title(ctx, field) + case "company": + return ec.fieldContext_Contact_company(ctx, field) + case "email": + return ec.fieldContext_Contact_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Contact_phoneNumber(ctx, field) + case "address": + return ec.fieldContext_Contact_address(ctx, field) + case "status": + return ec.fieldContext_Contact_status(ctx, field) + case "owner": + return ec.fieldContext_Contact_owner(ctx, field) + case "entities": + return ec.fieldContext_Contact_entities(ctx, field) + case "files": + return ec.fieldContext_Contact_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Contact", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlObjectiveSearchResult_controlObjectives(ctx context.Context, field graphql.CollectedField, obj *model.ControlObjectiveSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlObjectiveSearchResult_controlObjectives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.ControlObjectives, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.ControlObjective) + fc.Result = res + return ec.marshalOControlObjective2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlObjectiveᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlObjectiveSearchResult_controlObjectives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlObjectiveSearchResult", + 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_ControlObjective_id(ctx, field) + case "createdAt": + return ec.fieldContext_ControlObjective_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_ControlObjective_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_ControlObjective_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_ControlObjective_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_ControlObjective_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_ControlObjective_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_ControlObjective_tags(ctx, field) + case "ownerID": + return ec.fieldContext_ControlObjective_ownerID(ctx, field) + case "name": + return ec.fieldContext_ControlObjective_name(ctx, field) + case "description": + return ec.fieldContext_ControlObjective_description(ctx, field) + case "status": + return ec.fieldContext_ControlObjective_status(ctx, field) + case "controlObjectiveType": + return ec.fieldContext_ControlObjective_controlObjectiveType(ctx, field) + case "version": + return ec.fieldContext_ControlObjective_version(ctx, field) + case "controlNumber": + return ec.fieldContext_ControlObjective_controlNumber(ctx, field) + case "family": + return ec.fieldContext_ControlObjective_family(ctx, field) + case "class": + return ec.fieldContext_ControlObjective_class(ctx, field) + case "source": + return ec.fieldContext_ControlObjective_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_ControlObjective_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_ControlObjective_details(ctx, field) + case "owner": + return ec.fieldContext_ControlObjective_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_ControlObjective_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_ControlObjective_editors(ctx, field) + case "viewers": + return ec.fieldContext_ControlObjective_viewers(ctx, field) + case "internalPolicies": + return ec.fieldContext_ControlObjective_internalPolicies(ctx, field) + case "controls": + return ec.fieldContext_ControlObjective_controls(ctx, field) + case "procedures": + return ec.fieldContext_ControlObjective_procedures(ctx, field) + case "risks": + return ec.fieldContext_ControlObjective_risks(ctx, field) + case "subcontrols": + return ec.fieldContext_ControlObjective_subcontrols(ctx, field) + case "standard": + return ec.fieldContext_ControlObjective_standard(ctx, field) + case "narratives": + return ec.fieldContext_ControlObjective_narratives(ctx, field) + case "tasks": + return ec.fieldContext_ControlObjective_tasks(ctx, field) + case "programs": + return ec.fieldContext_ControlObjective_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type ControlObjective", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ControlSearchResult_controls(ctx context.Context, field graphql.CollectedField, obj *model.ControlSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ControlSearchResult_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Controls, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Control) + fc.Result = res + return ec.marshalOControl2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐControlᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ControlSearchResult_controls(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ControlSearchResult", + 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 "createdAt": + return ec.fieldContext_Control_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Control_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Control_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Control_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Control_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Control_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Control_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Control_ownerID(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 "controlType": + return ec.fieldContext_Control_controlType(ctx, field) + case "version": + return ec.fieldContext_Control_version(ctx, field) + case "controlNumber": + return ec.fieldContext_Control_controlNumber(ctx, field) + case "family": + return ec.fieldContext_Control_family(ctx, field) + case "class": + return ec.fieldContext_Control_class(ctx, field) + case "source": + return ec.fieldContext_Control_source(ctx, field) + case "satisfies": + return ec.fieldContext_Control_satisfies(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Control_mappedFrameworks(ctx, field) + case "details": + return ec.fieldContext_Control_details(ctx, field) + case "owner": + return ec.fieldContext_Control_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Control_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Control_editors(ctx, field) + case "viewers": + return ec.fieldContext_Control_viewers(ctx, field) + case "procedures": + return ec.fieldContext_Control_procedures(ctx, field) + case "subcontrols": + return ec.fieldContext_Control_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Control_controlObjectives(ctx, field) + case "standard": + return ec.fieldContext_Control_standard(ctx, field) + case "narratives": + return ec.fieldContext_Control_narratives(ctx, field) + case "risks": + return ec.fieldContext_Control_risks(ctx, field) + case "actionPlans": + return ec.fieldContext_Control_actionPlans(ctx, field) + case "tasks": + return ec.fieldContext_Control_tasks(ctx, field) + case "programs": + return ec.fieldContext_Control_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Control", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _DocumentDataSearchResult_documentData(ctx context.Context, field graphql.CollectedField, obj *model.DocumentDataSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_DocumentDataSearchResult_documentData(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DocumentData, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.DocumentData) + fc.Result = res + return ec.marshalODocumentData2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐDocumentDataᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_DocumentDataSearchResult_documentData(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "DocumentDataSearchResult", + 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_DocumentData_id(ctx, field) + case "createdAt": + return ec.fieldContext_DocumentData_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_DocumentData_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_DocumentData_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_DocumentData_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_DocumentData_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_DocumentData_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_DocumentData_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_DocumentData_ownerID(ctx, field) + case "templateID": + return ec.fieldContext_DocumentData_templateID(ctx, field) + case "data": + return ec.fieldContext_DocumentData_data(ctx, field) + case "owner": + return ec.fieldContext_DocumentData_owner(ctx, field) + case "template": + return ec.fieldContext_DocumentData_template(ctx, field) + case "entity": + return ec.fieldContext_DocumentData_entity(ctx, field) + case "files": + return ec.fieldContext_DocumentData_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type DocumentData", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntitySearchResult_entities(ctx context.Context, field graphql.CollectedField, obj *model.EntitySearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntitySearchResult_entities(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Entities, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Entity) + fc.Result = res + return ec.marshalOEntity2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntitySearchResult_entities(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntitySearchResult", + 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_Entity_id(ctx, field) + case "createdAt": + return ec.fieldContext_Entity_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Entity_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Entity_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Entity_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Entity_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Entity_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Entity_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Entity_ownerID(ctx, field) + case "name": + return ec.fieldContext_Entity_name(ctx, field) + case "displayName": + return ec.fieldContext_Entity_displayName(ctx, field) + case "description": + return ec.fieldContext_Entity_description(ctx, field) + case "domains": + return ec.fieldContext_Entity_domains(ctx, field) + case "entityTypeID": + return ec.fieldContext_Entity_entityTypeID(ctx, field) + case "status": + return ec.fieldContext_Entity_status(ctx, field) + case "owner": + return ec.fieldContext_Entity_owner(ctx, field) + case "contacts": + return ec.fieldContext_Entity_contacts(ctx, field) + case "documents": + return ec.fieldContext_Entity_documents(ctx, field) + case "notes": + return ec.fieldContext_Entity_notes(ctx, field) + case "files": + return ec.fieldContext_Entity_files(ctx, field) + case "entityType": + return ec.fieldContext_Entity_entityType(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Entity", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EntityTypeSearchResult_entityTypes(ctx context.Context, field graphql.CollectedField, obj *model.EntityTypeSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EntityTypeSearchResult_entityTypes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.EntityTypes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.EntityType) + fc.Result = res + return ec.marshalOEntityType2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEntityTypeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EntityTypeSearchResult_entityTypes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EntityTypeSearchResult", + 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_EntityType_id(ctx, field) + case "createdAt": + return ec.fieldContext_EntityType_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_EntityType_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_EntityType_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_EntityType_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_EntityType_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_EntityType_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_EntityType_tags(ctx, field) + case "ownerID": + return ec.fieldContext_EntityType_ownerID(ctx, field) + case "name": + return ec.fieldContext_EntityType_name(ctx, field) + case "owner": + return ec.fieldContext_EntityType_owner(ctx, field) + case "entities": + return ec.fieldContext_EntityType_entities(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type EntityType", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _EventSearchResult_events(ctx context.Context, field graphql.CollectedField, obj *model.EventSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_EventSearchResult_events(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Events, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Event) + fc.Result = res + return ec.marshalOEvent2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐEventᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_EventSearchResult_events(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "EventSearchResult", + 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_Event_id(ctx, field) + case "createdAt": + return ec.fieldContext_Event_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Event_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Event_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Event_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Event_tags(ctx, field) + case "eventID": + return ec.fieldContext_Event_eventID(ctx, field) + case "correlationID": + return ec.fieldContext_Event_correlationID(ctx, field) + case "eventType": + return ec.fieldContext_Event_eventType(ctx, field) + case "metadata": + return ec.fieldContext_Event_metadata(ctx, field) + case "user": + return ec.fieldContext_Event_user(ctx, field) + case "group": + return ec.fieldContext_Event_group(ctx, field) + case "integration": + return ec.fieldContext_Event_integration(ctx, field) + case "organization": + return ec.fieldContext_Event_organization(ctx, field) + case "invite": + return ec.fieldContext_Event_invite(ctx, field) + case "personalAccessToken": + return ec.fieldContext_Event_personalAccessToken(ctx, field) + case "hush": + return ec.fieldContext_Event_hush(ctx, field) + case "orgmembership": + return ec.fieldContext_Event_orgmembership(ctx, field) + case "groupmembership": + return ec.fieldContext_Event_groupmembership(ctx, field) + case "subscriber": + return ec.fieldContext_Event_subscriber(ctx, field) + case "file": + return ec.fieldContext_Event_file(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Event", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _FileSearchResult_files(ctx context.Context, field graphql.CollectedField, obj *model.FileSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_FileSearchResult_files(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Files, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.File) + fc.Result = res + return ec.marshalOFile2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐFileᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_FileSearchResult_files(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "FileSearchResult", + 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_File_id(ctx, field) + case "createdAt": + return ec.fieldContext_File_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_File_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_File_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_File_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_File_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_File_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_File_tags(ctx, field) + case "providedFileName": + return ec.fieldContext_File_providedFileName(ctx, field) + case "providedFileExtension": + return ec.fieldContext_File_providedFileExtension(ctx, field) + case "providedFileSize": + return ec.fieldContext_File_providedFileSize(ctx, field) + case "persistedFileSize": + return ec.fieldContext_File_persistedFileSize(ctx, field) + case "detectedMimeType": + return ec.fieldContext_File_detectedMimeType(ctx, field) + case "md5Hash": + return ec.fieldContext_File_md5Hash(ctx, field) + case "detectedContentType": + return ec.fieldContext_File_detectedContentType(ctx, field) + case "storeKey": + return ec.fieldContext_File_storeKey(ctx, field) + case "categoryType": + return ec.fieldContext_File_categoryType(ctx, field) + case "uri": + return ec.fieldContext_File_uri(ctx, field) + case "storageScheme": + return ec.fieldContext_File_storageScheme(ctx, field) + case "storageVolume": + return ec.fieldContext_File_storageVolume(ctx, field) + case "storagePath": + return ec.fieldContext_File_storagePath(ctx, field) + case "user": + return ec.fieldContext_File_user(ctx, field) + case "organization": + return ec.fieldContext_File_organization(ctx, field) + case "group": + return ec.fieldContext_File_group(ctx, field) + case "contact": + return ec.fieldContext_File_contact(ctx, field) + case "entity": + return ec.fieldContext_File_entity(ctx, field) + case "userSetting": + return ec.fieldContext_File_userSetting(ctx, field) + case "organizationSetting": + return ec.fieldContext_File_organizationSetting(ctx, field) + case "template": + return ec.fieldContext_File_template(ctx, field) + case "documentData": + return ec.fieldContext_File_documentData(ctx, field) + case "events": + return ec.fieldContext_File_events(ctx, field) + case "program": + return ec.fieldContext_File_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type File", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupSearchResult_groups(ctx context.Context, field graphql.CollectedField, obj *model.GroupSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSearchResult_groups(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Groups, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Group) + fc.Result = res + return ec.marshalOGroup2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupSearchResult_groups(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSearchResult", + 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_Group_id(ctx, field) + case "createdAt": + return ec.fieldContext_Group_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Group_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Group_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Group_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Group_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Group_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Group_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Group_ownerID(ctx, field) + case "name": + return ec.fieldContext_Group_name(ctx, field) + case "description": + return ec.fieldContext_Group_description(ctx, field) + case "gravatarLogoURL": + return ec.fieldContext_Group_gravatarLogoURL(ctx, field) + case "logoURL": + return ec.fieldContext_Group_logoURL(ctx, field) + case "displayName": + return ec.fieldContext_Group_displayName(ctx, field) + case "owner": + return ec.fieldContext_Group_owner(ctx, field) + case "controlCreators": + return ec.fieldContext_Group_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Group_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Group_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Group_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Group_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Group_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Group_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Group_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Group_templateCreators(ctx, field) + case "procedureEditors": + return ec.fieldContext_Group_procedureEditors(ctx, field) + case "procedureBlockedGroups": + return ec.fieldContext_Group_procedureBlockedGroups(ctx, field) + case "internalPolicyEditors": + return ec.fieldContext_Group_internalPolicyEditors(ctx, field) + case "internalPolicyBlockedGroups": + return ec.fieldContext_Group_internalPolicyBlockedGroups(ctx, field) + case "programEditors": + return ec.fieldContext_Group_programEditors(ctx, field) + case "programBlockedGroups": + return ec.fieldContext_Group_programBlockedGroups(ctx, field) + case "programViewers": + return ec.fieldContext_Group_programViewers(ctx, field) + case "riskEditors": + return ec.fieldContext_Group_riskEditors(ctx, field) + case "riskBlockedGroups": + return ec.fieldContext_Group_riskBlockedGroups(ctx, field) + case "riskViewers": + return ec.fieldContext_Group_riskViewers(ctx, field) + case "controlObjectiveEditors": + return ec.fieldContext_Group_controlObjectiveEditors(ctx, field) + case "controlObjectiveBlockedGroups": + return ec.fieldContext_Group_controlObjectiveBlockedGroups(ctx, field) + case "controlObjectiveViewers": + return ec.fieldContext_Group_controlObjectiveViewers(ctx, field) + case "controlEditors": + return ec.fieldContext_Group_controlEditors(ctx, field) + case "controlBlockedGroups": + return ec.fieldContext_Group_controlBlockedGroups(ctx, field) + case "controlViewers": + return ec.fieldContext_Group_controlViewers(ctx, field) + case "narrativeEditors": + return ec.fieldContext_Group_narrativeEditors(ctx, field) + case "narrativeBlockedGroups": + return ec.fieldContext_Group_narrativeBlockedGroups(ctx, field) + case "narrativeViewers": + return ec.fieldContext_Group_narrativeViewers(ctx, field) + case "setting": + return ec.fieldContext_Group_setting(ctx, field) + case "users": + return ec.fieldContext_Group_users(ctx, field) + case "events": + return ec.fieldContext_Group_events(ctx, field) + case "integrations": + return ec.fieldContext_Group_integrations(ctx, field) + case "files": + return ec.fieldContext_Group_files(ctx, field) + case "tasks": + return ec.fieldContext_Group_tasks(ctx, field) + case "members": + return ec.fieldContext_Group_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Group", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _GroupSettingSearchResult_groupSettings(ctx context.Context, field graphql.CollectedField, obj *model.GroupSettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_GroupSettingSearchResult_groupSettings(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.GroupSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.GroupSetting) + fc.Result = res + return ec.marshalOGroupSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐGroupSettingᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_GroupSettingSearchResult_groupSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "GroupSettingSearchResult", + 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_GroupSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_GroupSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_GroupSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_GroupSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_GroupSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_GroupSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_GroupSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_GroupSetting_deletedBy(ctx, field) + case "visibility": + return ec.fieldContext_GroupSetting_visibility(ctx, field) + case "joinPolicy": + return ec.fieldContext_GroupSetting_joinPolicy(ctx, field) + case "syncToSlack": + return ec.fieldContext_GroupSetting_syncToSlack(ctx, field) + case "syncToGithub": + return ec.fieldContext_GroupSetting_syncToGithub(ctx, field) + case "groupID": + return ec.fieldContext_GroupSetting_groupID(ctx, field) + case "group": + return ec.fieldContext_GroupSetting_group(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type GroupSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _IntegrationSearchResult_integrations(ctx context.Context, field graphql.CollectedField, obj *model.IntegrationSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_IntegrationSearchResult_integrations(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Integrations, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Integration) + fc.Result = res + return ec.marshalOIntegration2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐIntegrationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_IntegrationSearchResult_integrations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "IntegrationSearchResult", + 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_Integration_id(ctx, field) + case "createdAt": + return ec.fieldContext_Integration_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Integration_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Integration_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Integration_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Integration_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Integration_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Integration_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Integration_ownerID(ctx, field) + case "name": + return ec.fieldContext_Integration_name(ctx, field) + case "description": + return ec.fieldContext_Integration_description(ctx, field) + case "kind": + return ec.fieldContext_Integration_kind(ctx, field) + case "owner": + return ec.fieldContext_Integration_owner(ctx, field) + case "secrets": + return ec.fieldContext_Integration_secrets(ctx, field) + case "events": + return ec.fieldContext_Integration_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Integration", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _InternalPolicySearchResult_internalPolicies(ctx context.Context, field graphql.CollectedField, obj *model.InternalPolicySearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_InternalPolicySearchResult_internalPolicies(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.InternalPolicies, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.InternalPolicy) + fc.Result = res + return ec.marshalOInternalPolicy2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐInternalPolicyᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_InternalPolicySearchResult_internalPolicies(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "InternalPolicySearchResult", + 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_InternalPolicy_id(ctx, field) + case "createdAt": + return ec.fieldContext_InternalPolicy_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_InternalPolicy_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_InternalPolicy_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_InternalPolicy_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_InternalPolicy_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_InternalPolicy_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_InternalPolicy_tags(ctx, field) + case "ownerID": + return ec.fieldContext_InternalPolicy_ownerID(ctx, field) + case "name": + return ec.fieldContext_InternalPolicy_name(ctx, field) + case "description": + return ec.fieldContext_InternalPolicy_description(ctx, field) + case "status": + return ec.fieldContext_InternalPolicy_status(ctx, field) + case "policyType": + return ec.fieldContext_InternalPolicy_policyType(ctx, field) + case "version": + return ec.fieldContext_InternalPolicy_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_InternalPolicy_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_InternalPolicy_background(ctx, field) + case "details": + return ec.fieldContext_InternalPolicy_details(ctx, field) + case "owner": + return ec.fieldContext_InternalPolicy_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_InternalPolicy_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_InternalPolicy_editors(ctx, field) + case "controlObjectives": + return ec.fieldContext_InternalPolicy_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_InternalPolicy_controls(ctx, field) + case "procedures": + return ec.fieldContext_InternalPolicy_procedures(ctx, field) + case "narratives": + return ec.fieldContext_InternalPolicy_narratives(ctx, field) + case "tasks": + return ec.fieldContext_InternalPolicy_tasks(ctx, field) + case "programs": + return ec.fieldContext_InternalPolicy_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type InternalPolicy", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _NarrativeSearchResult_narratives(ctx context.Context, field graphql.CollectedField, obj *model.NarrativeSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_NarrativeSearchResult_narratives(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Narratives, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Narrative) + fc.Result = res + return ec.marshalONarrative2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐNarrativeᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_NarrativeSearchResult_narratives(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "NarrativeSearchResult", + 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_Narrative_id(ctx, field) + case "createdAt": + return ec.fieldContext_Narrative_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Narrative_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Narrative_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Narrative_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Narrative_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Narrative_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Narrative_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Narrative_ownerID(ctx, field) + case "name": + return ec.fieldContext_Narrative_name(ctx, field) + case "description": + return ec.fieldContext_Narrative_description(ctx, field) + case "satisfies": + return ec.fieldContext_Narrative_satisfies(ctx, field) + case "details": + return ec.fieldContext_Narrative_details(ctx, field) + case "owner": + return ec.fieldContext_Narrative_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Narrative_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Narrative_editors(ctx, field) + case "viewers": + return ec.fieldContext_Narrative_viewers(ctx, field) + case "internalPolicy": + return ec.fieldContext_Narrative_internalPolicy(ctx, field) + case "control": + return ec.fieldContext_Narrative_control(ctx, field) + case "procedure": + return ec.fieldContext_Narrative_procedure(ctx, field) + case "controlObjective": + return ec.fieldContext_Narrative_controlObjective(ctx, field) + case "programs": + return ec.fieldContext_Narrative_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Narrative", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrgSubscriptionSearchResult_orgSubscriptions(ctx context.Context, field graphql.CollectedField, obj *model.OrgSubscriptionSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrgSubscriptionSearchResult_orgSubscriptions(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrgSubscriptions, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OrgSubscription) + fc.Result = res + return ec.marshalOOrgSubscription2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrgSubscriptionᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrgSubscriptionSearchResult_orgSubscriptions(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrgSubscriptionSearchResult", + 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_OrgSubscription_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrgSubscription_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrgSubscription_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrgSubscription_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrgSubscription_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrgSubscription_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrgSubscription_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrgSubscription_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_OrgSubscription_ownerID(ctx, field) + case "stripeSubscriptionID": + return ec.fieldContext_OrgSubscription_stripeSubscriptionID(ctx, field) + case "productTier": + return ec.fieldContext_OrgSubscription_productTier(ctx, field) + case "stripeProductTierID": + return ec.fieldContext_OrgSubscription_stripeProductTierID(ctx, field) + case "stripeSubscriptionStatus": + return ec.fieldContext_OrgSubscription_stripeSubscriptionStatus(ctx, field) + case "active": + return ec.fieldContext_OrgSubscription_active(ctx, field) + case "stripeCustomerID": + return ec.fieldContext_OrgSubscription_stripeCustomerID(ctx, field) + case "expiresAt": + return ec.fieldContext_OrgSubscription_expiresAt(ctx, field) + case "features": + return ec.fieldContext_OrgSubscription_features(ctx, field) + case "owner": + return ec.fieldContext_OrgSubscription_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrgSubscription", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSearchResult_organizations(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSearchResult_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Organizations, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Organization) + fc.Result = res + return ec.marshalOOrganization2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSearchResult_organizations(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSearchResult", + 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 "createdAt": + return ec.fieldContext_Organization_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Organization_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Organization_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Organization_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Organization_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Organization_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Organization_deletedBy(ctx, field) + case "name": + return ec.fieldContext_Organization_name(ctx, field) + case "displayName": + return ec.fieldContext_Organization_displayName(ctx, field) + case "description": + return ec.fieldContext_Organization_description(ctx, field) + case "personalOrg": + return ec.fieldContext_Organization_personalOrg(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_Organization_avatarRemoteURL(ctx, field) + case "dedicatedDb": + return ec.fieldContext_Organization_dedicatedDb(ctx, field) + case "controlCreators": + return ec.fieldContext_Organization_controlCreators(ctx, field) + case "controlObjectiveCreators": + return ec.fieldContext_Organization_controlObjectiveCreators(ctx, field) + case "groupCreators": + return ec.fieldContext_Organization_groupCreators(ctx, field) + case "internalPolicyCreators": + return ec.fieldContext_Organization_internalPolicyCreators(ctx, field) + case "narrativeCreators": + return ec.fieldContext_Organization_narrativeCreators(ctx, field) + case "procedureCreators": + return ec.fieldContext_Organization_procedureCreators(ctx, field) + case "programCreators": + return ec.fieldContext_Organization_programCreators(ctx, field) + case "riskCreators": + return ec.fieldContext_Organization_riskCreators(ctx, field) + case "templateCreators": + return ec.fieldContext_Organization_templateCreators(ctx, field) + case "parent": + return ec.fieldContext_Organization_parent(ctx, field) + case "children": + return ec.fieldContext_Organization_children(ctx, field) + case "groups": + return ec.fieldContext_Organization_groups(ctx, field) + case "templates": + return ec.fieldContext_Organization_templates(ctx, field) + case "integrations": + return ec.fieldContext_Organization_integrations(ctx, field) + case "setting": + return ec.fieldContext_Organization_setting(ctx, field) + case "documentData": + return ec.fieldContext_Organization_documentData(ctx, field) + case "orgSubscriptions": + return ec.fieldContext_Organization_orgSubscriptions(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_Organization_personalAccessTokens(ctx, field) + case "apiTokens": + return ec.fieldContext_Organization_apiTokens(ctx, field) + case "users": + return ec.fieldContext_Organization_users(ctx, field) + case "invites": + return ec.fieldContext_Organization_invites(ctx, field) + case "subscribers": + return ec.fieldContext_Organization_subscribers(ctx, field) + case "events": + return ec.fieldContext_Organization_events(ctx, field) + case "secrets": + return ec.fieldContext_Organization_secrets(ctx, field) + case "files": + return ec.fieldContext_Organization_files(ctx, field) + case "entities": + return ec.fieldContext_Organization_entities(ctx, field) + case "entityTypes": + return ec.fieldContext_Organization_entityTypes(ctx, field) + case "contacts": + return ec.fieldContext_Organization_contacts(ctx, field) + case "notes": + return ec.fieldContext_Organization_notes(ctx, field) + case "tasks": + return ec.fieldContext_Organization_tasks(ctx, field) + case "programs": + return ec.fieldContext_Organization_programs(ctx, field) + case "procedures": + return ec.fieldContext_Organization_procedures(ctx, field) + case "internalPolicies": + return ec.fieldContext_Organization_internalPolicies(ctx, field) + case "risks": + return ec.fieldContext_Organization_risks(ctx, field) + case "controlObjectives": + return ec.fieldContext_Organization_controlObjectives(ctx, field) + case "narratives": + return ec.fieldContext_Organization_narratives(ctx, field) + case "controls": + return ec.fieldContext_Organization_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Organization_subcontrols(ctx, field) + case "members": + return ec.fieldContext_Organization_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Organization", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _OrganizationSettingSearchResult_organizationSettings(ctx context.Context, field graphql.CollectedField, obj *model.OrganizationSettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_OrganizationSettingSearchResult_organizationSettings(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.OrganizationSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.OrganizationSetting) + fc.Result = res + return ec.marshalOOrganizationSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐOrganizationSettingᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_OrganizationSettingSearchResult_organizationSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "OrganizationSettingSearchResult", + 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_OrganizationSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_OrganizationSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_OrganizationSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_OrganizationSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_OrganizationSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_OrganizationSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_OrganizationSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_OrganizationSetting_deletedBy(ctx, field) + case "domains": + return ec.fieldContext_OrganizationSetting_domains(ctx, field) + case "billingContact": + return ec.fieldContext_OrganizationSetting_billingContact(ctx, field) + case "billingEmail": + return ec.fieldContext_OrganizationSetting_billingEmail(ctx, field) + case "billingPhone": + return ec.fieldContext_OrganizationSetting_billingPhone(ctx, field) + case "billingAddress": + return ec.fieldContext_OrganizationSetting_billingAddress(ctx, field) + case "taxIdentifier": + return ec.fieldContext_OrganizationSetting_taxIdentifier(ctx, field) + case "geoLocation": + return ec.fieldContext_OrganizationSetting_geoLocation(ctx, field) + case "organizationID": + return ec.fieldContext_OrganizationSetting_organizationID(ctx, field) + case "stripeID": + return ec.fieldContext_OrganizationSetting_stripeID(ctx, field) + case "organization": + return ec.fieldContext_OrganizationSetting_organization(ctx, field) + case "files": + return ec.fieldContext_OrganizationSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type OrganizationSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _PersonalAccessTokenSearchResult_personalAccessTokens(ctx context.Context, field graphql.CollectedField, obj *model.PersonalAccessTokenSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.PersonalAccessTokens, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.PersonalAccessToken) + fc.Result = res + return ec.marshalOPersonalAccessToken2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐPersonalAccessTokenᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_PersonalAccessTokenSearchResult_personalAccessTokens(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "PersonalAccessTokenSearchResult", + 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_PersonalAccessToken_id(ctx, field) + case "createdAt": + return ec.fieldContext_PersonalAccessToken_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_PersonalAccessToken_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_PersonalAccessToken_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_PersonalAccessToken_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_PersonalAccessToken_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_PersonalAccessToken_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_PersonalAccessToken_tags(ctx, field) + case "name": + return ec.fieldContext_PersonalAccessToken_name(ctx, field) + case "token": + return ec.fieldContext_PersonalAccessToken_token(ctx, field) + case "expiresAt": + return ec.fieldContext_PersonalAccessToken_expiresAt(ctx, field) + case "description": + return ec.fieldContext_PersonalAccessToken_description(ctx, field) + case "scopes": + return ec.fieldContext_PersonalAccessToken_scopes(ctx, field) + case "lastUsedAt": + return ec.fieldContext_PersonalAccessToken_lastUsedAt(ctx, field) + case "owner": + return ec.fieldContext_PersonalAccessToken_owner(ctx, field) + case "organizations": + return ec.fieldContext_PersonalAccessToken_organizations(ctx, field) + case "events": + return ec.fieldContext_PersonalAccessToken_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type PersonalAccessToken", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProcedureSearchResult_procedures(ctx context.Context, field graphql.CollectedField, obj *model.ProcedureSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProcedureSearchResult_procedures(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Procedures, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Procedure) + fc.Result = res + return ec.marshalOProcedure2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProcedureᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProcedureSearchResult_procedures(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProcedureSearchResult", + 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_Procedure_id(ctx, field) + case "createdAt": + return ec.fieldContext_Procedure_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Procedure_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Procedure_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Procedure_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Procedure_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Procedure_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Procedure_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Procedure_ownerID(ctx, field) + case "name": + return ec.fieldContext_Procedure_name(ctx, field) + case "description": + return ec.fieldContext_Procedure_description(ctx, field) + case "status": + return ec.fieldContext_Procedure_status(ctx, field) + case "procedureType": + return ec.fieldContext_Procedure_procedureType(ctx, field) + case "version": + return ec.fieldContext_Procedure_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Procedure_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Procedure_background(ctx, field) + case "satisfies": + return ec.fieldContext_Procedure_satisfies(ctx, field) + case "details": + return ec.fieldContext_Procedure_details(ctx, field) + case "owner": + return ec.fieldContext_Procedure_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Procedure_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Procedure_editors(ctx, field) + case "controls": + return ec.fieldContext_Procedure_controls(ctx, field) + case "internalPolicies": + return ec.fieldContext_Procedure_internalPolicies(ctx, field) + case "narratives": + return ec.fieldContext_Procedure_narratives(ctx, field) + case "risks": + return ec.fieldContext_Procedure_risks(ctx, field) + case "tasks": + return ec.fieldContext_Procedure_tasks(ctx, field) + case "programs": + return ec.fieldContext_Procedure_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Procedure", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _ProgramSearchResult_programs(ctx context.Context, field graphql.CollectedField, obj *model.ProgramSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_ProgramSearchResult_programs(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Programs, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Program) + fc.Result = res + return ec.marshalOProgram2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐProgramᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_ProgramSearchResult_programs(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "ProgramSearchResult", + 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_Program_id(ctx, field) + case "createdAt": + return ec.fieldContext_Program_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Program_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Program_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Program_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Program_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Program_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Program_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Program_ownerID(ctx, field) + case "name": + return ec.fieldContext_Program_name(ctx, field) + case "description": + return ec.fieldContext_Program_description(ctx, field) + case "status": + return ec.fieldContext_Program_status(ctx, field) + case "startDate": + return ec.fieldContext_Program_startDate(ctx, field) + case "endDate": + return ec.fieldContext_Program_endDate(ctx, field) + case "auditorReady": + return ec.fieldContext_Program_auditorReady(ctx, field) + case "auditorWriteComments": + return ec.fieldContext_Program_auditorWriteComments(ctx, field) + case "auditorReadComments": + return ec.fieldContext_Program_auditorReadComments(ctx, field) + case "owner": + return ec.fieldContext_Program_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Program_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Program_editors(ctx, field) + case "viewers": + return ec.fieldContext_Program_viewers(ctx, field) + case "controls": + return ec.fieldContext_Program_controls(ctx, field) + case "subcontrols": + return ec.fieldContext_Program_subcontrols(ctx, field) + case "controlObjectives": + return ec.fieldContext_Program_controlObjectives(ctx, field) + case "internalPolicies": + return ec.fieldContext_Program_internalPolicies(ctx, field) + case "procedures": + return ec.fieldContext_Program_procedures(ctx, field) + case "risks": + return ec.fieldContext_Program_risks(ctx, field) + case "tasks": + return ec.fieldContext_Program_tasks(ctx, field) + case "notes": + return ec.fieldContext_Program_notes(ctx, field) + case "files": + return ec.fieldContext_Program_files(ctx, field) + case "narratives": + return ec.fieldContext_Program_narratives(ctx, field) + case "actionPlans": + return ec.fieldContext_Program_actionPlans(ctx, field) + case "standards": + return ec.fieldContext_Program_standards(ctx, field) + case "users": + return ec.fieldContext_Program_users(ctx, field) + case "members": + return ec.fieldContext_Program_members(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Program", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _RiskSearchResult_risks(ctx context.Context, field graphql.CollectedField, obj *model.RiskSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_RiskSearchResult_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Risks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Risk) + fc.Result = res + return ec.marshalORisk2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐRiskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_RiskSearchResult_risks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "RiskSearchResult", + 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 "createdAt": + return ec.fieldContext_Risk_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Risk_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Risk_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Risk_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Risk_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Risk_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Risk_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Risk_ownerID(ctx, field) + case "name": + return ec.fieldContext_Risk_name(ctx, field) + case "description": + return ec.fieldContext_Risk_description(ctx, field) + case "status": + return ec.fieldContext_Risk_status(ctx, field) + case "riskType": + return ec.fieldContext_Risk_riskType(ctx, field) + case "businessCosts": + return ec.fieldContext_Risk_businessCosts(ctx, field) + case "impact": + return ec.fieldContext_Risk_impact(ctx, field) + case "likelihood": + return ec.fieldContext_Risk_likelihood(ctx, field) + case "mitigation": + return ec.fieldContext_Risk_mitigation(ctx, field) + case "satisfies": + return ec.fieldContext_Risk_satisfies(ctx, field) + case "details": + return ec.fieldContext_Risk_details(ctx, field) + case "owner": + return ec.fieldContext_Risk_owner(ctx, field) + case "blockedGroups": + return ec.fieldContext_Risk_blockedGroups(ctx, field) + case "editors": + return ec.fieldContext_Risk_editors(ctx, field) + case "viewers": + return ec.fieldContext_Risk_viewers(ctx, field) + case "control": + return ec.fieldContext_Risk_control(ctx, field) + case "procedure": + return ec.fieldContext_Risk_procedure(ctx, field) + case "actionPlans": + return ec.fieldContext_Risk_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Risk_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Risk", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SearchResultConnection_page(ctx context.Context, field graphql.CollectedField, obj *model.SearchResultConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SearchResultConnection_page(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Page, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*entgql.PageInfo[string]) + fc.Result = res + return ec.marshalNPageInfo2ᚖentgoᚗioᚋcontribᚋentgqlᚐPageInfo(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SearchResultConnection_page(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SearchResultConnection", + 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) _SearchResultConnection_nodes(ctx context.Context, field graphql.CollectedField, obj *model.SearchResultConnection) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SearchResultConnection_nodes(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Nodes, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.([]model.SearchResult) + fc.Result = res + return ec.marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResultᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SearchResultConnection_nodes(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SearchResultConnection", + Field: field, + IsMethod: false, + IsResolver: false, + Child: func(ctx context.Context, field graphql.CollectedField) (*graphql.FieldContext, error) { + return nil, errors.New("field of type SearchResult does not have child fields") + }, + } + return fc, nil +} + +func (ec *executionContext) _StandardSearchResult_standards(ctx context.Context, field graphql.CollectedField, obj *model.StandardSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardSearchResult_standards(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standards, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Standard) + fc.Result = res + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_StandardSearchResult_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "StandardSearchResult", + 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_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubcontrolSearchResult_subcontrols(ctx context.Context, field graphql.CollectedField, obj *model.SubcontrolSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolSearchResult_subcontrols(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subcontrols, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Subcontrol) + fc.Result = res + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolSearchResult_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolSearchResult", + 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_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubscriberSearchResult_subscribers(ctx context.Context, field graphql.CollectedField, obj *model.SubscriberSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberSearchResult_subscribers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subscribers, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Subscriber) + fc.Result = res + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubscriberSearchResult_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberSearchResult", + 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_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TFASettingSearchResult_tFASettings(ctx context.Context, field graphql.CollectedField, obj *model.TFASettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingSearchResult_tFASettings(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TFASettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.TFASetting) + fc.Result = res + return ec.marshalOTFASetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASettingᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TFASettingSearchResult_tFASettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TFASettingSearchResult", + 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_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskSearchResult_tasks(ctx context.Context, field graphql.CollectedField, obj *model.TaskSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskSearchResult_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tasks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Task) + fc.Result = res + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskSearchResult_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskSearchResult", + 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 "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TemplateSearchResult_templates(ctx context.Context, field graphql.CollectedField, obj *model.TemplateSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateSearchResult_templates(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Templates, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Template) + fc.Result = res + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TemplateSearchResult_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TemplateSearchResult", + 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_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSearchResult_users(ctx context.Context, field graphql.CollectedField, obj *model.UserSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSearchResult_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Users, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.User) + fc.Result = res + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSearchResult_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSearchResult", + 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 "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingSearchResult_userSettings(ctx context.Context, field graphql.CollectedField, obj *model.UserSettingSearchResult) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingSearchResult_userSettings(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.UserSetting) + fc.Result = res + return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingSearchResult_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingSearchResult", + 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_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +func (ec *executionContext) _SearchResult(ctx context.Context, sel ast.SelectionSet, obj model.SearchResult) graphql.Marshaler { + switch obj := (obj).(type) { + case nil: + return graphql.Null + case model.APITokenSearchResult: + return ec._APITokenSearchResult(ctx, sel, &obj) + case *model.APITokenSearchResult: + if obj == nil { + return graphql.Null + } + return ec._APITokenSearchResult(ctx, sel, obj) + case model.ActionPlanSearchResult: + return ec._ActionPlanSearchResult(ctx, sel, &obj) + case *model.ActionPlanSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ActionPlanSearchResult(ctx, sel, obj) + case model.ContactSearchResult: + return ec._ContactSearchResult(ctx, sel, &obj) + case *model.ContactSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ContactSearchResult(ctx, sel, obj) + case model.ControlSearchResult: + return ec._ControlSearchResult(ctx, sel, &obj) + case *model.ControlSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ControlSearchResult(ctx, sel, obj) + case model.ControlObjectiveSearchResult: + return ec._ControlObjectiveSearchResult(ctx, sel, &obj) + case *model.ControlObjectiveSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ControlObjectiveSearchResult(ctx, sel, obj) + case model.DocumentDataSearchResult: + return ec._DocumentDataSearchResult(ctx, sel, &obj) + case *model.DocumentDataSearchResult: + if obj == nil { + return graphql.Null + } + return ec._DocumentDataSearchResult(ctx, sel, obj) + case model.EntitySearchResult: + return ec._EntitySearchResult(ctx, sel, &obj) + case *model.EntitySearchResult: + if obj == nil { + return graphql.Null + } + return ec._EntitySearchResult(ctx, sel, obj) + case model.EntityTypeSearchResult: + return ec._EntityTypeSearchResult(ctx, sel, &obj) + case *model.EntityTypeSearchResult: + if obj == nil { + return graphql.Null + } + return ec._EntityTypeSearchResult(ctx, sel, obj) + case model.EventSearchResult: + return ec._EventSearchResult(ctx, sel, &obj) + case *model.EventSearchResult: + if obj == nil { + return graphql.Null + } + return ec._EventSearchResult(ctx, sel, obj) + case model.FileSearchResult: + return ec._FileSearchResult(ctx, sel, &obj) + case *model.FileSearchResult: + if obj == nil { + return graphql.Null + } + return ec._FileSearchResult(ctx, sel, obj) + case model.GroupSearchResult: + return ec._GroupSearchResult(ctx, sel, &obj) + case *model.GroupSearchResult: + if obj == nil { + return graphql.Null + } + return ec._GroupSearchResult(ctx, sel, obj) + case model.GroupSettingSearchResult: + return ec._GroupSettingSearchResult(ctx, sel, &obj) + case *model.GroupSettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._GroupSettingSearchResult(ctx, sel, obj) + case model.IntegrationSearchResult: + return ec._IntegrationSearchResult(ctx, sel, &obj) + case *model.IntegrationSearchResult: + if obj == nil { + return graphql.Null + } + return ec._IntegrationSearchResult(ctx, sel, obj) + case model.InternalPolicySearchResult: + return ec._InternalPolicySearchResult(ctx, sel, &obj) + case *model.InternalPolicySearchResult: + if obj == nil { + return graphql.Null + } + return ec._InternalPolicySearchResult(ctx, sel, obj) + case model.NarrativeSearchResult: + return ec._NarrativeSearchResult(ctx, sel, &obj) + case *model.NarrativeSearchResult: + if obj == nil { + return graphql.Null + } + return ec._NarrativeSearchResult(ctx, sel, obj) + case model.OrgSubscriptionSearchResult: + return ec._OrgSubscriptionSearchResult(ctx, sel, &obj) + case *model.OrgSubscriptionSearchResult: + if obj == nil { + return graphql.Null + } + return ec._OrgSubscriptionSearchResult(ctx, sel, obj) + case model.OrganizationSearchResult: + return ec._OrganizationSearchResult(ctx, sel, &obj) + case *model.OrganizationSearchResult: + if obj == nil { + return graphql.Null + } + return ec._OrganizationSearchResult(ctx, sel, obj) + case model.OrganizationSettingSearchResult: + return ec._OrganizationSettingSearchResult(ctx, sel, &obj) + case *model.OrganizationSettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._OrganizationSettingSearchResult(ctx, sel, obj) + case model.PersonalAccessTokenSearchResult: + return ec._PersonalAccessTokenSearchResult(ctx, sel, &obj) + case *model.PersonalAccessTokenSearchResult: + if obj == nil { + return graphql.Null + } + return ec._PersonalAccessTokenSearchResult(ctx, sel, obj) + case model.ProcedureSearchResult: + return ec._ProcedureSearchResult(ctx, sel, &obj) + case *model.ProcedureSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ProcedureSearchResult(ctx, sel, obj) + case model.ProgramSearchResult: + return ec._ProgramSearchResult(ctx, sel, &obj) + case *model.ProgramSearchResult: + if obj == nil { + return graphql.Null + } + return ec._ProgramSearchResult(ctx, sel, obj) + case model.RiskSearchResult: + return ec._RiskSearchResult(ctx, sel, &obj) + case *model.RiskSearchResult: + if obj == nil { + return graphql.Null + } + return ec._RiskSearchResult(ctx, sel, obj) + case model.StandardSearchResult: + return ec._StandardSearchResult(ctx, sel, &obj) + case *model.StandardSearchResult: + if obj == nil { + return graphql.Null + } + return ec._StandardSearchResult(ctx, sel, obj) + case model.SubcontrolSearchResult: + return ec._SubcontrolSearchResult(ctx, sel, &obj) + case *model.SubcontrolSearchResult: + if obj == nil { + return graphql.Null + } + return ec._SubcontrolSearchResult(ctx, sel, obj) + case model.SubscriberSearchResult: + return ec._SubscriberSearchResult(ctx, sel, &obj) + case *model.SubscriberSearchResult: + if obj == nil { + return graphql.Null + } + return ec._SubscriberSearchResult(ctx, sel, obj) + case model.TFASettingSearchResult: + return ec._TFASettingSearchResult(ctx, sel, &obj) + case *model.TFASettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._TFASettingSearchResult(ctx, sel, obj) + case model.TaskSearchResult: + return ec._TaskSearchResult(ctx, sel, &obj) + case *model.TaskSearchResult: + if obj == nil { + return graphql.Null + } + return ec._TaskSearchResult(ctx, sel, obj) + case model.TemplateSearchResult: + return ec._TemplateSearchResult(ctx, sel, &obj) + case *model.TemplateSearchResult: + if obj == nil { + return graphql.Null + } + return ec._TemplateSearchResult(ctx, sel, obj) + case model.UserSearchResult: + return ec._UserSearchResult(ctx, sel, &obj) + case *model.UserSearchResult: + if obj == nil { + return graphql.Null + } + return ec._UserSearchResult(ctx, sel, obj) + case model.UserSettingSearchResult: + return ec._UserSettingSearchResult(ctx, sel, &obj) + case *model.UserSettingSearchResult: + if obj == nil { + return graphql.Null + } + return ec._UserSettingSearchResult(ctx, sel, obj) + default: + panic(fmt.Errorf("unexpected type %T", obj)) + } +} + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var aPITokenSearchResultImplementors = []string{"APITokenSearchResult", "SearchResult"} + +func (ec *executionContext) _APITokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.APITokenSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, aPITokenSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("APITokenSearchResult") + case "apiTokens": + out.Values[i] = ec._APITokenSearchResult_apiTokens(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 actionPlanSearchResultImplementors = []string{"ActionPlanSearchResult", "SearchResult"} + +func (ec *executionContext) _ActionPlanSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.ActionPlanSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, actionPlanSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ActionPlanSearchResult") + case "actionPlans": + out.Values[i] = ec._ActionPlanSearchResult_actionPlans(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 contactSearchResultImplementors = []string{"ContactSearchResult", "SearchResult"} + +func (ec *executionContext) _ContactSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.ContactSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, contactSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ContactSearchResult") + case "contacts": + out.Values[i] = ec._ContactSearchResult_contacts(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 controlObjectiveSearchResultImplementors = []string{"ControlObjectiveSearchResult", "SearchResult"} + +func (ec *executionContext) _ControlObjectiveSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.ControlObjectiveSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlObjectiveSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlObjectiveSearchResult") + case "controlObjectives": + out.Values[i] = ec._ControlObjectiveSearchResult_controlObjectives(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 controlSearchResultImplementors = []string{"ControlSearchResult", "SearchResult"} + +func (ec *executionContext) _ControlSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.ControlSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, controlSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ControlSearchResult") + case "controls": + out.Values[i] = ec._ControlSearchResult_controls(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 documentDataSearchResultImplementors = []string{"DocumentDataSearchResult", "SearchResult"} + +func (ec *executionContext) _DocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.DocumentDataSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, documentDataSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("DocumentDataSearchResult") + case "documentData": + out.Values[i] = ec._DocumentDataSearchResult_documentData(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 entitySearchResultImplementors = []string{"EntitySearchResult", "SearchResult"} + +func (ec *executionContext) _EntitySearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.EntitySearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entitySearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntitySearchResult") + case "entities": + out.Values[i] = ec._EntitySearchResult_entities(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 entityTypeSearchResultImplementors = []string{"EntityTypeSearchResult", "SearchResult"} + +func (ec *executionContext) _EntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.EntityTypeSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, entityTypeSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EntityTypeSearchResult") + case "entityTypes": + out.Values[i] = ec._EntityTypeSearchResult_entityTypes(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 eventSearchResultImplementors = []string{"EventSearchResult", "SearchResult"} + +func (ec *executionContext) _EventSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.EventSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, eventSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("EventSearchResult") + case "events": + out.Values[i] = ec._EventSearchResult_events(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 fileSearchResultImplementors = []string{"FileSearchResult", "SearchResult"} + +func (ec *executionContext) _FileSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.FileSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, fileSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("FileSearchResult") + case "files": + out.Values[i] = ec._FileSearchResult_files(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 groupSearchResultImplementors = []string{"GroupSearchResult", "SearchResult"} + +func (ec *executionContext) _GroupSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.GroupSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSearchResult") + case "groups": + out.Values[i] = ec._GroupSearchResult_groups(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 groupSettingSearchResultImplementors = []string{"GroupSettingSearchResult", "SearchResult"} + +func (ec *executionContext) _GroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.GroupSettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, groupSettingSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("GroupSettingSearchResult") + case "groupSettings": + out.Values[i] = ec._GroupSettingSearchResult_groupSettings(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 integrationSearchResultImplementors = []string{"IntegrationSearchResult", "SearchResult"} + +func (ec *executionContext) _IntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.IntegrationSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, integrationSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("IntegrationSearchResult") + case "integrations": + out.Values[i] = ec._IntegrationSearchResult_integrations(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 internalPolicySearchResultImplementors = []string{"InternalPolicySearchResult", "SearchResult"} + +func (ec *executionContext) _InternalPolicySearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.InternalPolicySearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, internalPolicySearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("InternalPolicySearchResult") + case "internalPolicies": + out.Values[i] = ec._InternalPolicySearchResult_internalPolicies(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 narrativeSearchResultImplementors = []string{"NarrativeSearchResult", "SearchResult"} + +func (ec *executionContext) _NarrativeSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.NarrativeSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, narrativeSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("NarrativeSearchResult") + case "narratives": + out.Values[i] = ec._NarrativeSearchResult_narratives(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 orgSubscriptionSearchResultImplementors = []string{"OrgSubscriptionSearchResult", "SearchResult"} + +func (ec *executionContext) _OrgSubscriptionSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.OrgSubscriptionSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, orgSubscriptionSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrgSubscriptionSearchResult") + case "orgSubscriptions": + out.Values[i] = ec._OrgSubscriptionSearchResult_orgSubscriptions(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 organizationSearchResultImplementors = []string{"OrganizationSearchResult", "SearchResult"} + +func (ec *executionContext) _OrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationSearchResult") + case "organizations": + out.Values[i] = ec._OrganizationSearchResult_organizations(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 organizationSettingSearchResultImplementors = []string{"OrganizationSettingSearchResult", "SearchResult"} + +func (ec *executionContext) _OrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.OrganizationSettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, organizationSettingSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("OrganizationSettingSearchResult") + case "organizationSettings": + out.Values[i] = ec._OrganizationSettingSearchResult_organizationSettings(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 personalAccessTokenSearchResultImplementors = []string{"PersonalAccessTokenSearchResult", "SearchResult"} + +func (ec *executionContext) _PersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.PersonalAccessTokenSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, personalAccessTokenSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("PersonalAccessTokenSearchResult") + case "personalAccessTokens": + out.Values[i] = ec._PersonalAccessTokenSearchResult_personalAccessTokens(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 procedureSearchResultImplementors = []string{"ProcedureSearchResult", "SearchResult"} + +func (ec *executionContext) _ProcedureSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.ProcedureSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, procedureSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProcedureSearchResult") + case "procedures": + out.Values[i] = ec._ProcedureSearchResult_procedures(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 programSearchResultImplementors = []string{"ProgramSearchResult", "SearchResult"} + +func (ec *executionContext) _ProgramSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.ProgramSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, programSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("ProgramSearchResult") + case "programs": + out.Values[i] = ec._ProgramSearchResult_programs(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 riskSearchResultImplementors = []string{"RiskSearchResult", "SearchResult"} + +func (ec *executionContext) _RiskSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.RiskSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, riskSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("RiskSearchResult") + case "risks": + out.Values[i] = ec._RiskSearchResult_risks(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 searchResultConnectionImplementors = []string{"SearchResultConnection"} + +func (ec *executionContext) _SearchResultConnection(ctx context.Context, sel ast.SelectionSet, obj *model.SearchResultConnection) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, searchResultConnectionImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SearchResultConnection") + case "page": + out.Values[i] = ec._SearchResultConnection_page(ctx, field, obj) + if out.Values[i] == graphql.Null { + out.Invalids++ + } + case "nodes": + out.Values[i] = ec._SearchResultConnection_nodes(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 standardSearchResultImplementors = []string{"StandardSearchResult", "SearchResult"} + +func (ec *executionContext) _StandardSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.StandardSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardSearchResult") + case "standards": + out.Values[i] = ec._StandardSearchResult_standards(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 subcontrolSearchResultImplementors = []string{"SubcontrolSearchResult", "SearchResult"} + +func (ec *executionContext) _SubcontrolSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.SubcontrolSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubcontrolSearchResult") + case "subcontrols": + out.Values[i] = ec._SubcontrolSearchResult_subcontrols(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 subscriberSearchResultImplementors = []string{"SubscriberSearchResult", "SearchResult"} + +func (ec *executionContext) _SubscriberSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.SubscriberSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubscriberSearchResult") + case "subscribers": + out.Values[i] = ec._SubscriberSearchResult_subscribers(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 tFASettingSearchResultImplementors = []string{"TFASettingSearchResult", "SearchResult"} + +func (ec *executionContext) _TFASettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.TFASettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TFASettingSearchResult") + case "tFASettings": + out.Values[i] = ec._TFASettingSearchResult_tFASettings(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 taskSearchResultImplementors = []string{"TaskSearchResult", "SearchResult"} + +func (ec *executionContext) _TaskSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.TaskSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaskSearchResult") + case "tasks": + out.Values[i] = ec._TaskSearchResult_tasks(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 templateSearchResultImplementors = []string{"TemplateSearchResult", "SearchResult"} + +func (ec *executionContext) _TemplateSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.TemplateSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateSearchResult") + case "templates": + out.Values[i] = ec._TemplateSearchResult_templates(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 userSearchResultImplementors = []string{"UserSearchResult", "SearchResult"} + +func (ec *executionContext) _UserSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.UserSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSearchResult") + case "users": + out.Values[i] = ec._UserSearchResult_users(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 userSettingSearchResultImplementors = []string{"UserSettingSearchResult", "SearchResult"} + +func (ec *executionContext) _UserSettingSearchResult(ctx context.Context, sel ast.SelectionSet, obj *model.UserSettingSearchResult) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingSearchResultImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingSearchResult") + case "userSettings": + out.Values[i] = ec._UserSettingSearchResult_userSettings(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) marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResult(ctx context.Context, sel ast.SelectionSet, v model.SearchResult) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalNSearchResult2ᚕgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResultᚄ(ctx context.Context, sel ast.SelectionSet, v []model.SearchResult) 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.marshalNSearchResult2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResult(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) marshalOAPITokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐAPITokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.APITokenSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._APITokenSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOActionPlanSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐActionPlanSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.ActionPlanSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ActionPlanSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOContactSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐContactSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.ContactSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ContactSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOControlObjectiveSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlObjectiveSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.ControlObjectiveSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ControlObjectiveSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOControlSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐControlSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.ControlSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ControlSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalODocumentDataSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐDocumentDataSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.DocumentDataSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._DocumentDataSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOEntitySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntitySearchResult(ctx context.Context, sel ast.SelectionSet, v *model.EntitySearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntitySearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOEntityTypeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEntityTypeSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.EntityTypeSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EntityTypeSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOEventSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐEventSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.EventSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._EventSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOFileSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐFileSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.FileSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._FileSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOGroupSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.GroupSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._GroupSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOGroupSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐGroupSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.GroupSettingSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._GroupSettingSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOIntegrationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐIntegrationSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.IntegrationSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._IntegrationSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOInternalPolicySearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐInternalPolicySearchResult(ctx context.Context, sel ast.SelectionSet, v *model.InternalPolicySearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._InternalPolicySearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalONarrativeSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐNarrativeSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.NarrativeSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._NarrativeSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOOrgSubscriptionSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrgSubscriptionSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.OrgSubscriptionSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._OrgSubscriptionSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOOrganizationSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._OrganizationSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOOrganizationSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐOrganizationSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.OrganizationSettingSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._OrganizationSettingSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOPersonalAccessTokenSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐPersonalAccessTokenSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.PersonalAccessTokenSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._PersonalAccessTokenSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOProcedureSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProcedureSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.ProcedureSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ProcedureSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOProgramSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐProgramSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.ProgramSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._ProgramSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalORiskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐRiskSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.RiskSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._RiskSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOSearchResultConnection2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSearchResultConnection(ctx context.Context, sel ast.SelectionSet, v *model.SearchResultConnection) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SearchResultConnection(ctx, sel, v) +} + +func (ec *executionContext) marshalOStandardSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.StandardSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._StandardSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOSubcontrolSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.SubcontrolSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SubcontrolSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOSubscriberSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.SubscriberSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._SubscriberSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOTFASettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.TFASettingSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TFASettingSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOTaskSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.TaskSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TaskSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOTemplateSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.TemplateSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._TemplateSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOUserSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.UserSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._UserSearchResult(ctx, sel, v) +} + +func (ec *executionContext) marshalOUserSettingSearchResult2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingSearchResult(ctx context.Context, sel ast.SelectionSet, v *model.UserSettingSearchResult) graphql.Marshaler { + if v == nil { + return graphql.Null + } + return ec._UserSettingSearchResult(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/standard.generated.go b/internal/graphapi/generated/standard.generated.go new file mode 100644 index 00000000..d34d460d --- /dev/null +++ b/internal/graphapi/generated/standard.generated.go @@ -0,0 +1,574 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _StandardBulkCreatePayload_standards(ctx context.Context, field graphql.CollectedField, obj *model.StandardBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardBulkCreatePayload_standards(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standards, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Standard) + fc.Result = res + return ec.marshalOStandard2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandardᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_StandardBulkCreatePayload_standards(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "StandardBulkCreatePayload", + 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_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _StandardCreatePayload_standard(ctx context.Context, field graphql.CollectedField, obj *model.StandardCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardCreatePayload_standard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standard, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Standard) + fc.Result = res + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_StandardCreatePayload_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "StandardCreatePayload", + 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_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _StandardDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.StandardDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_StandardDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "StandardDeletePayload", + 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) _StandardUpdatePayload_standard(ctx context.Context, field graphql.CollectedField, obj *model.StandardUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_StandardUpdatePayload_standard(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Standard, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Standard) + fc.Result = res + return ec.marshalNStandard2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐStandard(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_StandardUpdatePayload_standard(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "StandardUpdatePayload", + 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_Standard_id(ctx, field) + case "createdAt": + return ec.fieldContext_Standard_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Standard_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Standard_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Standard_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Standard_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Standard_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Standard_tags(ctx, field) + case "name": + return ec.fieldContext_Standard_name(ctx, field) + case "description": + return ec.fieldContext_Standard_description(ctx, field) + case "family": + return ec.fieldContext_Standard_family(ctx, field) + case "status": + return ec.fieldContext_Standard_status(ctx, field) + case "standardType": + return ec.fieldContext_Standard_standardType(ctx, field) + case "version": + return ec.fieldContext_Standard_version(ctx, field) + case "purposeAndScope": + return ec.fieldContext_Standard_purposeAndScope(ctx, field) + case "background": + return ec.fieldContext_Standard_background(ctx, field) + case "satisfies": + return ec.fieldContext_Standard_satisfies(ctx, field) + case "details": + return ec.fieldContext_Standard_details(ctx, field) + case "controlObjectives": + return ec.fieldContext_Standard_controlObjectives(ctx, field) + case "controls": + return ec.fieldContext_Standard_controls(ctx, field) + case "procedures": + return ec.fieldContext_Standard_procedures(ctx, field) + case "actionPlans": + return ec.fieldContext_Standard_actionPlans(ctx, field) + case "programs": + return ec.fieldContext_Standard_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Standard", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var standardBulkCreatePayloadImplementors = []string{"StandardBulkCreatePayload"} + +func (ec *executionContext) _StandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.StandardBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardBulkCreatePayload") + case "standards": + out.Values[i] = ec._StandardBulkCreatePayload_standards(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 standardCreatePayloadImplementors = []string{"StandardCreatePayload"} + +func (ec *executionContext) _StandardCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.StandardCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardCreatePayload") + case "standard": + out.Values[i] = ec._StandardCreatePayload_standard(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 standardDeletePayloadImplementors = []string{"StandardDeletePayload"} + +func (ec *executionContext) _StandardDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.StandardDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardDeletePayload") + case "deletedID": + out.Values[i] = ec._StandardDeletePayload_deletedID(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 standardUpdatePayloadImplementors = []string{"StandardUpdatePayload"} + +func (ec *executionContext) _StandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.StandardUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, standardUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("StandardUpdatePayload") + case "standard": + out.Values[i] = ec._StandardUpdatePayload_standard(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNStandardBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.StandardBulkCreatePayload) graphql.Marshaler { + return ec._StandardBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNStandardBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.StandardBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNStandardCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.StandardCreatePayload) graphql.Marshaler { + return ec._StandardCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNStandardCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.StandardCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNStandardDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.StandardDeletePayload) graphql.Marshaler { + return ec._StandardDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNStandardDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.StandardDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNStandardUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.StandardUpdatePayload) graphql.Marshaler { + return ec._StandardUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNStandardUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐStandardUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.StandardUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._StandardUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/subcontrol.generated.go b/internal/graphapi/generated/subcontrol.generated.go new file mode 100644 index 00000000..deb65c09 --- /dev/null +++ b/internal/graphapi/generated/subcontrol.generated.go @@ -0,0 +1,622 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _SubcontrolBulkCreatePayload_subcontrols(ctx context.Context, field graphql.CollectedField, obj *model.SubcontrolBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolBulkCreatePayload_subcontrols(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subcontrols, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Subcontrol) + fc.Result = res + return ec.marshalOSubcontrol2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrolᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolBulkCreatePayload_subcontrols(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolBulkCreatePayload", + 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_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubcontrolCreatePayload_subcontrol(ctx context.Context, field graphql.CollectedField, obj *model.SubcontrolCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolCreatePayload_subcontrol(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subcontrol, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Subcontrol) + fc.Result = res + return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolCreatePayload_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolCreatePayload", + 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_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubcontrolDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.SubcontrolDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolDeletePayload", + 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) _SubcontrolUpdatePayload_subcontrol(ctx context.Context, field graphql.CollectedField, obj *model.SubcontrolUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubcontrolUpdatePayload_subcontrol(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subcontrol, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Subcontrol) + fc.Result = res + return ec.marshalNSubcontrol2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubcontrol(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubcontrolUpdatePayload_subcontrol(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubcontrolUpdatePayload", + 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_Subcontrol_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subcontrol_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subcontrol_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subcontrol_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subcontrol_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Subcontrol_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subcontrol_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Subcontrol_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Subcontrol_ownerID(ctx, field) + case "name": + return ec.fieldContext_Subcontrol_name(ctx, field) + case "description": + return ec.fieldContext_Subcontrol_description(ctx, field) + case "status": + return ec.fieldContext_Subcontrol_status(ctx, field) + case "subcontrolType": + return ec.fieldContext_Subcontrol_subcontrolType(ctx, field) + case "version": + return ec.fieldContext_Subcontrol_version(ctx, field) + case "subcontrolNumber": + return ec.fieldContext_Subcontrol_subcontrolNumber(ctx, field) + case "family": + return ec.fieldContext_Subcontrol_family(ctx, field) + case "class": + return ec.fieldContext_Subcontrol_class(ctx, field) + case "source": + return ec.fieldContext_Subcontrol_source(ctx, field) + case "mappedFrameworks": + return ec.fieldContext_Subcontrol_mappedFrameworks(ctx, field) + case "implementationEvidence": + return ec.fieldContext_Subcontrol_implementationEvidence(ctx, field) + case "implementationStatus": + return ec.fieldContext_Subcontrol_implementationStatus(ctx, field) + case "implementationDate": + return ec.fieldContext_Subcontrol_implementationDate(ctx, field) + case "implementationVerification": + return ec.fieldContext_Subcontrol_implementationVerification(ctx, field) + case "implementationVerificationDate": + return ec.fieldContext_Subcontrol_implementationVerificationDate(ctx, field) + case "details": + return ec.fieldContext_Subcontrol_details(ctx, field) + case "owner": + return ec.fieldContext_Subcontrol_owner(ctx, field) + case "controls": + return ec.fieldContext_Subcontrol_controls(ctx, field) + case "user": + return ec.fieldContext_Subcontrol_user(ctx, field) + case "tasks": + return ec.fieldContext_Subcontrol_tasks(ctx, field) + case "notes": + return ec.fieldContext_Subcontrol_notes(ctx, field) + case "programs": + return ec.fieldContext_Subcontrol_programs(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subcontrol", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var subcontrolBulkCreatePayloadImplementors = []string{"SubcontrolBulkCreatePayload"} + +func (ec *executionContext) _SubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubcontrolBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubcontrolBulkCreatePayload") + case "subcontrols": + out.Values[i] = ec._SubcontrolBulkCreatePayload_subcontrols(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 subcontrolCreatePayloadImplementors = []string{"SubcontrolCreatePayload"} + +func (ec *executionContext) _SubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubcontrolCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubcontrolCreatePayload") + case "subcontrol": + out.Values[i] = ec._SubcontrolCreatePayload_subcontrol(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 subcontrolDeletePayloadImplementors = []string{"SubcontrolDeletePayload"} + +func (ec *executionContext) _SubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubcontrolDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubcontrolDeletePayload") + case "deletedID": + out.Values[i] = ec._SubcontrolDeletePayload_deletedID(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 subcontrolUpdatePayloadImplementors = []string{"SubcontrolUpdatePayload"} + +func (ec *executionContext) _SubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubcontrolUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subcontrolUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubcontrolUpdatePayload") + case "subcontrol": + out.Values[i] = ec._SubcontrolUpdatePayload_subcontrol(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNSubcontrolBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.SubcontrolBulkCreatePayload) graphql.Marshaler { + return ec._SubcontrolBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubcontrolBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubcontrolBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNSubcontrolCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.SubcontrolCreatePayload) graphql.Marshaler { + return ec._SubcontrolCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubcontrolCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubcontrolCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNSubcontrolDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.SubcontrolDeletePayload) graphql.Marshaler { + return ec._SubcontrolDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubcontrolDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubcontrolDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNSubcontrolUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.SubcontrolUpdatePayload) graphql.Marshaler { + return ec._SubcontrolUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubcontrolUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubcontrolUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubcontrolUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubcontrolUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/subscriber.generated.go b/internal/graphapi/generated/subscriber.generated.go new file mode 100644 index 00000000..d942d546 --- /dev/null +++ b/internal/graphapi/generated/subscriber.generated.go @@ -0,0 +1,532 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _SubscriberBulkCreatePayload_subscribers(ctx context.Context, field graphql.CollectedField, obj *model.SubscriberBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberBulkCreatePayload_subscribers(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subscribers, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Subscriber) + fc.Result = res + return ec.marshalOSubscriber2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriberᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubscriberBulkCreatePayload_subscribers(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberBulkCreatePayload", + 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_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubscriberCreatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *model.SubscriberCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberCreatePayload_subscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subscriber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Subscriber) + fc.Result = res + return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubscriberCreatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberCreatePayload", + 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_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _SubscriberDeletePayload_email(ctx context.Context, field graphql.CollectedField, obj *model.SubscriberDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberDeletePayload_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) (interface{}, 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_SubscriberDeletePayload_email(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberDeletePayload", + 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) _SubscriberUpdatePayload_subscriber(ctx context.Context, field graphql.CollectedField, obj *model.SubscriberUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_SubscriberUpdatePayload_subscriber(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Subscriber, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Subscriber) + fc.Result = res + return ec.marshalNSubscriber2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐSubscriber(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_SubscriberUpdatePayload_subscriber(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "SubscriberUpdatePayload", + 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_Subscriber_id(ctx, field) + case "createdAt": + return ec.fieldContext_Subscriber_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Subscriber_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Subscriber_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Subscriber_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_Subscriber_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_Subscriber_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Subscriber_deletedBy(ctx, field) + case "ownerID": + return ec.fieldContext_Subscriber_ownerID(ctx, field) + case "email": + return ec.fieldContext_Subscriber_email(ctx, field) + case "phoneNumber": + return ec.fieldContext_Subscriber_phoneNumber(ctx, field) + case "verifiedEmail": + return ec.fieldContext_Subscriber_verifiedEmail(ctx, field) + case "verifiedPhone": + return ec.fieldContext_Subscriber_verifiedPhone(ctx, field) + case "active": + return ec.fieldContext_Subscriber_active(ctx, field) + case "owner": + return ec.fieldContext_Subscriber_owner(ctx, field) + case "events": + return ec.fieldContext_Subscriber_events(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Subscriber", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var subscriberBulkCreatePayloadImplementors = []string{"SubscriberBulkCreatePayload"} + +func (ec *executionContext) _SubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubscriberBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubscriberBulkCreatePayload") + case "subscribers": + out.Values[i] = ec._SubscriberBulkCreatePayload_subscribers(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 subscriberCreatePayloadImplementors = []string{"SubscriberCreatePayload"} + +func (ec *executionContext) _SubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubscriberCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubscriberCreatePayload") + case "subscriber": + out.Values[i] = ec._SubscriberCreatePayload_subscriber(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 subscriberDeletePayloadImplementors = []string{"SubscriberDeletePayload"} + +func (ec *executionContext) _SubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubscriberDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubscriberDeletePayload") + case "email": + out.Values[i] = ec._SubscriberDeletePayload_email(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 subscriberUpdatePayloadImplementors = []string{"SubscriberUpdatePayload"} + +func (ec *executionContext) _SubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.SubscriberUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, subscriberUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("SubscriberUpdatePayload") + case "subscriber": + out.Values[i] = ec._SubscriberUpdatePayload_subscriber(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNSubscriberBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.SubscriberBulkCreatePayload) graphql.Marshaler { + return ec._SubscriberBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubscriberBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubscriberBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubscriberBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNSubscriberCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.SubscriberCreatePayload) graphql.Marshaler { + return ec._SubscriberCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubscriberCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubscriberCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubscriberCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNSubscriberDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.SubscriberDeletePayload) graphql.Marshaler { + return ec._SubscriberDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubscriberDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubscriberDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubscriberDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNSubscriberUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.SubscriberUpdatePayload) graphql.Marshaler { + return ec._SubscriberUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNSubscriberUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐSubscriberUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.SubscriberUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._SubscriberUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/task.generated.go b/internal/graphapi/generated/task.generated.go new file mode 100644 index 00000000..472ab25c --- /dev/null +++ b/internal/graphapi/generated/task.generated.go @@ -0,0 +1,580 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _TaskBulkCreatePayload_tasks(ctx context.Context, field graphql.CollectedField, obj *model.TaskBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskBulkCreatePayload_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Tasks, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Task) + fc.Result = res + return ec.marshalOTask2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTaskᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskBulkCreatePayload_tasks(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskBulkCreatePayload", + 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 "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskCreatePayload_task(ctx context.Context, field graphql.CollectedField, obj *model.TaskCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskCreatePayload_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) (interface{}, 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.(*generated.Task) + fc.Result = res + return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskCreatePayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskCreatePayload", + 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 "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TaskDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.TaskDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskDeletePayload", + 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) _TaskUpdatePayload_task(ctx context.Context, field graphql.CollectedField, obj *model.TaskUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TaskUpdatePayload_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) (interface{}, 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.(*generated.Task) + fc.Result = res + return ec.marshalNTask2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTask(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TaskUpdatePayload_task(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TaskUpdatePayload", + 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 "createdAt": + return ec.fieldContext_Task_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Task_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Task_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Task_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Task_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Task_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Task_tags(ctx, field) + case "title": + return ec.fieldContext_Task_title(ctx, field) + case "description": + return ec.fieldContext_Task_description(ctx, field) + case "details": + return ec.fieldContext_Task_details(ctx, field) + case "status": + return ec.fieldContext_Task_status(ctx, field) + case "due": + return ec.fieldContext_Task_due(ctx, field) + case "completed": + return ec.fieldContext_Task_completed(ctx, field) + case "assigner": + return ec.fieldContext_Task_assigner(ctx, field) + case "assignee": + return ec.fieldContext_Task_assignee(ctx, field) + case "organization": + return ec.fieldContext_Task_organization(ctx, field) + case "group": + return ec.fieldContext_Task_group(ctx, field) + case "internalPolicy": + return ec.fieldContext_Task_internalPolicy(ctx, field) + case "procedure": + return ec.fieldContext_Task_procedure(ctx, field) + case "control": + return ec.fieldContext_Task_control(ctx, field) + case "controlObjective": + return ec.fieldContext_Task_controlObjective(ctx, field) + case "subcontrol": + return ec.fieldContext_Task_subcontrol(ctx, field) + case "program": + return ec.fieldContext_Task_program(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Task", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var taskBulkCreatePayloadImplementors = []string{"TaskBulkCreatePayload"} + +func (ec *executionContext) _TaskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TaskBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaskBulkCreatePayload") + case "tasks": + out.Values[i] = ec._TaskBulkCreatePayload_tasks(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 taskCreatePayloadImplementors = []string{"TaskCreatePayload"} + +func (ec *executionContext) _TaskCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TaskCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaskCreatePayload") + case "task": + out.Values[i] = ec._TaskCreatePayload_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 taskDeletePayloadImplementors = []string{"TaskDeletePayload"} + +func (ec *executionContext) _TaskDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TaskDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaskDeletePayload") + case "deletedID": + out.Values[i] = ec._TaskDeletePayload_deletedID(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 taskUpdatePayloadImplementors = []string{"TaskUpdatePayload"} + +func (ec *executionContext) _TaskUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TaskUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, taskUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TaskUpdatePayload") + case "task": + out.Values[i] = ec._TaskUpdatePayload_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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNTaskBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.TaskBulkCreatePayload) graphql.Marshaler { + return ec._TaskBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTaskBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TaskBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TaskBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.TaskCreatePayload) graphql.Marshaler { + return ec._TaskCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTaskCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TaskCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TaskCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.TaskDeletePayload) graphql.Marshaler { + return ec._TaskDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTaskDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.TaskDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TaskDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNTaskUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.TaskUpdatePayload) graphql.Marshaler { + return ec._TaskUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTaskUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTaskUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TaskUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TaskUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/template.generated.go b/internal/graphapi/generated/template.generated.go new file mode 100644 index 00000000..4aebfa2a --- /dev/null +++ b/internal/graphapi/generated/template.generated.go @@ -0,0 +1,538 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _TemplateBulkCreatePayload_templates(ctx context.Context, field graphql.CollectedField, obj *model.TemplateBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateBulkCreatePayload_templates(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Templates, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.Template) + fc.Result = res + return ec.marshalOTemplate2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplateᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TemplateBulkCreatePayload_templates(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TemplateBulkCreatePayload", + 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_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TemplateCreatePayload_template(ctx context.Context, field graphql.CollectedField, obj *model.TemplateCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateCreatePayload_template(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Template, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Template) + fc.Result = res + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TemplateCreatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TemplateCreatePayload", + 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_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TemplateDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.TemplateDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TemplateDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TemplateDeletePayload", + 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) _TemplateUpdatePayload_template(ctx context.Context, field graphql.CollectedField, obj *model.TemplateUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TemplateUpdatePayload_template(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Template, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.Template) + fc.Result = res + return ec.marshalNTemplate2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTemplate(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TemplateUpdatePayload_template(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TemplateUpdatePayload", + 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_Template_id(ctx, field) + case "createdAt": + return ec.fieldContext_Template_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_Template_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_Template_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_Template_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_Template_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_Template_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_Template_tags(ctx, field) + case "ownerID": + return ec.fieldContext_Template_ownerID(ctx, field) + case "name": + return ec.fieldContext_Template_name(ctx, field) + case "templateType": + return ec.fieldContext_Template_templateType(ctx, field) + case "description": + return ec.fieldContext_Template_description(ctx, field) + case "jsonconfig": + return ec.fieldContext_Template_jsonconfig(ctx, field) + case "uischema": + return ec.fieldContext_Template_uischema(ctx, field) + case "owner": + return ec.fieldContext_Template_owner(ctx, field) + case "documents": + return ec.fieldContext_Template_documents(ctx, field) + case "files": + return ec.fieldContext_Template_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type Template", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var templateBulkCreatePayloadImplementors = []string{"TemplateBulkCreatePayload"} + +func (ec *executionContext) _TemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TemplateBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateBulkCreatePayload") + case "templates": + out.Values[i] = ec._TemplateBulkCreatePayload_templates(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 templateCreatePayloadImplementors = []string{"TemplateCreatePayload"} + +func (ec *executionContext) _TemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TemplateCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateCreatePayload") + case "template": + out.Values[i] = ec._TemplateCreatePayload_template(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 templateDeletePayloadImplementors = []string{"TemplateDeletePayload"} + +func (ec *executionContext) _TemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TemplateDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateDeletePayload") + case "deletedID": + out.Values[i] = ec._TemplateDeletePayload_deletedID(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 templateUpdatePayloadImplementors = []string{"TemplateUpdatePayload"} + +func (ec *executionContext) _TemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TemplateUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, templateUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TemplateUpdatePayload") + case "template": + out.Values[i] = ec._TemplateUpdatePayload_template(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNTemplateBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.TemplateBulkCreatePayload) graphql.Marshaler { + return ec._TemplateBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTemplateBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TemplateBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TemplateBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNTemplateCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.TemplateCreatePayload) graphql.Marshaler { + return ec._TemplateCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTemplateCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TemplateCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TemplateCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNTemplateDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.TemplateDeletePayload) graphql.Marshaler { + return ec._TemplateDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTemplateDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.TemplateDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TemplateDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNTemplateUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.TemplateUpdatePayload) graphql.Marshaler { + return ec._TemplateUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTemplateUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTemplateUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TemplateUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TemplateUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/tfasetting.generated.go b/internal/graphapi/generated/tfasetting.generated.go new file mode 100644 index 00000000..6c5088ec --- /dev/null +++ b/internal/graphapi/generated/tfasetting.generated.go @@ -0,0 +1,297 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _TFASettingCreatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *model.TFASettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingCreatePayload_tfaSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TfaSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.TFASetting) + fc.Result = res + return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TFASettingCreatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TFASettingCreatePayload", + 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_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _TFASettingUpdatePayload_tfaSetting(ctx context.Context, field graphql.CollectedField, obj *model.TFASettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_TFASettingUpdatePayload_tfaSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.TfaSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.TFASetting) + fc.Result = res + return ec.marshalNTFASetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐTFASetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_TFASettingUpdatePayload_tfaSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "TFASettingUpdatePayload", + 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_TFASetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_TFASetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_TFASetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_TFASetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_TFASetting_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_TFASetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_TFASetting_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_TFASetting_tags(ctx, field) + case "tfaSecret": + return ec.fieldContext_TFASetting_tfaSecret(ctx, field) + case "verified": + return ec.fieldContext_TFASetting_verified(ctx, field) + case "recoveryCodes": + return ec.fieldContext_TFASetting_recoveryCodes(ctx, field) + case "totpAllowed": + return ec.fieldContext_TFASetting_totpAllowed(ctx, field) + case "owner": + return ec.fieldContext_TFASetting_owner(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type TFASetting", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var tFASettingCreatePayloadImplementors = []string{"TFASettingCreatePayload"} + +func (ec *executionContext) _TFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TFASettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TFASettingCreatePayload") + case "tfaSetting": + out.Values[i] = ec._TFASettingCreatePayload_tfaSetting(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 tFASettingUpdatePayloadImplementors = []string{"TFASettingUpdatePayload"} + +func (ec *executionContext) _TFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.TFASettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, tFASettingUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("TFASettingUpdatePayload") + case "tfaSetting": + out.Values[i] = ec._TFASettingUpdatePayload_tfaSetting(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNTFASettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.TFASettingCreatePayload) graphql.Marshaler { + return ec._TFASettingCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTFASettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TFASettingCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TFASettingCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNTFASettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.TFASettingUpdatePayload) graphql.Marshaler { + return ec._TFASettingUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNTFASettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐTFASettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.TFASettingUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._TFASettingUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/user.generated.go b/internal/graphapi/generated/user.generated.go new file mode 100644 index 00000000..3503c423 --- /dev/null +++ b/internal/graphapi/generated/user.generated.go @@ -0,0 +1,638 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "errors" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _UserBulkCreatePayload_users(ctx context.Context, field graphql.CollectedField, obj *model.UserBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserBulkCreatePayload_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) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.Users, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.User) + fc.Result = res + return ec.marshalOUser2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserBulkCreatePayload_users(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserBulkCreatePayload", + 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 "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserCreatePayload_user(ctx context.Context, field graphql.CollectedField, obj *model.UserCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserCreatePayload_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) (interface{}, 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.(*generated.User) + fc.Result = res + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserCreatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserCreatePayload", + 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 "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserDeletePayload_deletedID(ctx context.Context, field graphql.CollectedField, obj *model.UserDeletePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserDeletePayload_deletedID(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.DeletedID, nil + }) + if err != nil { + ec.Error(ctx, 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.marshalNID2string(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserDeletePayload_deletedID(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserDeletePayload", + 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) _UserUpdatePayload_user(ctx context.Context, field graphql.CollectedField, obj *model.UserUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserUpdatePayload_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) (interface{}, 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.(*generated.User) + fc.Result = res + return ec.marshalNUser2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUser(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserUpdatePayload_user(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserUpdatePayload", + 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 "createdAt": + return ec.fieldContext_User_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_User_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_User_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_User_updatedBy(ctx, field) + case "deletedAt": + return ec.fieldContext_User_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_User_deletedBy(ctx, field) + case "tags": + return ec.fieldContext_User_tags(ctx, field) + case "email": + return ec.fieldContext_User_email(ctx, field) + case "firstName": + return ec.fieldContext_User_firstName(ctx, field) + case "lastName": + return ec.fieldContext_User_lastName(ctx, field) + case "displayName": + return ec.fieldContext_User_displayName(ctx, field) + case "avatarRemoteURL": + return ec.fieldContext_User_avatarRemoteURL(ctx, field) + case "avatarLocalFile": + return ec.fieldContext_User_avatarLocalFile(ctx, field) + case "avatarLocalFileID": + return ec.fieldContext_User_avatarLocalFileID(ctx, field) + case "avatarUpdatedAt": + return ec.fieldContext_User_avatarUpdatedAt(ctx, field) + case "lastSeen": + return ec.fieldContext_User_lastSeen(ctx, field) + case "sub": + return ec.fieldContext_User_sub(ctx, field) + case "authProvider": + return ec.fieldContext_User_authProvider(ctx, field) + case "role": + return ec.fieldContext_User_role(ctx, field) + case "personalAccessTokens": + return ec.fieldContext_User_personalAccessTokens(ctx, field) + case "tfaSettings": + return ec.fieldContext_User_tfaSettings(ctx, field) + case "setting": + return ec.fieldContext_User_setting(ctx, field) + case "groups": + return ec.fieldContext_User_groups(ctx, field) + case "organizations": + return ec.fieldContext_User_organizations(ctx, field) + case "files": + return ec.fieldContext_User_files(ctx, field) + case "file": + return ec.fieldContext_User_file(ctx, field) + case "events": + return ec.fieldContext_User_events(ctx, field) + case "actionPlans": + return ec.fieldContext_User_actionPlans(ctx, field) + case "subcontrols": + return ec.fieldContext_User_subcontrols(ctx, field) + case "assignerTasks": + return ec.fieldContext_User_assignerTasks(ctx, field) + case "assigneeTasks": + return ec.fieldContext_User_assigneeTasks(ctx, field) + case "programs": + return ec.fieldContext_User_programs(ctx, field) + case "groupMemberships": + return ec.fieldContext_User_groupMemberships(ctx, field) + case "orgMemberships": + return ec.fieldContext_User_orgMemberships(ctx, field) + case "programMemberships": + return ec.fieldContext_User_programMemberships(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type User", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var userBulkCreatePayloadImplementors = []string{"UserBulkCreatePayload"} + +func (ec *executionContext) _UserBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.UserBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserBulkCreatePayload") + case "users": + out.Values[i] = ec._UserBulkCreatePayload_users(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 userCreatePayloadImplementors = []string{"UserCreatePayload"} + +func (ec *executionContext) _UserCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.UserCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserCreatePayload") + case "user": + out.Values[i] = ec._UserCreatePayload_user(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 userDeletePayloadImplementors = []string{"UserDeletePayload"} + +func (ec *executionContext) _UserDeletePayload(ctx context.Context, sel ast.SelectionSet, obj *model.UserDeletePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userDeletePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserDeletePayload") + case "deletedID": + out.Values[i] = ec._UserDeletePayload_deletedID(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 userUpdatePayloadImplementors = []string{"UserUpdatePayload"} + +func (ec *executionContext) _UserUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.UserUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserUpdatePayload") + case "user": + out.Values[i] = ec._UserUpdatePayload_user(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNUserCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.UserCreatePayload) graphql.Marshaler { + return ec._UserCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.UserCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNUserDeletePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v model.UserDeletePayload) graphql.Marshaler { + return ec._UserDeletePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserDeletePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserDeletePayload(ctx context.Context, sel ast.SelectionSet, v *model.UserDeletePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserDeletePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNUserUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.UserUpdatePayload) graphql.Marshaler { + return ec._UserUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.UserUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/generated/usersetting.generated.go b/internal/graphapi/generated/usersetting.generated.go new file mode 100644 index 00000000..2612e38b --- /dev/null +++ b/internal/graphapi/generated/usersetting.generated.go @@ -0,0 +1,452 @@ +// Code generated by github.com/99designs/gqlgen, DO NOT EDIT. + +package gqlgenerated + +import ( + "context" + "fmt" + "strconv" + "sync/atomic" + + "github.com/99designs/gqlgen/graphql" + "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" + "github.com/vektah/gqlparser/v2/ast" +) + +// region ************************** generated!.gotpl ************************** + +// endregion ************************** generated!.gotpl ************************** + +// region ***************************** args.gotpl ***************************** + +// endregion ***************************** args.gotpl ***************************** + +// region ************************** directives.gotpl ************************** + +// endregion ************************** directives.gotpl ************************** + +// region **************************** field.gotpl ***************************** + +func (ec *executionContext) _UserSettingBulkCreatePayload_userSettings(ctx context.Context, field graphql.CollectedField, obj *model.UserSettingBulkCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingBulkCreatePayload_userSettings(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserSettings, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + return graphql.Null + } + res := resTmp.([]*generated.UserSetting) + fc.Result = res + return ec.marshalOUserSetting2ᚕᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSettingᚄ(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingBulkCreatePayload_userSettings(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingBulkCreatePayload", + 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_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingCreatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *model.UserSettingCreatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingCreatePayload_userSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.UserSetting) + fc.Result = res + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingCreatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingCreatePayload", + 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_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + }, + } + return fc, nil +} + +func (ec *executionContext) _UserSettingUpdatePayload_userSetting(ctx context.Context, field graphql.CollectedField, obj *model.UserSettingUpdatePayload) (ret graphql.Marshaler) { + fc, err := ec.fieldContext_UserSettingUpdatePayload_userSetting(ctx, field) + if err != nil { + return graphql.Null + } + ctx = graphql.WithFieldContext(ctx, fc) + defer func() { + if r := recover(); r != nil { + ec.Error(ctx, ec.Recover(ctx, r)) + ret = graphql.Null + } + }() + resTmp, err := ec.ResolverMiddleware(ctx, func(rctx context.Context) (interface{}, error) { + ctx = rctx // use context from middleware stack in children + return obj.UserSetting, nil + }) + if err != nil { + ec.Error(ctx, err) + return graphql.Null + } + if resTmp == nil { + if !graphql.HasFieldError(ctx, fc) { + ec.Errorf(ctx, "must not be null") + } + return graphql.Null + } + res := resTmp.(*generated.UserSetting) + fc.Result = res + return ec.marshalNUserSetting2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋentᚋgeneratedᚐUserSetting(ctx, field.Selections, res) +} + +func (ec *executionContext) fieldContext_UserSettingUpdatePayload_userSetting(_ context.Context, field graphql.CollectedField) (fc *graphql.FieldContext, err error) { + fc = &graphql.FieldContext{ + Object: "UserSettingUpdatePayload", + 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_UserSetting_id(ctx, field) + case "createdAt": + return ec.fieldContext_UserSetting_createdAt(ctx, field) + case "updatedAt": + return ec.fieldContext_UserSetting_updatedAt(ctx, field) + case "createdBy": + return ec.fieldContext_UserSetting_createdBy(ctx, field) + case "updatedBy": + return ec.fieldContext_UserSetting_updatedBy(ctx, field) + case "tags": + return ec.fieldContext_UserSetting_tags(ctx, field) + case "deletedAt": + return ec.fieldContext_UserSetting_deletedAt(ctx, field) + case "deletedBy": + return ec.fieldContext_UserSetting_deletedBy(ctx, field) + case "userID": + return ec.fieldContext_UserSetting_userID(ctx, field) + case "locked": + return ec.fieldContext_UserSetting_locked(ctx, field) + case "silencedAt": + return ec.fieldContext_UserSetting_silencedAt(ctx, field) + case "suspendedAt": + return ec.fieldContext_UserSetting_suspendedAt(ctx, field) + case "status": + return ec.fieldContext_UserSetting_status(ctx, field) + case "emailConfirmed": + return ec.fieldContext_UserSetting_emailConfirmed(ctx, field) + case "isWebauthnAllowed": + return ec.fieldContext_UserSetting_isWebauthnAllowed(ctx, field) + case "isTfaEnabled": + return ec.fieldContext_UserSetting_isTfaEnabled(ctx, field) + case "user": + return ec.fieldContext_UserSetting_user(ctx, field) + case "defaultOrg": + return ec.fieldContext_UserSetting_defaultOrg(ctx, field) + case "files": + return ec.fieldContext_UserSetting_files(ctx, field) + } + return nil, fmt.Errorf("no field named %q was found under type UserSetting", field.Name) + }, + } + return fc, nil +} + +// endregion **************************** field.gotpl ***************************** + +// region **************************** input.gotpl ***************************** + +// endregion **************************** input.gotpl ***************************** + +// region ************************** interface.gotpl *************************** + +// endregion ************************** interface.gotpl *************************** + +// region **************************** object.gotpl **************************** + +var userSettingBulkCreatePayloadImplementors = []string{"UserSettingBulkCreatePayload"} + +func (ec *executionContext) _UserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.UserSettingBulkCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingBulkCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingBulkCreatePayload") + case "userSettings": + out.Values[i] = ec._UserSettingBulkCreatePayload_userSettings(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 userSettingCreatePayloadImplementors = []string{"UserSettingCreatePayload"} + +func (ec *executionContext) _UserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.UserSettingCreatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingCreatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingCreatePayload") + case "userSetting": + out.Values[i] = ec._UserSettingCreatePayload_userSetting(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 userSettingUpdatePayloadImplementors = []string{"UserSettingUpdatePayload"} + +func (ec *executionContext) _UserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, obj *model.UserSettingUpdatePayload) graphql.Marshaler { + fields := graphql.CollectFields(ec.OperationContext, sel, userSettingUpdatePayloadImplementors) + + out := graphql.NewFieldSet(fields) + deferred := make(map[string]*graphql.FieldSet) + for i, field := range fields { + switch field.Name { + case "__typename": + out.Values[i] = graphql.MarshalString("UserSettingUpdatePayload") + case "userSetting": + out.Values[i] = ec._UserSettingUpdatePayload_userSetting(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 +} + +// endregion **************************** object.gotpl **************************** + +// region ***************************** type.gotpl ***************************** + +func (ec *executionContext) marshalNUserSettingBulkCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.UserSettingBulkCreatePayload) graphql.Marshaler { + return ec._UserSettingBulkCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserSettingBulkCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingBulkCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.UserSettingBulkCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserSettingBulkCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNUserSettingCreatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v model.UserSettingCreatePayload) graphql.Marshaler { + return ec._UserSettingCreatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserSettingCreatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingCreatePayload(ctx context.Context, sel ast.SelectionSet, v *model.UserSettingCreatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserSettingCreatePayload(ctx, sel, v) +} + +func (ec *executionContext) marshalNUserSettingUpdatePayload2githubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v model.UserSettingUpdatePayload) graphql.Marshaler { + return ec._UserSettingUpdatePayload(ctx, sel, &v) +} + +func (ec *executionContext) marshalNUserSettingUpdatePayload2ᚖgithubᚗcomᚋtheopenlaneᚋcoreᚋinternalᚋgraphapiᚋmodelᚐUserSettingUpdatePayload(ctx context.Context, sel ast.SelectionSet, v *model.UserSettingUpdatePayload) graphql.Marshaler { + if v == nil { + if !graphql.HasFieldError(ctx, graphql.GetFieldContext(ctx)) { + ec.Errorf(ctx, "the requested element is null which the schema does not allow") + } + return graphql.Null + } + return ec._UserSettingUpdatePayload(ctx, sel, v) +} + +// endregion ***************************** type.gotpl ***************************** diff --git a/internal/graphapi/group.resolvers.go b/internal/graphapi/group.resolvers.go index 81775f50..8c51d337 100644 --- a/internal/graphapi/group.resolvers.go +++ b/internal/graphapi/group.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateGroup is the resolver for the createGroup field. -func (r *mutationResolver) CreateGroup(ctx context.Context, input generated.CreateGroupInput) (*GroupCreatePayload, error) { +func (r *mutationResolver) CreateGroup(ctx context.Context, input generated.CreateGroupInput) (*model.GroupCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,18 +27,18 @@ func (r *mutationResolver) CreateGroup(ctx context.Context, input generated.Crea return nil, parseRequestError(err, action{action: ActionCreate, object: "group"}) } - return &GroupCreatePayload{ + return &model.GroupCreatePayload{ Group: res, }, nil } // CreateBulkGroup is the resolver for the createBulkGroup field. -func (r *mutationResolver) CreateBulkGroup(ctx context.Context, input []*generated.CreateGroupInput) (*GroupBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkGroup(ctx context.Context, input []*generated.CreateGroupInput) (*model.GroupBulkCreatePayload, error) { return r.bulkCreateGroup(ctx, input) } // CreateBulkCSVGroup is the resolver for the createBulkCSVGroup field. -func (r *mutationResolver) CreateBulkCSVGroup(ctx context.Context, input graphql.Upload) (*GroupBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVGroup(ctx context.Context, input graphql.Upload) (*model.GroupBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateGroupInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -49,7 +50,7 @@ func (r *mutationResolver) CreateBulkCSVGroup(ctx context.Context, input graphql } // UpdateGroup is the resolver for the updateGroup field. -func (r *mutationResolver) UpdateGroup(ctx context.Context, id string, input generated.UpdateGroupInput) (*GroupUpdatePayload, error) { +func (r *mutationResolver) UpdateGroup(ctx context.Context, id string, input generated.UpdateGroupInput) (*model.GroupUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Group.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "group"}) @@ -68,13 +69,13 @@ func (r *mutationResolver) UpdateGroup(ctx context.Context, id string, input gen return nil, parseRequestError(err, action{action: ActionUpdate, object: "group"}) } - return &GroupUpdatePayload{ + return &model.GroupUpdatePayload{ Group: res, }, nil } // DeleteGroup is the resolver for the deleteGroup field. -func (r *mutationResolver) DeleteGroup(ctx context.Context, id string) (*GroupDeletePayload, error) { +func (r *mutationResolver) DeleteGroup(ctx context.Context, id string) (*model.GroupDeletePayload, error) { if err := withTransactionalMutation(ctx).Group.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "group"}) } @@ -83,7 +84,7 @@ func (r *mutationResolver) DeleteGroup(ctx context.Context, id string) (*GroupDe return nil, newCascadeDeleteError(err) } - return &GroupDeletePayload{ + return &model.GroupDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/groupmembership.resolvers.go b/internal/graphapi/groupmembership.resolvers.go index b0470449..bad59fe9 100644 --- a/internal/graphapi/groupmembership.resolvers.go +++ b/internal/graphapi/groupmembership.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateGroupMembership is the resolver for the createGroupMembership field. -func (r *mutationResolver) CreateGroupMembership(ctx context.Context, input generated.CreateGroupMembershipInput) (*GroupMembershipCreatePayload, error) { +func (r *mutationResolver) CreateGroupMembership(ctx context.Context, input generated.CreateGroupMembershipInput) (*model.GroupMembershipCreatePayload, error) { res, err := withTransactionalMutation(ctx).GroupMembership.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "groupmembership"}) } - return &GroupMembershipCreatePayload{ + return &model.GroupMembershipCreatePayload{ GroupMembership: res, }, nil } // CreateBulkGroupMembership is the resolver for the createBulkGroupMembership field. -func (r *mutationResolver) CreateBulkGroupMembership(ctx context.Context, input []*generated.CreateGroupMembershipInput) (*GroupMembershipBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkGroupMembership(ctx context.Context, input []*generated.CreateGroupMembershipInput) (*model.GroupMembershipBulkCreatePayload, error) { return r.bulkCreateGroupMembership(ctx, input) } // CreateBulkCSVGroupMembership is the resolver for the createBulkCSVGroupMembership field. -func (r *mutationResolver) CreateBulkCSVGroupMembership(ctx context.Context, input graphql.Upload) (*GroupMembershipBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVGroupMembership(ctx context.Context, input graphql.Upload) (*model.GroupMembershipBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateGroupMembershipInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVGroupMembership(ctx context.Context, inp } // UpdateGroupMembership is the resolver for the updateGroupMembership field. -func (r *mutationResolver) UpdateGroupMembership(ctx context.Context, id string, input generated.UpdateGroupMembershipInput) (*GroupMembershipUpdatePayload, error) { +func (r *mutationResolver) UpdateGroupMembership(ctx context.Context, id string, input generated.UpdateGroupMembershipInput) (*model.GroupMembershipUpdatePayload, error) { res, err := withTransactionalMutation(ctx).GroupMembership.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "groupmembership"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateGroupMembership(ctx context.Context, id string, return nil, parseRequestError(err, action{action: ActionUpdate, object: "groupmembership"}) } - return &GroupMembershipUpdatePayload{ + return &model.GroupMembershipUpdatePayload{ GroupMembership: res, }, nil } // DeleteGroupMembership is the resolver for the deleteGroupMembership field. -func (r *mutationResolver) DeleteGroupMembership(ctx context.Context, id string) (*GroupMembershipDeletePayload, error) { +func (r *mutationResolver) DeleteGroupMembership(ctx context.Context, id string) (*model.GroupMembershipDeletePayload, error) { if err := withTransactionalMutation(ctx).GroupMembership.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "groupmembership"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteGroupMembership(ctx context.Context, id string) return nil, newCascadeDeleteError(err) } - return &GroupMembershipDeletePayload{ + return &model.GroupMembershipDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/groupsetting.resolvers.go b/internal/graphapi/groupsetting.resolvers.go index fbd02cfc..cbf62906 100644 --- a/internal/graphapi/groupsetting.resolvers.go +++ b/internal/graphapi/groupsetting.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateGroupSetting is the resolver for the createGroupSetting field. -func (r *mutationResolver) CreateGroupSetting(ctx context.Context, input generated.CreateGroupSettingInput) (*GroupSettingCreatePayload, error) { +func (r *mutationResolver) CreateGroupSetting(ctx context.Context, input generated.CreateGroupSettingInput) (*model.GroupSettingCreatePayload, error) { res, err := withTransactionalMutation(ctx).GroupSetting.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "groupsetting"}) } - return &GroupSettingCreatePayload{ + return &model.GroupSettingCreatePayload{ GroupSetting: res, }, nil } // CreateBulkGroupSetting is the resolver for the createBulkGroupSetting field. -func (r *mutationResolver) CreateBulkGroupSetting(ctx context.Context, input []*generated.CreateGroupSettingInput) (*GroupSettingBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkGroupSetting(ctx context.Context, input []*generated.CreateGroupSettingInput) (*model.GroupSettingBulkCreatePayload, error) { return r.bulkCreateGroupSetting(ctx, input) } // CreateBulkCSVGroupSetting is the resolver for the createBulkCSVGroupSetting field. -func (r *mutationResolver) CreateBulkCSVGroupSetting(ctx context.Context, input graphql.Upload) (*GroupSettingBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVGroupSetting(ctx context.Context, input graphql.Upload) (*model.GroupSettingBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateGroupSettingInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVGroupSetting(ctx context.Context, input } // UpdateGroupSetting is the resolver for the updateGroupSetting field. -func (r *mutationResolver) UpdateGroupSetting(ctx context.Context, id string, input generated.UpdateGroupSettingInput) (*GroupSettingUpdatePayload, error) { +func (r *mutationResolver) UpdateGroupSetting(ctx context.Context, id string, input generated.UpdateGroupSettingInput) (*model.GroupSettingUpdatePayload, error) { res, err := withTransactionalMutation(ctx).GroupSetting.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "groupsetting"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateGroupSetting(ctx context.Context, id string, in return nil, parseRequestError(err, action{action: ActionUpdate, object: "groupsetting"}) } - return &GroupSettingUpdatePayload{ + return &model.GroupSettingUpdatePayload{ GroupSetting: res, }, nil } // DeleteGroupSetting is the resolver for the deleteGroupSetting field. -func (r *mutationResolver) DeleteGroupSetting(ctx context.Context, id string) (*GroupSettingDeletePayload, error) { +func (r *mutationResolver) DeleteGroupSetting(ctx context.Context, id string) (*model.GroupSettingDeletePayload, error) { if err := withTransactionalMutation(ctx).GroupSetting.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "groupsetting"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteGroupSetting(ctx context.Context, id string) (* return nil, newCascadeDeleteError(err) } - return &GroupSettingDeletePayload{ + return &model.GroupSettingDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/hush.resolvers.go b/internal/graphapi/hush.resolvers.go index 40359080..02e41292 100644 --- a/internal/graphapi/hush.resolvers.go +++ b/internal/graphapi/hush.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateHush is the resolver for the createHush field. -func (r *mutationResolver) CreateHush(ctx context.Context, input generated.CreateHushInput) (*HushCreatePayload, error) { +func (r *mutationResolver) CreateHush(ctx context.Context, input generated.CreateHushInput) (*model.HushCreatePayload, error) { res, err := withTransactionalMutation(ctx).Hush.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "hush"}) } - return &HushCreatePayload{ + return &model.HushCreatePayload{ Hush: res, }, nil } // CreateBulkHush is the resolver for the createBulkHush field. -func (r *mutationResolver) CreateBulkHush(ctx context.Context, input []*generated.CreateHushInput) (*HushBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkHush(ctx context.Context, input []*generated.CreateHushInput) (*model.HushBulkCreatePayload, error) { return r.bulkCreateHush(ctx, input) } // CreateBulkCSVHush is the resolver for the createBulkCSVHush field. -func (r *mutationResolver) CreateBulkCSVHush(ctx context.Context, input graphql.Upload) (*HushBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVHush(ctx context.Context, input graphql.Upload) (*model.HushBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateHushInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVHush(ctx context.Context, input graphql. } // UpdateHush is the resolver for the updateHush field. -func (r *mutationResolver) UpdateHush(ctx context.Context, id string, input generated.UpdateHushInput) (*HushUpdatePayload, error) { +func (r *mutationResolver) UpdateHush(ctx context.Context, id string, input generated.UpdateHushInput) (*model.HushUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Hush.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "hush"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateHush(ctx context.Context, id string, input gene return nil, parseRequestError(err, action{action: ActionUpdate, object: "hush"}) } - return &HushUpdatePayload{ + return &model.HushUpdatePayload{ Hush: res, }, nil } // DeleteHush is the resolver for the deleteHush field. -func (r *mutationResolver) DeleteHush(ctx context.Context, id string) (*HushDeletePayload, error) { +func (r *mutationResolver) DeleteHush(ctx context.Context, id string) (*model.HushDeletePayload, error) { if err := withTransactionalMutation(ctx).Hush.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "hush"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteHush(ctx context.Context, id string) (*HushDele return nil, newCascadeDeleteError(err) } - return &HushDeletePayload{ + return &model.HushDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/integration.resolvers.go b/internal/graphapi/integration.resolvers.go index 17ea57a1..b5728b09 100644 --- a/internal/graphapi/integration.resolvers.go +++ b/internal/graphapi/integration.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateIntegration is the resolver for the createIntegration field. -func (r *mutationResolver) CreateIntegration(ctx context.Context, input generated.CreateIntegrationInput) (*IntegrationCreatePayload, error) { +func (r *mutationResolver) CreateIntegration(ctx context.Context, input generated.CreateIntegrationInput) (*model.IntegrationCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateIntegration(ctx context.Context, input generate return nil, parseRequestError(err, action{action: ActionCreate, object: "integration"}) } - return &IntegrationCreatePayload{ + return &model.IntegrationCreatePayload{ Integration: res, }, nil } // CreateBulkIntegration is the resolver for the createBulkIntegration field. -func (r *mutationResolver) CreateBulkIntegration(ctx context.Context, input []*generated.CreateIntegrationInput) (*IntegrationBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkIntegration(ctx context.Context, input []*generated.CreateIntegrationInput) (*model.IntegrationBulkCreatePayload, error) { return r.bulkCreateIntegration(ctx, input) } // CreateBulkCSVIntegration is the resolver for the createBulkCSVIntegration field. -func (r *mutationResolver) CreateBulkCSVIntegration(ctx context.Context, input graphql.Upload) (*IntegrationBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVIntegration(ctx context.Context, input graphql.Upload) (*model.IntegrationBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateIntegrationInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVIntegration(ctx context.Context, input g } // UpdateIntegration is the resolver for the updateIntegration field. -func (r *mutationResolver) UpdateIntegration(ctx context.Context, id string, input generated.UpdateIntegrationInput) (*IntegrationUpdatePayload, error) { +func (r *mutationResolver) UpdateIntegration(ctx context.Context, id string, input generated.UpdateIntegrationInput) (*model.IntegrationUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Integration.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "integration"}) @@ -70,13 +71,13 @@ func (r *mutationResolver) UpdateIntegration(ctx context.Context, id string, inp return nil, parseRequestError(err, action{action: ActionUpdate, object: "integration"}) } - return &IntegrationUpdatePayload{ + return &model.IntegrationUpdatePayload{ Integration: res, }, nil } // DeleteIntegration is the resolver for the deleteIntegration field. -func (r *mutationResolver) DeleteIntegration(ctx context.Context, id string) (*IntegrationDeletePayload, error) { +func (r *mutationResolver) DeleteIntegration(ctx context.Context, id string) (*model.IntegrationDeletePayload, error) { if err := withTransactionalMutation(ctx).Integration.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "integration"}) } @@ -85,7 +86,7 @@ func (r *mutationResolver) DeleteIntegration(ctx context.Context, id string) (*I return nil, newCascadeDeleteError(err) } - return &IntegrationDeletePayload{ + return &model.IntegrationDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/internalpolicy.resolvers.go b/internal/graphapi/internalpolicy.resolvers.go index 87f8939f..62f8f364 100644 --- a/internal/graphapi/internalpolicy.resolvers.go +++ b/internal/graphapi/internalpolicy.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateInternalPolicy is the resolver for the createInternalPolicy field. -func (r *mutationResolver) CreateInternalPolicy(ctx context.Context, input generated.CreateInternalPolicyInput) (*InternalPolicyCreatePayload, error) { +func (r *mutationResolver) CreateInternalPolicy(ctx context.Context, input generated.CreateInternalPolicyInput) (*model.InternalPolicyCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,13 +27,13 @@ func (r *mutationResolver) CreateInternalPolicy(ctx context.Context, input gener return nil, parseRequestError(err, action{action: ActionCreate, object: "internalpolicy"}) } - return &InternalPolicyCreatePayload{ + return &model.InternalPolicyCreatePayload{ InternalPolicy: res, }, nil } // CreateBulkInternalPolicy is the resolver for the createBulkInternalPolicy field. -func (r *mutationResolver) CreateBulkInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*InternalPolicyBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkInternalPolicy(ctx context.Context, input []*generated.CreateInternalPolicyInput) (*model.InternalPolicyBulkCreatePayload, error) { if len(input) == 0 { return nil, rout.NewMissingRequiredFieldError("input") } @@ -47,7 +48,7 @@ func (r *mutationResolver) CreateBulkInternalPolicy(ctx context.Context, input [ } // CreateBulkCSVInternalPolicy is the resolver for the createBulkCSVInternalPolicy field. -func (r *mutationResolver) CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload) (*InternalPolicyBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVInternalPolicy(ctx context.Context, input graphql.Upload) (*model.InternalPolicyBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateInternalPolicyInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -69,7 +70,7 @@ func (r *mutationResolver) CreateBulkCSVInternalPolicy(ctx context.Context, inpu } // UpdateInternalPolicy is the resolver for the updateInternalPolicy field. -func (r *mutationResolver) UpdateInternalPolicy(ctx context.Context, id string, input generated.UpdateInternalPolicyInput) (*InternalPolicyUpdatePayload, error) { +func (r *mutationResolver) UpdateInternalPolicy(ctx context.Context, id string, input generated.UpdateInternalPolicyInput) (*model.InternalPolicyUpdatePayload, error) { res, err := withTransactionalMutation(ctx).InternalPolicy.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "internalpolicy"}) @@ -89,13 +90,13 @@ func (r *mutationResolver) UpdateInternalPolicy(ctx context.Context, id string, return nil, parseRequestError(err, action{action: ActionUpdate, object: "internalpolicy"}) } - return &InternalPolicyUpdatePayload{ + return &model.InternalPolicyUpdatePayload{ InternalPolicy: res, }, nil } // DeleteInternalPolicy is the resolver for the deleteInternalPolicy field. -func (r *mutationResolver) DeleteInternalPolicy(ctx context.Context, id string) (*InternalPolicyDeletePayload, error) { +func (r *mutationResolver) DeleteInternalPolicy(ctx context.Context, id string) (*model.InternalPolicyDeletePayload, error) { if err := withTransactionalMutation(ctx).InternalPolicy.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "internalpolicy"}) } @@ -104,7 +105,7 @@ func (r *mutationResolver) DeleteInternalPolicy(ctx context.Context, id string) return nil, newCascadeDeleteError(err) } - return &InternalPolicyDeletePayload{ + return &model.InternalPolicyDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/invite.resolvers.go b/internal/graphapi/invite.resolvers.go index e156eb02..3f9a1134 100644 --- a/internal/graphapi/invite.resolvers.go +++ b/internal/graphapi/invite.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateInvite is the resolver for the createInvite field. -func (r *mutationResolver) CreateInvite(ctx context.Context, input generated.CreateInviteInput) (*InviteCreatePayload, error) { +func (r *mutationResolver) CreateInvite(ctx context.Context, input generated.CreateInviteInput) (*model.InviteCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateInvite(ctx context.Context, input generated.Cre return nil, parseRequestError(err, action{action: ActionCreate, object: "invite"}) } - return &InviteCreatePayload{ + return &model.InviteCreatePayload{ Invite: res, }, nil } // CreateBulkInvite is the resolver for the createBulkInvite field. -func (r *mutationResolver) CreateBulkInvite(ctx context.Context, input []*generated.CreateInviteInput) (*InviteBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkInvite(ctx context.Context, input []*generated.CreateInviteInput) (*model.InviteBulkCreatePayload, error) { return r.bulkCreateInvite(ctx, input) } // CreateBulkCSVInvite is the resolver for the createBulkCSVInvite field. -func (r *mutationResolver) CreateBulkCSVInvite(ctx context.Context, input graphql.Upload) (*InviteBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVInvite(ctx context.Context, input graphql.Upload) (*model.InviteBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateInviteInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVInvite(ctx context.Context, input graphq } // UpdateInvite is the resolver for the updateInvite field. -func (r *mutationResolver) UpdateInvite(ctx context.Context, id string, input generated.UpdateInviteInput) (*InviteUpdatePayload, error) { +func (r *mutationResolver) UpdateInvite(ctx context.Context, id string, input generated.UpdateInviteInput) (*model.InviteUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Invite.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "invite"}) @@ -70,13 +71,13 @@ func (r *mutationResolver) UpdateInvite(ctx context.Context, id string, input ge return nil, parseRequestError(err, action{action: ActionUpdate, object: "invite"}) } - return &InviteUpdatePayload{ + return &model.InviteUpdatePayload{ Invite: res, }, nil } // DeleteInvite is the resolver for the deleteInvite field. -func (r *mutationResolver) DeleteInvite(ctx context.Context, id string) (*InviteDeletePayload, error) { +func (r *mutationResolver) DeleteInvite(ctx context.Context, id string) (*model.InviteDeletePayload, error) { if err := withTransactionalMutation(ctx).Invite.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "invite"}) } @@ -85,7 +86,7 @@ func (r *mutationResolver) DeleteInvite(ctx context.Context, id string) (*Invite return nil, newCascadeDeleteError(err) } - return &InviteDeletePayload{ + return &model.InviteDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/gen_models.go b/internal/graphapi/model/gen_models.go similarity index 99% rename from internal/graphapi/gen_models.go rename to internal/graphapi/model/gen_models.go index 5fbd7a04..78848e25 100644 --- a/internal/graphapi/gen_models.go +++ b/internal/graphapi/model/gen_models.go @@ -1,6 +1,6 @@ // Code generated by github.com/99designs/gqlgen, DO NOT EDIT. -package graphapi +package model import ( "time" diff --git a/internal/graphapi/narrative.resolvers.go b/internal/graphapi/narrative.resolvers.go index 4d9e308a..daefdf63 100644 --- a/internal/graphapi/narrative.resolvers.go +++ b/internal/graphapi/narrative.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateNarrative is the resolver for the createNarrative field. -func (r *mutationResolver) CreateNarrative(ctx context.Context, input generated.CreateNarrativeInput) (*NarrativeCreatePayload, error) { +func (r *mutationResolver) CreateNarrative(ctx context.Context, input generated.CreateNarrativeInput) (*model.NarrativeCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, &input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateNarrative(ctx context.Context, input generated. return nil, parseRequestError(err, action{action: ActionCreate, object: "narrative"}) } - return &NarrativeCreatePayload{ + return &model.NarrativeCreatePayload{ Narrative: res, }, nil } // CreateBulkNarrative is the resolver for the createBulkNarrative field. -func (r *mutationResolver) CreateBulkNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*NarrativeBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkNarrative(ctx context.Context, input []*generated.CreateNarrativeInput) (*model.NarrativeBulkCreatePayload, error) { return r.bulkCreateNarrative(ctx, input) } // CreateBulkCSVNarrative is the resolver for the createBulkCSVNarrative field. -func (r *mutationResolver) CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload) (*NarrativeBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload) (*model.NarrativeBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateNarrativeInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVNarrative(ctx context.Context, input gra } // UpdateNarrative is the resolver for the updateNarrative field. -func (r *mutationResolver) UpdateNarrative(ctx context.Context, id string, input generated.UpdateNarrativeInput) (*NarrativeUpdatePayload, error) { +func (r *mutationResolver) UpdateNarrative(ctx context.Context, id string, input generated.UpdateNarrativeInput) (*model.NarrativeUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Narrative.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "narrative"}) @@ -71,13 +72,13 @@ func (r *mutationResolver) UpdateNarrative(ctx context.Context, id string, input return nil, parseRequestError(err, action{action: ActionUpdate, object: "narrative"}) } - return &NarrativeUpdatePayload{ + return &model.NarrativeUpdatePayload{ Narrative: res, }, nil } // DeleteNarrative is the resolver for the deleteNarrative field. -func (r *mutationResolver) DeleteNarrative(ctx context.Context, id string) (*NarrativeDeletePayload, error) { +func (r *mutationResolver) DeleteNarrative(ctx context.Context, id string) (*model.NarrativeDeletePayload, error) { if err := withTransactionalMutation(ctx).Narrative.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "narrative"}) } @@ -86,7 +87,7 @@ func (r *mutationResolver) DeleteNarrative(ctx context.Context, id string) (*Nar return nil, newCascadeDeleteError(err) } - return &NarrativeDeletePayload{ + return &model.NarrativeDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/organization.resolvers.go b/internal/graphapi/organization.resolvers.go index 4c0cd4cc..6f998115 100644 --- a/internal/graphapi/organization.resolvers.go +++ b/internal/graphapi/organization.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateOrganization is the resolver for the createOrganization field. -func (r *mutationResolver) CreateOrganization(ctx context.Context, input generated.CreateOrganizationInput) (*OrganizationCreatePayload, error) { +func (r *mutationResolver) CreateOrganization(ctx context.Context, input generated.CreateOrganizationInput) (*model.OrganizationCreatePayload, error) { res, err := withTransactionalMutation(ctx).Organization.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "organization"}) } - return &OrganizationCreatePayload{ + return &model.OrganizationCreatePayload{ Organization: res, }, nil } // CreateBulkOrganization is the resolver for the createBulkOrganization field. -func (r *mutationResolver) CreateBulkOrganization(ctx context.Context, input []*generated.CreateOrganizationInput) (*OrganizationBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkOrganization(ctx context.Context, input []*generated.CreateOrganizationInput) (*model.OrganizationBulkCreatePayload, error) { return r.bulkCreateOrganization(ctx, input) } // CreateBulkCSVOrganization is the resolver for the createBulkCSVOrganization field. -func (r *mutationResolver) CreateBulkCSVOrganization(ctx context.Context, input graphql.Upload) (*OrganizationBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVOrganization(ctx context.Context, input graphql.Upload) (*model.OrganizationBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateOrganizationInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVOrganization(ctx context.Context, input } // UpdateOrganization is the resolver for the updateOrganization field. -func (r *mutationResolver) UpdateOrganization(ctx context.Context, id string, input generated.UpdateOrganizationInput) (*OrganizationUpdatePayload, error) { +func (r *mutationResolver) UpdateOrganization(ctx context.Context, id string, input generated.UpdateOrganizationInput) (*model.OrganizationUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Organization.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "organization"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateOrganization(ctx context.Context, id string, in return nil, parseRequestError(err, action{action: ActionUpdate, object: "organization"}) } - return &OrganizationUpdatePayload{ + return &model.OrganizationUpdatePayload{ Organization: res, }, nil } // DeleteOrganization is the resolver for the deleteOrganization field. -func (r *mutationResolver) DeleteOrganization(ctx context.Context, id string) (*OrganizationDeletePayload, error) { +func (r *mutationResolver) DeleteOrganization(ctx context.Context, id string) (*model.OrganizationDeletePayload, error) { if err := withTransactionalMutation(ctx).Organization.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "organization"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteOrganization(ctx context.Context, id string) (* return nil, newCascadeDeleteError(err) } - return &OrganizationDeletePayload{ + return &model.OrganizationDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/organizationsetting.resolvers.go b/internal/graphapi/organizationsetting.resolvers.go index 50503fa3..b4a70e02 100644 --- a/internal/graphapi/organizationsetting.resolvers.go +++ b/internal/graphapi/organizationsetting.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateOrganizationSetting is the resolver for the createOrganizationSetting field. -func (r *mutationResolver) CreateOrganizationSetting(ctx context.Context, input generated.CreateOrganizationSettingInput) (*OrganizationSettingCreatePayload, error) { +func (r *mutationResolver) CreateOrganizationSetting(ctx context.Context, input generated.CreateOrganizationSettingInput) (*model.OrganizationSettingCreatePayload, error) { res, err := withTransactionalMutation(ctx).OrganizationSetting.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "organizationsetting"}) } - return &OrganizationSettingCreatePayload{ + return &model.OrganizationSettingCreatePayload{ OrganizationSetting: res, }, nil } // CreateBulkOrganizationSetting is the resolver for the createBulkOrganizationSetting field. -func (r *mutationResolver) CreateBulkOrganizationSetting(ctx context.Context, input []*generated.CreateOrganizationSettingInput) (*OrganizationSettingBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkOrganizationSetting(ctx context.Context, input []*generated.CreateOrganizationSettingInput) (*model.OrganizationSettingBulkCreatePayload, error) { return r.bulkCreateOrganizationSetting(ctx, input) } // CreateBulkCSVOrganizationSetting is the resolver for the createBulkCSVOrganizationSetting field. -func (r *mutationResolver) CreateBulkCSVOrganizationSetting(ctx context.Context, input graphql.Upload) (*OrganizationSettingBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVOrganizationSetting(ctx context.Context, input graphql.Upload) (*model.OrganizationSettingBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateOrganizationSettingInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVOrganizationSetting(ctx context.Context, } // UpdateOrganizationSetting is the resolver for the updateOrganizationSetting field. -func (r *mutationResolver) UpdateOrganizationSetting(ctx context.Context, id string, input generated.UpdateOrganizationSettingInput) (*OrganizationSettingUpdatePayload, error) { +func (r *mutationResolver) UpdateOrganizationSetting(ctx context.Context, id string, input generated.UpdateOrganizationSettingInput) (*model.OrganizationSettingUpdatePayload, error) { res, err := withTransactionalMutation(ctx).OrganizationSetting.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "organizationsetting"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateOrganizationSetting(ctx context.Context, id str return nil, parseRequestError(err, action{action: ActionUpdate, object: "organizationsetting"}) } - return &OrganizationSettingUpdatePayload{ + return &model.OrganizationSettingUpdatePayload{ OrganizationSetting: res, }, nil } // DeleteOrganizationSetting is the resolver for the deleteOrganizationSetting field. -func (r *mutationResolver) DeleteOrganizationSetting(ctx context.Context, id string) (*OrganizationSettingDeletePayload, error) { +func (r *mutationResolver) DeleteOrganizationSetting(ctx context.Context, id string) (*model.OrganizationSettingDeletePayload, error) { if err := withTransactionalMutation(ctx).OrganizationSetting.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "organizationsetting"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteOrganizationSetting(ctx context.Context, id str return nil, newCascadeDeleteError(err) } - return &OrganizationSettingDeletePayload{ + return &model.OrganizationSettingDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/orgmembership.resolvers.go b/internal/graphapi/orgmembership.resolvers.go index 1bda2291..0e3997ad 100644 --- a/internal/graphapi/orgmembership.resolvers.go +++ b/internal/graphapi/orgmembership.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateOrgMembership is the resolver for the createOrgMembership field. -func (r *mutationResolver) CreateOrgMembership(ctx context.Context, input generated.CreateOrgMembershipInput) (*OrgMembershipCreatePayload, error) { +func (r *mutationResolver) CreateOrgMembership(ctx context.Context, input generated.CreateOrgMembershipInput) (*model.OrgMembershipCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, &input.OrganizationID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,16 +27,16 @@ func (r *mutationResolver) CreateOrgMembership(ctx context.Context, input genera return nil, parseRequestError(err, action{action: ActionCreate, object: "orgmembership"}) } - return &OrgMembershipCreatePayload{OrgMembership: om}, nil + return &model.OrgMembershipCreatePayload{OrgMembership: om}, nil } // CreateBulkOrgMembership is the resolver for the createBulkOrgMembership field. -func (r *mutationResolver) CreateBulkOrgMembership(ctx context.Context, input []*generated.CreateOrgMembershipInput) (*OrgMembershipBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkOrgMembership(ctx context.Context, input []*generated.CreateOrgMembershipInput) (*model.OrgMembershipBulkCreatePayload, error) { return r.bulkCreateOrgMembership(ctx, input) } // CreateBulkCSVOrgMembership is the resolver for the createBulkCSVOrgMembership field. -func (r *mutationResolver) CreateBulkCSVOrgMembership(ctx context.Context, input graphql.Upload) (*OrgMembershipBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVOrgMembership(ctx context.Context, input graphql.Upload) (*model.OrgMembershipBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateOrgMembershipInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -47,7 +48,7 @@ func (r *mutationResolver) CreateBulkCSVOrgMembership(ctx context.Context, input } // UpdateOrgMembership is the resolver for the updateOrgMembership field. -func (r *mutationResolver) UpdateOrgMembership(ctx context.Context, id string, input generated.UpdateOrgMembershipInput) (*OrgMembershipUpdatePayload, error) { +func (r *mutationResolver) UpdateOrgMembership(ctx context.Context, id string, input generated.UpdateOrgMembershipInput) (*model.OrgMembershipUpdatePayload, error) { orgMember, err := withTransactionalMutation(ctx).OrgMembership.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "orgmembership"}) @@ -64,11 +65,11 @@ func (r *mutationResolver) UpdateOrgMembership(ctx context.Context, id string, i return nil, parseRequestError(err, action{action: ActionUpdate, object: "orgmembership"}) } - return &OrgMembershipUpdatePayload{OrgMembership: orgMember}, nil + return &model.OrgMembershipUpdatePayload{OrgMembership: orgMember}, nil } // DeleteOrgMembership is the resolver for the deleteOrgMembership field. -func (r *mutationResolver) DeleteOrgMembership(ctx context.Context, id string) (*OrgMembershipDeletePayload, error) { +func (r *mutationResolver) DeleteOrgMembership(ctx context.Context, id string) (*model.OrgMembershipDeletePayload, error) { if err := withTransactionalMutation(ctx).OrgMembership.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "orgmembership"}) } @@ -77,7 +78,7 @@ func (r *mutationResolver) DeleteOrgMembership(ctx context.Context, id string) ( return nil, newCascadeDeleteError(err) } - return &OrgMembershipDeletePayload{DeletedID: id}, nil + return &model.OrgMembershipDeletePayload{DeletedID: id}, nil } // OrgMembership is the resolver for the orgMembership field. diff --git a/internal/graphapi/orgsubscription.resolvers.go b/internal/graphapi/orgsubscription.resolvers.go index 594e2ed6..d9185685 100644 --- a/internal/graphapi/orgsubscription.resolvers.go +++ b/internal/graphapi/orgsubscription.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateOrgSubscription is the resolver for the createOrgSubscription field. -func (r *mutationResolver) CreateOrgSubscription(ctx context.Context, input generated.CreateOrgSubscriptionInput) (*OrgSubscriptionCreatePayload, error) { +func (r *mutationResolver) CreateOrgSubscription(ctx context.Context, input generated.CreateOrgSubscriptionInput) (*model.OrgSubscriptionCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateOrgSubscription(ctx context.Context, input gene return nil, parseRequestError(err, action{action: ActionCreate, object: "orgsubscription"}) } - return &OrgSubscriptionCreatePayload{ + return &model.OrgSubscriptionCreatePayload{ OrgSubscription: res, }, nil } // CreateBulkOrgSubscription is the resolver for the createBulkOrgSubscription field. -func (r *mutationResolver) CreateBulkOrgSubscription(ctx context.Context, input []*generated.CreateOrgSubscriptionInput) (*OrgSubscriptionBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkOrgSubscription(ctx context.Context, input []*generated.CreateOrgSubscriptionInput) (*model.OrgSubscriptionBulkCreatePayload, error) { return r.bulkCreateOrgSubscription(ctx, input) } // CreateBulkCSVOrgSubscription is the resolver for the createBulkCSVOrgSubscription field. -func (r *mutationResolver) CreateBulkCSVOrgSubscription(ctx context.Context, input graphql.Upload) (*OrgSubscriptionBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVOrgSubscription(ctx context.Context, input graphql.Upload) (*model.OrgSubscriptionBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateOrgSubscriptionInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVOrgSubscription(ctx context.Context, inp } // UpdateOrgSubscription is the resolver for the updateOrgSubscription field. -func (r *mutationResolver) UpdateOrgSubscription(ctx context.Context, id string, input generated.UpdateOrgSubscriptionInput) (*OrgSubscriptionUpdatePayload, error) { +func (r *mutationResolver) UpdateOrgSubscription(ctx context.Context, id string, input generated.UpdateOrgSubscriptionInput) (*model.OrgSubscriptionUpdatePayload, error) { res, err := withTransactionalMutation(ctx).OrgSubscription.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "orgsubscription"}) @@ -70,13 +71,13 @@ func (r *mutationResolver) UpdateOrgSubscription(ctx context.Context, id string, return nil, parseRequestError(err, action{action: ActionUpdate, object: "orgsubscription"}) } - return &OrgSubscriptionUpdatePayload{ + return &model.OrgSubscriptionUpdatePayload{ OrgSubscription: res, }, nil } // DeleteOrgSubscription is the resolver for the deleteOrgSubscription field. -func (r *mutationResolver) DeleteOrgSubscription(ctx context.Context, id string) (*OrgSubscriptionDeletePayload, error) { +func (r *mutationResolver) DeleteOrgSubscription(ctx context.Context, id string) (*model.OrgSubscriptionDeletePayload, error) { if err := withTransactionalMutation(ctx).OrgSubscription.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "orgsubscription"}) } @@ -85,7 +86,7 @@ func (r *mutationResolver) DeleteOrgSubscription(ctx context.Context, id string) return nil, newCascadeDeleteError(err) } - return &OrgSubscriptionDeletePayload{ + return &model.OrgSubscriptionDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/personalaccesstoken.resolvers.go b/internal/graphapi/personalaccesstoken.resolvers.go index a7c746d1..f2145994 100644 --- a/internal/graphapi/personalaccesstoken.resolvers.go +++ b/internal/graphapi/personalaccesstoken.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreatePersonalAccessToken is the resolver for the createPersonalAccessToken field. -func (r *mutationResolver) CreatePersonalAccessToken(ctx context.Context, input generated.CreatePersonalAccessTokenInput) (*PersonalAccessTokenCreatePayload, error) { +func (r *mutationResolver) CreatePersonalAccessToken(ctx context.Context, input generated.CreatePersonalAccessTokenInput) (*model.PersonalAccessTokenCreatePayload, error) { res, err := withTransactionalMutation(ctx).PersonalAccessToken.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "personalaccesstoken"}) } - return &PersonalAccessTokenCreatePayload{ + return &model.PersonalAccessTokenCreatePayload{ PersonalAccessToken: res, }, nil } // CreateBulkPersonalAccessToken is the resolver for the createBulkPersonalAccessToken field. -func (r *mutationResolver) CreateBulkPersonalAccessToken(ctx context.Context, input []*generated.CreatePersonalAccessTokenInput) (*PersonalAccessTokenBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkPersonalAccessToken(ctx context.Context, input []*generated.CreatePersonalAccessTokenInput) (*model.PersonalAccessTokenBulkCreatePayload, error) { return r.bulkCreatePersonalAccessToken(ctx, input) } // CreateBulkCSVPersonalAccessToken is the resolver for the createBulkCSVPersonalAccessToken field. -func (r *mutationResolver) CreateBulkCSVPersonalAccessToken(ctx context.Context, input graphql.Upload) (*PersonalAccessTokenBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVPersonalAccessToken(ctx context.Context, input graphql.Upload) (*model.PersonalAccessTokenBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreatePersonalAccessTokenInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVPersonalAccessToken(ctx context.Context, } // UpdatePersonalAccessToken is the resolver for the updatePersonalAccessToken field. -func (r *mutationResolver) UpdatePersonalAccessToken(ctx context.Context, id string, input generated.UpdatePersonalAccessTokenInput) (*PersonalAccessTokenUpdatePayload, error) { +func (r *mutationResolver) UpdatePersonalAccessToken(ctx context.Context, id string, input generated.UpdatePersonalAccessTokenInput) (*model.PersonalAccessTokenUpdatePayload, error) { res, err := withTransactionalMutation(ctx).PersonalAccessToken.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "personalaccesstoken"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdatePersonalAccessToken(ctx context.Context, id str return nil, parseRequestError(err, action{action: ActionUpdate, object: "personalaccesstoken"}) } - return &PersonalAccessTokenUpdatePayload{ + return &model.PersonalAccessTokenUpdatePayload{ PersonalAccessToken: res, }, nil } // DeletePersonalAccessToken is the resolver for the deletePersonalAccessToken field. -func (r *mutationResolver) DeletePersonalAccessToken(ctx context.Context, id string) (*PersonalAccessTokenDeletePayload, error) { +func (r *mutationResolver) DeletePersonalAccessToken(ctx context.Context, id string) (*model.PersonalAccessTokenDeletePayload, error) { if err := withTransactionalMutation(ctx).PersonalAccessToken.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "personalaccesstoken"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeletePersonalAccessToken(ctx context.Context, id str return nil, newCascadeDeleteError(err) } - return &PersonalAccessTokenDeletePayload{ + return &model.PersonalAccessTokenDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/procedure.resolvers.go b/internal/graphapi/procedure.resolvers.go index 9f147381..8ce88385 100644 --- a/internal/graphapi/procedure.resolvers.go +++ b/internal/graphapi/procedure.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateProcedure is the resolver for the createProcedure field. -func (r *mutationResolver) CreateProcedure(ctx context.Context, input generated.CreateProcedureInput) (*ProcedureCreatePayload, error) { +func (r *mutationResolver) CreateProcedure(ctx context.Context, input generated.CreateProcedureInput) (*model.ProcedureCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,18 +27,18 @@ func (r *mutationResolver) CreateProcedure(ctx context.Context, input generated. return nil, parseRequestError(err, action{action: ActionCreate, object: "procedure"}) } - return &ProcedureCreatePayload{ + return &model.ProcedureCreatePayload{ Procedure: res, }, nil } // CreateBulkProcedure is the resolver for the createBulkProcedure field. -func (r *mutationResolver) CreateBulkProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*ProcedureBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkProcedure(ctx context.Context, input []*generated.CreateProcedureInput) (*model.ProcedureBulkCreatePayload, error) { return r.bulkCreateProcedure(ctx, input) } // CreateBulkCSVProcedure is the resolver for the createBulkCSVProcedure field. -func (r *mutationResolver) CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload) (*ProcedureBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVProcedure(ctx context.Context, input graphql.Upload) (*model.ProcedureBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateProcedureInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -49,7 +50,7 @@ func (r *mutationResolver) CreateBulkCSVProcedure(ctx context.Context, input gra } // UpdateProcedure is the resolver for the updateProcedure field. -func (r *mutationResolver) UpdateProcedure(ctx context.Context, id string, input generated.UpdateProcedureInput) (*ProcedureUpdatePayload, error) { +func (r *mutationResolver) UpdateProcedure(ctx context.Context, id string, input generated.UpdateProcedureInput) (*model.ProcedureUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Procedure.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "procedure"}) @@ -69,13 +70,13 @@ func (r *mutationResolver) UpdateProcedure(ctx context.Context, id string, input return nil, parseRequestError(err, action{action: ActionUpdate, object: "procedure"}) } - return &ProcedureUpdatePayload{ + return &model.ProcedureUpdatePayload{ Procedure: res, }, nil } // DeleteProcedure is the resolver for the deleteProcedure field. -func (r *mutationResolver) DeleteProcedure(ctx context.Context, id string) (*ProcedureDeletePayload, error) { +func (r *mutationResolver) DeleteProcedure(ctx context.Context, id string) (*model.ProcedureDeletePayload, error) { if err := withTransactionalMutation(ctx).Procedure.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "procedure"}) } @@ -84,7 +85,7 @@ func (r *mutationResolver) DeleteProcedure(ctx context.Context, id string) (*Pro return nil, newCascadeDeleteError(err) } - return &ProcedureDeletePayload{ + return &model.ProcedureDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/program.resolvers.go b/internal/graphapi/program.resolvers.go index 5f0a875f..e51be25d 100644 --- a/internal/graphapi/program.resolvers.go +++ b/internal/graphapi/program.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateProgram is the resolver for the createProgram field. -func (r *mutationResolver) CreateProgram(ctx context.Context, input generated.CreateProgramInput) (*ProgramCreatePayload, error) { +func (r *mutationResolver) CreateProgram(ctx context.Context, input generated.CreateProgramInput) (*model.ProgramCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,18 +27,18 @@ func (r *mutationResolver) CreateProgram(ctx context.Context, input generated.Cr return nil, parseRequestError(err, action{action: ActionCreate, object: "program"}) } - return &ProgramCreatePayload{ + return &model.ProgramCreatePayload{ Program: res, }, nil } // CreateBulkProgram is the resolver for the createBulkProgram field. -func (r *mutationResolver) CreateBulkProgram(ctx context.Context, input []*generated.CreateProgramInput) (*ProgramBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkProgram(ctx context.Context, input []*generated.CreateProgramInput) (*model.ProgramBulkCreatePayload, error) { return r.bulkCreateProgram(ctx, input) } // CreateBulkCSVProgram is the resolver for the createBulkCSVProgram field. -func (r *mutationResolver) CreateBulkCSVProgram(ctx context.Context, input graphql.Upload) (*ProgramBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVProgram(ctx context.Context, input graphql.Upload) (*model.ProgramBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateProgramInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -49,7 +50,7 @@ func (r *mutationResolver) CreateBulkCSVProgram(ctx context.Context, input graph } // UpdateProgram is the resolver for the updateProgram field. -func (r *mutationResolver) UpdateProgram(ctx context.Context, id string, input generated.UpdateProgramInput) (*ProgramUpdatePayload, error) { +func (r *mutationResolver) UpdateProgram(ctx context.Context, id string, input generated.UpdateProgramInput) (*model.ProgramUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Program.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "program"}) @@ -69,13 +70,13 @@ func (r *mutationResolver) UpdateProgram(ctx context.Context, id string, input g return nil, parseRequestError(err, action{action: ActionUpdate, object: "program"}) } - return &ProgramUpdatePayload{ + return &model.ProgramUpdatePayload{ Program: res, }, nil } // DeleteProgram is the resolver for the deleteProgram field. -func (r *mutationResolver) DeleteProgram(ctx context.Context, id string) (*ProgramDeletePayload, error) { +func (r *mutationResolver) DeleteProgram(ctx context.Context, id string) (*model.ProgramDeletePayload, error) { if err := withTransactionalMutation(ctx).Program.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "program"}) } @@ -84,7 +85,7 @@ func (r *mutationResolver) DeleteProgram(ctx context.Context, id string) (*Progr return nil, newCascadeDeleteError(err) } - return &ProgramDeletePayload{ + return &model.ProgramDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/programextended.resolvers.go b/internal/graphapi/programextended.resolvers.go index 6105aa50..fda6eda4 100644 --- a/internal/graphapi/programextended.resolvers.go +++ b/internal/graphapi/programextended.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateProgramWithMembers is the resolver for the createProgramWithMembers field. -func (r *mutationResolver) CreateProgramWithMembers(ctx context.Context, input CreateProgramWithMembersInput) (*ProgramCreatePayload, error) { +func (r *mutationResolver) CreateProgramWithMembers(ctx context.Context, input model.CreateProgramWithMembersInput) (*model.ProgramCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.Program.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -43,13 +44,13 @@ func (r *mutationResolver) CreateProgramWithMembers(ctx context.Context, input C return nil, err } - return &ProgramCreatePayload{ + return &model.ProgramCreatePayload{ Program: program, }, nil } // CreateFullProgram is the resolver for the createFullProgram field. -func (r *mutationResolver) CreateFullProgram(ctx context.Context, input CreateFullProgramInput) (*ProgramCreatePayload, error) { +func (r *mutationResolver) CreateFullProgram(ctx context.Context, input model.CreateFullProgramInput) (*model.ProgramCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.Program.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -148,13 +149,13 @@ func (r *mutationResolver) CreateFullProgram(ctx context.Context, input CreateFu } } - return &ProgramCreatePayload{ + return &model.ProgramCreatePayload{ Program: program, }, nil } // CreateControlWithSubcontrols is the resolver for the createControlWithSubcontrols field. -func (r *mutationResolver) CreateControlWithSubcontrols(ctx context.Context, input CreateControlWithSubcontrolsInput) (*ControlCreatePayload, error) { +func (r *mutationResolver) CreateControlWithSubcontrols(ctx context.Context, input model.CreateControlWithSubcontrolsInput) (*model.ControlCreatePayload, error) { res, err := withTransactionalMutation(ctx).Control.Create().SetInput(*input.Control).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "control"}) @@ -176,7 +177,7 @@ func (r *mutationResolver) CreateControlWithSubcontrols(ctx context.Context, inp } } - return &ControlCreatePayload{ + return &model.ControlCreatePayload{ Control: res, }, nil } diff --git a/internal/graphapi/programmembership.resolvers.go b/internal/graphapi/programmembership.resolvers.go index 86b6be78..e725604b 100644 --- a/internal/graphapi/programmembership.resolvers.go +++ b/internal/graphapi/programmembership.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateProgramMembership is the resolver for the createProgramMembership field. -func (r *mutationResolver) CreateProgramMembership(ctx context.Context, input generated.CreateProgramMembershipInput) (*ProgramMembershipCreatePayload, error) { +func (r *mutationResolver) CreateProgramMembership(ctx context.Context, input generated.CreateProgramMembershipInput) (*model.ProgramMembershipCreatePayload, error) { res, err := withTransactionalMutation(ctx).ProgramMembership.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "programmembership"}) } - return &ProgramMembershipCreatePayload{ + return &model.ProgramMembershipCreatePayload{ ProgramMembership: res, }, nil } // CreateBulkProgramMembership is the resolver for the createBulkProgramMembership field. -func (r *mutationResolver) CreateBulkProgramMembership(ctx context.Context, input []*generated.CreateProgramMembershipInput) (*ProgramMembershipBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkProgramMembership(ctx context.Context, input []*generated.CreateProgramMembershipInput) (*model.ProgramMembershipBulkCreatePayload, error) { return r.bulkCreateProgramMembership(ctx, input) } // CreateBulkCSVProgramMembership is the resolver for the createBulkCSVProgramMembership field. -func (r *mutationResolver) CreateBulkCSVProgramMembership(ctx context.Context, input graphql.Upload) (*ProgramMembershipBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVProgramMembership(ctx context.Context, input graphql.Upload) (*model.ProgramMembershipBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateProgramMembershipInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVProgramMembership(ctx context.Context, i } // UpdateProgramMembership is the resolver for the updateProgramMembership field. -func (r *mutationResolver) UpdateProgramMembership(ctx context.Context, id string, input generated.UpdateProgramMembershipInput) (*ProgramMembershipUpdatePayload, error) { +func (r *mutationResolver) UpdateProgramMembership(ctx context.Context, id string, input generated.UpdateProgramMembershipInput) (*model.ProgramMembershipUpdatePayload, error) { res, err := withTransactionalMutation(ctx).ProgramMembership.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "programmembership"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateProgramMembership(ctx context.Context, id strin return nil, parseRequestError(err, action{action: ActionUpdate, object: "programmembership"}) } - return &ProgramMembershipUpdatePayload{ + return &model.ProgramMembershipUpdatePayload{ ProgramMembership: res, }, nil } // DeleteProgramMembership is the resolver for the deleteProgramMembership field. -func (r *mutationResolver) DeleteProgramMembership(ctx context.Context, id string) (*ProgramMembershipDeletePayload, error) { +func (r *mutationResolver) DeleteProgramMembership(ctx context.Context, id string) (*model.ProgramMembershipDeletePayload, error) { if err := withTransactionalMutation(ctx).ProgramMembership.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "programmembership"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteProgramMembership(ctx context.Context, id strin return nil, newCascadeDeleteError(err) } - return &ProgramMembershipDeletePayload{ + return &model.ProgramMembershipDeletePayload{ DeletedID: id, }, nil } diff --git a/query/.gitkeep b/internal/graphapi/query/.gitkeep similarity index 100% rename from query/.gitkeep rename to internal/graphapi/query/.gitkeep diff --git a/query/actionplan.graphql b/internal/graphapi/query/actionplan.graphql similarity index 100% rename from query/actionplan.graphql rename to internal/graphapi/query/actionplan.graphql diff --git a/query/actionplanhistory.graphql b/internal/graphapi/query/actionplanhistory.graphql similarity index 100% rename from query/actionplanhistory.graphql rename to internal/graphapi/query/actionplanhistory.graphql diff --git a/query/adminsearch.graphql b/internal/graphapi/query/adminsearch.graphql similarity index 100% rename from query/adminsearch.graphql rename to internal/graphapi/query/adminsearch.graphql diff --git a/query/apitoken.graphql b/internal/graphapi/query/apitoken.graphql similarity index 100% rename from query/apitoken.graphql rename to internal/graphapi/query/apitoken.graphql diff --git a/query/contact.graphql b/internal/graphapi/query/contact.graphql similarity index 100% rename from query/contact.graphql rename to internal/graphapi/query/contact.graphql diff --git a/query/contacthistory.graphql b/internal/graphapi/query/contacthistory.graphql similarity index 100% rename from query/contacthistory.graphql rename to internal/graphapi/query/contacthistory.graphql diff --git a/query/control.graphql b/internal/graphapi/query/control.graphql similarity index 100% rename from query/control.graphql rename to internal/graphapi/query/control.graphql diff --git a/query/controlhistory.graphql b/internal/graphapi/query/controlhistory.graphql similarity index 100% rename from query/controlhistory.graphql rename to internal/graphapi/query/controlhistory.graphql diff --git a/query/controlobjective.graphql b/internal/graphapi/query/controlobjective.graphql similarity index 100% rename from query/controlobjective.graphql rename to internal/graphapi/query/controlobjective.graphql diff --git a/query/controlobjectivehistory.graphql b/internal/graphapi/query/controlobjectivehistory.graphql similarity index 100% rename from query/controlobjectivehistory.graphql rename to internal/graphapi/query/controlobjectivehistory.graphql diff --git a/query/documentdata.graphql b/internal/graphapi/query/documentdata.graphql similarity index 100% rename from query/documentdata.graphql rename to internal/graphapi/query/documentdata.graphql diff --git a/query/documentdatahistory.graphql b/internal/graphapi/query/documentdatahistory.graphql similarity index 100% rename from query/documentdatahistory.graphql rename to internal/graphapi/query/documentdatahistory.graphql diff --git a/query/entity.graphql b/internal/graphapi/query/entity.graphql similarity index 100% rename from query/entity.graphql rename to internal/graphapi/query/entity.graphql diff --git a/query/entityhistory.graphql b/internal/graphapi/query/entityhistory.graphql similarity index 100% rename from query/entityhistory.graphql rename to internal/graphapi/query/entityhistory.graphql diff --git a/query/entitytype.graphql b/internal/graphapi/query/entitytype.graphql similarity index 100% rename from query/entitytype.graphql rename to internal/graphapi/query/entitytype.graphql diff --git a/query/entitytypehistory.graphql b/internal/graphapi/query/entitytypehistory.graphql similarity index 100% rename from query/entitytypehistory.graphql rename to internal/graphapi/query/entitytypehistory.graphql diff --git a/query/event.graphql b/internal/graphapi/query/event.graphql similarity index 100% rename from query/event.graphql rename to internal/graphapi/query/event.graphql diff --git a/query/eventhistory.graphql b/internal/graphapi/query/eventhistory.graphql similarity index 99% rename from query/eventhistory.graphql rename to internal/graphapi/query/eventhistory.graphql index cb2b7b92..b4b8a70f 100644 --- a/query/eventhistory.graphql +++ b/internal/graphapi/query/eventhistory.graphql @@ -1,5 +1,3 @@ - - query GetAllEventHistories { eventHistories { edges { diff --git a/query/file.graphql b/internal/graphapi/query/file.graphql similarity index 100% rename from query/file.graphql rename to internal/graphapi/query/file.graphql diff --git a/query/filehistory.graphql b/internal/graphapi/query/filehistory.graphql similarity index 100% rename from query/filehistory.graphql rename to internal/graphapi/query/filehistory.graphql diff --git a/query/group.graphql b/internal/graphapi/query/group.graphql similarity index 100% rename from query/group.graphql rename to internal/graphapi/query/group.graphql diff --git a/query/grouphistory.graphql b/internal/graphapi/query/grouphistory.graphql similarity index 100% rename from query/grouphistory.graphql rename to internal/graphapi/query/grouphistory.graphql diff --git a/query/groupmembership.graphql b/internal/graphapi/query/groupmembership.graphql similarity index 100% rename from query/groupmembership.graphql rename to internal/graphapi/query/groupmembership.graphql diff --git a/query/groupmembershiphistory.graphql b/internal/graphapi/query/groupmembershiphistory.graphql similarity index 100% rename from query/groupmembershiphistory.graphql rename to internal/graphapi/query/groupmembershiphistory.graphql diff --git a/query/groupsetting.graphql b/internal/graphapi/query/groupsetting.graphql similarity index 100% rename from query/groupsetting.graphql rename to internal/graphapi/query/groupsetting.graphql diff --git a/query/groupsettinghistory.graphql b/internal/graphapi/query/groupsettinghistory.graphql similarity index 100% rename from query/groupsettinghistory.graphql rename to internal/graphapi/query/groupsettinghistory.graphql diff --git a/query/hush.graphql b/internal/graphapi/query/hush.graphql similarity index 100% rename from query/hush.graphql rename to internal/graphapi/query/hush.graphql diff --git a/query/hushhistory.graphql b/internal/graphapi/query/hushhistory.graphql similarity index 100% rename from query/hushhistory.graphql rename to internal/graphapi/query/hushhistory.graphql diff --git a/query/integration.graphql b/internal/graphapi/query/integration.graphql similarity index 100% rename from query/integration.graphql rename to internal/graphapi/query/integration.graphql diff --git a/query/integrationhistory.graphql b/internal/graphapi/query/integrationhistory.graphql similarity index 100% rename from query/integrationhistory.graphql rename to internal/graphapi/query/integrationhistory.graphql diff --git a/query/internalpolicy.graphql b/internal/graphapi/query/internalpolicy.graphql similarity index 100% rename from query/internalpolicy.graphql rename to internal/graphapi/query/internalpolicy.graphql diff --git a/query/internalpolicyhistory.graphql b/internal/graphapi/query/internalpolicyhistory.graphql similarity index 100% rename from query/internalpolicyhistory.graphql rename to internal/graphapi/query/internalpolicyhistory.graphql diff --git a/query/invite.graphql b/internal/graphapi/query/invite.graphql similarity index 100% rename from query/invite.graphql rename to internal/graphapi/query/invite.graphql index 40fb4a7d..ea20af24 100644 --- a/query/invite.graphql +++ b/internal/graphapi/query/invite.graphql @@ -49,6 +49,19 @@ mutation DeleteInvite($deleteInviteId: ID!) { } } +query GetAllInvites { + invites { + edges { + node { + id + recipient + role + status + } + } + } +} + query GetInviteByID($inviteId: ID!) { invite(id: $inviteId) { expires @@ -70,19 +83,6 @@ query GetInviteByID($inviteId: ID!) { } } -query GetAllInvites { - invites { - edges { - node { - id - recipient - role - status - } - } - } -} - query InvitesByOrgID($where: InviteWhereInput) { invites(where: $where) { edges { diff --git a/query/narrative.graphql b/internal/graphapi/query/narrative.graphql similarity index 100% rename from query/narrative.graphql rename to internal/graphapi/query/narrative.graphql diff --git a/query/narrativehistory.graphql b/internal/graphapi/query/narrativehistory.graphql similarity index 100% rename from query/narrativehistory.graphql rename to internal/graphapi/query/narrativehistory.graphql diff --git a/query/notehistory.graphql b/internal/graphapi/query/notehistory.graphql similarity index 100% rename from query/notehistory.graphql rename to internal/graphapi/query/notehistory.graphql diff --git a/query/organization.graphql b/internal/graphapi/query/organization.graphql similarity index 100% rename from query/organization.graphql rename to internal/graphapi/query/organization.graphql diff --git a/query/organizationhistory.graphql b/internal/graphapi/query/organizationhistory.graphql similarity index 100% rename from query/organizationhistory.graphql rename to internal/graphapi/query/organizationhistory.graphql diff --git a/query/organizationsetting.graphql b/internal/graphapi/query/organizationsetting.graphql similarity index 100% rename from query/organizationsetting.graphql rename to internal/graphapi/query/organizationsetting.graphql diff --git a/query/organizationsettinghistory.graphql b/internal/graphapi/query/organizationsettinghistory.graphql similarity index 100% rename from query/organizationsettinghistory.graphql rename to internal/graphapi/query/organizationsettinghistory.graphql diff --git a/query/orgmembership.graphql b/internal/graphapi/query/orgmembership.graphql similarity index 100% rename from query/orgmembership.graphql rename to internal/graphapi/query/orgmembership.graphql diff --git a/query/orgmembershiphistory.graphql b/internal/graphapi/query/orgmembershiphistory.graphql similarity index 99% rename from query/orgmembershiphistory.graphql rename to internal/graphapi/query/orgmembershiphistory.graphql index 3947f215..91b70857 100644 --- a/query/orgmembershiphistory.graphql +++ b/internal/graphapi/query/orgmembershiphistory.graphql @@ -1,5 +1,3 @@ - - query GetAllOrgMembershipHistories { orgMembershipHistories { edges { diff --git a/query/orgsubscription.graphql b/internal/graphapi/query/orgsubscription.graphql similarity index 100% rename from query/orgsubscription.graphql rename to internal/graphapi/query/orgsubscription.graphql diff --git a/query/orgsubscriptionhistory.graphql b/internal/graphapi/query/orgsubscriptionhistory.graphql similarity index 100% rename from query/orgsubscriptionhistory.graphql rename to internal/graphapi/query/orgsubscriptionhistory.graphql diff --git a/query/personalaccesstoken.graphql b/internal/graphapi/query/personalaccesstoken.graphql similarity index 100% rename from query/personalaccesstoken.graphql rename to internal/graphapi/query/personalaccesstoken.graphql diff --git a/query/procedure.graphql b/internal/graphapi/query/procedure.graphql similarity index 100% rename from query/procedure.graphql rename to internal/graphapi/query/procedure.graphql diff --git a/query/procedurehistory.graphql b/internal/graphapi/query/procedurehistory.graphql similarity index 100% rename from query/procedurehistory.graphql rename to internal/graphapi/query/procedurehistory.graphql diff --git a/query/program.graphql b/internal/graphapi/query/program.graphql similarity index 100% rename from query/program.graphql rename to internal/graphapi/query/program.graphql diff --git a/query/programembership.graphql b/internal/graphapi/query/programembership.graphql similarity index 100% rename from query/programembership.graphql rename to internal/graphapi/query/programembership.graphql diff --git a/query/programhistory.graphql b/internal/graphapi/query/programhistory.graphql similarity index 100% rename from query/programhistory.graphql rename to internal/graphapi/query/programhistory.graphql diff --git a/query/programmembership.graphql b/internal/graphapi/query/programmembership.graphql similarity index 100% rename from query/programmembership.graphql rename to internal/graphapi/query/programmembership.graphql diff --git a/query/programmembershiphistory.graphql b/internal/graphapi/query/programmembershiphistory.graphql similarity index 100% rename from query/programmembershiphistory.graphql rename to internal/graphapi/query/programmembershiphistory.graphql diff --git a/query/risk.graphql b/internal/graphapi/query/risk.graphql similarity index 100% rename from query/risk.graphql rename to internal/graphapi/query/risk.graphql diff --git a/query/riskhistory.graphql b/internal/graphapi/query/riskhistory.graphql similarity index 100% rename from query/riskhistory.graphql rename to internal/graphapi/query/riskhistory.graphql diff --git a/query/search.graphql b/internal/graphapi/query/search.graphql similarity index 100% rename from query/search.graphql rename to internal/graphapi/query/search.graphql diff --git a/query/standard.graphql b/internal/graphapi/query/standard.graphql similarity index 100% rename from query/standard.graphql rename to internal/graphapi/query/standard.graphql diff --git a/query/standardhistory.graphql b/internal/graphapi/query/standardhistory.graphql similarity index 100% rename from query/standardhistory.graphql rename to internal/graphapi/query/standardhistory.graphql diff --git a/query/subcontrol.graphql b/internal/graphapi/query/subcontrol.graphql similarity index 100% rename from query/subcontrol.graphql rename to internal/graphapi/query/subcontrol.graphql diff --git a/query/subcontrolhistory.graphql b/internal/graphapi/query/subcontrolhistory.graphql similarity index 100% rename from query/subcontrolhistory.graphql rename to internal/graphapi/query/subcontrolhistory.graphql diff --git a/query/subscriber.graphql b/internal/graphapi/query/subscriber.graphql similarity index 100% rename from query/subscriber.graphql rename to internal/graphapi/query/subscriber.graphql diff --git a/query/task.graphql b/internal/graphapi/query/task.graphql similarity index 100% rename from query/task.graphql rename to internal/graphapi/query/task.graphql diff --git a/query/taskhistory.graphql b/internal/graphapi/query/taskhistory.graphql similarity index 100% rename from query/taskhistory.graphql rename to internal/graphapi/query/taskhistory.graphql diff --git a/query/template.graphql b/internal/graphapi/query/template.graphql similarity index 100% rename from query/template.graphql rename to internal/graphapi/query/template.graphql diff --git a/query/templatehistory.graphql b/internal/graphapi/query/templatehistory.graphql similarity index 100% rename from query/templatehistory.graphql rename to internal/graphapi/query/templatehistory.graphql diff --git a/query/tfasetting.graphql b/internal/graphapi/query/tfasetting.graphql similarity index 100% rename from query/tfasetting.graphql rename to internal/graphapi/query/tfasetting.graphql diff --git a/query/user.graphql b/internal/graphapi/query/user.graphql similarity index 100% rename from query/user.graphql rename to internal/graphapi/query/user.graphql diff --git a/query/userhistory.graphql b/internal/graphapi/query/userhistory.graphql similarity index 100% rename from query/userhistory.graphql rename to internal/graphapi/query/userhistory.graphql diff --git a/query/usersetting.graphql b/internal/graphapi/query/usersetting.graphql similarity index 100% rename from query/usersetting.graphql rename to internal/graphapi/query/usersetting.graphql diff --git a/query/usersettinghistory.graphql b/internal/graphapi/query/usersettinghistory.graphql similarity index 100% rename from query/usersettinghistory.graphql rename to internal/graphapi/query/usersettinghistory.graphql diff --git a/internal/graphapi/resolver.go b/internal/graphapi/resolver.go index dcca1feb..1b91b19c 100644 --- a/internal/graphapi/resolver.go +++ b/internal/graphapi/resolver.go @@ -22,6 +22,7 @@ import ( "github.com/wundergraph/graphql-go-tools/pkg/playground" ent "github.com/theopenlane/core/internal/ent/generated" + gqlgenerated "github.com/theopenlane/core/internal/graphapi/generated" "github.com/theopenlane/core/pkg/events/soiree" "github.com/theopenlane/core/pkg/objects" ) @@ -76,8 +77,8 @@ type Handler struct { // Handler returns an http handler for a graph resolver func (r *Resolver) Handler(withPlayground bool) *Handler { - srv := handler.New(NewExecutableSchema( - Config{ + srv := handler.New(gqlgenerated.NewExecutableSchema( + gqlgenerated.Config{ Resolvers: r, }, )) diff --git a/internal/graphapi/risk.resolvers.go b/internal/graphapi/risk.resolvers.go index ea0e993a..863438c7 100644 --- a/internal/graphapi/risk.resolvers.go +++ b/internal/graphapi/risk.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateRisk is the resolver for the createRisk field. -func (r *mutationResolver) CreateRisk(ctx context.Context, input generated.CreateRiskInput) (*RiskCreatePayload, error) { +func (r *mutationResolver) CreateRisk(ctx context.Context, input generated.CreateRiskInput) (*model.RiskCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, &input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateRisk(ctx context.Context, input generated.Creat return nil, parseRequestError(err, action{action: ActionCreate, object: "risk"}) } - return &RiskCreatePayload{ + return &model.RiskCreatePayload{ Risk: res, }, nil } // CreateBulkRisk is the resolver for the createBulkRisk field. -func (r *mutationResolver) CreateBulkRisk(ctx context.Context, input []*generated.CreateRiskInput) (*RiskBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkRisk(ctx context.Context, input []*generated.CreateRiskInput) (*model.RiskBulkCreatePayload, error) { return r.bulkCreateRisk(ctx, input) } // CreateBulkCSVRisk is the resolver for the createBulkCSVRisk field. -func (r *mutationResolver) CreateBulkCSVRisk(ctx context.Context, input graphql.Upload) (*RiskBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVRisk(ctx context.Context, input graphql.Upload) (*model.RiskBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateRiskInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVRisk(ctx context.Context, input graphql. } // UpdateRisk is the resolver for the updateRisk field. -func (r *mutationResolver) UpdateRisk(ctx context.Context, id string, input generated.UpdateRiskInput) (*RiskUpdatePayload, error) { +func (r *mutationResolver) UpdateRisk(ctx context.Context, id string, input generated.UpdateRiskInput) (*model.RiskUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Risk.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "risk"}) @@ -71,13 +72,13 @@ func (r *mutationResolver) UpdateRisk(ctx context.Context, id string, input gene return nil, parseRequestError(err, action{action: ActionUpdate, object: "risk"}) } - return &RiskUpdatePayload{ + return &model.RiskUpdatePayload{ Risk: res, }, nil } // DeleteRisk is the resolver for the deleteRisk field. -func (r *mutationResolver) DeleteRisk(ctx context.Context, id string) (*RiskDeletePayload, error) { +func (r *mutationResolver) DeleteRisk(ctx context.Context, id string) (*model.RiskDeletePayload, error) { if err := withTransactionalMutation(ctx).Risk.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "risk"}) } @@ -86,7 +87,7 @@ func (r *mutationResolver) DeleteRisk(ctx context.Context, id string) (*RiskDele return nil, newCascadeDeleteError(err) } - return &RiskDeletePayload{ + return &model.RiskDeletePayload{ DeletedID: id, }, nil } diff --git a/schema/actionplan.graphql b/internal/graphapi/schema/actionplan.graphql similarity index 100% rename from schema/actionplan.graphql rename to internal/graphapi/schema/actionplan.graphql diff --git a/schema/adminsearch.graphql b/internal/graphapi/schema/adminsearch.graphql similarity index 100% rename from schema/adminsearch.graphql rename to internal/graphapi/schema/adminsearch.graphql diff --git a/schema/apitoken.graphql b/internal/graphapi/schema/apitoken.graphql similarity index 100% rename from schema/apitoken.graphql rename to internal/graphapi/schema/apitoken.graphql diff --git a/schema/audit.graphql b/internal/graphapi/schema/audit.graphql similarity index 100% rename from schema/audit.graphql rename to internal/graphapi/schema/audit.graphql diff --git a/schema/contact.graphql b/internal/graphapi/schema/contact.graphql similarity index 100% rename from schema/contact.graphql rename to internal/graphapi/schema/contact.graphql diff --git a/schema/control.graphql b/internal/graphapi/schema/control.graphql similarity index 100% rename from schema/control.graphql rename to internal/graphapi/schema/control.graphql diff --git a/schema/controlobjective.graphql b/internal/graphapi/schema/controlobjective.graphql similarity index 100% rename from schema/controlobjective.graphql rename to internal/graphapi/schema/controlobjective.graphql diff --git a/schema/documentdata.graphql b/internal/graphapi/schema/documentdata.graphql similarity index 100% rename from schema/documentdata.graphql rename to internal/graphapi/schema/documentdata.graphql diff --git a/schema/ent.graphql b/internal/graphapi/schema/ent.graphql similarity index 100% rename from schema/ent.graphql rename to internal/graphapi/schema/ent.graphql diff --git a/schema/entity.graphql b/internal/graphapi/schema/entity.graphql similarity index 100% rename from schema/entity.graphql rename to internal/graphapi/schema/entity.graphql diff --git a/schema/entityextended.graphql b/internal/graphapi/schema/entityextended.graphql similarity index 100% rename from schema/entityextended.graphql rename to internal/graphapi/schema/entityextended.graphql diff --git a/schema/entitytype.graphql b/internal/graphapi/schema/entitytype.graphql similarity index 100% rename from schema/entitytype.graphql rename to internal/graphapi/schema/entitytype.graphql diff --git a/schema/event.graphql b/internal/graphapi/schema/event.graphql similarity index 100% rename from schema/event.graphql rename to internal/graphapi/schema/event.graphql diff --git a/schema/file.graphql b/internal/graphapi/schema/file.graphql similarity index 100% rename from schema/file.graphql rename to internal/graphapi/schema/file.graphql diff --git a/schema/group.graphql b/internal/graphapi/schema/group.graphql similarity index 100% rename from schema/group.graphql rename to internal/graphapi/schema/group.graphql diff --git a/schema/groupextended.graphql b/internal/graphapi/schema/groupextended.graphql similarity index 100% rename from schema/groupextended.graphql rename to internal/graphapi/schema/groupextended.graphql diff --git a/schema/groupmembership.graphql b/internal/graphapi/schema/groupmembership.graphql similarity index 100% rename from schema/groupmembership.graphql rename to internal/graphapi/schema/groupmembership.graphql diff --git a/schema/groupsetting.graphql b/internal/graphapi/schema/groupsetting.graphql similarity index 100% rename from schema/groupsetting.graphql rename to internal/graphapi/schema/groupsetting.graphql diff --git a/schema/hush.graphql b/internal/graphapi/schema/hush.graphql similarity index 100% rename from schema/hush.graphql rename to internal/graphapi/schema/hush.graphql diff --git a/schema/integration.graphql b/internal/graphapi/schema/integration.graphql similarity index 100% rename from schema/integration.graphql rename to internal/graphapi/schema/integration.graphql diff --git a/schema/internalpolicy.graphql b/internal/graphapi/schema/internalpolicy.graphql similarity index 100% rename from schema/internalpolicy.graphql rename to internal/graphapi/schema/internalpolicy.graphql diff --git a/schema/invite.graphql b/internal/graphapi/schema/invite.graphql similarity index 100% rename from schema/invite.graphql rename to internal/graphapi/schema/invite.graphql diff --git a/schema/narrative.graphql b/internal/graphapi/schema/narrative.graphql similarity index 100% rename from schema/narrative.graphql rename to internal/graphapi/schema/narrative.graphql diff --git a/schema/organization.graphql b/internal/graphapi/schema/organization.graphql similarity index 100% rename from schema/organization.graphql rename to internal/graphapi/schema/organization.graphql diff --git a/schema/organizationsetting.graphql b/internal/graphapi/schema/organizationsetting.graphql similarity index 100% rename from schema/organizationsetting.graphql rename to internal/graphapi/schema/organizationsetting.graphql diff --git a/schema/orgextended.graphql b/internal/graphapi/schema/orgextended.graphql similarity index 100% rename from schema/orgextended.graphql rename to internal/graphapi/schema/orgextended.graphql diff --git a/schema/orgmembership.graphql b/internal/graphapi/schema/orgmembership.graphql similarity index 100% rename from schema/orgmembership.graphql rename to internal/graphapi/schema/orgmembership.graphql diff --git a/schema/orgsubscription.graphql b/internal/graphapi/schema/orgsubscription.graphql similarity index 100% rename from schema/orgsubscription.graphql rename to internal/graphapi/schema/orgsubscription.graphql diff --git a/schema/personalaccesstoken.graphql b/internal/graphapi/schema/personalaccesstoken.graphql similarity index 100% rename from schema/personalaccesstoken.graphql rename to internal/graphapi/schema/personalaccesstoken.graphql diff --git a/schema/procedure.graphql b/internal/graphapi/schema/procedure.graphql similarity index 100% rename from schema/procedure.graphql rename to internal/graphapi/schema/procedure.graphql diff --git a/schema/program.graphql b/internal/graphapi/schema/program.graphql similarity index 100% rename from schema/program.graphql rename to internal/graphapi/schema/program.graphql diff --git a/schema/programextended.graphql b/internal/graphapi/schema/programextended.graphql similarity index 100% rename from schema/programextended.graphql rename to internal/graphapi/schema/programextended.graphql diff --git a/schema/programmembership.graphql b/internal/graphapi/schema/programmembership.graphql similarity index 100% rename from schema/programmembership.graphql rename to internal/graphapi/schema/programmembership.graphql diff --git a/schema/risk.graphql b/internal/graphapi/schema/risk.graphql similarity index 100% rename from schema/risk.graphql rename to internal/graphapi/schema/risk.graphql diff --git a/schema/scalars.graphql b/internal/graphapi/schema/scalars.graphql similarity index 100% rename from schema/scalars.graphql rename to internal/graphapi/schema/scalars.graphql diff --git a/schema/search.graphql b/internal/graphapi/schema/search.graphql similarity index 100% rename from schema/search.graphql rename to internal/graphapi/schema/search.graphql diff --git a/schema/standard.graphql b/internal/graphapi/schema/standard.graphql similarity index 100% rename from schema/standard.graphql rename to internal/graphapi/schema/standard.graphql diff --git a/schema/subcontrol.graphql b/internal/graphapi/schema/subcontrol.graphql similarity index 100% rename from schema/subcontrol.graphql rename to internal/graphapi/schema/subcontrol.graphql diff --git a/schema/subscriber.graphql b/internal/graphapi/schema/subscriber.graphql similarity index 100% rename from schema/subscriber.graphql rename to internal/graphapi/schema/subscriber.graphql diff --git a/schema/task.graphql b/internal/graphapi/schema/task.graphql similarity index 100% rename from schema/task.graphql rename to internal/graphapi/schema/task.graphql diff --git a/schema/template.graphql b/internal/graphapi/schema/template.graphql similarity index 100% rename from schema/template.graphql rename to internal/graphapi/schema/template.graphql diff --git a/schema/tfasetting.graphql b/internal/graphapi/schema/tfasetting.graphql similarity index 100% rename from schema/tfasetting.graphql rename to internal/graphapi/schema/tfasetting.graphql diff --git a/schema/user.graphql b/internal/graphapi/schema/user.graphql similarity index 100% rename from schema/user.graphql rename to internal/graphapi/schema/user.graphql diff --git a/schema/usersetting.graphql b/internal/graphapi/schema/usersetting.graphql similarity index 100% rename from schema/usersetting.graphql rename to internal/graphapi/schema/usersetting.graphql diff --git a/internal/graphapi/search.resolvers.go b/internal/graphapi/search.resolvers.go index 41afbe3b..6281a730 100644 --- a/internal/graphapi/search.resolvers.go +++ b/internal/graphapi/search.resolvers.go @@ -7,10 +7,11 @@ import ( "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // Search is the resolver for the search field. -func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResultConnection, error) { +func (r *queryResolver) Search(ctx context.Context, query string) (*model.SearchResultConnection, error) { if len(query) < 3 { return nil, ErrSearchQueryTooShort } @@ -270,102 +271,102 @@ func (r *queryResolver) Search(ctx context.Context, query string) (*SearchResult } // return the results - return &SearchResultConnection{ - Nodes: []SearchResult{ - APITokenSearchResult{ + return &model.SearchResultConnection{ + Nodes: []model.SearchResult{ + model.APITokenSearchResult{ APITokens: apitokenResults, }, - ActionPlanSearchResult{ + model.ActionPlanSearchResult{ ActionPlans: actionplanResults, }, - ContactSearchResult{ + model.ContactSearchResult{ Contacts: contactResults, }, - ControlSearchResult{ + model.ControlSearchResult{ Controls: controlResults, }, - ControlObjectiveSearchResult{ + model.ControlObjectiveSearchResult{ ControlObjectives: controlobjectiveResults, }, - DocumentDataSearchResult{ + model.DocumentDataSearchResult{ DocumentData: documentdataResults, }, - EntitySearchResult{ + model.EntitySearchResult{ Entities: entityResults, }, - EntityTypeSearchResult{ + model.EntityTypeSearchResult{ EntityTypes: entitytypeResults, }, - EventSearchResult{ + model.EventSearchResult{ Events: eventResults, }, - FileSearchResult{ + model.FileSearchResult{ Files: fileResults, }, - GroupSearchResult{ + model.GroupSearchResult{ Groups: groupResults, }, - GroupSettingSearchResult{ + model.GroupSettingSearchResult{ GroupSettings: groupsettingResults, }, - IntegrationSearchResult{ + model.IntegrationSearchResult{ Integrations: integrationResults, }, - InternalPolicySearchResult{ + model.InternalPolicySearchResult{ InternalPolicies: internalpolicyResults, }, - NarrativeSearchResult{ + model.NarrativeSearchResult{ Narratives: narrativeResults, }, - OrgSubscriptionSearchResult{ + model.OrgSubscriptionSearchResult{ OrgSubscriptions: orgsubscriptionResults, }, - OrganizationSearchResult{ + model.OrganizationSearchResult{ Organizations: organizationResults, }, - OrganizationSettingSearchResult{ + model.OrganizationSettingSearchResult{ OrganizationSettings: organizationsettingResults, }, - PersonalAccessTokenSearchResult{ + model.PersonalAccessTokenSearchResult{ PersonalAccessTokens: personalaccesstokenResults, }, - ProcedureSearchResult{ + model.ProcedureSearchResult{ Procedures: procedureResults, }, - ProgramSearchResult{ + model.ProgramSearchResult{ Programs: programResults, }, - RiskSearchResult{ + model.RiskSearchResult{ Risks: riskResults, }, - StandardSearchResult{ + model.StandardSearchResult{ Standards: standardResults, }, - SubcontrolSearchResult{ + model.SubcontrolSearchResult{ Subcontrols: subcontrolResults, }, - SubscriberSearchResult{ + model.SubscriberSearchResult{ Subscribers: subscriberResults, }, - TFASettingSearchResult{ + model.TFASettingSearchResult{ TFASettings: tfasettingResults, }, - TaskSearchResult{ + model.TaskSearchResult{ Tasks: taskResults, }, - TemplateSearchResult{ + model.TemplateSearchResult{ Templates: templateResults, }, - UserSearchResult{ + model.UserSearchResult{ Users: userResults, }, - UserSettingSearchResult{ + model.UserSettingSearchResult{ UserSettings: usersettingResults, }, }, }, nil } -func (r *queryResolver) APITokenSearch(ctx context.Context, query string) (*APITokenSearchResult, error) { +func (r *queryResolver) APITokenSearch(ctx context.Context, query string) (*model.APITokenSearchResult, error) { apitokenResults, err := searchAPITokens(ctx, query) if err != nil { @@ -373,11 +374,11 @@ func (r *queryResolver) APITokenSearch(ctx context.Context, query string) (*APIT } // return the results - return &APITokenSearchResult{ + return &model.APITokenSearchResult{ APITokens: apitokenResults, }, nil } -func (r *queryResolver) ActionPlanSearch(ctx context.Context, query string) (*ActionPlanSearchResult, error) { +func (r *queryResolver) ActionPlanSearch(ctx context.Context, query string) (*model.ActionPlanSearchResult, error) { actionplanResults, err := searchActionPlans(ctx, query) if err != nil { @@ -385,11 +386,11 @@ func (r *queryResolver) ActionPlanSearch(ctx context.Context, query string) (*Ac } // return the results - return &ActionPlanSearchResult{ + return &model.ActionPlanSearchResult{ ActionPlans: actionplanResults, }, nil } -func (r *queryResolver) ContactSearch(ctx context.Context, query string) (*ContactSearchResult, error) { +func (r *queryResolver) ContactSearch(ctx context.Context, query string) (*model.ContactSearchResult, error) { contactResults, err := searchContacts(ctx, query) if err != nil { @@ -397,11 +398,11 @@ func (r *queryResolver) ContactSearch(ctx context.Context, query string) (*Conta } // return the results - return &ContactSearchResult{ + return &model.ContactSearchResult{ Contacts: contactResults, }, nil } -func (r *queryResolver) ControlSearch(ctx context.Context, query string) (*ControlSearchResult, error) { +func (r *queryResolver) ControlSearch(ctx context.Context, query string) (*model.ControlSearchResult, error) { controlResults, err := searchControls(ctx, query) if err != nil { @@ -409,11 +410,11 @@ func (r *queryResolver) ControlSearch(ctx context.Context, query string) (*Contr } // return the results - return &ControlSearchResult{ + return &model.ControlSearchResult{ Controls: controlResults, }, nil } -func (r *queryResolver) ControlObjectiveSearch(ctx context.Context, query string) (*ControlObjectiveSearchResult, error) { +func (r *queryResolver) ControlObjectiveSearch(ctx context.Context, query string) (*model.ControlObjectiveSearchResult, error) { controlobjectiveResults, err := searchControlObjectives(ctx, query) if err != nil { @@ -421,11 +422,11 @@ func (r *queryResolver) ControlObjectiveSearch(ctx context.Context, query string } // return the results - return &ControlObjectiveSearchResult{ + return &model.ControlObjectiveSearchResult{ ControlObjectives: controlobjectiveResults, }, nil } -func (r *queryResolver) DocumentDataSearch(ctx context.Context, query string) (*DocumentDataSearchResult, error) { +func (r *queryResolver) DocumentDataSearch(ctx context.Context, query string) (*model.DocumentDataSearchResult, error) { documentdataResults, err := searchDocumentData(ctx, query) if err != nil { @@ -433,11 +434,11 @@ func (r *queryResolver) DocumentDataSearch(ctx context.Context, query string) (* } // return the results - return &DocumentDataSearchResult{ + return &model.DocumentDataSearchResult{ DocumentData: documentdataResults, }, nil } -func (r *queryResolver) EntitySearch(ctx context.Context, query string) (*EntitySearchResult, error) { +func (r *queryResolver) EntitySearch(ctx context.Context, query string) (*model.EntitySearchResult, error) { entityResults, err := searchEntities(ctx, query) if err != nil { @@ -445,11 +446,11 @@ func (r *queryResolver) EntitySearch(ctx context.Context, query string) (*Entity } // return the results - return &EntitySearchResult{ + return &model.EntitySearchResult{ Entities: entityResults, }, nil } -func (r *queryResolver) EntityTypeSearch(ctx context.Context, query string) (*EntityTypeSearchResult, error) { +func (r *queryResolver) EntityTypeSearch(ctx context.Context, query string) (*model.EntityTypeSearchResult, error) { entitytypeResults, err := searchEntityTypes(ctx, query) if err != nil { @@ -457,11 +458,11 @@ func (r *queryResolver) EntityTypeSearch(ctx context.Context, query string) (*En } // return the results - return &EntityTypeSearchResult{ + return &model.EntityTypeSearchResult{ EntityTypes: entitytypeResults, }, nil } -func (r *queryResolver) EventSearch(ctx context.Context, query string) (*EventSearchResult, error) { +func (r *queryResolver) EventSearch(ctx context.Context, query string) (*model.EventSearchResult, error) { eventResults, err := searchEvents(ctx, query) if err != nil { @@ -469,11 +470,11 @@ func (r *queryResolver) EventSearch(ctx context.Context, query string) (*EventSe } // return the results - return &EventSearchResult{ + return &model.EventSearchResult{ Events: eventResults, }, nil } -func (r *queryResolver) FileSearch(ctx context.Context, query string) (*FileSearchResult, error) { +func (r *queryResolver) FileSearch(ctx context.Context, query string) (*model.FileSearchResult, error) { fileResults, err := searchFiles(ctx, query) if err != nil { @@ -481,11 +482,11 @@ func (r *queryResolver) FileSearch(ctx context.Context, query string) (*FileSear } // return the results - return &FileSearchResult{ + return &model.FileSearchResult{ Files: fileResults, }, nil } -func (r *queryResolver) GroupSearch(ctx context.Context, query string) (*GroupSearchResult, error) { +func (r *queryResolver) GroupSearch(ctx context.Context, query string) (*model.GroupSearchResult, error) { groupResults, err := searchGroups(ctx, query) if err != nil { @@ -493,11 +494,11 @@ func (r *queryResolver) GroupSearch(ctx context.Context, query string) (*GroupSe } // return the results - return &GroupSearchResult{ + return &model.GroupSearchResult{ Groups: groupResults, }, nil } -func (r *queryResolver) GroupSettingSearch(ctx context.Context, query string) (*GroupSettingSearchResult, error) { +func (r *queryResolver) GroupSettingSearch(ctx context.Context, query string) (*model.GroupSettingSearchResult, error) { groupsettingResults, err := searchGroupSettings(ctx, query) if err != nil { @@ -505,11 +506,11 @@ func (r *queryResolver) GroupSettingSearch(ctx context.Context, query string) (* } // return the results - return &GroupSettingSearchResult{ + return &model.GroupSettingSearchResult{ GroupSettings: groupsettingResults, }, nil } -func (r *queryResolver) IntegrationSearch(ctx context.Context, query string) (*IntegrationSearchResult, error) { +func (r *queryResolver) IntegrationSearch(ctx context.Context, query string) (*model.IntegrationSearchResult, error) { integrationResults, err := searchIntegrations(ctx, query) if err != nil { @@ -517,11 +518,11 @@ func (r *queryResolver) IntegrationSearch(ctx context.Context, query string) (*I } // return the results - return &IntegrationSearchResult{ + return &model.IntegrationSearchResult{ Integrations: integrationResults, }, nil } -func (r *queryResolver) InternalPolicySearch(ctx context.Context, query string) (*InternalPolicySearchResult, error) { +func (r *queryResolver) InternalPolicySearch(ctx context.Context, query string) (*model.InternalPolicySearchResult, error) { internalpolicyResults, err := searchInternalPolicies(ctx, query) if err != nil { @@ -529,11 +530,11 @@ func (r *queryResolver) InternalPolicySearch(ctx context.Context, query string) } // return the results - return &InternalPolicySearchResult{ + return &model.InternalPolicySearchResult{ InternalPolicies: internalpolicyResults, }, nil } -func (r *queryResolver) NarrativeSearch(ctx context.Context, query string) (*NarrativeSearchResult, error) { +func (r *queryResolver) NarrativeSearch(ctx context.Context, query string) (*model.NarrativeSearchResult, error) { narrativeResults, err := searchNarratives(ctx, query) if err != nil { @@ -541,11 +542,11 @@ func (r *queryResolver) NarrativeSearch(ctx context.Context, query string) (*Nar } // return the results - return &NarrativeSearchResult{ + return &model.NarrativeSearchResult{ Narratives: narrativeResults, }, nil } -func (r *queryResolver) OrgSubscriptionSearch(ctx context.Context, query string) (*OrgSubscriptionSearchResult, error) { +func (r *queryResolver) OrgSubscriptionSearch(ctx context.Context, query string) (*model.OrgSubscriptionSearchResult, error) { orgsubscriptionResults, err := searchOrgSubscriptions(ctx, query) if err != nil { @@ -553,11 +554,11 @@ func (r *queryResolver) OrgSubscriptionSearch(ctx context.Context, query string) } // return the results - return &OrgSubscriptionSearchResult{ + return &model.OrgSubscriptionSearchResult{ OrgSubscriptions: orgsubscriptionResults, }, nil } -func (r *queryResolver) OrganizationSearch(ctx context.Context, query string) (*OrganizationSearchResult, error) { +func (r *queryResolver) OrganizationSearch(ctx context.Context, query string) (*model.OrganizationSearchResult, error) { organizationResults, err := searchOrganizations(ctx, query) if err != nil { @@ -565,11 +566,11 @@ func (r *queryResolver) OrganizationSearch(ctx context.Context, query string) (* } // return the results - return &OrganizationSearchResult{ + return &model.OrganizationSearchResult{ Organizations: organizationResults, }, nil } -func (r *queryResolver) OrganizationSettingSearch(ctx context.Context, query string) (*OrganizationSettingSearchResult, error) { +func (r *queryResolver) OrganizationSettingSearch(ctx context.Context, query string) (*model.OrganizationSettingSearchResult, error) { organizationsettingResults, err := searchOrganizationSettings(ctx, query) if err != nil { @@ -577,11 +578,11 @@ func (r *queryResolver) OrganizationSettingSearch(ctx context.Context, query str } // return the results - return &OrganizationSettingSearchResult{ + return &model.OrganizationSettingSearchResult{ OrganizationSettings: organizationsettingResults, }, nil } -func (r *queryResolver) PersonalAccessTokenSearch(ctx context.Context, query string) (*PersonalAccessTokenSearchResult, error) { +func (r *queryResolver) PersonalAccessTokenSearch(ctx context.Context, query string) (*model.PersonalAccessTokenSearchResult, error) { personalaccesstokenResults, err := searchPersonalAccessTokens(ctx, query) if err != nil { @@ -589,11 +590,11 @@ func (r *queryResolver) PersonalAccessTokenSearch(ctx context.Context, query str } // return the results - return &PersonalAccessTokenSearchResult{ + return &model.PersonalAccessTokenSearchResult{ PersonalAccessTokens: personalaccesstokenResults, }, nil } -func (r *queryResolver) ProcedureSearch(ctx context.Context, query string) (*ProcedureSearchResult, error) { +func (r *queryResolver) ProcedureSearch(ctx context.Context, query string) (*model.ProcedureSearchResult, error) { procedureResults, err := searchProcedures(ctx, query) if err != nil { @@ -601,11 +602,11 @@ func (r *queryResolver) ProcedureSearch(ctx context.Context, query string) (*Pro } // return the results - return &ProcedureSearchResult{ + return &model.ProcedureSearchResult{ Procedures: procedureResults, }, nil } -func (r *queryResolver) ProgramSearch(ctx context.Context, query string) (*ProgramSearchResult, error) { +func (r *queryResolver) ProgramSearch(ctx context.Context, query string) (*model.ProgramSearchResult, error) { programResults, err := searchPrograms(ctx, query) if err != nil { @@ -613,11 +614,11 @@ func (r *queryResolver) ProgramSearch(ctx context.Context, query string) (*Progr } // return the results - return &ProgramSearchResult{ + return &model.ProgramSearchResult{ Programs: programResults, }, nil } -func (r *queryResolver) RiskSearch(ctx context.Context, query string) (*RiskSearchResult, error) { +func (r *queryResolver) RiskSearch(ctx context.Context, query string) (*model.RiskSearchResult, error) { riskResults, err := searchRisks(ctx, query) if err != nil { @@ -625,11 +626,11 @@ func (r *queryResolver) RiskSearch(ctx context.Context, query string) (*RiskSear } // return the results - return &RiskSearchResult{ + return &model.RiskSearchResult{ Risks: riskResults, }, nil } -func (r *queryResolver) StandardSearch(ctx context.Context, query string) (*StandardSearchResult, error) { +func (r *queryResolver) StandardSearch(ctx context.Context, query string) (*model.StandardSearchResult, error) { standardResults, err := searchStandards(ctx, query) if err != nil { @@ -637,11 +638,11 @@ func (r *queryResolver) StandardSearch(ctx context.Context, query string) (*Stan } // return the results - return &StandardSearchResult{ + return &model.StandardSearchResult{ Standards: standardResults, }, nil } -func (r *queryResolver) SubcontrolSearch(ctx context.Context, query string) (*SubcontrolSearchResult, error) { +func (r *queryResolver) SubcontrolSearch(ctx context.Context, query string) (*model.SubcontrolSearchResult, error) { subcontrolResults, err := searchSubcontrols(ctx, query) if err != nil { @@ -649,11 +650,11 @@ func (r *queryResolver) SubcontrolSearch(ctx context.Context, query string) (*Su } // return the results - return &SubcontrolSearchResult{ + return &model.SubcontrolSearchResult{ Subcontrols: subcontrolResults, }, nil } -func (r *queryResolver) SubscriberSearch(ctx context.Context, query string) (*SubscriberSearchResult, error) { +func (r *queryResolver) SubscriberSearch(ctx context.Context, query string) (*model.SubscriberSearchResult, error) { subscriberResults, err := searchSubscribers(ctx, query) if err != nil { @@ -661,11 +662,11 @@ func (r *queryResolver) SubscriberSearch(ctx context.Context, query string) (*Su } // return the results - return &SubscriberSearchResult{ + return &model.SubscriberSearchResult{ Subscribers: subscriberResults, }, nil } -func (r *queryResolver) TFASettingSearch(ctx context.Context, query string) (*TFASettingSearchResult, error) { +func (r *queryResolver) TFASettingSearch(ctx context.Context, query string) (*model.TFASettingSearchResult, error) { tfasettingResults, err := searchTFASettings(ctx, query) if err != nil { @@ -673,11 +674,11 @@ func (r *queryResolver) TFASettingSearch(ctx context.Context, query string) (*TF } // return the results - return &TFASettingSearchResult{ + return &model.TFASettingSearchResult{ TFASettings: tfasettingResults, }, nil } -func (r *queryResolver) TaskSearch(ctx context.Context, query string) (*TaskSearchResult, error) { +func (r *queryResolver) TaskSearch(ctx context.Context, query string) (*model.TaskSearchResult, error) { taskResults, err := searchTasks(ctx, query) if err != nil { @@ -685,11 +686,11 @@ func (r *queryResolver) TaskSearch(ctx context.Context, query string) (*TaskSear } // return the results - return &TaskSearchResult{ + return &model.TaskSearchResult{ Tasks: taskResults, }, nil } -func (r *queryResolver) TemplateSearch(ctx context.Context, query string) (*TemplateSearchResult, error) { +func (r *queryResolver) TemplateSearch(ctx context.Context, query string) (*model.TemplateSearchResult, error) { templateResults, err := searchTemplates(ctx, query) if err != nil { @@ -697,11 +698,11 @@ func (r *queryResolver) TemplateSearch(ctx context.Context, query string) (*Temp } // return the results - return &TemplateSearchResult{ + return &model.TemplateSearchResult{ Templates: templateResults, }, nil } -func (r *queryResolver) UserSearch(ctx context.Context, query string) (*UserSearchResult, error) { +func (r *queryResolver) UserSearch(ctx context.Context, query string) (*model.UserSearchResult, error) { userResults, err := searchUsers(ctx, query) if err != nil { @@ -709,11 +710,11 @@ func (r *queryResolver) UserSearch(ctx context.Context, query string) (*UserSear } // return the results - return &UserSearchResult{ + return &model.UserSearchResult{ Users: userResults, }, nil } -func (r *queryResolver) UserSettingSearch(ctx context.Context, query string) (*UserSettingSearchResult, error) { +func (r *queryResolver) UserSettingSearch(ctx context.Context, query string) (*model.UserSettingSearchResult, error) { usersettingResults, err := searchUserSettings(ctx, query) if err != nil { @@ -721,7 +722,7 @@ func (r *queryResolver) UserSettingSearch(ctx context.Context, query string) (*U } // return the results - return &UserSettingSearchResult{ + return &model.UserSettingSearchResult{ UserSettings: usersettingResults, }, nil } diff --git a/internal/graphapi/standard.resolvers.go b/internal/graphapi/standard.resolvers.go index 610fea70..ece85717 100644 --- a/internal/graphapi/standard.resolvers.go +++ b/internal/graphapi/standard.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateStandard is the resolver for the createStandard field. -func (r *mutationResolver) CreateStandard(ctx context.Context, input generated.CreateStandardInput) (*StandardCreatePayload, error) { +func (r *mutationResolver) CreateStandard(ctx context.Context, input generated.CreateStandardInput) (*model.StandardCreatePayload, error) { res, err := withTransactionalMutation(ctx).Standard.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "standard"}) } - return &StandardCreatePayload{ + return &model.StandardCreatePayload{ Standard: res, }, nil } // CreateBulkStandard is the resolver for the createBulkStandard field. -func (r *mutationResolver) CreateBulkStandard(ctx context.Context, input []*generated.CreateStandardInput) (*StandardBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkStandard(ctx context.Context, input []*generated.CreateStandardInput) (*model.StandardBulkCreatePayload, error) { return r.bulkCreateStandard(ctx, input) } // CreateBulkCSVStandard is the resolver for the createBulkCSVStandard field. -func (r *mutationResolver) CreateBulkCSVStandard(ctx context.Context, input graphql.Upload) (*StandardBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVStandard(ctx context.Context, input graphql.Upload) (*model.StandardBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateStandardInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVStandard(ctx context.Context, input grap } // UpdateStandard is the resolver for the updateStandard field. -func (r *mutationResolver) UpdateStandard(ctx context.Context, id string, input generated.UpdateStandardInput) (*StandardUpdatePayload, error) { +func (r *mutationResolver) UpdateStandard(ctx context.Context, id string, input generated.UpdateStandardInput) (*model.StandardUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Standard.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "standard"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateStandard(ctx context.Context, id string, input return nil, parseRequestError(err, action{action: ActionUpdate, object: "standard"}) } - return &StandardUpdatePayload{ + return &model.StandardUpdatePayload{ Standard: res, }, nil } // DeleteStandard is the resolver for the deleteStandard field. -func (r *mutationResolver) DeleteStandard(ctx context.Context, id string) (*StandardDeletePayload, error) { +func (r *mutationResolver) DeleteStandard(ctx context.Context, id string) (*model.StandardDeletePayload, error) { if err := withTransactionalMutation(ctx).Standard.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "standard"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteStandard(ctx context.Context, id string) (*Stan return nil, newCascadeDeleteError(err) } - return &StandardDeletePayload{ + return &model.StandardDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/subcontrol.resolvers.go b/internal/graphapi/subcontrol.resolvers.go index 626627c3..5e423b14 100644 --- a/internal/graphapi/subcontrol.resolvers.go +++ b/internal/graphapi/subcontrol.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateSubcontrol is the resolver for the createSubcontrol field. -func (r *mutationResolver) CreateSubcontrol(ctx context.Context, input generated.CreateSubcontrolInput) (*SubcontrolCreatePayload, error) { +func (r *mutationResolver) CreateSubcontrol(ctx context.Context, input generated.CreateSubcontrolInput) (*model.SubcontrolCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, &input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,18 +28,18 @@ func (r *mutationResolver) CreateSubcontrol(ctx context.Context, input generated return nil, parseRequestError(err, action{action: ActionCreate, object: "subcontrol"}) } - return &SubcontrolCreatePayload{ + return &model.SubcontrolCreatePayload{ Subcontrol: res, }, nil } // CreateBulkSubcontrol is the resolver for the createBulkSubcontrol field. -func (r *mutationResolver) CreateBulkSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*SubcontrolBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkSubcontrol(ctx context.Context, input []*generated.CreateSubcontrolInput) (*model.SubcontrolBulkCreatePayload, error) { return r.bulkCreateSubcontrol(ctx, input) } // CreateBulkCSVSubcontrol is the resolver for the createBulkCSVSubcontrol field. -func (r *mutationResolver) CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload) (*SubcontrolBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVSubcontrol(ctx context.Context, input graphql.Upload) (*model.SubcontrolBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateSubcontrolInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -50,7 +51,7 @@ func (r *mutationResolver) CreateBulkCSVSubcontrol(ctx context.Context, input gr } // UpdateSubcontrol is the resolver for the updateSubcontrol field. -func (r *mutationResolver) UpdateSubcontrol(ctx context.Context, id string, input generated.UpdateSubcontrolInput) (*SubcontrolUpdatePayload, error) { +func (r *mutationResolver) UpdateSubcontrol(ctx context.Context, id string, input generated.UpdateSubcontrolInput) (*model.SubcontrolUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Subcontrol.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "subcontrol"}) @@ -71,13 +72,13 @@ func (r *mutationResolver) UpdateSubcontrol(ctx context.Context, id string, inpu return nil, parseRequestError(err, action{action: ActionUpdate, object: "subcontrol"}) } - return &SubcontrolUpdatePayload{ + return &model.SubcontrolUpdatePayload{ Subcontrol: res, }, nil } // DeleteSubcontrol is the resolver for the deleteSubcontrol field. -func (r *mutationResolver) DeleteSubcontrol(ctx context.Context, id string) (*SubcontrolDeletePayload, error) { +func (r *mutationResolver) DeleteSubcontrol(ctx context.Context, id string) (*model.SubcontrolDeletePayload, error) { if err := withTransactionalMutation(ctx).Subcontrol.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "subcontrol"}) } @@ -86,7 +87,7 @@ func (r *mutationResolver) DeleteSubcontrol(ctx context.Context, id string) (*Su return nil, newCascadeDeleteError(err) } - return &SubcontrolDeletePayload{ + return &model.SubcontrolDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/subscriber.resolvers.go b/internal/graphapi/subscriber.resolvers.go index 9b1c7c0e..35ed80e7 100644 --- a/internal/graphapi/subscriber.resolvers.go +++ b/internal/graphapi/subscriber.resolvers.go @@ -11,11 +11,12 @@ import ( "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/subscriber" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateSubscriber is the resolver for the createSubscriber field. -func (r *mutationResolver) CreateSubscriber(ctx context.Context, input generated.CreateSubscriberInput) (*SubscriberCreatePayload, error) { +func (r *mutationResolver) CreateSubscriber(ctx context.Context, input generated.CreateSubscriberInput) (*model.SubscriberCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -27,16 +28,16 @@ func (r *mutationResolver) CreateSubscriber(ctx context.Context, input generated return nil, parseRequestError(err, action{action: ActionCreate, object: "subscriber"}) } - return &SubscriberCreatePayload{Subscriber: sub}, nil + return &model.SubscriberCreatePayload{Subscriber: sub}, nil } // CreateBulkSubscriber is the resolver for the createBulkSubscriber field. -func (r *mutationResolver) CreateBulkSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*SubscriberBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkSubscriber(ctx context.Context, input []*generated.CreateSubscriberInput) (*model.SubscriberBulkCreatePayload, error) { return r.bulkCreateSubscriber(ctx, input) } // CreateBulkCSVSubscriber is the resolver for the createBulkCSVSubscriber field. -func (r *mutationResolver) CreateBulkCSVSubscriber(ctx context.Context, input graphql.Upload) (*SubscriberBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVSubscriber(ctx context.Context, input graphql.Upload) (*model.SubscriberBulkCreatePayload, error) { subscriberInput, err := unmarshalBulkData[generated.CreateSubscriberInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -48,7 +49,7 @@ func (r *mutationResolver) CreateBulkCSVSubscriber(ctx context.Context, input gr } // UpdateSubscriber is the resolver for the updateSubscriber field. -func (r *mutationResolver) UpdateSubscriber(ctx context.Context, email string, input generated.UpdateSubscriberInput) (*SubscriberUpdatePayload, error) { +func (r *mutationResolver) UpdateSubscriber(ctx context.Context, email string, input generated.UpdateSubscriberInput) (*model.SubscriberUpdatePayload, error) { subscriber, err := withTransactionalMutation(ctx).Subscriber.Query(). Where( subscriber.EmailEQ(email), @@ -67,11 +68,11 @@ func (r *mutationResolver) UpdateSubscriber(ctx context.Context, email string, i return nil, parseRequestError(err, action{action: ActionUpdate, object: "subscriber"}) } - return &SubscriberUpdatePayload{Subscriber: subscriber}, nil + return &model.SubscriberUpdatePayload{Subscriber: subscriber}, nil } // DeleteSubscriber is the resolver for the deleteSubscriber field. -func (r *mutationResolver) DeleteSubscriber(ctx context.Context, email string, ownerID *string) (*SubscriberDeletePayload, error) { +func (r *mutationResolver) DeleteSubscriber(ctx context.Context, email string, ownerID *string) (*model.SubscriberDeletePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, ownerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -90,7 +91,7 @@ func (r *mutationResolver) DeleteSubscriber(ctx context.Context, email string, o return nil, newNotFoundError("subscriber") } - return &SubscriberDeletePayload{Email: email}, nil + return &model.SubscriberDeletePayload{Email: email}, nil } // Subscriber is the resolver for the subscriber field. diff --git a/internal/graphapi/task.resolvers.go b/internal/graphapi/task.resolvers.go index 9ee59521..3cabe945 100644 --- a/internal/graphapi/task.resolvers.go +++ b/internal/graphapi/task.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateTask is the resolver for the createTask field. -func (r *mutationResolver) CreateTask(ctx context.Context, input generated.CreateTaskInput) (*TaskCreatePayload, error) { +func (r *mutationResolver) CreateTask(ctx context.Context, input generated.CreateTaskInput) (*model.TaskCreatePayload, error) { res, err := withTransactionalMutation(ctx).Task.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "task"}) } - return &TaskCreatePayload{ + return &model.TaskCreatePayload{ Task: res, }, nil } // CreateBulkTask is the resolver for the createBulkTask field. -func (r *mutationResolver) CreateBulkTask(ctx context.Context, input []*generated.CreateTaskInput) (*TaskBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkTask(ctx context.Context, input []*generated.CreateTaskInput) (*model.TaskBulkCreatePayload, error) { return r.bulkCreateTask(ctx, input) } // CreateBulkCSVTask is the resolver for the createBulkCSVTask field. -func (r *mutationResolver) CreateBulkCSVTask(ctx context.Context, input graphql.Upload) (*TaskBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVTask(ctx context.Context, input graphql.Upload) (*model.TaskBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateTaskInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVTask(ctx context.Context, input graphql. } // UpdateTask is the resolver for the updateTask field. -func (r *mutationResolver) UpdateTask(ctx context.Context, id string, input generated.UpdateTaskInput) (*TaskUpdatePayload, error) { +func (r *mutationResolver) UpdateTask(ctx context.Context, id string, input generated.UpdateTaskInput) (*model.TaskUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Task.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "task"}) @@ -56,13 +57,13 @@ func (r *mutationResolver) UpdateTask(ctx context.Context, id string, input gene return nil, parseRequestError(err, action{action: ActionUpdate, object: "task"}) } - return &TaskUpdatePayload{ + return &model.TaskUpdatePayload{ Task: res, }, nil } // DeleteTask is the resolver for the deleteTask field. -func (r *mutationResolver) DeleteTask(ctx context.Context, id string) (*TaskDeletePayload, error) { +func (r *mutationResolver) DeleteTask(ctx context.Context, id string) (*model.TaskDeletePayload, error) { if err := withTransactionalMutation(ctx).Task.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "task"}) } @@ -71,7 +72,7 @@ func (r *mutationResolver) DeleteTask(ctx context.Context, id string) (*TaskDele return nil, newCascadeDeleteError(err) } - return &TaskDeletePayload{ + return &model.TaskDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/template.resolvers.go b/internal/graphapi/template.resolvers.go index 3a9f574c..14472708 100644 --- a/internal/graphapi/template.resolvers.go +++ b/internal/graphapi/template.resolvers.go @@ -10,11 +10,12 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/utils/rout" ) // CreateTemplate is the resolver for the createTemplate field. -func (r *mutationResolver) CreateTemplate(ctx context.Context, input generated.CreateTemplateInput) (*TemplateCreatePayload, error) { +func (r *mutationResolver) CreateTemplate(ctx context.Context, input generated.CreateTemplateInput) (*model.TemplateCreatePayload, error) { // set the organization in the auth context if its not done for us if err := setOrganizationInAuthContext(ctx, input.OwnerID); err != nil { log.Error().Err(err).Msg("failed to set organization in auth context") @@ -26,18 +27,18 @@ func (r *mutationResolver) CreateTemplate(ctx context.Context, input generated.C return nil, parseRequestError(err, action{action: ActionCreate, object: "template"}) } - return &TemplateCreatePayload{ + return &model.TemplateCreatePayload{ Template: res, }, nil } // CreateBulkTemplate is the resolver for the createBulkTemplate field. -func (r *mutationResolver) CreateBulkTemplate(ctx context.Context, input []*generated.CreateTemplateInput) (*TemplateBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkTemplate(ctx context.Context, input []*generated.CreateTemplateInput) (*model.TemplateBulkCreatePayload, error) { return r.bulkCreateTemplate(ctx, input) } // CreateBulkCSVTemplate is the resolver for the createBulkCSVTemplate field. -func (r *mutationResolver) CreateBulkCSVTemplate(ctx context.Context, input graphql.Upload) (*TemplateBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVTemplate(ctx context.Context, input graphql.Upload) (*model.TemplateBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateTemplateInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -49,7 +50,7 @@ func (r *mutationResolver) CreateBulkCSVTemplate(ctx context.Context, input grap } // UpdateTemplate is the resolver for the updateTemplate field. -func (r *mutationResolver) UpdateTemplate(ctx context.Context, id string, input generated.UpdateTemplateInput) (*TemplateUpdatePayload, error) { +func (r *mutationResolver) UpdateTemplate(ctx context.Context, id string, input generated.UpdateTemplateInput) (*model.TemplateUpdatePayload, error) { res, err := withTransactionalMutation(ctx).Template.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "template"}) @@ -68,13 +69,13 @@ func (r *mutationResolver) UpdateTemplate(ctx context.Context, id string, input return nil, parseRequestError(err, action{action: ActionUpdate, object: "template"}) } - return &TemplateUpdatePayload{ + return &model.TemplateUpdatePayload{ Template: res, }, nil } // DeleteTemplate is the resolver for the deleteTemplate field. -func (r *mutationResolver) DeleteTemplate(ctx context.Context, id string) (*TemplateDeletePayload, error) { +func (r *mutationResolver) DeleteTemplate(ctx context.Context, id string) (*model.TemplateDeletePayload, error) { if err := withTransactionalMutation(ctx).Template.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "template"}) } @@ -83,7 +84,7 @@ func (r *mutationResolver) DeleteTemplate(ctx context.Context, id string) (*Temp return nil, newCascadeDeleteError(err) } - return &TemplateDeletePayload{ + return &model.TemplateDeletePayload{ DeletedID: id, }, nil } diff --git a/internal/graphapi/tfasetting.resolvers.go b/internal/graphapi/tfasetting.resolvers.go index c1615bf0..da6b0023 100644 --- a/internal/graphapi/tfasetting.resolvers.go +++ b/internal/graphapi/tfasetting.resolvers.go @@ -9,11 +9,12 @@ import ( "github.com/theopenlane/core/internal/ent/generated" "github.com/theopenlane/core/internal/ent/generated/tfasetting" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/iam/auth" ) // CreateTFASetting is the resolver for the createTFASetting field. -func (r *mutationResolver) CreateTFASetting(ctx context.Context, input generated.CreateTFASettingInput) (*TFASettingCreatePayload, error) { +func (r *mutationResolver) CreateTFASetting(ctx context.Context, input generated.CreateTFASettingInput) (*model.TFASettingCreatePayload, error) { if err := checkAllowedAuthType(ctx); err != nil { return nil, err } @@ -23,11 +24,11 @@ func (r *mutationResolver) CreateTFASetting(ctx context.Context, input generated return nil, parseRequestError(err, action{action: ActionCreate, object: "tfasetting"}) } - return &TFASettingCreatePayload{TfaSetting: settings}, nil + return &model.TFASettingCreatePayload{TfaSetting: settings}, nil } // UpdateTFASetting is the resolver for the updateTFASetting field. -func (r *mutationResolver) UpdateTFASetting(ctx context.Context, input generated.UpdateTFASettingInput) (*TFASettingUpdatePayload, error) { +func (r *mutationResolver) UpdateTFASetting(ctx context.Context, input generated.UpdateTFASettingInput) (*model.TFASettingUpdatePayload, error) { if err := checkAllowedAuthType(ctx); err != nil { return nil, err } @@ -48,7 +49,7 @@ func (r *mutationResolver) UpdateTFASetting(ctx context.Context, input generated return nil, parseRequestError(err, action{action: ActionUpdate, object: "tfasetting"}) } - return &TFASettingUpdatePayload{TfaSetting: settings}, nil + return &model.TFASettingUpdatePayload{TfaSetting: settings}, nil } // TfaSetting is the resolver for the tfaSettings field. diff --git a/internal/graphapi/user.resolvers.go b/internal/graphapi/user.resolvers.go index 02d154b5..9b3288be 100644 --- a/internal/graphapi/user.resolvers.go +++ b/internal/graphapi/user.resolvers.go @@ -11,19 +11,20 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/theopenlane/core/internal/ent/generated" _ "github.com/theopenlane/core/internal/ent/generated/runtime" + "github.com/theopenlane/core/internal/graphapi/model" "github.com/theopenlane/iam/auth" "github.com/theopenlane/utils/rout" ) // CreateUser is the resolver for the createUser field. -func (r *mutationResolver) CreateUser(ctx context.Context, input generated.CreateUserInput, avatarFile *graphql.Upload) (*UserCreatePayload, error) { +func (r *mutationResolver) CreateUser(ctx context.Context, input generated.CreateUserInput, avatarFile *graphql.Upload) (*model.UserCreatePayload, error) { // TODO: look at allowing this resolver to invite the user instead of creating them directly // for now, return permission denied return nil, rout.ErrPermissionDenied } // UpdateUser is the resolver for the updateUser field. -func (r *mutationResolver) UpdateUser(ctx context.Context, id string, input generated.UpdateUserInput, avatarFile *graphql.Upload) (*UserUpdatePayload, error) { +func (r *mutationResolver) UpdateUser(ctx context.Context, id string, input generated.UpdateUserInput, avatarFile *graphql.Upload) (*model.UserUpdatePayload, error) { user, err := withTransactionalMutation(ctx).User.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "user"}) @@ -40,11 +41,11 @@ func (r *mutationResolver) UpdateUser(ctx context.Context, id string, input gene return nil, parseRequestError(err, action{action: ActionUpdate, object: "user"}) } - return &UserUpdatePayload{User: user}, nil + return &model.UserUpdatePayload{User: user}, nil } // DeleteUser is the resolver for the deleteUser field. -func (r *mutationResolver) DeleteUser(ctx context.Context, id string) (*UserDeletePayload, error) { +func (r *mutationResolver) DeleteUser(ctx context.Context, id string) (*model.UserDeletePayload, error) { if err := withTransactionalMutation(ctx).User.DeleteOneID(id).Exec(ctx); err != nil { return nil, parseRequestError(err, action{action: ActionDelete, object: "user"}) } @@ -53,7 +54,7 @@ func (r *mutationResolver) DeleteUser(ctx context.Context, id string) (*UserDele return nil, newCascadeDeleteError(err) } - return &UserDeletePayload{DeletedID: id}, nil + return &model.UserDeletePayload{DeletedID: id}, nil } // User is the resolver for the user field. diff --git a/internal/graphapi/usersetting.resolvers.go b/internal/graphapi/usersetting.resolvers.go index 5a51f333..c68c9877 100644 --- a/internal/graphapi/usersetting.resolvers.go +++ b/internal/graphapi/usersetting.resolvers.go @@ -10,27 +10,28 @@ import ( "github.com/99designs/gqlgen/graphql" "github.com/rs/zerolog/log" "github.com/theopenlane/core/internal/ent/generated" + "github.com/theopenlane/core/internal/graphapi/model" ) // CreateUserSetting is the resolver for the createUserSetting field. -func (r *mutationResolver) CreateUserSetting(ctx context.Context, input generated.CreateUserSettingInput) (*UserSettingCreatePayload, error) { +func (r *mutationResolver) CreateUserSetting(ctx context.Context, input generated.CreateUserSettingInput) (*model.UserSettingCreatePayload, error) { res, err := withTransactionalMutation(ctx).UserSetting.Create().SetInput(input).Save(ctx) if err != nil { return nil, parseRequestError(err, action{action: ActionCreate, object: "usersetting"}) } - return &UserSettingCreatePayload{ + return &model.UserSettingCreatePayload{ UserSetting: res, }, nil } // CreateBulkUserSetting is the resolver for the createBulkUserSetting field. -func (r *mutationResolver) CreateBulkUserSetting(ctx context.Context, input []*generated.CreateUserSettingInput) (*UserSettingBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkUserSetting(ctx context.Context, input []*generated.CreateUserSettingInput) (*model.UserSettingBulkCreatePayload, error) { return r.bulkCreateUserSetting(ctx, input) } // CreateBulkCSVUserSetting is the resolver for the createBulkCSVUserSetting field. -func (r *mutationResolver) CreateBulkCSVUserSetting(ctx context.Context, input graphql.Upload) (*UserSettingBulkCreatePayload, error) { +func (r *mutationResolver) CreateBulkCSVUserSetting(ctx context.Context, input graphql.Upload) (*model.UserSettingBulkCreatePayload, error) { data, err := unmarshalBulkData[generated.CreateUserSettingInput](input) if err != nil { log.Error().Err(err).Msg("failed to unmarshal bulk data") @@ -42,7 +43,7 @@ func (r *mutationResolver) CreateBulkCSVUserSetting(ctx context.Context, input g } // UpdateUserSetting is the resolver for the updateUserSetting field. -func (r *mutationResolver) UpdateUserSetting(ctx context.Context, id string, input generated.UpdateUserSettingInput) (*UserSettingUpdatePayload, error) { +func (r *mutationResolver) UpdateUserSetting(ctx context.Context, id string, input generated.UpdateUserSettingInput) (*model.UserSettingUpdatePayload, error) { userSetting, err := withTransactionalMutation(ctx).UserSetting.Get(ctx, id) if err != nil { return nil, parseRequestError(err, action{action: ActionUpdate, object: "usersetting"}) @@ -53,7 +54,7 @@ func (r *mutationResolver) UpdateUserSetting(ctx context.Context, id string, inp return nil, parseRequestError(err, action{action: ActionUpdate, object: "usersetting"}) } - return &UserSettingUpdatePayload{UserSetting: userSetting}, nil + return &model.UserSettingUpdatePayload{UserSetting: userSetting}, nil } // UserSetting is the resolver for the UserSetting field. diff --git a/pkg/openlaneclient/graphclient.go b/pkg/openlaneclient/graphclient.go index 7a6acc7e..6e4c2801 100644 --- a/pkg/openlaneclient/graphclient.go +++ b/pkg/openlaneclient/graphclient.go @@ -159,8 +159,8 @@ type OpenlaneGraphClient interface { CreateBulkInvite(ctx context.Context, input []*CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkInvite, error) CreateInvite(ctx context.Context, input CreateInviteInput, interceptors ...clientv2.RequestInterceptor) (*CreateInvite, error) DeleteInvite(ctx context.Context, deleteInviteID string, interceptors ...clientv2.RequestInterceptor) (*DeleteInvite, error) - GetInviteByID(ctx context.Context, inviteID string, interceptors ...clientv2.RequestInterceptor) (*GetInviteByID, error) GetAllInvites(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInvites, error) + GetInviteByID(ctx context.Context, inviteID string, interceptors ...clientv2.RequestInterceptor) (*GetInviteByID, error) InvitesByOrgID(ctx context.Context, where *InviteWhereInput, interceptors ...clientv2.RequestInterceptor) (*InvitesByOrgID, error) CreateBulkCSVNarrative(ctx context.Context, input graphql.Upload, interceptors ...clientv2.RequestInterceptor) (*CreateBulkCSVNarrative, error) CreateBulkNarrative(ctx context.Context, input []*CreateNarrativeInput, interceptors ...clientv2.RequestInterceptor) (*CreateBulkNarrative, error) @@ -21281,6 +21281,60 @@ func (t *DeleteInvite_DeleteInvite) GetDeletedID() string { return t.DeletedID } +type GetAllInvites_Invites_Edges_Node struct { + ID string "json:\"id\" graphql:\"id\"" + Recipient string "json:\"recipient\" graphql:\"recipient\"" + Role enums.Role "json:\"role\" graphql:\"role\"" + Status enums.InviteStatus "json:\"status\" graphql:\"status\"" +} + +func (t *GetAllInvites_Invites_Edges_Node) GetID() string { + if t == nil { + t = &GetAllInvites_Invites_Edges_Node{} + } + return t.ID +} +func (t *GetAllInvites_Invites_Edges_Node) GetRecipient() string { + if t == nil { + t = &GetAllInvites_Invites_Edges_Node{} + } + return t.Recipient +} +func (t *GetAllInvites_Invites_Edges_Node) GetRole() *enums.Role { + if t == nil { + t = &GetAllInvites_Invites_Edges_Node{} + } + return &t.Role +} +func (t *GetAllInvites_Invites_Edges_Node) GetStatus() *enums.InviteStatus { + if t == nil { + t = &GetAllInvites_Invites_Edges_Node{} + } + return &t.Status +} + +type GetAllInvites_Invites_Edges struct { + Node *GetAllInvites_Invites_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" +} + +func (t *GetAllInvites_Invites_Edges) GetNode() *GetAllInvites_Invites_Edges_Node { + if t == nil { + t = &GetAllInvites_Invites_Edges{} + } + return t.Node +} + +type GetAllInvites_Invites struct { + Edges []*GetAllInvites_Invites_Edges "json:\"edges,omitempty\" graphql:\"edges\"" +} + +func (t *GetAllInvites_Invites) GetEdges() []*GetAllInvites_Invites_Edges { + if t == nil { + t = &GetAllInvites_Invites{} + } + return t.Edges +} + type GetInviteByID_Invite_Owner struct { DisplayName string "json:\"displayName\" graphql:\"displayName\"" ID string "json:\"id\" graphql:\"id\"" @@ -21394,60 +21448,6 @@ func (t *GetInviteByID_Invite) GetUpdatedBy() *string { return t.UpdatedBy } -type GetAllInvites_Invites_Edges_Node struct { - ID string "json:\"id\" graphql:\"id\"" - Recipient string "json:\"recipient\" graphql:\"recipient\"" - Role enums.Role "json:\"role\" graphql:\"role\"" - Status enums.InviteStatus "json:\"status\" graphql:\"status\"" -} - -func (t *GetAllInvites_Invites_Edges_Node) GetID() string { - if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} - } - return t.ID -} -func (t *GetAllInvites_Invites_Edges_Node) GetRecipient() string { - if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} - } - return t.Recipient -} -func (t *GetAllInvites_Invites_Edges_Node) GetRole() *enums.Role { - if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} - } - return &t.Role -} -func (t *GetAllInvites_Invites_Edges_Node) GetStatus() *enums.InviteStatus { - if t == nil { - t = &GetAllInvites_Invites_Edges_Node{} - } - return &t.Status -} - -type GetAllInvites_Invites_Edges struct { - Node *GetAllInvites_Invites_Edges_Node "json:\"node,omitempty\" graphql:\"node\"" -} - -func (t *GetAllInvites_Invites_Edges) GetNode() *GetAllInvites_Invites_Edges_Node { - if t == nil { - t = &GetAllInvites_Invites_Edges{} - } - return t.Node -} - -type GetAllInvites_Invites struct { - Edges []*GetAllInvites_Invites_Edges "json:\"edges,omitempty\" graphql:\"edges\"" -} - -func (t *GetAllInvites_Invites) GetEdges() []*GetAllInvites_Invites_Edges { - if t == nil { - t = &GetAllInvites_Invites{} - } - return t.Edges -} - type InvitesByOrgID_Invites_Edges_Node_Owner_Invites struct { Recipient string "json:\"recipient\" graphql:\"recipient\"" RequestorID *string "json:\"requestorID,omitempty\" graphql:\"requestorID\"" @@ -46648,26 +46648,26 @@ func (t *DeleteInvite) GetDeleteInvite() *DeleteInvite_DeleteInvite { return &t.DeleteInvite } -type GetInviteByID struct { - Invite GetInviteByID_Invite "json:\"invite\" graphql:\"invite\"" +type GetAllInvites struct { + Invites GetAllInvites_Invites "json:\"invites\" graphql:\"invites\"" } -func (t *GetInviteByID) GetInvite() *GetInviteByID_Invite { +func (t *GetAllInvites) GetInvites() *GetAllInvites_Invites { if t == nil { - t = &GetInviteByID{} + t = &GetAllInvites{} } - return &t.Invite + return &t.Invites } -type GetAllInvites struct { - Invites GetAllInvites_Invites "json:\"invites\" graphql:\"invites\"" +type GetInviteByID struct { + Invite GetInviteByID_Invite "json:\"invite\" graphql:\"invite\"" } -func (t *GetAllInvites) GetInvites() *GetAllInvites_Invites { +func (t *GetInviteByID) GetInvite() *GetInviteByID_Invite { if t == nil { - t = &GetAllInvites{} + t = &GetInviteByID{} } - return &t.Invites + return &t.Invite } type InvitesByOrgID struct { @@ -54910,6 +54910,35 @@ func (c *Client) DeleteInvite(ctx context.Context, deleteInviteID string, interc return &res, nil } +const GetAllInvitesDocument = `query GetAllInvites { + invites { + edges { + node { + id + recipient + role + status + } + } + } +} +` + +func (c *Client) GetAllInvites(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInvites, error) { + vars := map[string]any{} + + var res GetAllInvites + if err := c.Client.Post(ctx, "GetAllInvites", GetAllInvitesDocument, &res, vars, interceptors...); err != nil { + if c.Client.ParseDataWhenErrors { + return &res, err + } + + return nil, err + } + + return &res, nil +} + const GetInviteByIDDocument = `query GetInviteByID ($inviteId: ID!) { invite(id: $inviteId) { expires @@ -54949,35 +54978,6 @@ func (c *Client) GetInviteByID(ctx context.Context, inviteID string, interceptor return &res, nil } -const GetAllInvitesDocument = `query GetAllInvites { - invites { - edges { - node { - id - recipient - role - status - } - } - } -} -` - -func (c *Client) GetAllInvites(ctx context.Context, interceptors ...clientv2.RequestInterceptor) (*GetAllInvites, error) { - vars := map[string]any{} - - var res GetAllInvites - if err := c.Client.Post(ctx, "GetAllInvites", GetAllInvitesDocument, &res, vars, interceptors...); err != nil { - if c.Client.ParseDataWhenErrors { - return &res, err - } - - return nil, err - } - - return &res, nil -} - const InvitesByOrgIDDocument = `query InvitesByOrgID ($where: InviteWhereInput) { invites(where: $where) { edges { @@ -62410,8 +62410,8 @@ var DocumentOperationNames = map[string]string{ CreateBulkInviteDocument: "CreateBulkInvite", CreateInviteDocument: "CreateInvite", DeleteInviteDocument: "DeleteInvite", - GetInviteByIDDocument: "GetInviteByID", GetAllInvitesDocument: "GetAllInvites", + GetInviteByIDDocument: "GetInviteByID", InvitesByOrgIDDocument: "InvitesByOrgID", CreateBulkCSVNarrativeDocument: "CreateBulkCSVNarrative", CreateBulkNarrativeDocument: "CreateBulkNarrative", diff --git a/pkg/testutils/client.go b/pkg/testutils/client.go index 13475c52..3f268580 100644 --- a/pkg/testutils/client.go +++ b/pkg/testutils/client.go @@ -10,6 +10,7 @@ import ( "github.com/99designs/gqlgen/graphql/handler/lru" "github.com/99designs/gqlgen/graphql/handler/transport" "github.com/theopenlane/core/internal/graphapi" + gqlgenerated "github.com/theopenlane/core/internal/graphapi/generated" "github.com/theopenlane/core/pkg/middleware/auth" "github.com/theopenlane/core/pkg/objects" mock_objects "github.com/theopenlane/core/pkg/objects/mocks" @@ -108,8 +109,8 @@ func createAuthConfig(c *ent.Client) *auth.AuthOptions { // testGraphServer creates a new graphql server for testing the graph api func testGraphServer(t *testing.T, c *ent.Client, u *objects.Objects) *handler.Server { srv := handler.New( - graphapi.NewExecutableSchema( - graphapi.Config{Resolvers: graphapi.NewResolver(c, u)}, + gqlgenerated.NewExecutableSchema( + gqlgenerated.Config{Resolvers: graphapi.NewResolver(c, u)}, )) // add all the transports to the server diff --git a/sonar-project.properties b/sonar-project.properties index fde4c111..9ca561b8 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -6,7 +6,7 @@ sonar.projectVersion=1.0 sonar.sources=. -sonar.exclusions=**/*_test.go,**/vendor/**,internal/ent/generated/**,query/**,schema/**,scripts/**,gen_schema.go,generate.go,tools.go,docker/**,db/**,db/backup/**,internal/graphapi/gen_server.go,internal/ent/entc.go,pkg/testutils/**,pkg/events/soiree/examples/**,pkg/middleware/ratelimiter/examples/**,pkg/objects/mocks/**,cmd/** +sonar.exclusions=**/*_test.go,**/vendor/**,internal/ent/generated/**,query/**,schema/**,scripts/**,gen_schema.go,generate.go,tools.go,docker/**,db/**,db/backup/**,internal/graphapi/generated/**,internal/graphapi/model/**,internal/ent/entc.go,pkg/testutils/**,pkg/events/soiree/examples/**,pkg/middleware/ratelimiter/examples/**,pkg/objects/mocks/**,cmd/** sonar.tests=. sonar.test.inclusions=**/*_test.go sonar.test.exclusions=**/vendor/**